1
0
Fork 0

chore(waralee): Port to v3 stage 2

This commit is contained in:
Benjamin F 2022-09-11 07:38:22 -07:00
parent 1812f70f3f
commit 120b1b2ba0
8 changed files with 109 additions and 71 deletions

View file

@ -1,20 +1,20 @@
import { pantsProto } from './pantsproto.mjs'
function waraleeBackPocket(part) {
const {
options,
measurements,
Point,
Path,
points,
paths,
Snippet,
snippets,
complete,
paperless,
macro,
sa,
} = part.shorthand()
function waraleeBackPocket({
options,
measurements,
Point,
Path,
points,
paths,
Snippet,
snippets,
complete,
paperless,
macro,
sa,
part,
}) {
if (false == options.backPocket) {
return part

View file

@ -1,8 +1,18 @@
import { pantsProto } from './pantsproto.mjs'
function waraleeCutout(part) {
const { options, Path, points, paths, Snippet, snippets, complete, sa, paperless, macro } =
part.shorthand()
function waraleeCutout({
options,
Path,
points,
paths,
Snippet,
snippets,
complete,
sa,
paperless,
macro,
part,
}) {
let separateWaistband = options.separateWaistband
if ('waistband' == options.frontPocketStyle) {

View file

@ -1,20 +1,20 @@
import { pantsProto } from './pantsproto.mjs'
function waraleeFacings(part) {
const {
options,
measurements,
Point,
Path,
points,
paths,
Snippet,
snippets,
complete,
paperless,
macro,
sa,
} = part.shorthand()
function waraleeFacings({
options,
measurements,
Point,
Path,
points,
paths,
Snippet,
snippets,
complete,
paperless,
macro,
sa,
part,
}) {
let frontPocketSize =
options.frontPocketSize * measurements.crotchDepth /*- measurements.waistToHips*/

View file

@ -4,8 +4,17 @@ import { pantsProto } from './pantsproto.mjs'
// To keep you from printing it completely, you could print this part in paperless mode
// and only have a single sheet with all the dimensions on it.
function waraleeMini(part) {
const { options, Path, points, paths, complete, sa, macro, store } = part.shorthand()
function waraleeMini({
options,
Path,
points,
paths,
complete,
sa,
macro,
store,
part,
}) {
let mini = options.minimizer
let separateWaistband = options.separateWaistband

View file

@ -1,8 +1,19 @@
import { pantsProto } from './pantsproto.mjs'
function waraleePants(part) {
const { options, points, Path, paths, Snippet, snippets, complete, sa, paperless, macro, store } =
part.shorthand()
function waraleePants({
options,
points,
Path,
paths,
Snippet,
snippets,
complete,
sa,
paperless,
macro,
store,
part,
}) {
let separateWaistband = options.separateWaistband
if ('waistband' == options.frontPocketStyle) {

View file

@ -1,8 +1,16 @@
import { pluginBundle } from '@freesewing/plugin-bundle'
import * as options from './options.mjs'
function waraleePantsProto(part) {
const { options, measurements, Point, Path, points, paths, store } = part.shorthand()
function waraleePantsProto({
options,
measurements,
Point,
Path,
points,
paths,
store,
part,
}) {
let seatDepth =
measurements.crotchDepth /* - measurements.waistToHips */ *

View file

@ -1,20 +1,20 @@
import { pantsProto } from './pantsproto.mjs'
function waraleePocket(part) {
const {
options,
measurements,
Point,
Path,
points,
paths,
Snippet,
snippets,
complete,
sa,
paperless,
macro,
} = part.shorthand()
function waraleePocket({
options,
measurements,
Point,
Path,
points,
paths,
Snippet,
snippets,
complete,
sa,
paperless,
macro,
part,
}) {
if (false == options.frontPocket) {
return part

View file

@ -1,21 +1,21 @@
import { pantsProto } from './pantsproto.mjs'
function waraleeWaistband(type, part) {
const {
options,
measurements,
Point,
Path,
points,
paths,
Snippet,
snippets,
complete,
paperless,
macro,
sa,
store,
} = part.shorthand()
function waraleeWaistband(type, {
options,
measurements,
Point,
Path,
points,
paths,
Snippet,
snippets,
complete,
paperless,
macro,
sa,
store,
part,
}) {
const WidthReduction = 6
let waistBand = store.get('waistBand')