addRenderer method
(undocumented) Add a renderer to the Diagram. This property is only used when building GoJS from source.
When building from source, to include SVG rendering functionality for Diagram#makeSvg,
you must add the SVGSurface renderer with the name 'SVG': myDiagram.addRenderer('SVG', new SVGSurface(myDiagram, document));
@param {string} name Name of the renderer @param {ISurface} surface Rendering class, either SVGSurface or CanvasSurface.
Implementation
void addRenderer(
_i2.String name,
_i3.ISurface surface,
) {
_i4.callMethod(
this,
'addRenderer',
[
name,
surface,
],
);
}