@freesewing/macro-cutonfold

0.8.0 • Public • Published

Freesewing logo

 freesewing
a library for made-to-measure sewing patterns

macro-cutonfold

A freesewing macro to add cut-on-fold indicators to your patterns.

Install

On node.js:

npm install @freesewing/macro-cutonfold

in the browser, simply include this script:

<script type="text/javascript" src="https://unpkg.com/@freesewing/macro-cutonfold"></script>

Loading this macro

To load this macro, add it to your instantiated pattern.

On node.js:

import pattern from '@freesewing/pattern-brian'
import cutonfold from '@freesewing/macro-cutonfold'

pattern.with(cutonfold);

In the browser, this macro will register as freesewing.macros.cutonfold and loaded by patterns from there.

<script type="text/javascript" src="https://unpkg.com/freesewing"></script>
<script type="text/javascript" src="https://unpkg.com/@freesewing/macro-cutonfold"></script>
<script type="text/javascript" src="https://unpkg.com/@freesewing/pattern-brian"></script>

<script>
var pattern = freesewing.patterns.brian;
</script>

Usage

This provides the cutonfold macro.

The macro method is available from the shorthand() method on an instantiated pattern part.

macro('cutonfold', {
  from: points.cbNeck
  , to: points.cbHips
});

Parameters

  • to: A point object at the start of the cut-on-fold indicator
  • from: A point object at the end of the cut-on-fold indicator

As all freesewing macros, bundle these parameters into a single object.

Example

Example of the output provided by this macro

Build

To build this macro, run:

npm run build

License: MIT

See the license file for details.

Package Sidebar

Install

npm i @freesewing/macro-cutonfold

Weekly Downloads

0

Version

0.8.0

License

MIT

Unpacked Size

179 kB

Total Files

7

Last publish

Collaborators

  • eriese
  • joostdecock