fix(charlie): Indicate correct cutlist nr on parts 4 and 8
Closes #5791 Shout-out to @jpmunic for reporting this
This commit is contained in:
parent
1de231491e
commit
6d567a356f
3 changed files with 43 additions and 28 deletions
|
@ -9,6 +9,10 @@ Unreleased:
|
|||
react-components:
|
||||
- This Pattern component now supports translation of nested arrays of strings, giving you more flexibility to concatenate translated parts of strings
|
||||
|
||||
Fixed:
|
||||
charlie:
|
||||
- The back pocket welt (4) and front pocket facing (8) incorrectly indicated to cut 2 instead of 4 in the cutlist. Fixes #5791
|
||||
|
||||
Removed:
|
||||
plugin-annotations:
|
||||
- The `classes.cutlist` config is removed from the title plugin, cutlist info is now included as notes
|
||||
|
|
|
@ -6,9 +6,9 @@ function draftCharlieBackPocketWelt({
|
|||
paths,
|
||||
Path,
|
||||
complete,
|
||||
paperless,
|
||||
macro,
|
||||
snippets,
|
||||
store,
|
||||
part,
|
||||
}) {
|
||||
// Clean up
|
||||
|
@ -39,34 +39,45 @@ function draftCharlieBackPocketWelt({
|
|||
|
||||
if (complete) {
|
||||
paths.fold = new Path().move(points.midLeft).line(points.midRight).attr('class', 'help')
|
||||
points.titleAnchor = points.rightNotch.shiftFractionTowards(points.leftNotch, 0.5)
|
||||
macro('title', {
|
||||
at: points.titleAnchor,
|
||||
nr: 4,
|
||||
title: 'backPocketWelt',
|
||||
scale: 0.5,
|
||||
})
|
||||
points.grainlineTop = points.topLeft.shiftFractionTowards(points.topRight, 0.15)
|
||||
points.grainlineBottom = new Point(points.grainlineTop.x, points.bottomLeft.y)
|
||||
macro('grainline', {
|
||||
from: points.grainlineTop,
|
||||
to: points.grainlineBottom,
|
||||
})
|
||||
|
||||
if (paperless) {
|
||||
macro('hd', {
|
||||
from: points.bottomLeft,
|
||||
to: points.bottomRight,
|
||||
y: points.bottomLeft.y + 15,
|
||||
})
|
||||
macro('vd', {
|
||||
from: points.bottomRight,
|
||||
to: points.topRight,
|
||||
x: points.topRight.x + 15,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Annotations
|
||||
*/
|
||||
// Cut list
|
||||
store.cutlist.setCut({ cut: 4, from: 'fabric' })
|
||||
|
||||
// Title
|
||||
points.titleAnchor = points.rightNotch.shiftFractionTowards(points.leftNotch, 0.5)
|
||||
macro('title', {
|
||||
at: points.titleAnchor,
|
||||
nr: 4,
|
||||
title: 'backPocketWelt',
|
||||
scale: 0.5,
|
||||
})
|
||||
|
||||
// Grainline
|
||||
points.grainlineTop = points.topLeft.shiftFractionTowards(points.topRight, 0.15)
|
||||
points.grainlineBottom = new Point(points.grainlineTop.x, points.bottomLeft.y)
|
||||
macro('grainline', {
|
||||
from: points.grainlineTop,
|
||||
to: points.grainlineBottom,
|
||||
})
|
||||
|
||||
// Dimensions
|
||||
macro('hd', {
|
||||
id: 'width',
|
||||
from: points.bottomLeft,
|
||||
to: points.bottomRight,
|
||||
y: points.bottomLeft.y + 15,
|
||||
})
|
||||
macro('vd', {
|
||||
id: 'height',
|
||||
from: points.bottomRight,
|
||||
to: points.topRight,
|
||||
x: points.topRight.x + 15,
|
||||
})
|
||||
|
||||
return part
|
||||
}
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ function draftCharlieFrontPocketFacing({
|
|||
* Annotations
|
||||
*/
|
||||
// cutlist
|
||||
store.cutlist.setCut({ cut: 2, from: 'fabric' })
|
||||
store.cutlist.setCut({ cut: 4, from: 'fabric' })
|
||||
|
||||
// Title
|
||||
points.titleAnchor = points.slantBottomNotch.shift(0, 10)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue