Make frnt lacing the default
This commit is contained in:
parent
b4e668a56d
commit
b906862db4
4 changed files with 3 additions and 25 deletions
|
@ -18,7 +18,6 @@ export const backPoints = {
|
|||
delete points.bustDartLeftCp
|
||||
|
||||
const strapWidth = store.get('strapWidth')
|
||||
const sideSeamLength = store.get('sideSeamLength')
|
||||
|
||||
points.strapInside = points.shoulderDart.shiftTowards(points.hps, strapWidth / 2)
|
||||
points.strapOutside = points.shoulderDart.shiftTowards(points.shoulder, strapWidth / 2)
|
||||
|
@ -153,8 +152,6 @@ export const backPoints = {
|
|||
})
|
||||
}
|
||||
|
||||
// console.log({sideSeamLength:sideSeamLength,side:(new Path().move(points.waistSide).curve_(points.waistSideCp2, points.armhole)).length()})
|
||||
|
||||
store.set('backOutsideWaistLength', points.dartBottomRight.dist(points.waistSide))
|
||||
store.set('backInsideWaistLength', points.dartBottomLeft.dist(points.waistCenter))
|
||||
|
||||
|
|
|
@ -14,8 +14,6 @@ export const frontOutside = {
|
|||
delete points.bustB
|
||||
delete points.bustDartEdge
|
||||
|
||||
// console.log({ points: JSON.parse(JSON.stringify(points)) })
|
||||
|
||||
// macro('rmcutonfold')
|
||||
// store.cutlist.removeCut()
|
||||
|
||||
|
|
|
@ -1,23 +1,6 @@
|
|||
import { frontPoints as nobleFrontPoints } from '@freesewing/noble'
|
||||
import { pctBasedOn, hidePresets } from '@freesewing/core'
|
||||
|
||||
function stringify(obj) {
|
||||
let cache = []
|
||||
let str = JSON.stringify(obj, function (key, value) {
|
||||
if (typeof value === 'object' && value !== null) {
|
||||
if (cache.indexOf(value) !== -1) {
|
||||
// Circular reference found, discard key
|
||||
return
|
||||
}
|
||||
// Store value in our collection
|
||||
cache.push(value)
|
||||
}
|
||||
return value
|
||||
})
|
||||
cache = null // reset the cache
|
||||
return str
|
||||
}
|
||||
|
||||
export const frontPoints = {
|
||||
name: 'tristan.frontPoints',
|
||||
from: nobleFrontPoints,
|
||||
|
@ -69,9 +52,9 @@ export const frontPoints = {
|
|||
// eslint-disable-next-line no-unused-vars
|
||||
menu: (settings, mergedOptions) => (mergedOptions.peplum === true ? false : 'options'),
|
||||
},
|
||||
lacing: { bool: false, menu: 'options' },
|
||||
lacing: { bool: true, menu: 'options' },
|
||||
lacingLocation: {
|
||||
dflt: 'back',
|
||||
dflt: 'front',
|
||||
list: ['front', 'back'],
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
menu: (settings, mergedOptions) => (mergedOptions.lacing === false ? false : 'options'),
|
||||
|
|
|
@ -5,7 +5,7 @@ export const peplumBack = {
|
|||
name: 'tristan.peplumBack',
|
||||
after: peplumFront,
|
||||
plugins: [ringsectorPlugin],
|
||||
draft: ({ Point, points, paths, options, store, macro, sa, part }) => {
|
||||
draft: ({ points, paths, options, store, macro, sa, part }) => {
|
||||
if (false == options.peplum) {
|
||||
return part.hide()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue