Methods
every
- every(f: (node: SVGNode, index: number, array: SVGNode[]) => boolean): boolean
-
Parameters
-
f: (node: SVGNode, index: number, array: SVGNode[]) => boolean
-
-
Parameters
Returns boolean
Returns boolean
forEach
- forEach(f: (node: SVGNode, index: number, array: SVGNode[]) => void): void
mapHead
- mapHead(f: (node: SVGNode) => void): this
some
- some(f: (node: SVGNode, index: number, array: SVGNode[]) => boolean): boolean
-
Parameters
-
f: (node: SVGNode, index: number, array: SVGNode[]) => boolean
-
-
Parameters
Returns boolean
Returns boolean
stop
- stop(offset: AttributeValue, stopColor?: AttributeValue, stopOpacity?: AttributeValue): this
-
Parameters
-
offset: AttributeValue
-
Optional stopColor: AttributeValue
-
Optional stopOpacity: AttributeValue
Returns this
An easy way to create multiple
stop
elementsBasically an stack with the
stop
method to add a newstop