(ends: number[][], point: number[], start?: boolean)
| 171 | } |
| 172 | |
| 173 | function addBodyEnd(ends: number[][], point: number[], start?: boolean) { |
| 174 | const point1 = point.slice(); |
| 175 | const point2 = point.slice(); |
| 176 | point1[cDimIdx] += halfWidth; |
| 177 | point2[cDimIdx] -= halfWidth; |
| 178 | start |
| 179 | ? ends.push(point1, point2) |
| 180 | : ends.push(point2, point1); |
| 181 | } |
| 182 | |
| 183 | function layEndLine(ends: number[][], endCenter: number[]) { |
| 184 | const from = endCenter.slice(); |
no outgoing calls
no test coverage detected
searching dependent graphs…