Interface SvgRendererOptions

GoJS® Diagramming Components
version 3.1.0
by Northwoods Software®

Hierarchy (view full)

Used for the options argument to Diagram.makeSvg.

Index

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

A function that takes the result SVGSVGElement and may modify it.

Type declaration

    • (svg: SVGSVGElement): void
    • Parameters

      • svg: SVGSVGElement

      Returns void