(ctx: CanvasRenderingContext2D, shape: LargeBoxPathShape)
| 362 | } |
| 363 | |
| 364 | buildPath(ctx: CanvasRenderingContext2D, shape: LargeBoxPathShape) { |
| 365 | // Drawing lines is more efficient than drawing |
| 366 | // a whole line or drawing rects. |
| 367 | const points = shape.points; |
| 368 | for (let i = 0; i < points.length;) { |
| 369 | if (this.__sign === points[i++]) { |
| 370 | const x = points[i++]; |
| 371 | ctx.moveTo(x, points[i++]); |
| 372 | ctx.lineTo(x, points[i++]); |
| 373 | } |
| 374 | else { |
| 375 | i += 3; |
| 376 | } |
| 377 | } |
| 378 | } |
| 379 | } |
| 380 | |
| 381 | function createLarge( |