A 3-segment edge style for use in WebGL2 rendering.
Implements
Inheritance Hierarchy
Remarks
Note that unlike other IEdgeStyle implementations, this class is immutable. All properties are read-only and immutable, and the class cannot be subclassed, either.
See Also
Members
No filters for this type
Constructors
This style can be applied to edges that are rendered by the WebGLGraphModelManager. The preferred way of calling the constructor is using option arguments, as there are many defaults and optional arguments.
To use the default value for a color option, set it to null.
Parameters
- height?: number
- The deviation of the bridge from the straight-line. Defaults to
0. - fanLength?: number
- The value for the fanLength property. Defaults to
0.2. - stroke?: WebGLStrokeconversion
- The color and thickness of the edge. Defaults to WebGLStroke.BLACK.
- sourceArrow?: WebGLArrowTypeconversion
- The arrow at the edge's source end. Defaults to WebGLArrowType.NONE.
- targetArrow?: WebGLArrowTypeconversion
- The arrow at the edge's target end. Defaults to WebGLArrowType.NONE.
- selfLoopDistance?: number
- The distance between the node's layout and its self-loop control points. Defaults to
20. - effect?: WebGLEffectconversion
- The effect around the edge. Defaults to WebGLEffect.NONE.
- zoomVisibilityPolicy?: WebGLZoomVisibilityPolicy
- The zoom visibility policy. Defaults to
null.
Properties
Gets the applied effects on this style.
Gets the applied effects on this style.
readonlyfinal
This is not the length of the first segment, but the distance along the straight line connection between source and target location where each initially bent segment turns into the middle segment.
Values between 0 and 1 (inclusive) are interpreted as ratios of the whole distance, where 1 means that the fan extends to the midpoint between source and target. All other values are considered as a fixed distance.
readonlyfinal
Gets the renderer implementation that can be queried for implementations that provide details about the visual appearance and visual behavior for a given edge and this style instance.
Gets the renderer implementation that can be queried for implementations that provide details about the visual appearance and visual behavior for a given edge and this style instance.
The idiom for retrieving, e.g. an IVisualCreator implementation for a given style is:
const creator = style.renderer.getVisualCreator(edge, style)
const visual = creator.createVisual(context)readonlyfinal
Implements
IEdgeStyle.rendererreadonlyfinal
Gets the arrow at the edge's source end.
Gets the arrow at the edge's source end.
readonlyfinal
Gets the stroke that specifies the color and thickness of the edge.
Gets the stroke that specifies the color and thickness of the edge.
readonlyfinal
Gets the arrow at the edge's target end.
Gets the arrow at the edge's target end.
readonlyfinal
Gets the zoom visibility policy or null if no policy is set.
Gets the zoom visibility policy or
null if no policy is set.Note that WebGLZoomVisibilityPolicy is bound to a specific CanvasComponent instance and cannot be shared across multiple CanvasComponents. Therefore, when using this style with multiple CanvasComponents, a separate instance of this style must be created for each CanvasComponent, each configured with a dedicated WebGLZoomVisibilityPolicy instance.
readonlyfinal
Methods
Create a clone of this object.
Create a clone of this object.