Fixed Benjamin issues
This commit is contained in:
parent
9fcdbe9398
commit
638e15ed0b
8 changed files with 194 additions and 70 deletions
|
@ -1,18 +1,61 @@
|
|||
export default function(part) {
|
||||
let { options, points, paths, complete, macro, sa } = part.shorthand()
|
||||
let {
|
||||
options,
|
||||
Point,
|
||||
points,
|
||||
Path,
|
||||
paths,
|
||||
complete,
|
||||
macro,
|
||||
sa,
|
||||
store,
|
||||
paperless
|
||||
} = part.shorthand()
|
||||
|
||||
if (options.adjustmentRibbon) {
|
||||
if (!options.adjustmentRibbon) {
|
||||
part.render = false
|
||||
return part
|
||||
}
|
||||
|
||||
points.bandBottomLeft = points.bandBottomLeft.shift(180, 290)
|
||||
points.bandTopLeft = points.bandBottomLeft.flipY()
|
||||
|
||||
points.grainlineStart = new Point(-290, 0)
|
||||
|
||||
macro('grainline', {
|
||||
from: points.grainlineStart,
|
||||
to: points.tip.shift(180, 20)
|
||||
})
|
||||
|
||||
paths.seam = new Path()
|
||||
.move(points.bandTopLeft)
|
||||
.line(points.bandBottomLeft)
|
||||
.join(paths.bow)
|
||||
.line(points.bandTopLeft)
|
||||
.close()
|
||||
.attr('class', 'fabric')
|
||||
.setRender(true)
|
||||
|
||||
if (complete) {
|
||||
if (sa) paths.sa.render = true
|
||||
// Paperless?
|
||||
if (paperless) {
|
||||
macro('hd', {
|
||||
from: points.bandBottomLeft,
|
||||
to: points.tip2Bottom,
|
||||
y: store.get('baseY')
|
||||
})
|
||||
}
|
||||
if (sa) {
|
||||
paths.sa = paths.seam
|
||||
.offset(sa)
|
||||
.attr('class', 'fabric sa')
|
||||
.setRender(true)
|
||||
}
|
||||
macro('title', {
|
||||
at: points.titleAnchor,
|
||||
nr: 3,
|
||||
title: 'bowTie',
|
||||
scale: 0.8
|
||||
scale: (store.get('tipWidth')/75)
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue