An implementation of the ICanvasObjectInstaller interface that can install the selection outline of an IEdge.
Remarks
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.view.EdgeSelectionIndicatorInstaller
See Also
Properties
Gets or sets a value indicating whether to draw the decoration in in view coordinates, as opposed to intermediate coordinates.
Remarks
This is useful with projections that have smaller scaling factors, which may result in the edge decoration not being visible in some directions. This setting has no visible effect, unless a projection is set. Setting a new value has no effect on currently visible edge decorations.
The default is true
to draw the edge decoration in view coordinates.
See Also
Defined in
Methods
Installs a rendering for the item
if it is an IEdge that will use the getBendDrawing and getStroke to render the path and bends.
Parameters
A map of options to pass to the method.
- context - ICanvasContext
- The canvas context.
- group - ICanvasObjectGroup
- The ICanvasObjectGroup to add the new canvas object to.
- item - Object
- The item to install.
Returns
- ↪ICanvasObject
- The canvas object representing the item.
See Also
Implements
Retrieves the drawing of the bend for the context.
Remarks
This implementation will use the BEND_TEMPLATE_KEY resource to find a IVisualTemplate instance.
If null
is yielded, the ThemeVariant of the current theme determines the bend visualization:
- CLASSIC – A diamond filled with backgroundColor and stroked with primaryColor.
- SIMPLE_ROUND – A circle filled with backgroundColor.
- SIMPLE_SQUARE – A diamond filled with backgroundColor and stroked with primaryColor.
Parameters
A map of options to pass to the method.
- canvas - CanvasComponent
- The canvas for which the drawing shall be returned.
- edge - IEdge
- The edge for which the rendering will be used.
Returns
- ↪IVisualTemplate
- The drawing instance to use for the rendering of the bends in the given context.
Implements
Retrieves the Stroke for the context.
Remarks
This implementation will use the STROKE_KEY resource to find a Stroke instance.
If null
is yielded, the ThemeVariant of the current theme determines the Stroke:
- CLASSIC – A hatch brush stroke using primaryColor and backgroundColor.
- SIMPLE_ROUND and SIMPLE_SQUARE – A stroke in primaryColor.
Parameters
A map of options to pass to the method.
- canvas - CanvasComponent
- The canvas for which the Stroke shall be returned.
- edge - IEdge
- The edge for which the rendering will be used.
Returns
Implements
Constants
A string that will be used to find the IVisualTemplate that will be used to draw the bends of the edge.
Remarks
yfiles-bend-template
CSS class.See Also
A string that will be used to find the Stroke that will be used to draw the path of the edge.
Remarks
yfiles-selection-template
and yfiles-edge-selection-template
CSS classes.