C

WebGLNodeStyleDecorator

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.
ImplementsInheritance Hierarchy

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.
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.
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
The style that will be used to render the INode outside of the WebGL2 context.
This property is read-only and can only be set during construction time via the constructor.
readonlyfinal

See Also

API
webGLStyle
The style that will be used to render the INode in the context of WebGL2.
This property is read-only and can only be set during construction time via the constructor.
readonlyfinal

See Also

API
style

Methods

Returns this instance, as it is shallow immutable, anyway.
final

Return Value

Object
This object