From 422052ec85363f29cbc2f9b0c88e3c998a79eb00 Mon Sep 17 00:00:00 2001 From: Benjamin F Date: Sun, 11 Sep 2022 07:52:48 -0700 Subject: [PATCH] chore(walburga): Port to v3 stage 2 --- designs/walburga/src/back.mjs | 10 ++++++++-- designs/walburga/src/base.mjs | 34 +++++++++++++++++----------------- designs/walburga/src/front.mjs | 32 ++++++++++++++++---------------- 3 files changed, 41 insertions(+), 35 deletions(-) diff --git a/designs/walburga/src/back.mjs b/designs/walburga/src/back.mjs index 58ae160da81..7898324a1a0 100644 --- a/designs/walburga/src/back.mjs +++ b/designs/walburga/src/back.mjs @@ -1,7 +1,13 @@ import { base } from './base.mjs' -function walburgaBack(part) { - const { points, macro, complete, snippets, Snippet } = part.shorthand() +function walburgaBack({ + points, + macro, + complete, + snippets, + Snippet, + part, +}) { // Complete? if (complete) { diff --git a/designs/walburga/src/base.mjs b/designs/walburga/src/base.mjs index 205e6bb6d8c..3294f1af65b 100644 --- a/designs/walburga/src/base.mjs +++ b/designs/walburga/src/base.mjs @@ -1,22 +1,22 @@ import { pluginBundle } from '@freesewing/plugin-bundle' -function walburgaBase(part) { - const { - Point, - points, - Path, - paths, - measurements, - options, - macro, - complete, - snippets, - Snippet, - sa, - paperless, - store, - utils, - } = part.shorthand() +function walburgaBase({ + Point, + points, + Path, + paths, + measurements, + options, + macro, + complete, + snippets, + Snippet, + sa, + paperless, + store, + utils, + part, +}) { // define some variables const hem_pos = diff --git a/designs/walburga/src/front.mjs b/designs/walburga/src/front.mjs index 37e7debea55..25b8adee08f 100644 --- a/designs/walburga/src/front.mjs +++ b/designs/walburga/src/front.mjs @@ -1,21 +1,21 @@ import { base, neckline, neckoRatio } from './base.mjs' -function walburgaFront(part) { - const { - points, - Path, - paths, - measurements, - options, - macro, - complete, - snippets, - Snippet, - sa, - paperless, - store, - utils, - } = part.shorthand() +function walburgaFront({ + points, + Path, + paths, + measurements, + options, + macro, + complete, + snippets, + Snippet, + sa, + paperless, + store, + utils, + part, +}) { const head = store.get('hhead') * 2 const goldenRatio = store.get('goldenRatio')