sparkles: Added front lining
This commit is contained in:
parent
51e4cc7dd6
commit
be6dab5c5b
5 changed files with 69 additions and 9 deletions
|
@ -21,14 +21,16 @@ export default {
|
||||||
frontBlock: "backBlock",
|
frontBlock: "backBlock",
|
||||||
front: "frontBlock",
|
front: "frontBlock",
|
||||||
back: "backBlock",
|
back: "backBlock",
|
||||||
frontFacing: "front"
|
frontFacing: "front",
|
||||||
|
frontLining: "front"
|
||||||
},
|
},
|
||||||
inject: {
|
inject: {
|
||||||
backBlock: "base",
|
backBlock: "base",
|
||||||
frontBlock: "backBlock",
|
frontBlock: "backBlock",
|
||||||
front: "frontBlock",
|
front: "frontBlock",
|
||||||
back: "backBlock",
|
back: "backBlock",
|
||||||
frontFacing: "front"
|
frontFacing: "front",
|
||||||
|
frontLining: "front"
|
||||||
},
|
},
|
||||||
hide: ["base", "frontBlock", "backBlock"],
|
hide: ["base", "frontBlock", "backBlock"],
|
||||||
parts: [
|
parts: [
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
"locale": "en",
|
"locale": "en",
|
||||||
"options": {
|
"options": {
|
||||||
"frontStyle": "rounded",
|
"frontStyle": "rounded",
|
||||||
"hemStyle": "rounded",
|
//"hemStyle": "rounded",
|
||||||
},
|
},
|
||||||
//"embed": true,
|
//"embed": true,
|
||||||
"sa": 10,
|
"sa": 10,
|
||||||
|
|
|
@ -1,20 +1,15 @@
|
||||||
import { constructMainDart, shapeSideSeam, dartPath } from "./shared";
|
|
||||||
|
|
||||||
export default part => {
|
export default part => {
|
||||||
let {
|
let {
|
||||||
points,
|
points,
|
||||||
Point,
|
Point,
|
||||||
paths,
|
paths,
|
||||||
Path,
|
Path,
|
||||||
measurements,
|
|
||||||
options,
|
options,
|
||||||
utils,
|
|
||||||
macro,
|
macro,
|
||||||
snippets,
|
snippets,
|
||||||
Snippet,
|
Snippet,
|
||||||
complete,
|
complete,
|
||||||
sa,
|
sa
|
||||||
paperless
|
|
||||||
} = part.shorthand();
|
} = part.shorthand();
|
||||||
|
|
||||||
// Cleanup from front part
|
// Cleanup from front part
|
||||||
|
|
61
packages/wahid/src/frontlining.js
Normal file
61
packages/wahid/src/frontlining.js
Normal file
|
@ -0,0 +1,61 @@
|
||||||
|
export default part => {
|
||||||
|
let {
|
||||||
|
points,
|
||||||
|
Point,
|
||||||
|
paths,
|
||||||
|
Path,
|
||||||
|
measurements,
|
||||||
|
options,
|
||||||
|
utils,
|
||||||
|
macro,
|
||||||
|
snippets,
|
||||||
|
Snippet,
|
||||||
|
complete,
|
||||||
|
sa,
|
||||||
|
paperless
|
||||||
|
} = part.shorthand();
|
||||||
|
|
||||||
|
// Cleanup from Brian
|
||||||
|
for (let i of Object.keys(paths)) delete paths[i];
|
||||||
|
for (let i of Object.keys(snippets)) delete snippets[i];
|
||||||
|
|
||||||
|
// Seam line
|
||||||
|
paths.seam = new Path()
|
||||||
|
.move(points.hem)
|
||||||
|
.line(points.hips)
|
||||||
|
.curve(points.hipsCp2, points.waistCp1, points.waist)
|
||||||
|
.curve_(points.waistCp2, points.armhole)
|
||||||
|
.curve(points.armholeCp2, points.armholeHollowCp1, points.armholeHollow)
|
||||||
|
.curve(points.armholeHollowCp2, points.armholePitchCp1, points.armholePitch)
|
||||||
|
.curve(points.armholePitchCp2, points.shoulderCp1, points.shoulder)
|
||||||
|
.line(points.flbTop)
|
||||||
|
._curve(points.flbCp, points.dartTop)
|
||||||
|
._curve(points.dartWaistRightCpTop, points.dartWaistRight)
|
||||||
|
.curve(
|
||||||
|
points.dartWaistRightCpBottom,
|
||||||
|
points.dartHipRightCpTop,
|
||||||
|
points.dartHipRight
|
||||||
|
)
|
||||||
|
.line(points.dartEnd);
|
||||||
|
if (options.hemStyle === "classic") {
|
||||||
|
paths.seam.curve(
|
||||||
|
points.splitDartHemRightCp2,
|
||||||
|
points.splitHemCp1,
|
||||||
|
points.hem
|
||||||
|
);
|
||||||
|
} else paths.seam.line(points.hem);
|
||||||
|
|
||||||
|
if (complete) {
|
||||||
|
if (sa) paths.sa = paths.seam.offset(sa).attr("class", "fabric sa");
|
||||||
|
points.title = points.armhole.shiftFractionTowards(points.dartTop, 0.5);
|
||||||
|
macro("title", {
|
||||||
|
nr: 4,
|
||||||
|
at: points.title,
|
||||||
|
title: "frontLining"
|
||||||
|
});
|
||||||
|
points.logo = points.dartWaistRight.shiftFractionTowards(points.waist, 0.5);
|
||||||
|
snippets.logo = new Snippet("logo", points.logo);
|
||||||
|
}
|
||||||
|
|
||||||
|
return part;
|
||||||
|
};
|
|
@ -8,6 +8,7 @@ import config from "../config";
|
||||||
import draftFront from "./front";
|
import draftFront from "./front";
|
||||||
import draftBack from "./back";
|
import draftBack from "./back";
|
||||||
import draftFrontFacing from "./frontfacing";
|
import draftFrontFacing from "./frontfacing";
|
||||||
|
import draftFrontLining from "./frontlining";
|
||||||
|
|
||||||
// Create pattern
|
// Create pattern
|
||||||
const Wahid = new freesewing.Design(config, [plugins, round, buttons]);
|
const Wahid = new freesewing.Design(config, [plugins, round, buttons]);
|
||||||
|
@ -27,5 +28,6 @@ Wahid.prototype.draftFrontBlock = function(part) {
|
||||||
Wahid.prototype.draftFront = part => draftFront(part);
|
Wahid.prototype.draftFront = part => draftFront(part);
|
||||||
Wahid.prototype.draftBack = part => draftBack(part);
|
Wahid.prototype.draftBack = part => draftBack(part);
|
||||||
Wahid.prototype.draftFrontFacing = part => draftFrontFacing(part);
|
Wahid.prototype.draftFrontFacing = part => draftFrontFacing(part);
|
||||||
|
Wahid.prototype.draftFrontLining = part => draftFrontLining(part);
|
||||||
|
|
||||||
export default Wahid;
|
export default Wahid;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue