This IEdgeStyle is a decorator that leaves the style unmodified, but carries a webGLStyle instance that will be used when this style is used for an IEdge in the context of a WebGLGraphModelManager.
Implements
- I
- I
Members
No filters for this type
Constructors
Creates a new instance of the class, specifying both styles to use depending on whether the edge is rendered in- or outside the context of WebGL.
Creates a new instance of the class, specifying both styles to use depending on whether the edge is rendered in- or outside the context of WebGL.
If
style is already of this type, the style of that instance will be used, instead to avoid multi-level wrapping.Parameters
- style: IEdgeStyle
- The style to delegate all the rendering to outside the WebGL context.
- webGLStyle: any
- The style to use in the WebGL2 context.
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.
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.rendererThis property is read-only and can only be set during construction time via the constructor.
readonlyfinal
See Also
API
- webGLStyle
Methods
Returns this instance, as it is shallow immutable, anyway.
Returns this instance, as it is shallow immutable, anyway.