editor / contourToPathData
Function: contourToPathData()
contourToPathData(
contour):string
Defined in: io/contour-to-path-data.ts:22
Path data of a closed contour with sharp corners: M p₀ L p₁ … L pₙ₋₁ Z.
moveto starts at the first vertex (§9.3.3), lineto draws each edge (§9.3.5), closepath draws the last edge back to the first vertex (§9.3.4). An empty contour gives an empty d.
Parameters
contour
readonly Point[]
vertices in drawing order
Returns
string
the d attribute of the <path>
Kind
format
See
REF-SVG2-PATHS