This ILabelStyle is a decorator that lets 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.
Type Details
- yFiles module
- view
See Also
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.
Remarks
If
style
is already of this type, the style of that instance will be used, instead to avoid multi-level wrapping.Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- style - ILabelStyle
- The style to delegate all the rendering to outside the WebGL context.
- webGLStyle - WebGLLabelStyle | WebGLIconLabelStyle
- 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.
Remarks
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)
Implements
Methods
Returns this instance, as it is shallow immutable, anyway.