chore(titan): Port to v3 stage 2
This commit is contained in:
parent
f064b25c12
commit
9f487c2220
2 changed files with 36 additions and 40 deletions
|
@ -2,7 +2,24 @@ import { pctBasedOn } from '@freesewing/core'
|
|||
import { elastics } from '@freesewing/snapseries'
|
||||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
function titanBack(part) {
|
||||
function titanBack({
|
||||
points,
|
||||
Point,
|
||||
paths,
|
||||
Path,
|
||||
measurements,
|
||||
options,
|
||||
complete,
|
||||
paperless,
|
||||
store,
|
||||
macro,
|
||||
utils,
|
||||
snippets,
|
||||
Snippet,
|
||||
sa,
|
||||
absoluteOptions,
|
||||
part,
|
||||
}) {
|
||||
/*
|
||||
* Helper method to draw the inseam path
|
||||
*/
|
||||
|
@ -85,25 +102,6 @@ function titanBack(part) {
|
|||
.rotate(options.crossSeamCurveAngle, points.fork)
|
||||
}
|
||||
|
||||
// Shorthand
|
||||
let {
|
||||
points,
|
||||
Point,
|
||||
paths,
|
||||
Path,
|
||||
measurements,
|
||||
options,
|
||||
complete,
|
||||
paperless,
|
||||
store,
|
||||
macro,
|
||||
utils,
|
||||
snippets,
|
||||
Snippet,
|
||||
sa,
|
||||
absoluteOptions,
|
||||
} = part.shorthand()
|
||||
|
||||
// Let's get to work
|
||||
points.waistX = new Point(-1 * measurements.waistBackArc * (1 + options.waistEase), 0)
|
||||
points.upperLegY = new Point(0, measurements.waistToUpperLeg)
|
||||
|
|
|
@ -1,6 +1,23 @@
|
|||
import { back } from './back.mjs'
|
||||
|
||||
function titanFront(part) {
|
||||
function titanFront({
|
||||
points,
|
||||
Point,
|
||||
paths,
|
||||
Path,
|
||||
measurements,
|
||||
options,
|
||||
complete,
|
||||
paperless,
|
||||
store,
|
||||
macro,
|
||||
utils,
|
||||
snippets,
|
||||
Snippet,
|
||||
sa,
|
||||
absoluteOptions,
|
||||
part,
|
||||
}) {
|
||||
/*
|
||||
* Helper method to draw the inseam path
|
||||
*/
|
||||
|
@ -156,25 +173,6 @@ function titanFront(part) {
|
|||
const adaptOutseam = () => adaptSeam('out')
|
||||
const adaptInseam = () => adaptSeam('in')
|
||||
|
||||
// Shorthand
|
||||
let {
|
||||
points,
|
||||
Point,
|
||||
paths,
|
||||
Path,
|
||||
measurements,
|
||||
options,
|
||||
complete,
|
||||
paperless,
|
||||
store,
|
||||
macro,
|
||||
utils,
|
||||
snippets,
|
||||
Snippet,
|
||||
sa,
|
||||
absoluteOptions,
|
||||
} = part.shorthand()
|
||||
|
||||
// Let's get to work
|
||||
points.waistX = new Point(measurements.waistFrontArc * (1 + options.waistEase), 0)
|
||||
points.upperLegY = new Point(0, measurements.waistToUpperLeg)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue