2022-02-19 08:04:25 +01:00
|
|
|
---
|
2021-10-17 18:26:00 +02:00
|
|
|
title: only
|
|
|
|
---
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-02-19 08:04:25 +01:00
|
|
|
The `only` setting allows you to specify one or more parts to
|
2022-10-02 17:41:04 +02:00
|
|
|
draft, rather than the entire pattern.
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-12-14 21:02:30 -08:00
|
|
|
It accepts a single part name as a string, an array of one or more part names, or it can be set to `false`.
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-10-02 17:41:04 +02:00
|
|
|
## Signature
|
|
|
|
|
2021-08-25 16:09:31 +02:00
|
|
|
```js
|
2022-10-02 17:41:04 +02:00
|
|
|
const settings = {
|
2022-12-14 21:02:30 -08:00
|
|
|
String|Array|Boolean only=false
|
2022-10-02 17:41:04 +02:00
|
|
|
}
|
|
|
|
```
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-10-02 17:41:04 +02:00
|
|
|
## Example
|
|
|
|
|
|
|
|
```js
|
|
|
|
import { Aaron } from "@freesewing/aaron"
|
|
|
|
|
|
|
|
const pattern = new Aaron({
|
|
|
|
only: ['aaron.front']
|
2021-08-25 16:09:31 +02:00
|
|
|
})
|
|
|
|
```
|
2022-10-02 17:41:04 +02:00
|
|
|
|
|
|
|
## Notes
|
|
|
|
|
|
|
|
When `only` is not specified, it defaults to `false` which means all parts will
|
|
|
|
be included.
|