1
0
Fork 0
freesewing/markdown/dev/reference/plugins/dimension/en.md
Joost De Cock 249f2600e5 chore: More linting
@nicholasdower is smarter than me. What's missing was the
`listItemIndent` setting
2022-02-20 14:44:38 +01:00

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.