Class: SvgList
Implements
SvgListMethods
Properties
svgElements
• Private
svgElements: Svg
[] = []
Defined in
Constructors
constructor
• new SvgList(nodeList
)
Parameters
Name | Type | Description |
---|---|---|
nodeList | ArrayLike <Element > |
Defined in
Methods
call
▸ Private
call<T
>(method
, args
): SvgList
Type parameters
Name | Type |
---|---|
T | extends SvgMethods |
Parameters
Name | Type |
---|---|
method | T |
args | Parameters <Svg [T ]> |
Returns
Defined in
attr
▸ attr(...args
): SvgList
Parameters
Name | Type |
---|---|
...args | [attributes: Attributes] |
Returns
Implementation of
SvgListMethods.attr
Defined in
elem
▸ elem(...args
): SvgList
Parameters
Name | Type |
---|---|
...args | [name: string, attributes?: Attributes, className?: string, insertFirst: boolean] |
Returns
Implementation of
SvgListMethods.elem
Defined in
root
▸ root(...args
): SvgList
Parameters
Name | Type |
---|---|
...args | [] |
Returns
Implementation of
SvgListMethods.root
Defined in
getNode
▸ getNode(...args
): SvgList
Parameters
Name | Type |
---|---|
...args | [] |
Returns
Implementation of
SvgListMethods.getNode
Defined in
foreignObject
▸ foreignObject(...args
): SvgList
Parameters
Name | Type |
---|---|
...args | [content: string | Node, attributes?: Attributes, className?: string, insertFirst: boolean] |
Returns
Implementation of
SvgListMethods.foreignObject
Defined in
text
▸ text(...args
): SvgList
Parameters
Name | Type |
---|---|
...args | [t: string] |
Returns
Implementation of
SvgListMethods.text
Defined in
empty
▸ empty(...args
): SvgList
Parameters
Name | Type |
---|---|
...args | [] |
Returns
Implementation of
SvgListMethods.empty
Defined in
remove
▸ remove(...args
): SvgList
Parameters
Name | Type |
---|---|
...args | [] |
Returns
Implementation of
SvgListMethods.remove
Defined in
addClass
▸ addClass(...args
): SvgList
Parameters
Name | Type |
---|---|
...args | [names: string] |
Returns
Implementation of
SvgListMethods.addClass
Defined in
removeClass
▸ removeClass(...args
): SvgList
Parameters
Name | Type |
---|---|
...args | [names: string] |
Returns
Implementation of
SvgListMethods.removeClass
Defined in
removeAllClasses
▸ removeAllClasses(...args
): SvgList
Parameters
Name | Type |
---|---|
...args | [] |
Returns
Implementation of
SvgListMethods.removeAllClasses
Defined in
animate
▸ animate(...args
): SvgList
Parameters
Name | Type |
---|---|
...args | [animations: Record<string, AnimationDefinition | AnimationDefinition[]>, guided: boolean, eventEmitter?: EventEmitter] |
Returns
Implementation of
SvgListMethods.animate