2021-12-28 09:09:27 +01:00
|
|
|
---
|
2022-10-02 00:27:09 +02:00
|
|
|
title: plugin-measurements
|
2021-12-28 09:09:27 +01:00
|
|
|
---
|
|
|
|
|
2022-10-02 00:27:09 +02:00
|
|
|
Published as [@freesewing/plugin-measurements][1], this plugin will
|
2022-12-13 04:39:07 -08:00
|
|
|
provide a number of extra measurements to your design insofar as
|
2021-12-28 09:09:27 +01:00
|
|
|
they can be deduced from the measurements that are provided.
|
|
|
|
|
|
|
|
It will add the following measurements:
|
|
|
|
|
2022-02-20 14:44:38 +01:00
|
|
|
- `seatFront` (if both `seat` and `seatBack` are provided)
|
|
|
|
- `seatBackArc` (if both `seat` and `seatBack` are provided)
|
|
|
|
- `seatFrontArc` (if both `seat` and `seatBack` are provided)
|
|
|
|
- `waistFront` (if both `waist` and `waistBack` are provided)
|
|
|
|
- `waistBackArc` (if both `waist` and `waistBack` are provided)
|
|
|
|
- `waistFrontArc` (if both `waist` and `waistBack` are provided)
|
2022-12-13 04:39:07 -08:00
|
|
|
- `crossSeamBack` (if both `crossSeam` and `crossSeamFront` are provided)
|
|
|
|
|
2024-09-28 13:13:48 +02:00
|
|
|
:::note RELATED
|
2022-12-13 04:39:07 -08:00
|
|
|
For more information about these extra measurements, please see
|
|
|
|
[Measurements from `plugin-measurements`](/reference/measurements#measurements-from-plugin-measurements)
|
2024-09-28 13:13:48 +02:00
|
|
|
:::
|
2021-12-28 09:09:27 +01:00
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
```sh
|
|
|
|
npm install @freesewing/plugin-measurements
|
|
|
|
```
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2022-10-02 00:27:09 +02:00
|
|
|
Either [add it as a part plugins](/reference/api/part/config/plugins) in your
|
|
|
|
design, or [add it to a pattern instance with
|
|
|
|
Pattern.use()](/reference/api/pattern/use).
|
2021-12-28 09:09:27 +01:00
|
|
|
|
2022-12-13 04:39:07 -08:00
|
|
|
To import the plugin for use:
|
|
|
|
```js
|
|
|
|
import { measurementsPlugin } from '@freesewing/plugin-measurements'
|
|
|
|
// or
|
|
|
|
import { pluginMeasurements } from '@freesewing/plugin-measurements'
|
|
|
|
```
|
|
|
|
|
2022-10-02 00:27:09 +02:00
|
|
|
## Notes
|
2021-12-28 09:09:27 +01:00
|
|
|
|
2024-08-29 17:52:54 -07:00
|
|
|
This plugin is part of the [core-plugins bundle](/reference/plugins/core),
|
|
|
|
so there is no need to install or import it manually unless you wish to forego
|
2024-08-29 12:35:18 -07:00
|
|
|
loading of core plugins yet still want to load this plugin.
|
2022-10-02 00:27:09 +02:00
|
|
|
|
|
|
|
[1]: https://www.npmjs.com/package/@freesewing/plugin-measurements
|