1
0
Fork 0

sparkles: Switched to freesewing.create

This commit is contained in:
Joost De Cock 2019-02-10 11:26:24 +01:00
parent 548b358ee5
commit 8b057c93af
3 changed files with 13 additions and 25 deletions

View file

@ -917,12 +917,12 @@
"dev": true "dev": true
}, },
"@freesewing/brian": { "@freesewing/brian": {
"version": "0.22.4", "version": "0.22.5",
"resolved": "https://registry.npmjs.org/@freesewing/brian/-/brian-0.22.4.tgz", "resolved": "https://registry.npmjs.org/@freesewing/brian/-/brian-0.22.5.tgz",
"integrity": "sha512-FHXtxrTPO35xBs6q6XciyAvXxM4oGHGG/2VAlA2FNcI8DxAh5V2mOv0TpY4lYE3rn0lmXzIcOvU+h3lYqiUfVg==", "integrity": "sha512-DVeexLLyVSuy/WAK2dHifsaJi+AfqnHV1dQdTP5gUYd8RLqe1qzOhOYAxzMcFgUz/RvNsM66OX91/vXv8+tzXw==",
"requires": { "requires": {
"@freesewing/plugin-bundle": "^0.7.1", "@freesewing/plugin-bundle": "^0.7.1",
"freesewing": "^0.29" "freesewing": "^0.29.3"
} }
}, },
"@freesewing/models": { "@freesewing/models": {
@ -1646,9 +1646,9 @@
} }
}, },
"bezier-js": { "bezier-js": {
"version": "2.3.1", "version": "2.3.2",
"resolved": "https://registry.npmjs.org/bezier-js/-/bezier-js-2.3.1.tgz", "resolved": "https://registry.npmjs.org/bezier-js/-/bezier-js-2.3.2.tgz",
"integrity": "sha512-nFpFL9tuayvlHfWh6xM7OHeTZvwr74+6KnzO3eNZMt0BC0cqb9lCTc9C8OVzrHBvbrNwriTw7XaF2SBsWQJLZA==" "integrity": "sha512-+G6FB5YuicjLvYP2ZPrzGs1vXjkO6uONehOkjvIvoueIeyPxMWjgSS8DX+OYsx8xzrDDi56v2CqAxHU/NTu3LQ=="
}, },
"big.js": { "big.js": {
"version": "3.2.0", "version": "3.2.0",
@ -2771,9 +2771,9 @@
} }
}, },
"freesewing": { "freesewing": {
"version": "0.29.0", "version": "0.29.3",
"resolved": "https://registry.npmjs.org/freesewing/-/freesewing-0.29.0.tgz", "resolved": "https://registry.npmjs.org/freesewing/-/freesewing-0.29.3.tgz",
"integrity": "sha512-G2rOEh/KT/5lXPwdF9KKTMqB9Ml40ns8ZT8eeTInAWAUSpAIwSf6qerXQFU2E3F935K9gZeCc0Ahx0Pnbk2A7w==", "integrity": "sha512-KE6MCssT8kznhoYF2F8lFvSvbJ/Se6NAKwJHqu8hscx1gVD6XSZbUGWt4jHiNSb4YCEhW61fmFLT6DYykicjig==",
"requires": { "requires": {
"bezier-js": "^2.2.15", "bezier-js": "^2.2.15",
"bin-pack": "1.0.2" "bin-pack": "1.0.2"

View file

@ -47,8 +47,7 @@
] ]
}, },
"dependencies": { "dependencies": {
"freesewing": "^0.29", "@freesewing/brian": "^0.22.5",
"@freesewing/brian": "^0.22.4",
"@freesewing/plugin-bundle": "^0.7.1" "@freesewing/plugin-bundle": "^0.7.1"
}, },
"devDependencies": { "devDependencies": {

View file

@ -13,19 +13,8 @@ import draftHoodCenter from "./hoodcenter";
import draftWaistband from "./waistband"; import draftWaistband from "./waistband";
import draftCuff from "./cuff"; import draftCuff from "./cuff";
// Constructor boilerplate // Create pattern
const Hugo = function(settings) { const Hugo = freesewing.create(config, plugins);
freesewing.Pattern.call(this, config);
this
.use(plugins)
.apply(settings);
return this;
};
// Set up inheritance
Hugo.prototype = Object.create(freesewing.Pattern.prototype);
Hugo.prototype.constructor = Hugo;
// Attach per-part draft methods to prototype // Attach per-part draft methods to prototype
Hugo.prototype.draftBase = function (part) { Hugo.prototype.draftBase = function (part) {