A void/null implementation of the IVisualCreator interface that does nothing.
Remarks
Use INSTANCE for methods that require non-
null
IVisualCreator implementations if you want to have no visualization.Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.view.VoidVisualCreator
Methods
Returns null
.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- context - IRenderContext
- The context that describes where the visual will be used.
Returns
- ↪Visual
- The visual to include in the canvas object visual tree. This may be
null
.
See Also
IVisualCreator.updateVisual,
The IVisualCreator,
Creating a custom Arrow,
The WebGL Rendering API,
The Canvas Rendering API
Implements
Returns null
.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- context - IRenderContext
- The context that describes where the visual will be used in.
- oldVisual - Visual
- The visual instance to be updated.
Returns
- ↪Visual
oldVisual
, if this instance modified the visual, or a new visual that should replace the existing one in the canvas object visual tree.
See Also
IVisualCreator.createVisual,
ICanvasObjectDescriptor,
CanvasComponent,
The IVisualCreator,
Creating a custom Arrow
Implements
Constants
An immutable and shareable instance of the VoidVisualCreator class.