1
0
Fork 0
freesewing/markdown/dev/reference/snippets/button/en.md

27 lines
466 B
Markdown
Raw Normal View History

---
title: button
---
The `button` snippet is used to mark button placement.
It is provided by [plugin-buttons](/reference/plugins/buttons/).
## Example
<Example caption="An example of the button snippet">
```js
({ Point, Path, paths, Snippet, snippets, part }) => {
snippets.demo = new Snippet('button', new Point(0,0))
// Prevent clipping
paths.diag = new Path()
.move(new Point(-50,-4))
.move(new Point(50,4))
return part
}
```
</Example>