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
|
|
|
|
2022-12-14 21:02:30 -08:00
|
|
|
The `units` setting controls the units of length used on the pattern.
|
|
|
|
It can be either `metric` (millimeters, the default) or `imperial` (inches).
|
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.
|
2022-12-14 21:02:30 -08:00
|
|
|
FreeSewing expects all input to be in millimeter.
|