C

WebGLLabelStyleDecorator

This ILabelStyle is a decorator that leaves the style unmodified, but carries a webGLStyle instance that will be used when this style is used for an ILabel 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 label 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: ILabelStyle
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 label and this style instance.
The idiom for retrieving, e.g. an IVisualCreator implementation for a given style is:
const creator = style.renderer.getVisualCreator(label, style)
const visual = creator.createVisual(context)
readonlyfinal
The style that will be used to render the ILabel 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 ILabel 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