chore(yuri): Port to v3 stage 2
This commit is contained in:
parent
50fc054c1d
commit
c37ea7e8c3
6 changed files with 83 additions and 53 deletions
|
@ -1,20 +1,20 @@
|
|||
import { back as brianBack } from '@freesewing/brian'
|
||||
import { sharedDimensions } from './shared.mjs'
|
||||
|
||||
function yuriBack(part) {
|
||||
const {
|
||||
store,
|
||||
macro,
|
||||
Path,
|
||||
Point,
|
||||
points,
|
||||
paths,
|
||||
complete,
|
||||
paperless,
|
||||
sa,
|
||||
options,
|
||||
measurements,
|
||||
} = part.shorthand()
|
||||
function yuriBack({
|
||||
store,
|
||||
macro,
|
||||
Path,
|
||||
Point,
|
||||
points,
|
||||
paths,
|
||||
complete,
|
||||
paperless,
|
||||
sa,
|
||||
options,
|
||||
measurements,
|
||||
part,
|
||||
}) {
|
||||
|
||||
// Clear paths from Brian
|
||||
for (const i in paths) {
|
||||
|
|
|
@ -1,22 +1,22 @@
|
|||
import { front as brianFront } from '@freesewing/brian'
|
||||
import { sharedDimensions } from './shared.mjs'
|
||||
|
||||
function yuriFront(part) {
|
||||
const {
|
||||
store,
|
||||
Point,
|
||||
Path,
|
||||
points,
|
||||
paths,
|
||||
complete,
|
||||
paperless,
|
||||
sa,
|
||||
options,
|
||||
measurements,
|
||||
macro,
|
||||
snippets,
|
||||
Snippet,
|
||||
} = part.shorthand()
|
||||
function yuriFront({
|
||||
store,
|
||||
Point,
|
||||
Path,
|
||||
points,
|
||||
paths,
|
||||
complete,
|
||||
paperless,
|
||||
sa,
|
||||
options,
|
||||
measurements,
|
||||
macro,
|
||||
snippets,
|
||||
Snippet,
|
||||
part,
|
||||
}) {
|
||||
|
||||
// Clear paths from Brian
|
||||
for (const i in paths) {
|
||||
|
|
|
@ -1,8 +1,19 @@
|
|||
import { back } from './back.mjs'
|
||||
|
||||
function yuriGusset(part) {
|
||||
const { Point, Path, points, paths, Snippet, snippets, complete, sa, paperless, macro, store } =
|
||||
part.shorthand()
|
||||
function yuriGusset({
|
||||
Point,
|
||||
Path,
|
||||
points,
|
||||
paths,
|
||||
Snippet,
|
||||
snippets,
|
||||
complete,
|
||||
sa,
|
||||
paperless,
|
||||
macro,
|
||||
store,
|
||||
part,
|
||||
}) {
|
||||
|
||||
const w = store.get('gussetLength')
|
||||
points.top = new Point(0, 0)
|
||||
|
|
|
@ -1,8 +1,18 @@
|
|||
import { hoodSide } from './hoodside.mjs'
|
||||
|
||||
function yuriHoodCenter(part) {
|
||||
const { store, sa, Point, points, Path, paths, complete, paperless, macro, units } =
|
||||
part.shorthand()
|
||||
function yuriHoodCenter({
|
||||
store,
|
||||
sa,
|
||||
Point,
|
||||
points,
|
||||
Path,
|
||||
paths,
|
||||
complete,
|
||||
paperless,
|
||||
macro,
|
||||
units,
|
||||
part,
|
||||
}) {
|
||||
|
||||
const width = store.get('hoodCenterWidth')
|
||||
const length = complete ? width * 2.5 : store.get('hoodCenterLength')
|
||||
|
|
|
@ -1,21 +1,21 @@
|
|||
import { back } from './back.mjs'
|
||||
import { front } from './front.mjs'
|
||||
|
||||
function yuriHoodSide(part) {
|
||||
const {
|
||||
store,
|
||||
sa,
|
||||
Point,
|
||||
points,
|
||||
Path,
|
||||
paths,
|
||||
Snippet,
|
||||
snippets,
|
||||
measurements,
|
||||
complete,
|
||||
paperless,
|
||||
macro,
|
||||
} = part.shorthand()
|
||||
function yuriHoodSide({
|
||||
store,
|
||||
sa,
|
||||
Point,
|
||||
points,
|
||||
Path,
|
||||
paths,
|
||||
Snippet,
|
||||
snippets,
|
||||
measurements,
|
||||
complete,
|
||||
paperless,
|
||||
macro,
|
||||
part,
|
||||
}) {
|
||||
|
||||
const neckOpening = store.get('frontNeckSeamLength') + store.get('backNeckSeamLength')
|
||||
const hoodOpening = measurements.head
|
||||
|
|
|
@ -1,7 +1,16 @@
|
|||
import { sleeve as brianSleeve } from '@freesewing/brian'
|
||||
|
||||
function yuriSleeve(part) {
|
||||
let { Point, Path, points, paths, complete, sa, paperless, macro } = part.shorthand()
|
||||
function yuriSleeve({
|
||||
Point,
|
||||
Path,
|
||||
points,
|
||||
paths,
|
||||
complete,
|
||||
sa,
|
||||
paperless,
|
||||
macro,
|
||||
part,
|
||||
}) {
|
||||
|
||||
// Clear paths from Brian, but keep sleevecap
|
||||
for (let p of Object.keys(paths)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue