construction: Updates and no more create
This commit is contained in:
parent
e58a1c4126
commit
f7508ee7d2
5 changed files with 206 additions and 237 deletions
|
@ -2,8 +2,21 @@ import freesewing from "freesewing";
|
|||
import * as shared from "./shared";
|
||||
|
||||
export default part => {
|
||||
// prettier-ignore
|
||||
let {units, debug, measurements, options, store, points, snippets, Point, Snippet, Path, paths, utils, complete } = part.shorthand();
|
||||
let {
|
||||
units,
|
||||
debug,
|
||||
measurements,
|
||||
options,
|
||||
store,
|
||||
points,
|
||||
snippets,
|
||||
Point,
|
||||
Snippet,
|
||||
Path,
|
||||
paths,
|
||||
utils,
|
||||
complete
|
||||
} = part.shorthand();
|
||||
|
||||
store.set(
|
||||
"shoulderEase",
|
||||
|
|
|
@ -8,10 +8,10 @@ import draftFront from "./front";
|
|||
import draftSleevecap from "./sleevecap";
|
||||
import draftSleeve from "./sleeve";
|
||||
|
||||
// Create pattern
|
||||
const Brian = freesewing.create(config, plugins);
|
||||
// Create design
|
||||
const Brian = new freesewing.Design(config, plugins);
|
||||
|
||||
// Attach per-part draft methods to prototype
|
||||
// Attach draft methods to prototype
|
||||
Brian.prototype.draftBase = draftBase;
|
||||
Brian.prototype.draftBack = draftBack;
|
||||
Brian.prototype.draftFront = draftFront;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue