An specialized subclass of the EdgeSelectionIndicatorInstaller that can install the highlight rendering of an IEdge.
Remarks
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.view.EdgeHighlightIndicatorInstaller
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
null
is yielded, no drawing will be used.Parameters
A map of options to pass to the method.
- canvas - CanvasComponent
- The context 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 dotted hatch brush stroke using primaryColor and backgroundColor.
- SIMPLE_ROUND and SIMPLE_SQUARE – A stroke in secondaryColor.
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
A string that will be used to find the Stroke that will be used to draw the path of the edge.
Remarks
yfiles-highlight-template
and yfiles-edge-highlight-template
CSS classes.