This INodeStyle is a decorator that leaves the style unmodified, but carries a webGLStyle instance that will be used when this style is used for an INode 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 node 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 node 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: INodeStyle
- 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 node 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 node and this style instance.
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)readonlyfinal
Implements
INodeStyle.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.