2022-02-19 08:04:25 +01:00
|
|
|
---
|
2021-10-17 18:26:00 +02:00
|
|
|
title: units
|
|
|
|
---
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2021-12-28 21:07:45 +01:00
|
|
|
The `units` setting controls the units used on the pattern.
|
|
|
|
It can be either `metric` (the default) or `imperial`.
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-02-19 08:04:25 +01:00
|
|
|
Note that this is only used to format the output.
|
2021-12-28 21:07:45 +01:00
|
|
|
Freesewing expects mm as input.
|
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
|
|
|
units: "imperial"
|
|
|
|
})
|
|
|
|
```
|