Abstract Protected constructorProtected Optional containerAbstract arcOptional classes: string | string[]Optional fill: stringAbstract backgroundAbstract circleOptional fill: stringOptional classes: string | string[]Abstract clearAbstract lineAbstract pentagonOptional fill: stringOptional classes: string | string[]Abstract rectOptional classes: string | string[]Optional fill: stringOptional radius: numberAbstract removeAbstract sizeAbstract textOptional classes: string | string[]Optional plain: booleanAbstract titleAbstract toAbstract triangleOptional classes: string | string[]Optional fill: stringStatic Protected arcStatic Protected ngonStatic Protected toStatic Protected triangleGenerated using TypeDoc
Serialize the current state of the diagram to an SVG string. The returned string is a standalone
<svg>document (including thexmlnsattribute) and can be written to a file or used without ever attaching it to the DOM.