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-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 = {
|
|
|
|
String units='metric'
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Example
|
|
|
|
|
|
|
|
```js
|
|
|
|
import { Aaron } from "@freesewing/aaron"
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-10-02 17:41:04 +02:00
|
|
|
const pattern = new Aaron({
|
|
|
|
units: 'imperial'
|
2021-08-25 16:09:31 +02:00
|
|
|
})
|
|
|
|
```
|
2022-10-02 17:41:04 +02:00
|
|
|
|
|
|
|
## Notes
|
|
|
|
|
|
|
|
This setting only applies to formatting of the output.
|
|
|
|
Freesewing expects all input to be in millimeter.
|