2021-10-17 18:26:00 +02:00
|
|
|
---
|
2022-10-02 00:27:09 +02:00
|
|
|
title: plugin-dimension
|
2021-10-17 18:26:00 +02:00
|
|
|
---
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-10-02 00:27:09 +02:00
|
|
|
Published as [@freesewing/plugin-dimension][1], this plugin provides the
|
|
|
|
following macros:
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-10-12 19:09:04 +02:00
|
|
|
- [hd](/reference/macros/hd) : Adds a horizontal dimension
|
|
|
|
- [vd](/reference/macros/vd) : Adds a vertical dimension
|
|
|
|
- [ld](/reference/macros/ld) : Adds a linear dimension
|
|
|
|
- [pd](/reference/macros/pd) : Adds a dimension along a path
|
|
|
|
- [rmd](/reference/macros/rmd) : Removes a dimension
|
|
|
|
- [rmad](/reference/macros/rmad) : Removes all dimensions with a default prefix
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
2022-10-02 00:27:09 +02:00
|
|
|
```sh
|
2021-08-25 16:09:31 +02:00
|
|
|
npm install @freesewing/plugin-dimension
|
|
|
|
```
|
|
|
|
|
|
|
|
## 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-08-25 16:09:31 +02:00
|
|
|
|
2022-12-13 04:39:07 -08:00
|
|
|
To import the plugin for use:
|
|
|
|
```js
|
|
|
|
import { dimensionPlugin } from '@freesewing/plugin-dimension'
|
|
|
|
// or
|
|
|
|
import { pluginDimension } from '@freesewing/plugin-dimension'
|
|
|
|
```
|
|
|
|
|
2022-10-02 00:27:09 +02:00
|
|
|
## Notes
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-10-02 00:27:09 +02:00
|
|
|
The dimension plugin is part of our [plugin-bundle](/reference/plugins/bundle)
|
|
|
|
|
|
|
|
[1]: https://www.npmjs.com/package/@freesewing/plugin-dimension
|