Skip to main content

data

A series of path commands that encodes how to draw the path.

Signature

data: string [readonly]

Remarks

Figma supports a subset of the SVG path format. Path commands must be joined into a single string in order separated by a single space. Here are the path commands we support:

  • M x y: The absolute "move to" command.
  • L x y: The absolute "line to" command.
  • Q x0 y0 x y: The absolute "quadratic spline to" command. Note that while Figma supports this as input, we will never generate this ourselves. All quadratic splines are converted to cubic splines internally.
  • C x0 y0 x1 y1 x y: The absolute "cubic spline to" command.
  • Z: The "close path" command.

On this page