Optional
elementA 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(...);
}
Used for the options argument to Diagram.makeSvg.