1.6 KiB
1.6 KiB
title |
---|
@freesewing/plugin-dimension |
The @freesewing/plugin-dimension plugin provides a variety of macros to facilitate adding dimensions to your design. By dimensions we mean the indicators for distance that are added to patterns in paperless mode.
The following macors are provided by this plugin:
- hd : Adds a horizontal dimension
- vd : Adds a vertical dimension
- ld : Adds a linear dimension
- pd : Adds a dimension along a path
- rmd : Removes a dimension
- rmad : Removes all dimensions with a default prefix
An example of the different dimensinon macros
The dimension plugin is part of our plugin-bundle
Installation
npm install @freesewing/plugin-dimension
Usage
Like all build-time plugins, you load them by passing them to the freesewing.Design super-constructor:
import freesewing from "@freesewing/core";
import dimension from "@freesewing/plugin-dimension";
import config from "../config";
const Pattern = new freesewing.Design(config, dimension);
Now you can use the hd, vd, ld, pd, rmd, and rmad macros in your parts.