Helper class for CanvasComponent that manages the defs
section of the SVG document.
Inheritance Hierarchy
SvgDefsManager
Remarks
This class is used internally by CanvasComponent and operates on instances of ISvgDefsCreator.
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.view.SvgDefsManager
See Also
Constructors
Initializes a new instance of the SvgDefsManager class.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- 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.
Remarks
By default this is 50 milliseconds.
Gets or sets the interval for the timer to trigger the cleanup event.
Remarks
By default this is 10 seconds.
Gets or sets the prefix to use for the unique IDs.
Remarks
By default this is
ygc<number>
Methods
Triggers the clean up for svg defs on the provided control.
Generates an ID that is globally unique among all SvgDefsManager instances.
Remarks
This ID should be used for the "id" attribute of DOM nodes.
Returns
- ↪string
- A globally unique ID.