Skip to content

PathData

PathData = readonly number[]

A path as numbers: each command code (PATH.M, …) followed by its coordinates, absolute: M x y, L x y, Q cx cy x y, C c1x c1y c2x c2y x y, Z. Coordinates are rounded to 2 decimals, as the SVG prints them, so canvas and SVG pictures match.