An edge style that uses WebGL rendering and displays edges as tapered straight lines that connect the centers of the source and target nodes.
Remarks
This style ignores the location of bends and the exact location of the ports and can only be used for edges at nodes. It doesn't work for edges whose source or target port owner is an edge.
Type Details
- yfiles module
- styles-other
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.styles.WebGLTaperedEdgeStyle
See Also
This style cannot be used together with WebGL2 rendering.
Constructors
Creates a new instance of this style.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- color - Color
- thickness - number
The thickness at the source end of the line. This option sets the thickness property on the created object.
This style cannot be used together with WebGL2 rendering.
Properties
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.
Remarks
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)
Implements
Methods
Performs a memberwiseClone