(
cables: number, rowsBetweenCables: number, cableEdgeRows: number,
smoothingRows: number, innerCables: boolean,
marginType: 'None' | 'ICord' | 'Knit', marginDistance: number)
| 19 | marginDistance: number; |
| 20 | |
| 21 | constructor( |
| 22 | cables: number, rowsBetweenCables: number, cableEdgeRows: number, |
| 23 | smoothingRows: number, innerCables: boolean, |
| 24 | marginType: 'None' | 'ICord' | 'Knit', marginDistance: number) { |
| 25 | this.cables = cables; |
| 26 | this.innerCables = innerCables; |
| 27 | this.rowsBetweenCables = rowsBetweenCables; |
| 28 | this.cableEdgeRows = cableEdgeRows; |
| 29 | this.smoothingRows = smoothingRows; |
| 30 | this.rowsCount = cables * (this.cableEdgeRows + this.rowsBetweenCables); |
| 31 | this.rowsWidth = this.#rowsWidth(); |
| 32 | this.positions = this.#cablePositions(); |
| 33 | this.positionsInnerCables = this.#innerCablePositions(); |
| 34 | this.marginType = marginType; |
| 35 | this.marginDistance = marginDistance; |
| 36 | } |
| 37 | |
| 38 | #rowsWidth(): number { |
| 39 | const moveRows = 1 + this.rowsCount / 2 - this.cableEdgeRows; |
nothing calls this directly
no test coverage detected