feat(yuri): Extend Brian config
This commit is contained in:
parent
c06272827f
commit
f05ec4da39
3 changed files with 12 additions and 152 deletions
|
@ -1,21 +0,0 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2021 Biou
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
|
@ -1,6 +1,7 @@
|
|||
import pkg from '../package.json'
|
||||
import Brian from '@freesewing/brian'
|
||||
|
||||
export default {
|
||||
const config = {
|
||||
name: 'yuri',
|
||||
version: pkg.version,
|
||||
design: 'Hellgy',
|
||||
|
@ -9,51 +10,16 @@ export default {
|
|||
type: 'pattern',
|
||||
difficulty: 3,
|
||||
optionGroups: {
|
||||
fit: ['bicepsEase', 'chestEase', 'cuffEase', 'collarEase', 'shoulderEase', 'hipsEase'],
|
||||
style: ['lengthBonus', 'sleeveLengthBonus', 's3Collar', 's3Armhole'],
|
||||
advanced: [
|
||||
'acrossBackFactor',
|
||||
'armholeDepthFactor',
|
||||
'backNeckCutout',
|
||||
'frontArmholeDeeper',
|
||||
'sleeveWidthGuarantee',
|
||||
{
|
||||
sleevecap: [
|
||||
'sleevecapEase',
|
||||
'sleevecapTopFactorX',
|
||||
'sleevecapTopFactorY',
|
||||
'sleevecapBackFactorX',
|
||||
'sleevecapBackFactorY',
|
||||
'sleevecapFrontFactorX',
|
||||
'sleevecapFrontFactorY',
|
||||
'sleevecapQ1Offset',
|
||||
'sleevecapQ2Offset',
|
||||
'sleevecapQ3Offset',
|
||||
'sleevecapQ4Offset',
|
||||
'sleevecapQ1Spread1',
|
||||
'sleevecapQ1Spread2',
|
||||
'sleevecapQ2Spread1',
|
||||
'sleevecapQ2Spread2',
|
||||
'sleevecapQ3Spread1',
|
||||
'sleevecapQ3Spread2',
|
||||
'sleevecapQ4Spread1',
|
||||
'sleevecapQ4Spread2',
|
||||
],
|
||||
},
|
||||
...Brian.config.optionGroups,
|
||||
fit: [
|
||||
...Brian.config.optionGroups.fit,
|
||||
'hipsEase'
|
||||
],
|
||||
},
|
||||
measurements: [
|
||||
'biceps',
|
||||
'chest',
|
||||
...Brian.config.measurements,
|
||||
'head',
|
||||
'hips',
|
||||
'hpsToWaistBack',
|
||||
'waistToHips',
|
||||
'neck',
|
||||
'shoulderSlope',
|
||||
'shoulderToShoulder',
|
||||
'shoulderToWrist',
|
||||
'wrist',
|
||||
'hpsToBust',
|
||||
],
|
||||
dependencies: {
|
||||
|
@ -79,49 +45,17 @@ export default {
|
|||
hide: ['base', 'sleevecap', 'backBase', 'frontBase', 'sleeveBase'],
|
||||
parts: ['gusset', 'hoodSide', 'hoodCenter'],
|
||||
options: {
|
||||
// Constants
|
||||
brianFitSleeve: true,
|
||||
brianFitCollar: true,
|
||||
collarFactor: 4.8,
|
||||
shoulderSlopeReduction: 0,
|
||||
...Brian.config.options,
|
||||
|
||||
// Options inherited from Brian
|
||||
acrossBackFactor: { pct: 97, min: 93, max: 100 },
|
||||
armholeDepthFactor: { pct: 65, min: 50, max: 70 },
|
||||
backNeckCutout: { pct: 5, min: 2, max: 8 },
|
||||
bicepsEase: { pct: 8, min: 0, max: 20 },
|
||||
chestEase: { pct: 8, min: -4, max: 20 },
|
||||
// Brian overrides
|
||||
collarEase: { pct: 20, min: 10, max: 30 },
|
||||
cuffEase: { pct: 30, min: 20, max: 60 },
|
||||
frontArmholeDeeper: { pct: 0.5, min: 0, max: 1.5 },
|
||||
lengthBonus: { pct: 10, min: 5, max: 15 },
|
||||
shoulderEase: { pct: 0.5, min: -2, max: 6 },
|
||||
// s3 is short for Shoulder Seam Shift
|
||||
s3Collar: { pct: 0, min: -100, max: 100 },
|
||||
s3Armhole: { pct: 0, min: -100, max: 100 },
|
||||
sleeveLengthBonus: { pct: 1, min: 0, max: 10 },
|
||||
sleevecapEase: { pct: 0, min: 0, max: 10 },
|
||||
sleevecapTopFactorX: { pct: 50, min: 25, max: 75 },
|
||||
sleevecapTopFactorY: { pct: 100, min: 35, max: 165 },
|
||||
sleevecapBackFactorX: { pct: 60, min: 35, max: 65 },
|
||||
sleevecapBackFactorY: { pct: 33, min: 30, max: 65 },
|
||||
sleevecapFrontFactorX: { pct: 55, min: 35, max: 65 },
|
||||
sleevecapFrontFactorY: { pct: 33, min: 30, max: 65 },
|
||||
sleevecapQ1Offset: { pct: 3, min: 0, max: 7 },
|
||||
sleevecapQ2Offset: { pct: 5.5, min: 0, max: 7 },
|
||||
sleevecapQ3Offset: { pct: 4.5, min: 0, max: 7 },
|
||||
sleevecapQ4Offset: { pct: 1, min: 0, max: 7 },
|
||||
sleevecapQ1Spread1: { pct: 6, min: 4, max: 20 },
|
||||
sleevecapQ1Spread2: { pct: 15, min: 4, max: 20 },
|
||||
sleevecapQ2Spread1: { pct: 15, min: 4, max: 20 },
|
||||
sleevecapQ2Spread2: { pct: 10, min: 4, max: 20 },
|
||||
sleevecapQ3Spread1: { pct: 10, min: 4, max: 20 },
|
||||
sleevecapQ3Spread2: { pct: 8, min: 4, max: 20 },
|
||||
sleevecapQ4Spread1: { pct: 7, min: 4, max: 20 },
|
||||
sleevecapQ4Spread2: { pct: 7, min: 4, max: 20 },
|
||||
sleeveWidthGuarantee: { pct: 90, min: 25, max: 100 },
|
||||
|
||||
// Options specific to Yuri
|
||||
// Yuri specific
|
||||
hipsEase: { pct: 0, min: 0, max: 10 },
|
||||
},
|
||||
}
|
||||
|
||||
export default config
|
||||
|
|
|
@ -1,53 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 25.3.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Calque_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 270 270" style="enable-background:new 0 0 270 270;" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{fill:#AEB5BC;stroke:#000000;stroke-miterlimit:10;}
|
||||
.st1{fill:#AEB5BC;stroke:#000000;stroke-linecap:square;stroke-linejoin:bevel;stroke-miterlimit:10;}
|
||||
.st2{fill:#DFE2E5;stroke:#000000;stroke-miterlimit:10;}
|
||||
.st3{fill:none;stroke:#000000;stroke-miterlimit:10;}
|
||||
.st4{fill:#C1C1C1;stroke:#000000;stroke-miterlimit:10;}
|
||||
</style>
|
||||
<g id="Calque_1_1_">
|
||||
<path class="st0" d="M53.2,50.2c0,0,19.9,58.7,35-1.6"/>
|
||||
<polygon class="st1" points="19.7,242.9 68.7,252.9 117.6,242.9 68.6,186.4 "/>
|
||||
<g>
|
||||
<path class="st2" d="M24.3,79.2l-4.6,163.7c16.8,2.2,52.6-28.7,52.6-28.7c28.8-29,28.4-98.7,28.4-98.7s-6.3-56.1-8.1-61.1
|
||||
C91,49.4,88,51,88,51c-18.3,59.9-37.2-9.6-37.2-9.6c-17,1.1-15.7,0.9-27.2,5.1C15.8,49.4,24.3,79.2,24.3,79.2z"/>
|
||||
<line class="st3" x1="22.2" y1="149.5" x2="69.7" y2="216.6"/>
|
||||
</g>
|
||||
<path class="st2" d="M189.5,34.4c-11.9,16-10.7,6-32.8,12c-5.4,58.8-10.1,196.5-10.1,196.5l54.8,10.1l54.9-9.9
|
||||
c0,0-4.5-137.8-10-196.6c-24.4-8.5-21.9,3.9-33.7-12h-0.2h-22.7L189.5,34.4z M86.5,41.4c0,0-6.1,69.3-37.2,9.6c0,0-2.9-1.6-4.6,3.4
|
||||
c0,0.9,0,0.6,0,0.6s5.9,111.9,25,161.6c0,0,29.2,27.8,47.9,26.3L113,79.2c0,0,8.6-23.7,3-30.6C111.2,42.8,102.7,42.5,86.5,41.4z
|
||||
M68.6,217.6l46.4-68.1"/>
|
||||
<path class="st2" d="M23.6,46.5C13.1,49.8,12,62.2,10.4,74c-5.5,52.2-6.5,120-2.7,128.2l0,0H19l1.5-11.2c4.4-32,9-76.9,3.5-104.8
|
||||
c-0.3-1.7,1.6-3.8,1.6-7C25.7,59.7,23.6,46.5,23.6,46.5z M111.2,79.2c0,3.2,1.9,5.3,1.6,7c-5.5,27.9-0.9,72.8,3.5,104.8l1.5,11.2
|
||||
h11.3l0,0c3.8-8.2,2.8-76-2.7-128.2c-1.6-11.8-2.7-24.2-13.2-27.5C113.3,46.5,111.2,59.7,111.2,79.2z M156.6,46.5
|
||||
C146.1,49.8,145,62.2,143.4,74c-5.5,52.2-6.5,120-2.7,128.2l0,0H152l1.5-11.2c4.4-32,9-76.9,3.5-104.8c-0.3-1.7,1.6-3.8,1.6-7
|
||||
C158.7,59.7,156.6,46.5,156.6,46.5z M244.3,79.2c0,3.2,1.9,5.3,1.6,7c-5.5,27.9-0.9,72.8,3.5,104.8l1.5,11.2h11.3l0,0
|
||||
c3.8-8.2,2.8-76-2.7-128.2c-1.6-11.8-2.7-24.2-13.2-27.5C246.3,46.5,244.2,59.7,244.3,79.2z"/>
|
||||
<path class="st2" d="M84.1,52.3c3.6-7.4,5.7-8.6,9.1-9.2c5.4-2.7,7.5-0.2,8.9-2.1c0.7-0.9-3.1-1.4,0.6-4.3c1-0.8,0.4-2.4,0.4-4.4
|
||||
l-29.9,8.9c0.1,0.1,0.3,0.6,0.5,1.3l-28.6-9.3c-0.7-0.2-1.3,0.5-1,1.1c0.7,1.6,0.7,3.2-1.1,4.6c-1.8,1.4,2.2,3.5,5.1,4.5
|
||||
c1.4,0.9,4.8,6.8,5.8,7.6 M73.2,41.2C73.2,41.2,73.1,41.2,73.2,41.2L73.2,41.2z"/>
|
||||
<path class="st4" d="M72.1,44.1"/>
|
||||
<path class="st0" d="M84.7,53c-4.6-5.1-6.3-9.8,3.2-14c6.7-3.9,9.5-0.1,15.1-6.8c0.4-1.1,0.4-3.1-0.6-3.4
|
||||
c-4.8-4.9-57.3-6.3-59.4,3.4c1.9,8.2,16.1,9.7,10.9,20.1"/>
|
||||
<path class="st3" d="M86.5,39.6C72.2,36,61,36.7,52.1,41.8"/>
|
||||
<path class="st2" d="M171.7,29.3c-6.6,22.9,6.1,44.3,34,43.1c25.7-0.6,36.2-25.7,27.7-44C212.2,34.8,188.7,30.9,171.7,29.3z"/>
|
||||
<path class="st4" d="M212.6,31.7c0,5,1.2,9.8,0,15c-1.3,6.1-0.9,10.5,0,13.1c0.6,1.9,0.1,7.3,0,11.4 M193.2,31.7c0,5,2,10,0,15
|
||||
c-2.3,5.9-2.2,10.3,0,13.1c1.2,1.6,0.1,7.3,0,11.4 M84,25.4v13.4 M61.5,25.8v12.6"/>
|
||||
<path class="st2" d="M53.7,50.6c0,0,17.5,45.6,31.8,3c0,0,2.5-5.6,4.6-1.3s-1,15.1-4.3,22.3c-17.5,38-35.2-21.2-35.2-21.2"/>
|
||||
<path class="st3" d="M53,65.1c-0.1,6.4,11.4,51.6,32.3,16.9"/>
|
||||
<path class="st3" d="M56.1,83.3c-0.4,7.3,17.6,31.3,33.8-1.3"/>
|
||||
<circle cx="47.9" cy="54.7" r="1.7"/>
|
||||
<circle cx="88" cy="55" r="1.7"/>
|
||||
<path class="st3" d="M49.2,51c1.4,1.8,3.6,8.7,3.6,8.7"/>
|
||||
</g>
|
||||
<g id="Calque_2_1_">
|
||||
</g>
|
||||
<line class="st3" x1="156.7" y1="161.7" x2="155.6" y2="243.9"/>
|
||||
<line class="st3" x1="245.7" y1="164.5" x2="248.4" y2="244"/>
|
||||
<path class="st3" d="M23.9,48.6c0,0,10.9-3.9,24.2-5.2"/>
|
||||
<path class="st3" d="M93.2,43.1c0,0,13.6,1.4,19.8,5.5"/>
|
||||
</svg>
|
Before Width: | Height: | Size: 3.8 KiB |
Loading…
Add table
Add a link
Reference in a new issue