Interface SvgRendererOptions

GoJS® Diagramming Components
version 3.0.14
by Northwoods Software®

Hierarchy

Used for the options argument to Diagram.makeSvg.

Index

Properties

Properties

Type declaration

    • (graphobj: GraphObject, svgelt: SVGElement): void
    • A function with two arguments, GraphObject and SVGElement. As the SVG elements are created representing each graph object, this function is called on them, allowing you to modify the SVG as it is being built, to assign stylesheets, IDs, etc. Example:

      elementFinished: (graphObject, SVGElement) => {
      // set something on every SVG element that represents a GoJS TextBlock
      if (graphObject instanceof go.TextBlock) SVGElement.setAttribute(...);
      }

      Parameters

      Returns void