1
0
Fork 0
freesewing/designs/octoplushy/config/index.js

48 lines
1.4 KiB
JavaScript
Raw Normal View History

2022-07-29 23:19:23 +00:00
import { version } from '../package.json'
2022-07-16 04:06:26 +00:00
export default {
name: 'octoplushy',
2022-07-29 23:19:23 +00:00
version: version,
design: 'Wouter Van Wageningen',
code: 'Wouter Van Wageningen',
department: 'accessories',
type: 'pattern',
difficulty: 5,
2022-07-16 04:06:26 +00:00
optionGroups: {
2022-07-29 23:19:23 +00:00
style: ['size','type','legWidth','legLength','neckWidth','legTaper','bottomTopLegRatio','bottomLegReduction','bottomLegReductionPlushy'],
2022-07-16 04:06:26 +00:00
},
measurements: [],
2022-07-29 23:19:23 +00:00
parts: ['headSection0', 'headSection1', 'legSection0', 'legSection1', 'eye0', 'eye1', 'eye2'],
2022-07-16 04:06:26 +00:00
dependencies: {
2022-07-21 02:42:01 +00:00
eye0: 'headSection0',
eye1: 'headSection0',
eye2: 'headSection0',
2022-07-16 04:06:26 +00:00
legSection0: 'headSection0',
2022-07-28 21:47:47 +00:00
legSection1: 'headSection1',
},
2022-07-16 04:06:26 +00:00
inject: {},
hide: [],
options: {
sizeConstant: 200,
size: { pct: 100, min: 5, max: 500 },
2022-07-28 21:47:47 +00:00
type: { dflt: 'octoplushy', list: ['octoplushy', 'octopus', 'squid'] },
2022-07-16 04:06:26 +00:00
legWidth: { pct: 15, min: 10, max: 30 },
legLength: { pct: 200, min: 100, max: 500 },
neckWidth: { pct: 25, min: 25, max: 45 },
legTaper: { pct: 25, min: 0, max: 50 },
bottomTopLegRatio: { pct: 87, min: 75, max: 100 },
2022-07-28 21:47:47 +00:00
bottomLegReduction: {
pct: 90,
min: 75,
max: 125,
hide: ({ options }) => options.type == 'octoplushy',
},
bottomLegReductionPlushy: {
pct: 80,
min: 75,
max: 125,
hide: ({ options }) => options.type != 'octoplushy',
},
2022-07-16 04:06:26 +00:00
},
}