An edge style that uses WebGL rendering and displays edges as polygonal straight line segments that connect the bends.
Type Details
- yfiles module
- styles-other
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.styles.WebGLPolylineEdgeStyle
See Also
Constructors
Creates a new instance of this edge style.
Parameters
A map of options to pass to the method.
- color - Color
- thickness - number
- cropPath - boolean
Whether the line path will be cropped at the source and target node bounds, potentially leaving space for the arrowheads. This option sets the cropPath property on the created object.
- targetArrow - boolean
Whether a target arrow should be drawn. This option sets the targetArrow property on the created object.
- sourceArrow - boolean
Whether a source arrow should be drawn. This option sets the sourceArrow property on the created object.
- targetArrowScale - number
The factor by which the target arrow is scaled. This option sets the targetArrowScale property on the created object.
- targetArrowRatio - number
The ratio between the target arrow width and the edge width. This option sets the targetArrowRatio property on the created object.
- sourceArrowScale - number
The factor by which the source arrow is scaled. This option sets the sourceArrowScale property on the created object.
- sourceArrowRatio - number
The ratio between the source arrow width and the edge width. This option sets the sourceArrowRatio property on the created object.
Properties
Gets the renderer implementation that has been supplied to this instance in the constructor.
Implements
Gets or sets whether a source arrow should be drawn.
Remarks
false
. Note that for correct arrow rendering, cropPath has to be enabled.Gets or sets whether a target arrow should be drawn.
Remarks
false
. Note that for correct arrow rendering, cropPath has to be enabled.Gets or sets the thickness of the line.
Remarks
1.0
.Methods
Performs a memberwiseClone