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'
function ursulaBack(part) {
const {
options,
Point,
Path,
points,
paths,
measurements,
// Snippet,
// snippets,
store,
utils,
complete,
sa,
paperless,
macro,
} = part.shorthand()
function ursulaBack({
options,
Point,
Path,
points,
paths,
measurements,
// Snippet,
// snippets,
store,
utils,
complete,
sa,
paperless,
macro,
part,
}) {
// Design pattern here

View file

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

View file

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

View file

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