An ISelectionIndicatorInstaller implementation that draws an ellipse centered at a given point.
Remarks
The template has the yfiles-selection-template
and yfiles-port-selection-template
CSS classes.
This installer is used to visualize port selection as an ellipse that uses the theme's primaryColor as fill and backgroundColor as stroke.
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.view.PointSelectionIndicatorInstaller
See Also
Constructors
Properties
Gets or sets the Fill to use for filling the point's ellipse in the view coordinate system.
See Also
Gets or sets the Stroke to use for drawing the point in the view coordinate system.
See Also
Gets or sets a value indicating whether the visualization is drawn in view coordinates, instead of intermediate coordinates.
Remarks
This setting has no visible effect, unless a projection is set.
The default value is true
, to draw the visualization in the view coordinate system.
Methods
This the main method of the interface that performs the installation of an item's visual representation in the canvas by adding ICanvasObjects.
Parameters
A map of options to pass to the method.
- context - ICanvasContext
- The context that contains the information required to install the visual representation.
- group - ICanvasObjectGroup
- The canvas object group to add the newly generated ICanvasObject to.
- item - Object
- The item to install.
Returns
- ↪ICanvasObject
- The newly generated ICanvasObject for the item's visual representation.
null
if nothing was installed.
See Also
Implements
Factory method that retrieves the center for a given user object.