documentationfor yFiles for HTML 2.6

WebGL2GraphModelManager

An alternative GraphModelManager implementation that supports WebGL2 for rendering and animating the graph's nodes, edges, and labels.

Inheritance Hierarchy
GraphModelManager
WebGL2GraphModelManager

Remarks

This implementation offers a limited range of visualization customizations but allows for rendering very large graph instances at high frame rates. While we do recommend the standard rendering approach and the default GraphModelManager implementation for the majority of cases, if you must display several thousands or millions of elements on the screen, this implementation will help you keep the performance at highest levels.

To use this feature, create an instance of this class and set it to the graphModelManager property. Note that not all features of IGraph are supported by this implementation. Most notably, IPortStyles will not be considered and thus ports will not be rendered, and graphs with edges at edges cannot be used.

This implementation uses a single canvas object for the rendering of the the graph items. Nevertheless, the rendering order (z-ordering) of the graph item types is defined by the ordering of their corresponding canvas object groups, and can be changed by reordering these groups (groupNodeGroup, edgeGroup, nodeGroup, edgeLabelGroup, and nodeLabelGroup). The values of the HierarchicNestingPolicy and LabelLayerPolicy properties have no effect.

While the default renderMode is WEB_GL, it may be switched to SVG. As soon as this property is set the first time, this WebGL2GraphModelManager is prepared for SVG as well as WebGL rendering. This allows to switch fast and mostly seamless between both rendering modes.

Type Details

yfiles module
view-webgl
yfiles-umd modules
view-webgl, view
Legacy UMD name
yfiles.view.WebGL2GraphModelManager

See Also

Many properties and methods of this class are inherited from the super class and have no effect in this implementation.

Constructors

Properties

Methods

Events