profile
viewpoint

Ask questionsFeature Request: Provide Item.selectedStyle to customize selected items

Currently, there is a color property (Style.selectedColor) that can be set to customize how a selected item is rendered. However, it would be great to have more options. In particular I require to set

  • strokeColor, fillColor (or more general the style)
  • opacity

So in my view selectedColor should be replaced with a property selectedStyle of type Style, which would cover up strokeColor and fillColor.

I would also request opacity to move into the Style class.

On a side note, I would also like to customize opacity for fillColor and strokeColor individually, because I would like to have a transparent fill, but a non-transparent stroke.

Attached you can find three examples of different item states where I want items to be rendered differently (default, selected, editing).

bildschirmfoto 2014-04-06 um 13 25 59

paperjs/paper.js

Answer questions rudrakpatra

I want to select some of the segments of a path. segments.selected=true is very nice but I think something like segment.selectedColor="orange" segment.anchorSize=2// visual size of the knob

currently I am create a single point path or a circle path to achieve the result.(hacky)

useful!

Related questions

Unable to install v0.12.11 hot 6
source:https://uonfu.com/
Github User Rank List