Interface SvgRendererOptions

GoJS® Diagramming Components
version 3.0.16
by Northwoods Software®

Hierarchy (view full)

Used for the options argument to Diagram.makeSvg.

Index

Properties

Properties

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(...);
}

Type declaration

    • (graphobj: GraphObject, svgelt: SVGElement): void
    • Parameters

      Returns void