chore(trayvon): Add cutlist
This commit is contained in:
parent
b4729d3f15
commit
17b79763a1
4 changed files with 17 additions and 1 deletions
|
@ -14,6 +14,8 @@ function trayvonFabricTail(params) {
|
|||
draftTieShape(params, store.get('backTip') * 2.5, absoluteOptions.knotWidth * 2.5, true)
|
||||
paths.seam.attributes.add('class', 'fabric')
|
||||
|
||||
store.cutlist.addCut({ cut: 1 })
|
||||
|
||||
// Complete pattern?
|
||||
if (complete) {
|
||||
macro('title', {
|
||||
|
@ -62,12 +64,15 @@ function trayvonFabricTip(params) {
|
|||
sa,
|
||||
snippets,
|
||||
absoluteOptions,
|
||||
store,
|
||||
} = params
|
||||
|
||||
calculateHelpers(params)
|
||||
draftTieShape(params, absoluteOptions.tipWidth * 2.5, absoluteOptions.knotWidth * 2.5, true)
|
||||
paths.seam.attributes.add('class', 'fabric')
|
||||
|
||||
store.cutlist.addCut({ cut: 1 })
|
||||
|
||||
// Complete pattern?
|
||||
if (complete) {
|
||||
macro('title', {
|
||||
|
|
|
@ -8,6 +8,8 @@ function trayvonInterfacingTail(params) {
|
|||
draftTieShape(params, store.get('backTip'), absoluteOptions.knotWidth)
|
||||
paths.seam.attributes.add('class', 'interfacing')
|
||||
|
||||
store.cutlist.addCut({ cut: 1, material: 'interfacing' })
|
||||
|
||||
// Complete pattern?
|
||||
if (complete) {
|
||||
macro('title', {
|
||||
|
@ -33,12 +35,14 @@ function trayvonInterfacingTail(params) {
|
|||
}
|
||||
|
||||
function trayvonInterfacingTip(params) {
|
||||
const { paths, points, macro, complete, paperless, Path, absoluteOptions } = params
|
||||
const { paths, points, macro, complete, paperless, Path, absoluteOptions, store } = params
|
||||
|
||||
calculateHelpers(params)
|
||||
draftTieShape(params, absoluteOptions.tipWidth, absoluteOptions.knotWidth)
|
||||
paths.seam.attributes.add('class', 'interfacing')
|
||||
|
||||
store.cutlist.addCut({ cut: 1, material: 'interfacing' })
|
||||
|
||||
// Complete pattern?
|
||||
if (complete) {
|
||||
macro('title', {
|
||||
|
|
|
@ -41,6 +41,8 @@ function trayvonLiningTail(params) {
|
|||
.close()
|
||||
.attr('class', 'lining')
|
||||
|
||||
store.cutlist.addCut({ cut: 1, material: 'lining' })
|
||||
|
||||
// Complete pattern?
|
||||
if (complete) {
|
||||
macro('title', {
|
||||
|
@ -72,6 +74,7 @@ function trayvonLiningTip(params) {
|
|||
sa,
|
||||
snippets,
|
||||
absoluteOptions,
|
||||
store,
|
||||
} = params
|
||||
|
||||
calculateHelpers(params)
|
||||
|
@ -92,6 +95,8 @@ function trayvonLiningTip(params) {
|
|||
.close()
|
||||
.attr('class', 'lining')
|
||||
|
||||
store.cutlist.addCut({ cut: 1, material: 'lining' })
|
||||
|
||||
// Complete pattern?
|
||||
if (complete) {
|
||||
macro('title', {
|
||||
|
|
|
@ -25,6 +25,8 @@ function trayvonFabricLoop({
|
|||
.close()
|
||||
.attr('class', 'fabric')
|
||||
|
||||
store.cutlist.addCut({ cut: 1, material: 'lining' })
|
||||
|
||||
if (complete) {
|
||||
points.title = points.topLeft.shiftFractionTowards(points.bottomRight, 0.5)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue