renderer property

Renderer get renderer

Gets or sets the rendering context type. Values are 'default', which uses the HTML Canvas, or 'svg', which builds and updates an SVG DOM.

Setting this value dynamically is uncommon, typically a render is chosen only once, when the Diagram is initially created. Using the SVG rendering context is also uncommon, because the default canvas context has considerably greater performance.

For more information, see the intro page on the SVG drawing context.

Implementation

_i3.Renderer get renderer => _i3.Renderer.values.byName(_i4.getProperty(
      this,
      'renderer',
    ));
set renderer (Renderer value)

Implementation

set renderer(_i3.Renderer value) {
  _i4.setProperty(
    this,
    'renderer',
    value.name,
  );
}