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

19 lines
436 B
JavaScript
Raw Normal View History

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