PathElement: string

A path element is a string in a bespoke format supporting the SVG commands as shown in https://www.w3.org/TR/SVG/paths.html#PathElement

So command character and parameters (number depends on the command) e.g.:

  • M x y: Move to x, y
  • m x y: Move to x, y
  • L x y: Line to x, y
  • l x y: Line to x, y
  • C x1 y1 x2 y2 x y: Cubic bezier curve to x, y with control points x1, y1 and x2, y2
  • Q x1 y1 x y: Quadratic bezier curve to x, y with control point x1, y1
  • Z: Close path

for the commands you can use upper case letters for absolute coordinates and lower case letters for relative coordinates.

Generated using TypeDoc