1
0
Fork 0
freesewing/packages/huey/src/waistband.js

24 lines
477 B
JavaScript
Raw Normal View History

2019-03-03 16:04:24 +01:00
import { draftRibbing } from "./shared";
export default function(part) {
let { complete, points, measurements, options, macro } = part.shorthand();
if (!options.ribbing) return part;
draftRibbing(
part,
measurements.hipsCircumference *
(1 + options.hipsEase) *
(1 - options.ribbingStretch)
);
// Complete pattern?
if (complete) {
macro("title", {
at: points.title,
nr: 6,
title: "waistband"
});
}
return part;
}