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'
|
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
|
||||||
|
|
||||||
|
|
|
@ -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))
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue