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,22 +1,22 @@
import { pluginBundle } from '@freesewing/plugin-bundle' import { pluginBundle } from '@freesewing/plugin-bundle'
function walburgaBase(part) { function walburgaBase({
const { Point,
Point, points,
points, Path,
Path, paths,
paths, measurements,
measurements, options,
options, macro,
macro, complete,
complete, snippets,
snippets, Snippet,
Snippet, sa,
sa, paperless,
paperless, store,
store, utils,
utils, part,
} = part.shorthand() }) {
// define some variables // define some variables
const hem_pos = const hem_pos =

View file

@ -1,21 +1,21 @@
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, measurements,
measurements, options,
options, macro,
macro, complete,
complete, snippets,
snippets, Snippet,
Snippet, sa,
sa, paperless,
paperless, store,
store, utils,
utils, part,
} = part.shorthand() }) {
const head = store.get('hhead') * 2 const head = store.get('hhead') * 2
const goldenRatio = store.get('goldenRatio') const goldenRatio = store.get('goldenRatio')