A 3-segment edge style for use in WebGL2 rendering.
Remarks
Type Details
- yfiles module
- view-webgl
- yfiles-umd modules
- view-webgl, view
- Legacy UMD name
- yfiles.view.WebGL2BridgeEdgeStyle
See Also
Constructors
WebGL2BridgeEdgeStyle
(height?: number, fanLength?: number, stroke?: WebGL2Stroke, sourceArrow?: WebGL2ArrowType, targetArrow?: WebGL2ArrowType, selfLoopDistance?: number, effect?: WebGL2Effect)Creates a new 3-segment bridge edge style that is rendered with WebGL2.
Remarks
This style can be applied to edges that are rendered by the WebGL2GraphModelManager. 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
A map of options to pass to the method.
- 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 - WebGL2Stroke
- The color and thickness of the edge. Defaults to BLACK.
- sourceArrow - WebGL2ArrowType
- The arrow at the edge's source end. Defaults to NONE.
- targetArrow - WebGL2ArrowType
- The arrow at the edge's target end. Defaults to NONE.
- selfLoopDistance - number
- The distance between the node's layout and its self-loop control points. Defaults to
20
. - effect - WebGL2Effect
- The effect around the edge. Defaults to NONE.
Properties
Gets the applied effects on this style.
Gets the length of the "fan" part of the style.
Remarks
This is not the length of the first segment, but the distance along the straight line connection between source and target location where each initial 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.
Gets the arrow at the edge's source end.
Gets the stroke that specifies the color and thickness of the edge.
Gets the arrow at the edge's target end.