diff --git a/packages/brian/.babelrc b/packages/brian/.babelrc new file mode 100644 index 00000000000..85af630bdd1 --- /dev/null +++ b/packages/brian/.babelrc @@ -0,0 +1,3 @@ +{ + "plugins": ["transform-object-rest-spread"] +} diff --git a/packages/brian/config/config.js b/packages/brian/config/config.js index 7612fba3b3c..aac4f8e7d62 100644 --- a/packages/brian/config/config.js +++ b/packages/brian/config/config.js @@ -1,10 +1,7 @@ /** Pattern parts */ -export var config = { - parts: [ - "back", - "front", - "_sleeve" - ], +export default { + name: "brian", + parts: ["back", "front", "_sleeve"], measurements: [ "bicepsCircumference", "centerBackNeckToWaist", @@ -19,26 +16,31 @@ export var config = { ], options: [ // Constants - { "id": "backNeckCutout", "val": 20, "type": "constant"}, - { "id": "bicepsEase", "val": 50, "type": "constant"}, - { "id": "collarEase", "val": 15, "type": "constant"}, - { "id": "frontArmholeExtra", "val": 5, "type": "constant"}, - { "id": "shoulderSlopeReduction", "val": 0, "type": "constant"}, - { "id": "sleevecapEase", "val": 5, "type": "constant"}, - { "id": "collarFactor", "val":4.8, "type": "constant"}, + { id: "backNeckCutout", val: 20, type: "constant" }, + { id: "bicepsEase", val: 50, type: "constant" }, + { id: "collarEase", val: 15, type: "constant" }, + { id: "frontArmholeExtra", val: 5, type: "constant" }, + { id: "shoulderSlopeReduction", val: 0, type: "constant" }, + { id: "sleevecapEase", val: 5, type: "constant" }, + { id: "collarFactor", val: 4.8, type: "constant" }, // Measures - { "id": "bicepsEase", "val": 50, "min": 30, "max": 80 }, - { "id": "chestEase", "val": 30, "min": -40, "max": 160 }, - { "id": "shoulderEase", "val": 0, "min": -20, "max": 60 }, - { "id": "cuffEase", "val": 45, "min": 0, "max": 100 }, - { "id": "lengthBonus", "val": 0, "min": -40, "max": 120 }, - { "id": "sleeveLengthBonus", "val": 0, "min": -40, "max": 80 }, + { id: "bicepsEase", val: 50, min: 30, max: 80 }, + { id: "chestEase", val: 30, min: -40, max: 160 }, + { id: "shoulderEase", val: 0, min: -20, max: 60 }, + { id: "cuffEase", val: 45, min: 0, max: 100 }, + { id: "lengthBonus", val: 0, min: -40, max: 120 }, + { id: "sleeveLengthBonus", val: 0, min: -40, max: 80 }, // Percentages - { "id": "acrossBackFactor", "val": 96, "type": "percentage", "min": 93, "max": 99 }, - { "id": "armholeDepthFactor", "val": 50, "type": "percentage", "min": 35, "max": 65 }, - { "id": "sleevecapHeightFactor", "val": 55, "type": "percentage", "min": 35, "max": 75 } + { id: "acrossBackFactor", val: 96, type: "percentage", min: 93, max: 99 }, + { id: "armholeDepthFactor", val: 50, type: "percentage", min: 35, max: 65 }, + { + id: "sleevecapHeightFactor", + val: 55, + type: "percentage", + min: 35, + max: 75 + } ] }; - diff --git a/packages/brian/freesewing.js b/packages/brian/freesewing.js index 3ca3a6e73e9..c0c149ab48d 120000 --- a/packages/brian/freesewing.js +++ b/packages/brian/freesewing.js @@ -1 +1 @@ -../freesewing/dist/freesewing.min.js \ No newline at end of file +../freesewing/dist/browser.js \ No newline at end of file diff --git a/packages/brian/index.html b/packages/brian/index.html index c4081435138..ed36440b039 100644 --- a/packages/brian/index.html +++ b/packages/brian/index.html @@ -7,15 +7,13 @@
- - - - + + +