modern-canvas 0.27.12 → 0.27.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/math/Aabb2D.d.ts +8 -0
- package/dist/index.js +620 -614
- package/package.json +1 -1
|
@@ -34,6 +34,14 @@ export declare class Aabb2D implements RectangleLike {
|
|
|
34
34
|
constructor(pointArray: Vector2Like[]);
|
|
35
35
|
constructor(min: Vector2Like, size: Vector2Like);
|
|
36
36
|
constructor(x: number, y: number, width: number, height: number);
|
|
37
|
+
/**
|
|
38
|
+
* `min`/`size` and `max` mirror each other through Vector2's onUpdate hooks, and the
|
|
39
|
+
* recursion normally stops because `Vector2.set` skips the callback when the value is
|
|
40
|
+
* unchanged. That check is `!==`, so a single NaN anywhere in the box never compares
|
|
41
|
+
* equal to itself and `_updateMax` ⇄ `_updateSize` bounce until the stack blows —
|
|
42
|
+
* which takes the render loop (and the WebGL context) down with it.
|
|
43
|
+
* Collapsing non-finite results to 0 keeps the mirror consistent and terminates.
|
|
44
|
+
*/
|
|
37
45
|
protected _updateSize(): this;
|
|
38
46
|
protected _updateMax(): this;
|
|
39
47
|
overlap(rect: Aabb2D, axis?: 'x' | 'y'): boolean;
|