(ranges: Map<string, { min: number; max: number }>, k: string, n: number)
| 505 | } |
| 506 | |
| 507 | function bumpRange(ranges: Map<string, { min: number; max: number }>, k: string, n: number): void { |
| 508 | const r = ranges.get(k); |
| 509 | if (r) { |
| 510 | r.min = Math.min(r.min, n); |
| 511 | r.max = Math.max(r.max, n); |
| 512 | } else ranges.set(k, { min: n, max: n }); |
| 513 | } |
| 514 | |
| 515 | // A drawn stroke must actually move across the canvas. A position tween whose |
| 516 | // points never leave the start (an opacity/scale tween merely carrying a static |
no test coverage detected