1
0
Fork 0

add logging at the start of each part

This commit is contained in:
anna-puk 2022-06-21 17:03:44 +02:00
parent c1aba9a0f8
commit edd51aadc2
7 changed files with 13 additions and 1 deletions

View file

@ -17,6 +17,8 @@ export default function (part) {
} = part.shorthand()
// Design pattern here
console.log('start back')
// Create points

View file

@ -16,7 +16,7 @@ export default function (part) {
macro,
} = part.shorthand()
console.log('bla')
console.log('start back2')
points.waist2 = points.backWaistBandMid;

View file

@ -1,5 +1,7 @@
export default function (part) {
let { options, Point, points, store, utils, units, sa, paperless, macro } = part.shorthand()
console.log('start elastic')
// Stretch utility method
store.set('elasticScale', utils.stretchToScale(options.elasticStretch))

View file

@ -15,6 +15,8 @@ export default function (part) {
paperless,
macro,
} = part.shorthand()
console.log('start front')
// Stretch utility method

View file

@ -28,6 +28,8 @@ snippets.waist0 = new Snippet("notch", points.waist0);
snippets.leg0L = new Snippet("notch", points.leg0L);
snippets.leg0R = new Snippet("notch", points.leg0R);
console.log('static markers')
if (store.get('numWaistMarkersFront') > 1) {
// frontWaistBandLength extends from right to left, so use (0.5 - waistMarkerFrac)
points.waist1R = paths.frontWaistBand.shiftFractionAlong(0.5 - store.get('waistMarkerFrac'));

View file

@ -1,6 +1,8 @@
export default function (part) {
let { options, Point, Path, points, paths, measurements, store, complete, sa, paperless, macro } =
part.shorthand()
console.log('start gusset')
// Create points
points.frontGussetLeft = new Point(store.get('frontGussetLeft').x, 0)

View file

@ -15,6 +15,8 @@ export default function (part) {
paperless,
macro,
} = part.shorthand()
console.log('start gusset2')
// draw markers to indicate elastic distribution
if (store.get('numLegMarkersFront') < 1 & store.get('numLegMarkersGusset') > 0) {