1
0
Fork 0
freesewing/sites/dev/docs/reference/api/path
2025-04-18 15:22:33 +02:00
..
addclass fix(dev): One-liner admonitions 2024-09-29 07:14:59 +02:00
addtext fix(dev): One-liner admonitions 2024-09-29 07:14:59 +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 fix(dev): One-liner admonitions 2024-09-29 07:14:59 +02:00
bbox chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
circlesegment fix(dev): One-liner admonitions 2024-09-29 07:14:59 +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 fix(dev): One-liner admonitions 2024-09-29 07:14:59 +02:00
combine chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
curve fix(dev): One-liner admonitions 2024-09-29 07:14:59 +02:00
curve_ fix(dev): One-liner admonitions 2024-09-29 07:14:59 +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 fix(dev): One-liner admonitions 2024-09-29 07:14:59 +02:00
hide fix(dev): One-liner admonitions 2024-09-29 07:14:59 +02:00
insop fix(dev): One-liner admonitions 2024-09-29 07:14:59 +02:00
intersects Fix and improve path intersection methods 2024-10-03 11:37:55 +02:00
intersectsbeam Fix and improve path intersection methods 2024-10-03 11:37:55 +02:00
intersectsx Fix and improve path intersection methods 2024-10-03 11:37:55 +02:00
intersectsy Fix and improve path intersection methods 2024-10-03 11:37:55 +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 fix(dev): One-liner admonitions 2024-09-29 07:14:59 +02:00
move chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
noop fix(dev): One-liner admonitions 2024-09-29 07:14:59 +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 fix(dev): One-liner admonitions 2024-09-29 07:14:59 +02:00
sethidden fix(dev): One-liner admonitions 2024-09-29 07:14:59 +02:00
settext fix(dev): One-liner admonitions 2024-09-29 07:14:59 +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 fix(dev): One-liner admonitions 2024-09-29 07:14:59 +02:00
smurve_ fix(dev): One-liner admonitions 2024-09-29 07:14:59 +02:00
split chore: Port FreeSewing.dev to docusaurus 2024-09-28 13:13:48 +02:00
start fix(dev): One-liner admonitions 2024-09-29 07:14:59 +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
ucurve [dev] fix: Replace fake underscore 2025-04-18 15:22:33 +02:00
unhide fix(dev): One-liner admonitions 2024-09-29 07:14:59 +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 />