1
0
Fork 0

chore(walburga): Port to v3 stage 2

This commit is contained in:
Benjamin F 2022-09-11 07:52:48 -07:00
parent 1812f70f3f
commit 422052ec85
3 changed files with 41 additions and 35 deletions

View file

@ -1,7 +1,13 @@
import { base } from './base.mjs' import { base } from './base.mjs'
function walburgaBack(part) { function walburgaBack({
const { points, macro, complete, snippets, Snippet } = part.shorthand() points,
macro,
complete,
snippets,
Snippet,
part,
}) {
// Complete? // Complete?
if (complete) { if (complete) {

View file

@ -1,7 +1,6 @@
import { pluginBundle } from '@freesewing/plugin-bundle' import { pluginBundle } from '@freesewing/plugin-bundle'
function walburgaBase(part) { function walburgaBase({
const {
Point, Point,
points, points,
Path, Path,
@ -16,7 +15,8 @@ function walburgaBase(part) {
paperless, paperless,
store, store,
utils, utils,
} = part.shorthand() part,
}) {
// define some variables // define some variables
const hem_pos = const hem_pos =

View file

@ -1,7 +1,6 @@
import { base, neckline, neckoRatio } from './base.mjs' import { base, neckline, neckoRatio } from './base.mjs'
function walburgaFront(part) { function walburgaFront({
const {
points, points,
Path, Path,
paths, paths,
@ -15,7 +14,8 @@ function walburgaFront(part) {
paperless, paperless,
store, store,
utils, utils,
} = part.shorthand() part,
}) {
const head = store.get('hhead') * 2 const head = store.get('hhead') * 2
const goldenRatio = store.get('goldenRatio') const goldenRatio = store.get('goldenRatio')