MCPcopy Create free account
hub / github.com/alefore/knit / constructor

Method constructor

src/scarf_pattern_factory.ts:44–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42 symmetricInput: PatternFactoryInput;
43
44 constructor() {
45 this.rowsInput = new PatternFactoryInput(
46 'Total Length',
47 'How long should the scarf measure from tip to top along its ' +
48 'longest dimension?',
49 412, 'rows');
50 this.centerLengthInput = new PatternFactoryInput(
51 'Center Length',
52 'How many additional rows should the scarf have in the center part ' +
53 '(between increases and decreases) along the long dimension?',
54 0, 'rows');
55 this.centerWidthInput = new PatternFactoryInput(
56 'Center Width',
57 'How many stitches should the scarf have in the center part, ' +
58 'between the increases and decreases?' +
59 ' Does not include the 6 stitches for the i-cord border.',
60 25, 'stitches');
61 this.textureInput = new PatternFactoryInput(
62 'Texture', 'What type of texture do you want?',
63 Array.from(texturesMap.keys())[0] as string, null,
64 Array.from(texturesMap.keys()));
65 this.shapeInput = new PatternFactoryInput(
66 'Shape', 'What general shape would you like?',
67 Object.keys(ScarfPatternFactory.cubicBezierFocalPoints)[0] as string,
68 null, Object.keys(ScarfPatternFactory.cubicBezierFocalPoints));
69 this.symmetricInput = new PatternFactoryInput(
70 'Symmetric', 'Should the increases and decreases be symmetric?',
71 TRUE_STRING, null, [TRUE_STRING, FALSE_STRING]);
72 }
73
74 getInputs(): PatternFactoryInput[] {
75 return [

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected