Path

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

Signature

Javascript
Path new Path()

The Path constructor takes no arguments.

Properties

A Path object comes with the following properties:

  • attributes : An Attributes instance holding the path’s attributes
  • hidden : When this is true the path will be hidden (excluding it from the output). See Path.hide(), Path.unhide(), and Path.setHidden() for various methods that allow setting this in a chainable way.
RELATED

See Using Attributes for information about custom Attributes that can be used with Paths.

Example

Methods

A Path object exposes the following methods: