2022-02-19 08:04:25 +01:00
|
|
|
---
|
2021-10-17 18:26:00 +02:00
|
|
|
title: measurements
|
|
|
|
---
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-12-14 21:02:30 -08:00
|
|
|
The `measurements` settings should hold an object with the
|
2022-02-19 08:04:25 +01:00
|
|
|
measurements to draft the pattern for.
|
2022-10-02 17:41:04 +02:00
|
|
|
|
|
|
|
## Signature
|
|
|
|
|
|
|
|
```js
|
|
|
|
const settings = {
|
|
|
|
Object measurements={
|
|
|
|
String measurementName: Number measurementValue,
|
|
|
|
...
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Example
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
```js
|
2022-10-02 17:41:04 +02:00
|
|
|
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({
|
2021-08-25 16:09:31 +02:00
|
|
|
measurements: {
|
2022-10-02 17:41:04 +02:00
|
|
|
biceps: 254,
|
|
|
|
chest: 871,
|
|
|
|
hpsToWaistBack: 380,
|
|
|
|
hips: 847,
|
|
|
|
neck: 320,
|
|
|
|
shoulderSlope: 13,
|
|
|
|
shoulderToShoulder: 399,
|
|
|
|
waistToHips: 120,
|
2021-08-25 16:09:31 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
```
|
2022-10-02 17:41:04 +02:00
|
|
|
|
|
|
|
## Notes
|
|
|
|
|
|
|
|
Measurements should always be specified in millimeter, unless it's an angle
|
|
|
|
measurement (like `shoulderSlope`) which should be provided in degrees.
|
2023-05-03 18:48:32 -07:00
|
|
|
|
2024-09-28 13:13:48 +02:00
|
|
|
:::tip
|
2023-05-03 18:48:32 -07:00
|
|
|
|
|
|
|
The `measurements` settings property is used to hold __all__ measurements,
|
|
|
|
both regular measurements as well as any optional measurements.
|
|
|
|
|
|
|
|
(There is no `optionalMeasurements` settings property.)
|
|
|
|
|
2024-09-28 13:13:48 +02:00
|
|
|
:::
|