2023-10-19 15:24:06 +00:00
|
|
|
import { backPoints } from './backpoints.mjs'
|
|
|
|
|
|
|
|
export const backOutside = {
|
2023-10-27 04:43:09 +00:00
|
|
|
name: 'tristan.backOutside',
|
2023-10-19 15:24:06 +00:00
|
|
|
from: backPoints,
|
|
|
|
draft: ({ sa, Point, points, Path, paths, Snippet, snippets, options, macro, part }) => {
|
2023-10-22 18:58:54 +00:00
|
|
|
paths.cut = new Path()
|
|
|
|
.move(points.armhole)
|
|
|
|
.curve(points.armholeCutCp, points.strapOutsideCp, points.strapOutside)
|
2023-10-30 23:55:00 +00:00
|
|
|
.hide()
|
2023-10-19 15:24:06 +00:00
|
|
|
|
|
|
|
paths.dart = new Path()
|
|
|
|
.move(points.shoulderDart)
|
|
|
|
.curve(points.shoulderDart, points.shoulderDartCpUp, points.dartTip)
|
|
|
|
.curve(points.shoulderDartCpDown, points.dartRightCp, points.dartBottomRight)
|
|
|
|
.hide()
|
|
|
|
|
2023-11-01 02:25:39 +00:00
|
|
|
paths.seam = new Path()
|
2023-10-19 15:24:06 +00:00
|
|
|
.move(points.dartBottomRight)
|
|
|
|
.line(points.waistSide)
|
|
|
|
.curve_(points.waistSideCp2, points.armhole)
|
2023-10-22 18:58:54 +00:00
|
|
|
.join(paths.cut)
|
2023-10-19 15:24:06 +00:00
|
|
|
.join(paths.dart)
|
|
|
|
.close()
|
|
|
|
.attr('class', 'fabric')
|
|
|
|
|
2023-11-01 02:25:39 +00:00
|
|
|
points.titleAnchor = points.dartBottomRight.shiftFractionTowards(points.armholeCpTarget, 0.5)
|
|
|
|
macro('title', {
|
|
|
|
at: points.titleAnchor,
|
|
|
|
nr: 4,
|
|
|
|
title: 'backOutside',
|
2023-10-27 04:43:09 +00:00
|
|
|
})
|
|
|
|
|
2023-11-01 02:25:39 +00:00
|
|
|
if (sa) {
|
|
|
|
paths.sa = paths.seam.offset(sa).attr('class', 'fabric sa')
|
|
|
|
}
|
|
|
|
|
2023-10-19 15:24:06 +00:00
|
|
|
return part
|
|
|
|
},
|
|
|
|
}
|