Describes the technologies used to render visual elements.
Remarks
This type can be used to configure how certain visual elements are rendered.
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.view.RenderModes
Constants
Renders in SVG.
See Also
Renders in WebGL2.
Remarks
When this rendering mode is combined with SVG-based rendering of the graph items, i.e., when GraphModelManager and not WebGL2GraphModelManager is used, you must ensure that the WebGL2 rendering code is not removed by tree-shaking build steps. To do this, add the following line of code:
Class.ensure(WebGL2GraphModelManager)
.Static Methods
Converts the argument to RenderModes.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- value - RenderModes
- The value to convert to RenderModes.
Returns
- ↪RenderModes
- Either
value
if it is already a RenderModes or an appropriate converted value.