A node style that uses WebGL rendering and displays nodes as geometric shapes.
Type Details
- yfiles module
- styles-other
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.styles.WebGLShapeNodeStyle
See Also
This style cannot be used together with WebGL2 rendering.
Constructors
Creates a new instance of this node style.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- color - Color
- shape - ShapeNodeShape
The shape of this style. This option sets the shape 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 node and this style instance.
Remarks
The idiom for retrieving, e.g. an IVisualCreator implementation for a given style is:
const creator = style.renderer.getVisualCreator(node, style)
const visual = creator.createVisual(context)
See Also
Implements
Gets or sets the shape of this style.
Remarks
The default value is RECTANGLE.
Methods
Create a clone of this object.