chore(ursula): Port to v3 stage 2
This commit is contained in:
parent
8ad4e6c45c
commit
c91e244491
4 changed files with 60 additions and 50 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue