2021-10-17 18:26:00 +02:00
|
|
|
---
|
|
|
|
title: only
|
|
|
|
---
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2021-12-28 21:07:45 +01:00
|
|
|
The `only` setting allows you to specify one or more parts to
|
|
|
|
draft/render, rather than the entire pattern.
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2021-12-28 21:07:45 +01:00
|
|
|
It accepts either a single part name as a string, or an array of
|
|
|
|
one or more part names.
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
```js
|
2021-12-28 21:07:45 +01:00
|
|
|
import Brian from "@freesewing/brian";
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2021-12-28 21:07:45 +01:00
|
|
|
const pattern = new Brian({
|
2021-08-25 16:09:31 +02:00
|
|
|
only: ["front", "sleeve"]
|
|
|
|
})
|
|
|
|
```
|