* Get block length of each line. A block is the length of dash line and space. * For example, a line with [4, 1] has a dash line of 4 and a space of 1 after * that, so the block length of this line is 5. * * @param {number[][]} dash dash array of X or Y * @return {number[]} block length of each
(dash: number[][])
| 421 | * @return {number[]} block length of each line |
| 422 | */ |
| 423 | function getLineBlockLengthX(dash: number[][]): number[] { |
| 424 | return map(dash, function (line) { |
| 425 | return getLineBlockLengthY(line); |
| 426 | }); |
| 427 | } |
| 428 | |
| 429 | function getLineBlockLengthY(dash: number[]): number { |
| 430 | let blockLength = 0; |
no test coverage detected
searching dependent graphs…