A geometry object decorated with a geometry style object
Renders this geometry as an SVG path. Note: We attach original geometry bounds to svg doc as an expando.
Identifer to keep track of the SVG DOM element.
HTMLElement
A new SVG document root.
Gets optional animation function called when SVG node is created.
(pathElement: HTMLElement, loopback: () => void) => void
Function with the signature animation(pathElement, loopback).
Gets the dash array as a string.
string
Dash array as astring.
Gets fill color as a CSS style string.
string
Fill color as a CSS style string.
Gets fill opacity in decimal format.
number
Fill opacity.
Gets the styledGeometry's underlying geometry object.
The underlying geometry.
Gets the styledGeometry's underlying geometryStyle object.
The underlying geometry style.
Gets path outline color as a CSS style string.
string
Outline color as a CSS style string.
Gets path outline opacity in decimal format.
number
Outline opacity.
Gets path outline thickness in pixels.
number
Thickness in pixels.
Renders this to a canvas context.
Canvas context to which to render.
You can use the loopback parameter on complete to call itself and create repeating animation.
Sets dash array string from a CSS style string. Defaults to solid stroke if no dash array string is provided.
Sets fill color as a CSS style string.
Fill color as a CSS style string.
Sets fill opacity to a decimal between 0 and 1.
Fill opacity.
Set this styledGeometry's geometry.
A new Geometry.
Set this styledGeometry's geometryStyle.
A new styledGeometry.
Gets path outline opacity in decimal format.
Set path outline opacity to a decimal between 0 and 1.
Outline opacity.
Sets path outline thickness in pixels.
Thickness in pixels.