chore(jaeger): Port to v3 stage 2
This commit is contained in:
parent
66d2976698
commit
7bf70f12d3
16 changed files with 191 additions and 110 deletions
|
@ -1,24 +1,23 @@
|
|||
import { backBase } from './backbase.mjs'
|
||||
import { backVent, backVentLength } from './options.mjs'
|
||||
|
||||
function jaegerBack(part) {
|
||||
const {
|
||||
paperless,
|
||||
sa,
|
||||
snippets,
|
||||
Snippet,
|
||||
utils,
|
||||
store,
|
||||
complete,
|
||||
points,
|
||||
measurements,
|
||||
options,
|
||||
macro,
|
||||
Point,
|
||||
paths,
|
||||
Path,
|
||||
} = part.shorthand()
|
||||
|
||||
function jaegerBack({
|
||||
paperless,
|
||||
sa,
|
||||
snippets,
|
||||
Snippet,
|
||||
utils,
|
||||
store,
|
||||
complete,
|
||||
points,
|
||||
measurements,
|
||||
options,
|
||||
macro,
|
||||
Point,
|
||||
paths,
|
||||
Path,
|
||||
part,
|
||||
}) {
|
||||
// Back vent(s)
|
||||
let ventY = points.cbHips.y - points.cbWaistCp2.dy(points.cbHips) * options.backVentLength
|
||||
if (options.backVent === 1) {
|
||||
|
|
|
@ -10,9 +10,8 @@ import {
|
|||
reduceHipsStandardFraction,
|
||||
} from './options.mjs'
|
||||
|
||||
function jaegerBackBase(part) {
|
||||
function jaegerBackBase({ store, points, measurements, options, Point, paths, Path, part }) {
|
||||
calculateRatios(part)
|
||||
let { store, points, measurements, options, Point, paths, Path } = part.shorthand()
|
||||
|
||||
/**
|
||||
* Shaping the back seam
|
||||
|
|
|
@ -1,9 +1,18 @@
|
|||
import { front } from './front.mjs'
|
||||
|
||||
function jaegerChestPocketBag(part) {
|
||||
const { paperless, sa, store, complete, points, options, macro, Point, paths, Path } =
|
||||
part.shorthand()
|
||||
|
||||
function jaegerChestPocketBag({
|
||||
paperless,
|
||||
sa,
|
||||
store,
|
||||
complete,
|
||||
points,
|
||||
options,
|
||||
macro,
|
||||
Point,
|
||||
paths,
|
||||
Path,
|
||||
part,
|
||||
}) {
|
||||
const width = store.get('chestPocketWidth')
|
||||
const welt = store.get('chestPocketWeltHeight')
|
||||
const height = width * options.chestPocketDepth
|
||||
|
|
|
@ -1,9 +1,18 @@
|
|||
import { front } from './front.mjs'
|
||||
|
||||
function jaegerChestPocketWelt(part) {
|
||||
let { paperless, sa, store, complete, points, options, macro, Point, paths, Path } =
|
||||
part.shorthand()
|
||||
|
||||
function jaegerChestPocketWelt({
|
||||
paperless,
|
||||
sa,
|
||||
store,
|
||||
complete,
|
||||
points,
|
||||
options,
|
||||
macro,
|
||||
Point,
|
||||
paths,
|
||||
Path,
|
||||
part,
|
||||
}) {
|
||||
let width = store.get('chestPocketWidth')
|
||||
let height = store.get('chestPocketWeltHeight')
|
||||
let angle = options.chestPocketAngle
|
||||
|
|
|
@ -8,10 +8,19 @@ import { collarRoll } from './options.mjs'
|
|||
* experience, or more tailoring exprience.
|
||||
*/
|
||||
|
||||
function jaegerCollar(part) {
|
||||
const { paperless, sa, snippets, complete, points, options, macro, paths, Path, store } =
|
||||
part.shorthand()
|
||||
|
||||
function jaegerCollar({
|
||||
paperless,
|
||||
sa,
|
||||
snippets,
|
||||
complete,
|
||||
points,
|
||||
options,
|
||||
macro,
|
||||
paths,
|
||||
Path,
|
||||
store,
|
||||
part,
|
||||
}) {
|
||||
// Add extra fabric for collar roll
|
||||
store.set('collarRoll', points.collarstandCbTop.dist(points.collarCbTop) * options.collarRoll)
|
||||
points.collarCbTopRoll = points.collarCbTop.shift(-90, store.get('collarRoll'))
|
||||
|
|
|
@ -9,21 +9,20 @@ import { collarSpread } from './options.mjs'
|
|||
* experience, or more tailoring exprience.
|
||||
*/
|
||||
|
||||
function jaegerCollarStand(part) {
|
||||
const {
|
||||
paperless,
|
||||
sa,
|
||||
store,
|
||||
complete,
|
||||
points,
|
||||
measurements,
|
||||
options,
|
||||
macro,
|
||||
snippets,
|
||||
paths,
|
||||
Path,
|
||||
} = part.shorthand()
|
||||
|
||||
function jaegerCollarStand({
|
||||
paperless,
|
||||
sa,
|
||||
store,
|
||||
complete,
|
||||
points,
|
||||
measurements,
|
||||
options,
|
||||
macro,
|
||||
snippets,
|
||||
paths,
|
||||
Path,
|
||||
part,
|
||||
}) {
|
||||
// Only keep what's relevant from the front part
|
||||
const collarPoints = [
|
||||
'notch',
|
||||
|
|
|
@ -27,24 +27,23 @@ import {
|
|||
lapelReduction,
|
||||
} from './options.mjs'
|
||||
|
||||
function jaegerFront(part) {
|
||||
const {
|
||||
paperless,
|
||||
sa,
|
||||
snippets,
|
||||
Snippet,
|
||||
utils,
|
||||
store,
|
||||
complete,
|
||||
points,
|
||||
measurements,
|
||||
options,
|
||||
macro,
|
||||
Point,
|
||||
paths,
|
||||
Path,
|
||||
} = part.shorthand()
|
||||
|
||||
function jaegerFront({
|
||||
paperless,
|
||||
sa,
|
||||
snippets,
|
||||
Snippet,
|
||||
utils,
|
||||
store,
|
||||
complete,
|
||||
points,
|
||||
measurements,
|
||||
options,
|
||||
macro,
|
||||
Point,
|
||||
paths,
|
||||
Path,
|
||||
part,
|
||||
}) {
|
||||
// Front closure overlap
|
||||
points.neckEdge = points.cfNeck.shift(180, measurements.chest * options.frontOverlap)
|
||||
points.hemEdge = new Point(points.neckEdge.x, points.cfHem.y)
|
||||
|
|
|
@ -16,9 +16,7 @@ import {
|
|||
reduceHipsStandardFraction,
|
||||
} from './options.mjs'
|
||||
|
||||
function jaegerFrontBase(part) {
|
||||
let { store, points, utils, options, Point, paths, Path } = part.shorthand()
|
||||
|
||||
function jaegerFrontBase({ store, points, utils, options, Point, paths, Path, part }) {
|
||||
/**
|
||||
* Add side part from back to front, draw front style line
|
||||
*/
|
||||
|
|
|
@ -1,9 +1,18 @@
|
|||
import { front } from './front.mjs'
|
||||
|
||||
function jaegerInnerPocketBag(part) {
|
||||
const { paperless, sa, store, complete, points, options, macro, Point, paths, Path } =
|
||||
part.shorthand()
|
||||
|
||||
function jaegerInnerPocketBag({
|
||||
paperless,
|
||||
sa,
|
||||
store,
|
||||
complete,
|
||||
points,
|
||||
options,
|
||||
macro,
|
||||
Point,
|
||||
paths,
|
||||
Path,
|
||||
part,
|
||||
}) {
|
||||
const width = store.get('innerPocketWidth')
|
||||
const welt = store.get('innerPocketWeltHeight')
|
||||
const height = width * options.innerPocketDepth
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
import { front } from './front.mjs'
|
||||
|
||||
function jaegerInnerPocketWelt(part) {
|
||||
const { paperless, sa, store, complete, points, macro, Point, paths, Path } = part.shorthand()
|
||||
|
||||
function jaegerInnerPocketWelt({
|
||||
paperless,
|
||||
sa,
|
||||
store,
|
||||
complete,
|
||||
points,
|
||||
macro,
|
||||
Point,
|
||||
paths,
|
||||
Path,
|
||||
part,
|
||||
}) {
|
||||
const width = store.get('innerPocketWidth')
|
||||
const height = store.get('innerPocketWeltHeight')
|
||||
|
||||
|
|
|
@ -2,10 +2,19 @@ import { frontBase } from './frontbase.mjs'
|
|||
import { backBase } from './backbase.mjs'
|
||||
import { pocketFoldover } from './options.mjs'
|
||||
|
||||
function jaegerPocket(part) {
|
||||
const { paperless, sa, store, complete, points, options, macro, Point, paths, Path } =
|
||||
part.shorthand()
|
||||
|
||||
function jaegerPocket({
|
||||
paperless,
|
||||
sa,
|
||||
store,
|
||||
complete,
|
||||
points,
|
||||
options,
|
||||
macro,
|
||||
Point,
|
||||
paths,
|
||||
Path,
|
||||
part,
|
||||
}) {
|
||||
const width = store.get('pocketWidth')
|
||||
const depth = store.get('pocketDepth')
|
||||
|
||||
|
|
|
@ -1,9 +1,17 @@
|
|||
import { pocket } from './pocket.mjs'
|
||||
|
||||
function jaegerPocketLining(part) {
|
||||
const { paperless, sa, snippets, complete, points, options, macro, paths, Path } =
|
||||
part.shorthand()
|
||||
|
||||
function jaegerPocketLining({
|
||||
paperless,
|
||||
sa,
|
||||
snippets,
|
||||
complete,
|
||||
points,
|
||||
options,
|
||||
macro,
|
||||
paths,
|
||||
Path,
|
||||
part,
|
||||
}) {
|
||||
// Adapt length
|
||||
points.topLeft = points.edgeLeft.flipY(points.topLeft)
|
||||
points.topRight = points.edgeRight.flipY(points.topRight)
|
||||
|
|
|
@ -2,22 +2,21 @@ import { frontBase } from './frontbase.mjs'
|
|||
import { backBase } from './backbase.mjs'
|
||||
import { backVent, backVentLength } from './options.mjs'
|
||||
|
||||
function jaegerSide(part) {
|
||||
const {
|
||||
paperless,
|
||||
sa,
|
||||
snippets,
|
||||
Snippet,
|
||||
utils,
|
||||
complete,
|
||||
points,
|
||||
measurements,
|
||||
options,
|
||||
macro,
|
||||
paths,
|
||||
Path,
|
||||
} = part.shorthand()
|
||||
|
||||
function jaegerSide({
|
||||
paperless,
|
||||
sa,
|
||||
snippets,
|
||||
Snippet,
|
||||
utils,
|
||||
complete,
|
||||
points,
|
||||
measurements,
|
||||
options,
|
||||
macro,
|
||||
paths,
|
||||
Path,
|
||||
part,
|
||||
}) {
|
||||
// Double back vent
|
||||
if (options.backVent === 2) {
|
||||
let ventY = points.bsHips.y - points.bsWaistCp1.dy(points.bsHips) * options.backVentLength
|
||||
|
|
|
@ -1,10 +1,19 @@
|
|||
import { topSleeve as bentTopSleeve } from '@freesewing/bent'
|
||||
import { sleeveVentLength, sleeveVentWidth } from './options.mjs'
|
||||
|
||||
function jaegerTopSleeve(part) {
|
||||
const { paperless, sa, utils, complete, points, measurements, options, macro, paths, Path } =
|
||||
part.shorthand()
|
||||
|
||||
function jaegerTopSleeve({
|
||||
paperless,
|
||||
sa,
|
||||
utils,
|
||||
complete,
|
||||
points,
|
||||
measurements,
|
||||
options,
|
||||
macro,
|
||||
paths,
|
||||
Path,
|
||||
part,
|
||||
}) {
|
||||
// Vent
|
||||
let slope = 15
|
||||
let width = measurements.wrist * (1 + options.cuffEase) * options.sleeveVentWidth
|
||||
|
|
|
@ -7,9 +7,17 @@ import { collarStand } from './collarstand.mjs'
|
|||
* experience, or more tailoring exprience.
|
||||
*/
|
||||
|
||||
function jaegerUnderCollar(part) {
|
||||
const { paperless, sa, snippets, complete, points, macro, paths, Path } = part.shorthand()
|
||||
|
||||
function jaegerUnderCollar({
|
||||
paperless,
|
||||
sa,
|
||||
snippets,
|
||||
complete,
|
||||
points,
|
||||
macro,
|
||||
paths,
|
||||
Path,
|
||||
part,
|
||||
}) {
|
||||
// Clean up
|
||||
for (let i of Object.keys(paths)) delete paths[i]
|
||||
for (let i of Object.keys(snippets)) delete snippets[i]
|
||||
|
|
|
@ -1,10 +1,19 @@
|
|||
import { underSleeve as bentUnderSleeve } from '@freesewing/bent'
|
||||
import { sleeveVentLength, sleeveVentWidth } from './options.mjs'
|
||||
|
||||
function jaegerUnderSleeve(part) {
|
||||
const { paperless, sa, utils, complete, points, measurements, options, macro, paths, Path } =
|
||||
part.shorthand()
|
||||
|
||||
function jaegerUnderSleeve({
|
||||
paperless,
|
||||
sa,
|
||||
utils,
|
||||
complete,
|
||||
points,
|
||||
measurements,
|
||||
options,
|
||||
macro,
|
||||
paths,
|
||||
Path,
|
||||
part,
|
||||
}) {
|
||||
// Vent
|
||||
let slope = 15
|
||||
let width = measurements.wrist * (1 + options.cuffEase) * options.sleeveVentWidth
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue