diff --git a/designs/yuri/src/back.mjs b/designs/yuri/src/back.mjs index 861883a396b..38eddff5de3 100644 --- a/designs/yuri/src/back.mjs +++ b/designs/yuri/src/back.mjs @@ -1,20 +1,20 @@ import { back as brianBack } from '@freesewing/brian' import { sharedDimensions } from './shared.mjs' -function yuriBack(part) { - const { - store, - macro, - Path, - Point, - points, - paths, - complete, - paperless, - sa, - options, - measurements, - } = part.shorthand() +function yuriBack({ + store, + macro, + Path, + Point, + points, + paths, + complete, + paperless, + sa, + options, + measurements, + part, +}) { // Clear paths from Brian for (const i in paths) { diff --git a/designs/yuri/src/front.mjs b/designs/yuri/src/front.mjs index 5b4a8ff0c85..d526fd14284 100644 --- a/designs/yuri/src/front.mjs +++ b/designs/yuri/src/front.mjs @@ -1,22 +1,22 @@ import { front as brianFront } from '@freesewing/brian' import { sharedDimensions } from './shared.mjs' -function yuriFront(part) { - const { - store, - Point, - Path, - points, - paths, - complete, - paperless, - sa, - options, - measurements, - macro, - snippets, - Snippet, - } = part.shorthand() +function yuriFront({ + store, + Point, + Path, + points, + paths, + complete, + paperless, + sa, + options, + measurements, + macro, + snippets, + Snippet, + part, +}) { // Clear paths from Brian for (const i in paths) { diff --git a/designs/yuri/src/gusset.mjs b/designs/yuri/src/gusset.mjs index 060dac65dba..20a6c14bc3a 100644 --- a/designs/yuri/src/gusset.mjs +++ b/designs/yuri/src/gusset.mjs @@ -1,8 +1,19 @@ import { back } from './back.mjs' -function yuriGusset(part) { - const { Point, Path, points, paths, Snippet, snippets, complete, sa, paperless, macro, store } = - part.shorthand() +function yuriGusset({ + Point, + Path, + points, + paths, + Snippet, + snippets, + complete, + sa, + paperless, + macro, + store, + part, +}) { const w = store.get('gussetLength') points.top = new Point(0, 0) diff --git a/designs/yuri/src/hoodcenter.mjs b/designs/yuri/src/hoodcenter.mjs index 8a16e95b286..e0593460896 100644 --- a/designs/yuri/src/hoodcenter.mjs +++ b/designs/yuri/src/hoodcenter.mjs @@ -1,8 +1,18 @@ import { hoodSide } from './hoodside.mjs' -function yuriHoodCenter(part) { - const { store, sa, Point, points, Path, paths, complete, paperless, macro, units } = - part.shorthand() +function yuriHoodCenter({ + store, + sa, + Point, + points, + Path, + paths, + complete, + paperless, + macro, + units, + part, +}) { const width = store.get('hoodCenterWidth') const length = complete ? width * 2.5 : store.get('hoodCenterLength') diff --git a/designs/yuri/src/hoodside.mjs b/designs/yuri/src/hoodside.mjs index 00ac368594d..07773132a74 100644 --- a/designs/yuri/src/hoodside.mjs +++ b/designs/yuri/src/hoodside.mjs @@ -1,21 +1,21 @@ import { back } from './back.mjs' import { front } from './front.mjs' -function yuriHoodSide(part) { - const { - store, - sa, - Point, - points, - Path, - paths, - Snippet, - snippets, - measurements, - complete, - paperless, - macro, - } = part.shorthand() +function yuriHoodSide({ + store, + sa, + Point, + points, + Path, + paths, + Snippet, + snippets, + measurements, + complete, + paperless, + macro, + part, +}) { const neckOpening = store.get('frontNeckSeamLength') + store.get('backNeckSeamLength') const hoodOpening = measurements.head diff --git a/designs/yuri/src/sleeve.mjs b/designs/yuri/src/sleeve.mjs index 6ba2d02baa8..14a3d1d7a3e 100644 --- a/designs/yuri/src/sleeve.mjs +++ b/designs/yuri/src/sleeve.mjs @@ -1,7 +1,16 @@ import { sleeve as brianSleeve } from '@freesewing/brian' -function yuriSleeve(part) { - let { Point, Path, points, paths, complete, sa, paperless, macro } = part.shorthand() +function yuriSleeve({ + Point, + Path, + points, + paths, + complete, + sa, + paperless, + macro, + part, +}) { // Clear paths from Brian, but keep sleevecap for (let p of Object.keys(paths)) {