A node style that uses WebGL rendering and displays an image for the visual representation of a node.
Type Details
- yfiles module
- styles-other
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.styles.WebGLImageNodeStyle
See Also
This style cannot be used together with WebGL2 rendering.
Constructors
Creates a new instance that uses the specified image.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- image - string
- The image source, i.e. everything that one could use to specify the
src
of an <img> element. - normalizedOutline - GeneralPath
The normalized outline of the image that will be displayed. This option sets the normalizedOutline property on the created object.
This style cannot be used together with WebGL2 rendering.
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.
Remarks
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)