Defs

This section documents SVG definition (defs) functions, which allow you to define reusable SVG elements such as gradients, clip paths, and shapes. Defs should be wrapped in DaxLib.SVG.Element.Defs to ensure correct SVG structure. D

efine an element once, then reuse or override properties with DaxLib.SVG.Element.UseDef to reduce SVG size and improve performance

DaxLib.SVG.Def.* should be wrapped in DaxLib.SVG.Element.Defs() to add <defs>...</defs> tags.

DaxLib.SVG.Element.Defs(
	    DaxLib.SVG.Def.Circle(...) &
	    DaxLib.SVG.Def.Rect(...)
)
// Returns: <defs>...</defs>

Use additionProperties parameters to override properties on a def. Overwriting style may be problematic.

Available Def Functions

The following functions are available:


Table of contents