chore: Removed unsupported debug() calls
This commit is contained in:
parent
7d3815939b
commit
7178bf8f5f
12 changed files with 15 additions and 79 deletions
|
@ -3,7 +3,6 @@ import * as shared from './shared'
|
|||
export default (part) => {
|
||||
let {
|
||||
units,
|
||||
debug,
|
||||
measurements,
|
||||
options,
|
||||
store,
|
||||
|
@ -119,18 +118,6 @@ export default (part) => {
|
|||
delta = paths.neckOpening.length() * 2 - target
|
||||
} while (Math.abs(delta) > 1 && options.brianFitCollar && run < 10)
|
||||
delete paths.neckOpening
|
||||
if (options.brianFitCollar) {
|
||||
debug({
|
||||
style: 'success',
|
||||
label: '🏁 Collar fitted',
|
||||
msg: `Target was ${units(target)}, delta of ${units(delta)} reached in ${run} attempts.`
|
||||
})
|
||||
} else
|
||||
debug({
|
||||
style: 'warning',
|
||||
label: '🚫 Not fittingcollar',
|
||||
msg: '(in Brian)'
|
||||
})
|
||||
|
||||
// Anchor point for sampling
|
||||
points.gridAnchor = points.cbHem
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
export default (part) => {
|
||||
let {
|
||||
debug,
|
||||
store,
|
||||
units,
|
||||
sa,
|
||||
|
@ -19,16 +18,6 @@ export default (part) => {
|
|||
|
||||
// Wrist
|
||||
let top = paths.sleevecap.bbox().topLeft.y
|
||||
debug({
|
||||
style: 'info',
|
||||
label: '🗸 Sleevecap height',
|
||||
msg: units(Math.abs(top))
|
||||
})
|
||||
debug({
|
||||
style: 'info',
|
||||
label: '🗸 Sleevecap width',
|
||||
msg: units(points.bicepsRight.x * 2)
|
||||
})
|
||||
points.centerWrist = new Point(
|
||||
0,
|
||||
top + measurements.shoulderToWrist * (1 + options.sleeveLengthBonus)
|
||||
|
|
|
@ -14,7 +14,7 @@ function sleevecapAdjust(store) {
|
|||
}
|
||||
|
||||
function draftSleevecap(part, run) {
|
||||
let { debug, units, store, measurements, options, Point, points, Path, paths } = part.shorthand()
|
||||
let { units, store, measurements, options, Point, points, Path, paths } = part.shorthand()
|
||||
// Sleeve center axis
|
||||
points.centerBiceps = new Point(0, 0)
|
||||
points.centerCap = points.centerBiceps.shift(
|
||||
|
@ -129,11 +129,6 @@ function draftSleevecap(part, run) {
|
|||
let sleevecapEase = armholeLength * options.sleevecapEase
|
||||
store.set('sleevecapEase', sleevecapEase)
|
||||
store.set('sleevecapTarget', armholeLength + sleevecapEase)
|
||||
debug({
|
||||
style: 'info',
|
||||
label: '🗸 Sleevecap ease',
|
||||
msg: units(sleevecapEase)
|
||||
})
|
||||
|
||||
// Uncomment this line to see all sleevecap iterations
|
||||
//paths[run] = paths.sleevecap;
|
||||
|
@ -141,7 +136,7 @@ function draftSleevecap(part, run) {
|
|||
}
|
||||
|
||||
export default (part) => {
|
||||
let { debug, store, units, options, Point, points, paths } = part.shorthand()
|
||||
let { store, units, options, Point, points, paths } = part.shorthand()
|
||||
|
||||
store.set('sleeveFactor', 1)
|
||||
let run = 0
|
||||
|
@ -152,20 +147,6 @@ export default (part) => {
|
|||
sleevecapAdjust(store)
|
||||
run++
|
||||
} while (options.brianFitSleeve === true && run < 30 && Math.abs(sleevecapDelta(store)) > 2)
|
||||
if (options.brianFitSleeve) {
|
||||
debug({
|
||||
style: 'success',
|
||||
label: '🏁 Sleevecap fitted',
|
||||
msg: `Target was ${units(store.get('sleevecapTarget'))}, delta of ${units(
|
||||
delta
|
||||
)} reached in ${run} attempts.`
|
||||
})
|
||||
} else
|
||||
debug({
|
||||
style: 'warning',
|
||||
label: '🚫 Not fittingsleevecap',
|
||||
msg: '(in Brian)'
|
||||
})
|
||||
|
||||
// Paths
|
||||
paths.sleevecap.attr('class', 'fabric')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue