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)
|
draftTieShape(params, store.get('backTip') * 2.5, absoluteOptions.knotWidth * 2.5, true)
|
||||||
paths.seam.attributes.add('class', 'fabric')
|
paths.seam.attributes.add('class', 'fabric')
|
||||||
|
|
||||||
|
store.cutlist.addCut({ cut: 1 })
|
||||||
|
|
||||||
// Complete pattern?
|
// Complete pattern?
|
||||||
if (complete) {
|
if (complete) {
|
||||||
macro('title', {
|
macro('title', {
|
||||||
|
@ -62,12 +64,15 @@ function trayvonFabricTip(params) {
|
||||||
sa,
|
sa,
|
||||||
snippets,
|
snippets,
|
||||||
absoluteOptions,
|
absoluteOptions,
|
||||||
|
store,
|
||||||
} = params
|
} = params
|
||||||
|
|
||||||
calculateHelpers(params)
|
calculateHelpers(params)
|
||||||
draftTieShape(params, absoluteOptions.tipWidth * 2.5, absoluteOptions.knotWidth * 2.5, true)
|
draftTieShape(params, absoluteOptions.tipWidth * 2.5, absoluteOptions.knotWidth * 2.5, true)
|
||||||
paths.seam.attributes.add('class', 'fabric')
|
paths.seam.attributes.add('class', 'fabric')
|
||||||
|
|
||||||
|
store.cutlist.addCut({ cut: 1 })
|
||||||
|
|
||||||
// Complete pattern?
|
// Complete pattern?
|
||||||
if (complete) {
|
if (complete) {
|
||||||
macro('title', {
|
macro('title', {
|
||||||
|
|
|
@ -8,6 +8,8 @@ function trayvonInterfacingTail(params) {
|
||||||
draftTieShape(params, store.get('backTip'), absoluteOptions.knotWidth)
|
draftTieShape(params, store.get('backTip'), absoluteOptions.knotWidth)
|
||||||
paths.seam.attributes.add('class', 'interfacing')
|
paths.seam.attributes.add('class', 'interfacing')
|
||||||
|
|
||||||
|
store.cutlist.addCut({ cut: 1, material: 'interfacing' })
|
||||||
|
|
||||||
// Complete pattern?
|
// Complete pattern?
|
||||||
if (complete) {
|
if (complete) {
|
||||||
macro('title', {
|
macro('title', {
|
||||||
|
@ -33,12 +35,14 @@ function trayvonInterfacingTail(params) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function trayvonInterfacingTip(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)
|
calculateHelpers(params)
|
||||||
draftTieShape(params, absoluteOptions.tipWidth, absoluteOptions.knotWidth)
|
draftTieShape(params, absoluteOptions.tipWidth, absoluteOptions.knotWidth)
|
||||||
paths.seam.attributes.add('class', 'interfacing')
|
paths.seam.attributes.add('class', 'interfacing')
|
||||||
|
|
||||||
|
store.cutlist.addCut({ cut: 1, material: 'interfacing' })
|
||||||
|
|
||||||
// Complete pattern?
|
// Complete pattern?
|
||||||
if (complete) {
|
if (complete) {
|
||||||
macro('title', {
|
macro('title', {
|
||||||
|
|
|
@ -41,6 +41,8 @@ function trayvonLiningTail(params) {
|
||||||
.close()
|
.close()
|
||||||
.attr('class', 'lining')
|
.attr('class', 'lining')
|
||||||
|
|
||||||
|
store.cutlist.addCut({ cut: 1, material: 'lining' })
|
||||||
|
|
||||||
// Complete pattern?
|
// Complete pattern?
|
||||||
if (complete) {
|
if (complete) {
|
||||||
macro('title', {
|
macro('title', {
|
||||||
|
@ -72,6 +74,7 @@ function trayvonLiningTip(params) {
|
||||||
sa,
|
sa,
|
||||||
snippets,
|
snippets,
|
||||||
absoluteOptions,
|
absoluteOptions,
|
||||||
|
store,
|
||||||
} = params
|
} = params
|
||||||
|
|
||||||
calculateHelpers(params)
|
calculateHelpers(params)
|
||||||
|
@ -92,6 +95,8 @@ function trayvonLiningTip(params) {
|
||||||
.close()
|
.close()
|
||||||
.attr('class', 'lining')
|
.attr('class', 'lining')
|
||||||
|
|
||||||
|
store.cutlist.addCut({ cut: 1, material: 'lining' })
|
||||||
|
|
||||||
// Complete pattern?
|
// Complete pattern?
|
||||||
if (complete) {
|
if (complete) {
|
||||||
macro('title', {
|
macro('title', {
|
||||||
|
|
|
@ -25,6 +25,8 @@ function trayvonFabricLoop({
|
||||||
.close()
|
.close()
|
||||||
.attr('class', 'fabric')
|
.attr('class', 'fabric')
|
||||||
|
|
||||||
|
store.cutlist.addCut({ cut: 1, material: 'lining' })
|
||||||
|
|
||||||
if (complete) {
|
if (complete) {
|
||||||
points.title = points.topLeft.shiftFractionTowards(points.bottomRight, 0.5)
|
points.title = points.topLeft.shiftFractionTowards(points.bottomRight, 0.5)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue