C

SvgDefsManager

Helper class for CanvasComponent that manages the defs section of the SVG document.
Inheritance Hierarchy

Remarks

This class is used internally by CanvasComponent and operates on instances of ISvgDefsCreator.

See Also

API

svgDefsManager

Members

No filters for this type

Constructors

Initializes a new instance of the SvgDefsManager class.

Parameters

defsElement: SVGDefsElement
The defs element of the svg document that will be managed by this instance.

Properties

Gets or sets a soft limit for the runtime of the defs cleanup that the method tries to respect.
By default this is 50 milliseconds.
conversionfinal
Gets or sets the interval for the timer to trigger the cleanup event.
By default this is 10 seconds.
conversionfinal
Gets or sets the prefix to use for the unique IDs.
By default this is ygc<number>
final
Yields the defs element this instance is managing.
readonlyfinal

Methods

Triggers the cleanup for svg defs elements on the provided canvasComponent.
final

Parameters

canvasComponent: CanvasComponent
Generates an ID that is globally unique among all SvgDefsManager instances.
This ID should be used for the "id" attribute of DOM nodes.
final

Return Value

string
A globally unique ID.