1
0
Fork 0
freesewing/markdown/dev/reference/api/path/en.md

1.1 KiB

title
Path

A path represents an SVG path, which are the lines and curves on our pattern.

Signature

Path new Path()

The Path constructor takes no arguments.

Properties

A Path objects comes with the following properties:

  • attributes : An Attributes instance holding the path's attributes
  • hidden : When this is true the path will be hidden (excluded it from the output). See Path.hide(), Path.unhide(), and Path.setHidden() for various methods that allow setting this in a chainable way.
See [Using Attributes](/howtos/code/attributes) for information about custom Attributes that can be used with Paths. ## Example ```js ({ Point, points, Path, paths, part }) => {

paths.example = new Path() .move(new Point(0,0)) .line(new Point(100,0))

return part }

</Example>

## Methods

A Path object exposes the following methods:

<ReadMore list />