2022-01-16 17:26:52 +01:00
|
|
|
import { version } from '../package.json'
|
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'plugintest',
|
|
|
|
version,
|
|
|
|
design: 'Joost De Cock',
|
|
|
|
code: 'Joost De Cock',
|
|
|
|
department: 'accessories',
|
|
|
|
type: 'pattern',
|
|
|
|
difficulty: 1,
|
|
|
|
optionGroups: {
|
|
|
|
tests: [
|
|
|
|
'plugin',
|
|
|
|
],
|
|
|
|
banner: [
|
|
|
|
'bannerDy',
|
|
|
|
'bannerSpaces',
|
|
|
|
'bannerRepeat',
|
|
|
|
],
|
|
|
|
bartack: [
|
|
|
|
'bartackLength',
|
|
|
|
'bartackAngle',
|
|
|
|
'bartackDensity',
|
|
|
|
'bartackWidth',
|
|
|
|
'bartackStart',
|
|
|
|
'bartackEnd',
|
2022-01-17 18:14:05 +01:00
|
|
|
],
|
2022-01-18 12:16:09 +01:00
|
|
|
buttons: [ 'buttonsScale', 'buttonsRotate' ],
|
2022-01-17 18:14:05 +01:00
|
|
|
cutonfold: [
|
|
|
|
'cutonfoldMargin',
|
|
|
|
'cutonfoldOffset',
|
|
|
|
'cutonfoldGrainline',
|
|
|
|
],
|
2022-01-18 08:30:33 +01:00
|
|
|
dimension: [
|
|
|
|
'dimensionCustomText',
|
|
|
|
'dimensionD',
|
|
|
|
'dimensionEndMarker',
|
|
|
|
'dimensionStartMarker',
|
|
|
|
],
|
2022-01-18 09:03:16 +01:00
|
|
|
flip: [ 'flipAxis' ],
|
2022-01-18 09:13:18 +01:00
|
|
|
gore: [ 'goreRadius', 'goreGoreNumber', 'goreExtraLength' ],
|
2022-01-18 12:16:09 +01:00
|
|
|
logo: [ 'logoScale', 'logoRotate' ],
|
2022-01-18 14:12:36 +01:00
|
|
|
mirror: [ 'mirrorLine', 'mirrorClone' ],
|
2022-01-18 14:36:02 +01:00
|
|
|
round: [ 'roundRadius', 'roundRender' ],
|
2022-01-18 14:40:26 +01:00
|
|
|
scalebox: [ 'scaleboxType' ],
|
2022-01-18 14:58:10 +01:00
|
|
|
sprinkle: [ 'sprinkleScale', 'sprinkleRotate', 'sprinkleSnippet' ],
|
2022-01-16 17:26:52 +01:00
|
|
|
},
|
|
|
|
measurements: [],
|
|
|
|
parts: [
|
|
|
|
'banner',
|
|
|
|
'bartack',
|
2022-01-16 19:01:54 +01:00
|
|
|
'buttons',
|
2022-01-17 18:14:05 +01:00
|
|
|
'cutonfold',
|
2022-01-18 08:30:33 +01:00
|
|
|
'dimension',
|
2022-01-18 09:03:16 +01:00
|
|
|
'flip',
|
2022-01-18 09:13:18 +01:00
|
|
|
'gore',
|
2022-01-18 10:14:50 +01:00
|
|
|
'grainline',
|
2022-01-18 12:07:37 +01:00
|
|
|
'i18n',
|
2022-01-18 12:16:09 +01:00
|
|
|
'logo',
|
2022-01-18 12:24:07 +01:00
|
|
|
'measurements',
|
2022-01-18 14:12:36 +01:00
|
|
|
'mirror',
|
2022-01-18 14:27:01 +01:00
|
|
|
'notches',
|
2022-01-18 14:36:02 +01:00
|
|
|
'round',
|
2022-01-18 14:40:26 +01:00
|
|
|
'scalebox',
|
2022-01-18 14:58:10 +01:00
|
|
|
'sprinkle',
|
2022-01-16 17:26:52 +01:00
|
|
|
//'svgattr',
|
|
|
|
//'theme',
|
|
|
|
//'title',
|
|
|
|
//'validate',
|
|
|
|
//'versionfreeSvg',
|
|
|
|
],
|
|
|
|
options: {
|
|
|
|
plugin: {
|
2022-01-18 14:58:10 +01:00
|
|
|
dflt: 'sprinkle',
|
2022-01-16 17:26:52 +01:00
|
|
|
list: [
|
2022-01-18 08:30:33 +01:00
|
|
|
'all',
|
2022-01-16 17:26:52 +01:00
|
|
|
'banner',
|
|
|
|
'bartack',
|
|
|
|
'buttons',
|
|
|
|
'cutonfold',
|
|
|
|
'dimension',
|
|
|
|
'flip',
|
|
|
|
'gore',
|
|
|
|
'grainline',
|
|
|
|
'i18n',
|
|
|
|
'logo',
|
|
|
|
'measurements',
|
|
|
|
'mirror',
|
|
|
|
'notches',
|
|
|
|
'round',
|
|
|
|
'scalebox',
|
|
|
|
'sprinkle',
|
|
|
|
'svgattr',
|
|
|
|
'theme',
|
|
|
|
'title',
|
|
|
|
'validate',
|
|
|
|
'versionfreeSvg',
|
|
|
|
]
|
|
|
|
},
|
|
|
|
// Banner options
|
|
|
|
bannerDy: { count: -1, min: -15, max: 15 },
|
|
|
|
bannerSpaces: { count: 10, min: 0, max: 20 },
|
|
|
|
bannerRepeat: { count: 10, min: 1, max: 20 },
|
|
|
|
// Bartack options
|
|
|
|
bartackLength: {count: 15, min: 2, max: 100 },
|
|
|
|
bartackAngle: {count: 0, min: -360, max: 360 },
|
|
|
|
bartackDensity: {count: 3, min: 1, max: 5 },
|
|
|
|
bartackWidth: {count: 3, min: 1, max: 5 },
|
|
|
|
bartackStart: {pct: 25, min: 0, max: 100 },
|
|
|
|
bartackEnd: {pct: 75, min: 0, max: 100 },
|
2022-01-18 12:16:09 +01:00
|
|
|
// Buttons options
|
|
|
|
buttonsScale: { pct: 100, min: 10, max: 200 },
|
|
|
|
buttonsRotate: { deg: 0, min: -360, max: 360 },
|
2022-01-17 18:14:05 +01:00
|
|
|
// Cutonfold options
|
|
|
|
cutonfoldMargin: { count: 5, min: 0, max: 25 },
|
|
|
|
cutonfoldOffset: { count: 15, min: 0, max: 100 },
|
|
|
|
cutonfoldGrainline: { bool: false },
|
2022-01-18 08:30:33 +01:00
|
|
|
// Dimension options
|
|
|
|
dimensionCustomText: { bool: false },
|
|
|
|
dimensionD: { count: 10, min: -20, max: 20 },
|
|
|
|
dimensionEndMarker: { bool: true },
|
|
|
|
dimensionStartMarker: { bool: true },
|
2022-01-18 09:03:16 +01:00
|
|
|
// Flip options
|
|
|
|
flipAxis: { dflt: 'x', list: ['x', 'y'] },
|
2022-01-18 09:13:18 +01:00
|
|
|
// Gore options
|
|
|
|
goreRadius: { count: 20, min: 10, max: 30 },
|
|
|
|
goreGoreNumber: { count: 6, min: 4, max: 8 },
|
|
|
|
goreExtraLength: { count: 10, min: 0, max: 20 },
|
2022-01-18 12:16:09 +01:00
|
|
|
// Logo options
|
|
|
|
logoScale: { pct: 100, min: 10, max: 200 },
|
|
|
|
logoRotate: { deg: 0, min: -360, max: 360 },
|
2022-01-18 14:12:36 +01:00
|
|
|
// Mirror options
|
|
|
|
mirrorLine: { dflt: 'a', list: ['a', 'b', 'none' ] },
|
|
|
|
mirrorClone: { bool: true },
|
2022-01-18 14:36:02 +01:00
|
|
|
// Round options
|
|
|
|
roundRadius: { count: 10, min: 0, max: 50 },
|
|
|
|
roundRender: { bool: true },
|
2022-01-18 14:58:10 +01:00
|
|
|
scaleboxType: { dflt: 'scalebox' , list: ['scalebox', 'miniscale'] },
|
|
|
|
// Logo options
|
|
|
|
sprinkleScale: { pct: 100, min: 10, max: 200 },
|
|
|
|
sprinkleRotate: { deg: 0, min: -360, max: 360 },
|
|
|
|
sprinkleSnippet: {
|
|
|
|
dflt: 'notch',
|
|
|
|
list: [
|
|
|
|
'notch',
|
|
|
|
'bnotch',
|
|
|
|
'button',
|
|
|
|
'buttonhole',
|
|
|
|
'buttonhole-start',
|
|
|
|
'buttonhole-end',
|
|
|
|
'snap-stud',
|
|
|
|
'snap-socket',
|
|
|
|
'logo',
|
|
|
|
]
|
|
|
|
},
|
2022-01-18 09:03:16 +01:00
|
|
|
}
|
2022-01-16 17:26:52 +01:00
|
|
|
}
|