Svg

Type alias PathCommand

cleanSVG (node: El): void

Name Type Default Description
node El    

copySVGStyles (source: El, copy: El, isHTML: boolean): void

Name Type Default Description
source El    
copy El    
isHTML boolean false  

parsePath (d: string): Array<Point>

Return all points on an SVG path. Essentially, this turns a curved path into a polygon with just the joins/corners selected.

Name Type Default Description
d string    

pathCommands (path: string): Array<PathCommand>

Name Type Default Description
path string    

Copyright © 2024 Mathigon.org