Constructors
Accessors
StaticattributeNamespace
- get attributeNamespace(): Record<string, string>
Returns Record<string, string>
Staticsvg
- get svg(): string
Returns string
Staticxlink
- get xlink(): string
Returns string
Staticxmlns
- get xmlns(): string
Returns string
Methods
Staticcreate
- create(
tag: string,
attributes?: Record<string, string | number>,
formatter?: (n: number) => string,
): SVGElement Parameters
- tag: string
Optionalattributes: Record<string, string | number>Optionalformatter: (n: number) => string
Returns SVGElement
Staticget
- get(node: SVGElement, attributeName: string): null | string
Parameters
- node: SVGElement
- attributeName: string
Returns null | string
Staticset
- set(
node: SVGElement,
attributes?: Record<string, string | number>,
formatter?: (n: number) => string,
): SVGElement Parameters
- node: SVGElement
Optionalattributes: Record<string, string | number>Optionalformatter: (n: number) => string
Returns SVGElement