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

Method constructor

src/cable_pattern_factory.ts:274–299  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

272
273
274 constructor() {
275 this.cableLengthInput = new PatternFactoryInput(
276 'Cable Length', 'How long should the pattern be?', 1,
277 'cable pattern rows');
278 this.cableCountInput = new PatternFactoryInput(
279 'Cable Count', 'How many cables do you want?', 5, 'cables');
280 this.rowsBetweenCablesInput = new PatternFactoryInput(
281 'Rows Between Cables', 'How many rows between cables?', 2, 'rows');
282 this.cableEdgeRowsInput = new PatternFactoryInput(
283 'Cable edge rows', 'Length of the edge of each cable', 2, 'rows');
284 this.smoothingRowsInput = new PatternFactoryInput(
285 'Single-stitch jump rows',
286 'For how many rows should cables only jump a single stitch?', 1,
287 'rows');
288 this.innerCablesInput = new PatternFactoryInput(
289 'Inner Cables',
290 'Should we enable inner cables? These only works with few parameters.',
291 'Disable', null, ['Enable', 'Disable']);
292 this.marginTypeInput = new PatternFactoryInput(
293 'Margin Type', 'Type of margin to use.', 'None', null,
294 ['None', 'ICord', 'Knit']);
295 this.marginDistanceInput = new PatternFactoryInput(
296 'Margin Distance',
297 'Number of purl stitches between the cable and its margin.', 2,
298 'stitches');
299 }
300
301 getInputs(): PatternFactoryInput[] {
302 return [

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected