DEFAULT_FILE_NAME

The default filename when attempting to download.

DEFAULT_FILE_NAME

Type: string

DASH_ARRAY

Constants purely to prevent magic numbers.

DASH_ARRAY

Type: {LENGTH: number, GAP: number}

Veczor

A tool to create super-cool vector interactivity.

new Veczor(canvas: HTMLCanvasElement, svg: (SVGElement | string))
Parameters
canvas (HTMLCanvasElement) Canvas to draw to.
svg ((SVGElement | string)) A string representation of an SVG file, or an actual SVGElement.
Static Members
loadSVG(path)
removeSVGViewBox(svg)
getSVGChildElements(svgElement)
createNeonColor(start, end, startRange, endRange)
Instance Members
update()
fit(padding)
center()
distort(amount)
exportToFile(fileName)
velocity
velocity
followPointer
followPointer
position
position
svg
svg
color
color
dashGap
dashGap
dashLength
dashLength
strokeWidth
strokeWidth
blendMode
blendMode

exportSVG

exportSVG

Type: string