1
0
Fork 0

chore(ursula): Port to v3 stage 2

This commit is contained in:
Benjamin F 2022-09-11 08:23:04 -07:00
parent 8ad4e6c45c
commit c91e244491
4 changed files with 60 additions and 50 deletions

View file

@ -1,22 +1,22 @@
import { front } from './front.mjs' import { front } from './front.mjs'
function ursulaBack(part) { function ursulaBack({
const { options,
options, Point,
Point, Path,
Path, points,
points, paths,
paths, measurements,
measurements, // Snippet,
// Snippet, // snippets,
// snippets, store,
store, utils,
utils, complete,
complete, sa,
sa, paperless,
paperless, macro,
macro, part,
} = part.shorthand() }) {
// Design pattern here // Design pattern here

View file

@ -1,7 +1,17 @@
import { gusset } from './gusset.mjs' import { gusset } from './gusset.mjs'
function ursulaElastic(part) { function ursulaElastic({
const { options, Point, points, store, utils, units, sa, paperless, macro } = part.shorthand() options,
Point,
points,
store,
utils,
units,
sa,
paperless,
macro,
part,
}) {
// Stretch utility method // Stretch utility method
store.set('elasticScale', utils.stretchToScale(options.elasticStretch)) store.set('elasticScale', utils.stretchToScale(options.elasticStretch))

View file

@ -1,22 +1,22 @@
import { pluginBundle } from '@freesewing/plugin-bundle' import { pluginBundle } from '@freesewing/plugin-bundle'
function ursulaFront(part) { function ursulaFront({
const { options,
options, Point,
Point, Path,
Path, points,
points, paths,
paths, measurements,
measurements, // Snippet,
// Snippet, // snippets,
// snippets, store,
store, utils,
utils, complete,
complete, sa,
sa, paperless,
paperless, macro,
macro, part,
} = part.shorthand() }) {
// Stretch utility method // Stretch utility method

View file

@ -1,19 +1,19 @@
import { back } from './back.mjs' import { back } from './back.mjs'
function ursulaGusset(part) { function ursulaGusset({
const { options,
options, Point,
Point, Path,
Path, points,
points, paths,
paths, measurements,
measurements, store,
store, complete,
complete, sa,
sa, paperless,
paperless, macro,
macro, part,
} = part.shorthand() }) {
// Create points // Create points
points.frontGussetLeft = new Point(store.get('frontGussetLeft').x, 0) points.frontGussetLeft = new Point(store.get('frontGussetLeft').x, 0)