1.1 KiB
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 attributeshidden
: When this istrue
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.
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 />