2019-08-03 15:03:33 +02:00
|
|
|
import { draftRibbing } from './shared'
|
2019-03-03 16:04:24 +01:00
|
|
|
|
2020-06-28 13:10:06 +02: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
|
|
|
|
2020-06-28 13:10:06 +02: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
|
|
|
}
|