1
0
Fork 0
freesewing/packages/jaeger/src/undercollar.js

25 lines
773 B
JavaScript
Raw Normal View History

2019-03-16 11:39:06 +01:00
/*
* FIXME
*
* This collar was ported as-is from the original (PHP) design
* I did a few years ago. I think it would benefit from a redesign
* but I find collar design to be rather tricky business and
* would love the input from someone with more pattern design
* experience, or more tailoring exprience.
*/
export default function(part) {
let { sa, snippets, Snippet, utils, store, complete, points, measurements, options, macro, Point, paths, Path } = part.shorthand();
paths.seam = new Path()
.move(points.collarCbTop)
.curve_(points.collarCbTopCp, points.notchTip)
.line(points.notch)
.line(points.collarstandTip)
._curve(points.collarstandCbTopCp, points.collarstandCbTop)
.close()
.attr("class", "fabric");
return part;
}