1
0
Fork 0
freesewing/sites/dev/docs/reference/api/path
Joost De Cock ab3204f9f1 chore: Port FreeSewing.dev to docusaurus
The replaces the NextJS site powering FreeSewing.dev with a Docusaurus
setup. It's part of my efforts to simplify FreeSewing's setup so we can
focus on our core value proposition.
2024-09-28 13:13:48 +02:00
..
_curve chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
addclass chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
addtext chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
angleat chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
aspathstring chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
asrenderprops chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
attr chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
bbox chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
circlesegment chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
clean chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
clone chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
close chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
combine chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
curve chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
curve_ chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
divide chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
edge chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
end chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
hide chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
insop chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
intersects chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
intersectsx chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
intersectsy chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
join chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
length chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
line chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
move chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
noop chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
offset chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
reverse chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
rotate chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
roughlength chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
setclass chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
sethidden chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
settext chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
shiftalong chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
shiftfractionalong chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
smurve chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
smurve_ chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
split chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
start chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
translate chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
trim chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
unhide chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
readme.mdx chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00

---
title: Path
---

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

## Signature

```js
Path new Path()
```

The Path constructor takes no arguments.

## Properties

A Path object comes with the following properties:

- `attributes` : An [Attributes](/reference/api/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()](/reference/api/path/hide),
  [Path.unhide()](/reference/api/path/unhide), and
  [Path.setHidden()](/reference/api/path/sethidden) for various methods that
  allow setting this in a chainable way.

:::note RELATED
See [Using Attributes](/howtos/code/attributes)
for information about custom Attributes that can be used with Paths.
:::
## Example

<Example caption="Example of the Path contructor">
```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 />