import * as shared from './shared' export default (part) => { let { store, sa, points, Path, paths, Snippet, snippets, complete, paperless, macro, } = part.shorthand() points.anchor = points.hps.clone() // Seamline paths.saBase = shared.saBase('back', points, Path) paths.saBase.render = false paths.seam = new Path() .move(points.cbNeck) .line(points.cbHips) .join(paths.saBase) .attr('class', 'fabric') // Store lengths to fit sleeve store.set('backArmholeLength', shared.armholeLength(points, Path)) store.set('backShoulderToArmholePitch', shared.shoulderToArmholePitch(points, Path)) // Complete pattern? if (complete) { macro('cutonfold', { from: points.cbNeck, to: points.cbHips, grainline: true, }) macro('title', { at: points.title, nr: 2, title: 'back' }) snippets.armholePitchNotch = new Snippet('bnotch', points.armholePitch) paths.waist = new Path().move(points.cbWaist).line(points.waist).attr('class', 'help') if (sa) { paths.sa = paths.saBase .offset(sa) .attr('class', 'fabric sa') .line(points.cbNeck) .move(points.cbHips) paths.sa.line(paths.sa.start()) } } // Paperless? if (paperless) { shared.dimensions(macro, points, Path, sa) macro('hd', { from: points.cbHips, to: points.hips, y: points.hips.y + sa + 15, }) macro('vd', { from: points.cbHips, to: points.cbWaist, x: points.cbHips.x - sa - 15, }) macro('vd', { from: points.cbHips, to: points.cbNeck, x: points.cbHips.x - sa - 30, }) macro('hd', { from: points.cbNeck, to: points.neck, y: points.neck.y - sa - 15, }) macro('hd', { from: points.cbNeck, to: points.shoulder, y: points.neck.y - sa - 30, }) } return part }