2019-04-29 09:01:51 +02:00
|
|
|
import freesewing from "@freesewing/core";
|
2019-03-25 18:20:15 +01:00
|
|
|
import plugins from "@freesewing/plugin-bundle";
|
|
|
|
import buttons from "@freesewing/plugin-buttons";
|
|
|
|
import Bent from "@freesewing/bent";
|
|
|
|
import config from "../config";
|
|
|
|
// Parts
|
|
|
|
import draftFront from "./front";
|
|
|
|
import draftBack from "./back";
|
|
|
|
import draftTail from "./tail";
|
|
|
|
import draftTopSleeve from "./topsleeve";
|
|
|
|
import draftUnderSleeve from "./undersleeve";
|
|
|
|
import draftBelt from "./belt";
|
|
|
|
import draftCollarStand from "./collarstand";
|
|
|
|
import draftCollar from "./collar";
|
|
|
|
import draftCuffFacing from "./cufffacing";
|
|
|
|
import draftPocket from "./pocket";
|
|
|
|
import draftPocketFlap from "./pocketflap";
|
2019-03-30 19:01:32 +01:00
|
|
|
import draftPocketLining from "./pocketlining";
|
2019-03-25 18:20:15 +01:00
|
|
|
import draftChestPocketWelt from "./chestpocketwelt";
|
2019-04-01 07:56:04 +02:00
|
|
|
import draftChestPocketBag from "./chestpocketbag";
|
2019-03-25 18:20:15 +01:00
|
|
|
import draftInnerPocketWelt from "./innerpocketwelt";
|
|
|
|
import draftInnerPocketBag from "./innerpocketbag";
|
|
|
|
import draftInnerPocketTab from "./innerpockettab";
|
|
|
|
|
|
|
|
// Create new design
|
2019-04-29 09:01:51 +02:00
|
|
|
const Carlton = new freesewing.Design(config, [plugins, buttons]);
|
2019-03-25 18:20:15 +01:00
|
|
|
|
|
|
|
// Attach draft methods from Bent to prototype
|
|
|
|
Carlton.prototype.draftBentBase = function(part) {
|
|
|
|
return new Bent(this.settings).draftBase(part);
|
|
|
|
};
|
|
|
|
Carlton.prototype.draftBentFront = function(part) {
|
|
|
|
return new Bent(this.settings).draftFront(part);
|
2019-04-29 09:01:51 +02:00
|
|
|
};
|
2019-03-25 18:20:15 +01:00
|
|
|
Carlton.prototype.draftBentBack = function(part) {
|
|
|
|
return new Bent(this.settings).draftBack(part);
|
|
|
|
};
|
|
|
|
Carlton.prototype.draftBentSleeve = function(part) {
|
|
|
|
return new Bent(this.settings).draftSleeve(part);
|
|
|
|
};
|
|
|
|
Carlton.prototype.draftBentTopSleeve = function(part) {
|
|
|
|
return new Bent(this.settings).draftTopSleeve(part);
|
|
|
|
};
|
|
|
|
Carlton.prototype.draftBentUnderSleeve = function(part) {
|
|
|
|
return new Bent(this.settings).draftUnderSleeve(part);
|
|
|
|
};
|
|
|
|
|
|
|
|
// Attach own draft methods to prototype
|
|
|
|
Carlton.prototype.draftFront = draftFront;
|
|
|
|
Carlton.prototype.draftBack = draftBack;
|
|
|
|
Carlton.prototype.draftTail = draftTail;
|
|
|
|
Carlton.prototype.draftTopSleeve = draftTopSleeve;
|
|
|
|
Carlton.prototype.draftUnderSleeve = draftUnderSleeve;
|
|
|
|
Carlton.prototype.draftBelt = draftBelt;
|
|
|
|
Carlton.prototype.draftCollarStand = draftCollarStand;
|
|
|
|
Carlton.prototype.draftCollar = draftCollar;
|
|
|
|
Carlton.prototype.draftCuffFacing = draftCuffFacing;
|
|
|
|
Carlton.prototype.draftPocket = draftPocket;
|
|
|
|
Carlton.prototype.draftPocketFlap = draftPocketFlap;
|
2019-03-30 19:01:32 +01:00
|
|
|
Carlton.prototype.draftPocketLining = draftPocketLining;
|
2019-03-25 18:20:15 +01:00
|
|
|
Carlton.prototype.draftChestPocketWelt = draftChestPocketWelt;
|
2019-04-01 07:56:04 +02:00
|
|
|
Carlton.prototype.draftChestPocketBag = draftChestPocketBag;
|
2019-03-25 18:20:15 +01:00
|
|
|
Carlton.prototype.draftInnerPocketWelt = draftInnerPocketWelt;
|
|
|
|
Carlton.prototype.draftInnerPocketBag = draftInnerPocketBag;
|
|
|
|
Carlton.prototype.draftInnerPocketTab = draftInnerPocketTab;
|
|
|
|
|
|
|
|
export default Carlton;
|
2019-04-29 09:01:51 +02:00
|
|
|
export { config };
|