@drincs/pixi-vn 0.9.7 → 0.9.9
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/{ContainerChild-B5yD0BI8.d.ts → ContainerChild-AjuVp3wW.d.ts} +4 -1
- package/dist/{ContainerChild-WzyxEjAc.d.cts → ContainerChild-BUFxM6Ya.d.cts} +4 -1
- package/dist/WebGLRenderer-CWVLYTYY.js +9 -0
- package/dist/WebGPURenderer-46NKQGBG.js +10 -0
- package/dist/{browserAll-2HD5EH7K.js → browserAll-S4EPEXZD.js} +5 -5
- package/dist/{chunk-PP5T5HEO.js → chunk-52ZSR3AN.js} +1 -1
- package/dist/{chunk-5VX2VTDZ.js → chunk-BJGKFUMU.js} +81 -27
- package/dist/{chunk-SAUNZQHZ.js → chunk-D753T42C.js} +1 -1
- package/dist/{chunk-ODIEVSQX.js → chunk-F74VVSHO.js} +3 -3
- package/dist/{chunk-6GJXIPNB.js → chunk-GEY6RTYO.js} +1 -1
- package/dist/{chunk-CAWOWL3P.js → chunk-IG7HSAEJ.js} +75 -34
- package/dist/{chunk-PP3SBC3C.js → chunk-KAHX5SKO.js} +18 -15
- package/dist/{chunk-WNOARCWH.js → chunk-LZNY6NEZ.js} +2 -2
- package/dist/{chunk-Z3NBKYVU.js → chunk-MQPMJVDR.js} +10 -9
- package/dist/{chunk-Y3WNBACN.js → chunk-R4J2U4HN.js} +2 -2
- package/dist/{chunk-NB4Q3GFK.js → chunk-RGKEAZTY.js} +256 -70
- package/dist/{chunk-73ID6GAW.js → chunk-UWBWDBB3.js} +2 -2
- package/dist/{chunk-TOG67Z7Q.js → chunk-V7WJOX65.js} +2 -2
- package/dist/{chunk-WS3FY4Q6.js → chunk-X55ALTH7.js} +2 -2
- package/dist/{chunk-5JREOVCG.js → chunk-XGGTEP7V.js} +1 -1
- package/dist/classes/CharacterBaseModel.cjs +413 -258
- package/dist/classes/CharacterBaseModel.js +16 -17
- package/dist/classes/CharacterStoredClass.cjs +413 -258
- package/dist/classes/CharacterStoredClass.js +16 -17
- package/dist/classes/ChoiceMenuOption.cjs +341 -188
- package/dist/classes/ChoiceMenuOption.js +16 -17
- package/dist/classes/Sound.cjs +413 -258
- package/dist/classes/Sound.js +16 -17
- package/dist/classes/StoredClassModel.cjs +413 -258
- package/dist/classes/StoredClassModel.js +16 -17
- package/dist/classes/canvas/AdditionalPositions.cjs +39329 -963
- package/dist/classes/canvas/AdditionalPositions.d.cts +3 -1
- package/dist/classes/canvas/AdditionalPositions.d.ts +3 -1
- package/dist/classes/canvas/AdditionalPositions.js +41 -10
- package/dist/classes/canvas/AnchorExtension.cjs +92 -48
- package/dist/classes/canvas/AnchorExtension.js +8 -8
- package/dist/classes/canvas/CanvasBaseItem.cjs +92 -48
- package/dist/classes/canvas/CanvasBaseItem.d.cts +1 -1
- package/dist/classes/canvas/CanvasBaseItem.d.ts +1 -1
- package/dist/classes/canvas/CanvasBaseItem.js +9 -9
- package/dist/classes/canvas/Container.cjs +405 -252
- package/dist/classes/canvas/Container.d.cts +1 -1
- package/dist/classes/canvas/Container.d.ts +1 -1
- package/dist/classes/canvas/Container.js +16 -17
- package/dist/classes/canvas/ImageContainer.cjs +341 -186
- package/dist/classes/canvas/ImageContainer.d.cts +1 -1
- package/dist/classes/canvas/ImageContainer.d.ts +1 -1
- package/dist/classes/canvas/ImageContainer.js +16 -17
- package/dist/classes/canvas/ImageSprite.cjs +3049 -2894
- package/dist/classes/canvas/ImageSprite.d.cts +1 -1
- package/dist/classes/canvas/ImageSprite.d.ts +1 -1
- package/dist/classes/canvas/ImageSprite.js +16 -17
- package/dist/classes/canvas/Sprite.cjs +413 -262
- package/dist/classes/canvas/Sprite.d.cts +1 -1
- package/dist/classes/canvas/Sprite.d.ts +1 -1
- package/dist/classes/canvas/Sprite.js +16 -17
- package/dist/classes/canvas/Text.cjs +335 -182
- package/dist/classes/canvas/Text.d.cts +1 -1
- package/dist/classes/canvas/Text.d.ts +1 -1
- package/dist/classes/canvas/Text.js +16 -17
- package/dist/classes/canvas/VideoSprite.cjs +3046 -2889
- package/dist/classes/canvas/VideoSprite.d.cts +4 -2
- package/dist/classes/canvas/VideoSprite.d.ts +4 -2
- package/dist/classes/canvas/VideoSprite.js +16 -17
- package/dist/classes/index.cjs +415 -262
- package/dist/classes/index.d.cts +1 -1
- package/dist/classes/index.d.ts +1 -1
- package/dist/classes/index.js +17 -18
- package/dist/classes/ticker/FadeAlphaTicker.cjs +341 -188
- package/dist/classes/ticker/FadeAlphaTicker.js +16 -17
- package/dist/classes/ticker/MoveTicker.cjs +3572 -3421
- package/dist/classes/ticker/MoveTicker.js +16 -17
- package/dist/classes/ticker/RotateTicker.cjs +341 -188
- package/dist/classes/ticker/RotateTicker.js +16 -17
- package/dist/classes/ticker/TickerBase.cjs +413 -258
- package/dist/classes/ticker/TickerBase.js +16 -17
- package/dist/classes/ticker/ZoomTicker.cjs +341 -188
- package/dist/classes/ticker/ZoomTicker.js +16 -17
- package/dist/classes/ticker/index.cjs +413 -262
- package/dist/classes/ticker/index.js +16 -17
- package/dist/constants.cjs +93 -49
- package/dist/constants.d.cts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +10 -10
- package/dist/decorators/canvas-element-decorator.cjs +405 -252
- package/dist/decorators/canvas-element-decorator.d.cts +1 -1
- package/dist/decorators/canvas-element-decorator.d.ts +1 -1
- package/dist/decorators/canvas-element-decorator.js +16 -17
- package/dist/decorators/event-decorator.d.cts +1 -1
- package/dist/decorators/event-decorator.d.ts +1 -1
- package/dist/decorators/index.cjs +341 -188
- package/dist/decorators/index.d.cts +1 -1
- package/dist/decorators/index.d.ts +1 -1
- package/dist/decorators/index.js +16 -17
- package/dist/decorators/label-decorator.cjs +413 -260
- package/dist/decorators/label-decorator.js +16 -17
- package/dist/functions/canvas/canvas-effect.cjs +410 -257
- package/dist/functions/canvas/canvas-effect.js +16 -17
- package/dist/functions/canvas/canvas-memory-utility.cjs +405 -252
- package/dist/functions/canvas/canvas-memory-utility.d.cts +1 -1
- package/dist/functions/canvas/canvas-memory-utility.d.ts +1 -1
- package/dist/functions/canvas/canvas-memory-utility.js +16 -17
- package/dist/functions/canvas/canvas-transition.cjs +413 -260
- package/dist/functions/canvas/canvas-transition.d.cts +1 -1
- package/dist/functions/canvas/canvas-transition.d.ts +1 -1
- package/dist/functions/canvas/canvas-transition.js +16 -17
- package/dist/functions/canvas/canvas-utility.cjs +413 -258
- package/dist/functions/canvas/canvas-utility.js +16 -17
- package/dist/functions/canvas/image-container-utility.cjs +416 -262
- package/dist/functions/canvas/image-container-utility.d.cts +5 -3
- package/dist/functions/canvas/image-container-utility.d.ts +5 -3
- package/dist/functions/canvas/image-container-utility.js +16 -17
- package/dist/functions/canvas/image-utility.cjs +413 -260
- package/dist/functions/canvas/image-utility.d.cts +5 -3
- package/dist/functions/canvas/image-utility.d.ts +5 -3
- package/dist/functions/canvas/image-utility.js +16 -17
- package/dist/functions/canvas/video-utility.cjs +4701 -4536
- package/dist/functions/canvas/video-utility.d.cts +5 -3
- package/dist/functions/canvas/video-utility.d.ts +5 -3
- package/dist/functions/canvas/video-utility.js +16 -17
- package/dist/functions/dialogue-utility.cjs +413 -258
- package/dist/functions/dialogue-utility.js +16 -17
- package/dist/functions/flags-utility.cjs +413 -258
- package/dist/functions/flags-utility.js +16 -17
- package/dist/functions/game-utility.cjs +413 -258
- package/dist/functions/game-utility.js +16 -17
- package/dist/functions/index.cjs +426 -266
- package/dist/functions/index.d.cts +1 -1
- package/dist/functions/index.d.ts +1 -1
- package/dist/functions/index.js +16 -17
- package/dist/functions/saves-utility.cjs +413 -258
- package/dist/functions/saves-utility.d.cts +1 -1
- package/dist/functions/saves-utility.d.ts +1 -1
- package/dist/functions/saves-utility.js +16 -17
- package/dist/functions/sound-utility.cjs +92 -48
- package/dist/functions/sound-utility.js +10 -10
- package/dist/functions/texture-utility.cjs +335 -182
- package/dist/functions/texture-utility.d.cts +1 -1
- package/dist/functions/texture-utility.d.ts +1 -1
- package/dist/functions/texture-utility.js +16 -17
- package/dist/index.cjs +300 -138
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +20 -21
- package/dist/interface/HistoryStep.d.cts +1 -1
- package/dist/interface/HistoryStep.d.ts +1 -1
- package/dist/interface/SaveData.d.cts +1 -1
- package/dist/interface/SaveData.d.ts +1 -1
- package/dist/interface/canvas/canvas-memory.d.cts +1 -1
- package/dist/interface/canvas/canvas-memory.d.ts +1 -1
- package/dist/interface/canvas/canvas-options.d.cts +1 -1
- package/dist/interface/canvas/canvas-options.d.ts +1 -1
- package/dist/interface/export/ExportedCanvas.d.cts +1 -1
- package/dist/interface/export/ExportedCanvas.d.ts +1 -1
- package/dist/interface/export/ExportedStep.d.cts +1 -1
- package/dist/interface/export/ExportedStep.d.ts +1 -1
- package/dist/interface/index.d.cts +1 -1
- package/dist/interface/index.d.ts +1 -1
- package/dist/labels/BaseCanvasElementTestLabel.cjs +413 -260
- package/dist/labels/BaseCanvasElementTestLabel.js +16 -17
- package/dist/labels/CanvasEventsTestLabel.cjs +413 -260
- package/dist/labels/CanvasEventsTestLabel.d.cts +1 -1
- package/dist/labels/CanvasEventsTestLabel.d.ts +1 -1
- package/dist/labels/CanvasEventsTestLabel.js +16 -17
- package/dist/labels/CustomTickerCanvasElementTestLabel.cjs +284 -131
- package/dist/labels/CustomTickerCanvasElementTestLabel.js +16 -17
- package/dist/labels/ImagesAnimationsTestLabel.cjs +413 -260
- package/dist/labels/ImagesAnimationsTestLabel.js +16 -17
- package/dist/labels/InputTestLabel.cjs +341 -188
- package/dist/labels/InputTestLabel.js +16 -17
- package/dist/labels/MarkdownTest.cjs +341 -188
- package/dist/labels/MarkdownTest.js +16 -17
- package/dist/labels/SoundTestLabel.cjs +341 -188
- package/dist/labels/SoundTestLabel.js +16 -17
- package/dist/labels/StartLabel.cjs +413 -260
- package/dist/labels/StartLabel.js +16 -17
- package/dist/labels/StepLabelTest.cjs +341 -188
- package/dist/labels/StepLabelTest.js +16 -17
- package/dist/labels/VideoTestLabel.cjs +341 -188
- package/dist/labels/VideoTestLabel.js +16 -17
- package/dist/labels/index.cjs +413 -260
- package/dist/labels/index.js +16 -17
- package/dist/{lib-6FCVILMQ.js → lib-EBGYUC35.js} +8 -8
- package/dist/managers/CanvasManager.cjs +413 -258
- package/dist/managers/CanvasManager.d.cts +1 -1
- package/dist/managers/CanvasManager.d.ts +1 -1
- package/dist/managers/CanvasManager.js +16 -17
- package/dist/managers/CanvasManagerStatic.cjs +176 -77
- package/dist/managers/CanvasManagerStatic.d.cts +1 -1
- package/dist/managers/CanvasManagerStatic.d.ts +1 -1
- package/dist/managers/CanvasManagerStatic.js +9 -9
- package/dist/managers/NarrationManager.cjs +413 -258
- package/dist/managers/NarrationManager.d.cts +2 -1
- package/dist/managers/NarrationManager.d.ts +2 -1
- package/dist/managers/NarrationManager.js +16 -17
- package/dist/managers/NarrationManagerStatic.cjs +413 -258
- package/dist/managers/NarrationManagerStatic.d.cts +1 -1
- package/dist/managers/NarrationManagerStatic.d.ts +1 -1
- package/dist/managers/NarrationManagerStatic.js +16 -17
- package/dist/managers/SoundManager.cjs +413 -258
- package/dist/managers/SoundManager.js +16 -17
- package/dist/managers/StorageManager.cjs +413 -258
- package/dist/managers/StorageManager.js +16 -17
- package/dist/managers/index.cjs +413 -258
- package/dist/managers/index.d.cts +1 -1
- package/dist/managers/index.d.ts +1 -1
- package/dist/managers/index.js +16 -17
- package/dist/types/ContainerChild.d.cts +1 -1
- package/dist/types/ContainerChild.d.ts +1 -1
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/ticker/MoveTickerProps.d.cts +8 -0
- package/dist/types/ticker/MoveTickerProps.d.ts +8 -0
- package/dist/webworkerAll-XFBJBJMM.js +5 -0
- package/package.json +1 -1
- package/dist/WebGLRenderer-U57ZOBH6.js +0 -9
- package/dist/WebGPURenderer-EYIZ7IXV.js +0 -10
- package/dist/chunk-IRUKNG2Y.js +0 -130
- package/dist/webworkerAll-GSRT3S6X.js +0 -5
|
@@ -200,6 +200,7 @@ declare class Sprite<Memory extends SpriteOptions & CanvasBaseItemMemory = Sprit
|
|
|
200
200
|
declare function getMemorySprite<T extends Sprite<any>>(element: T | Sprite<any>): SpriteMemory;
|
|
201
201
|
declare function setMemorySprite<Memory extends SpriteBaseMemory>(element: Sprite<any>, memory: Memory | {}, options?: {
|
|
202
202
|
half?: () => Promise<void>;
|
|
203
|
+
ignoreTexture?: boolean;
|
|
203
204
|
}): Promise<void>;
|
|
204
205
|
|
|
205
206
|
/**
|
|
@@ -264,7 +265,9 @@ declare class ImageSprite<Memory extends ImageSpriteMemory = ImageSpriteMemory>
|
|
|
264
265
|
get y(): number;
|
|
265
266
|
set y(value: number);
|
|
266
267
|
}
|
|
267
|
-
declare function setMemoryImageSprite(element: ImageSprite, memory: ImageSpriteMemory | {}
|
|
268
|
+
declare function setMemoryImageSprite(element: ImageSprite, memory: ImageSpriteMemory | {}, options?: {
|
|
269
|
+
ignoreTexture?: boolean;
|
|
270
|
+
}): Promise<void>;
|
|
268
271
|
|
|
269
272
|
type ContainerChild = Container & CanvasBaseItem<any>;
|
|
270
273
|
|
|
@@ -200,6 +200,7 @@ declare class Sprite<Memory extends SpriteOptions & CanvasBaseItemMemory = Sprit
|
|
|
200
200
|
declare function getMemorySprite<T extends Sprite<any>>(element: T | Sprite<any>): SpriteMemory;
|
|
201
201
|
declare function setMemorySprite<Memory extends SpriteBaseMemory>(element: Sprite<any>, memory: Memory | {}, options?: {
|
|
202
202
|
half?: () => Promise<void>;
|
|
203
|
+
ignoreTexture?: boolean;
|
|
203
204
|
}): Promise<void>;
|
|
204
205
|
|
|
205
206
|
/**
|
|
@@ -264,7 +265,9 @@ declare class ImageSprite<Memory extends ImageSpriteMemory = ImageSpriteMemory>
|
|
|
264
265
|
get y(): number;
|
|
265
266
|
set y(value: number);
|
|
266
267
|
}
|
|
267
|
-
declare function setMemoryImageSprite(element: ImageSprite, memory: ImageSpriteMemory | {}
|
|
268
|
+
declare function setMemoryImageSprite(element: ImageSprite, memory: ImageSpriteMemory | {}, options?: {
|
|
269
|
+
ignoreTexture?: boolean;
|
|
270
|
+
}): Promise<void>;
|
|
268
271
|
|
|
269
272
|
type ContainerChild = Container & CanvasBaseItem<any>;
|
|
270
273
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-R4J2U4HN.js";
|
|
2
2
|
import {
|
|
3
3
|
AccessibilitySystem,
|
|
4
4
|
EventSystem,
|
|
5
5
|
FederatedContainer,
|
|
6
6
|
accessibilityTarget
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-D753T42C.js";
|
|
8
|
+
import "./chunk-IG7HSAEJ.js";
|
|
9
|
+
import "./chunk-XGGTEP7V.js";
|
|
10
10
|
import {
|
|
11
11
|
Container,
|
|
12
12
|
extensions
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-KAHX5SKO.js";
|
|
14
14
|
import "./chunk-N342G4HO.js";
|
|
15
15
|
|
|
16
16
|
// node_modules/pixi.js/lib/accessibility/init.mjs
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
uid,
|
|
43
43
|
v8_0_0,
|
|
44
44
|
warn
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-KAHX5SKO.js";
|
|
46
46
|
|
|
47
47
|
// node_modules/pixi.js/lib/filters/Filter.mjs
|
|
48
48
|
var _Filter = class _Filter2 extends Shader {
|
|
@@ -779,7 +779,7 @@ function collectAllRenderablesSimple(container, instructionSet, renderer) {
|
|
|
779
779
|
renderPipes.blendMode.setBlendMode(renderable, container.groupBlendMode, instructionSet);
|
|
780
780
|
const rp = renderPipes;
|
|
781
781
|
rp[renderable.renderPipeId].addRenderable(renderable, instructionSet);
|
|
782
|
-
renderableGC.addRenderable(renderable
|
|
782
|
+
renderableGC.addRenderable(renderable);
|
|
783
783
|
renderable.didViewUpdate = false;
|
|
784
784
|
}
|
|
785
785
|
if (!container.renderGroup) {
|
|
@@ -806,7 +806,7 @@ function collectAllRenderablesAdvanced(container, instructionSet, renderer, isRo
|
|
|
806
806
|
renderPipes.blendMode.setBlendMode(renderable, renderable.groupBlendMode, instructionSet);
|
|
807
807
|
const pipe = renderPipes[renderPipeId];
|
|
808
808
|
pipe.addRenderable(renderable, instructionSet);
|
|
809
|
-
renderableGC.addRenderable(renderable
|
|
809
|
+
renderableGC.addRenderable(renderable);
|
|
810
810
|
renderable.didViewUpdate = false;
|
|
811
811
|
}
|
|
812
812
|
const children = container.children;
|
|
@@ -1152,7 +1152,7 @@ SpritePipe.extension = {
|
|
|
1152
1152
|
|
|
1153
1153
|
// node_modules/pixi.js/lib/utils/const.mjs
|
|
1154
1154
|
var DATA_URI = /^\s*data:(?:([\w-]+)\/([\w+.-]+))?(?:;charset=([\w-]+))?(?:;(base64))?,(.*)/i;
|
|
1155
|
-
var VERSION = "8.6.
|
|
1155
|
+
var VERSION = "8.6.6";
|
|
1156
1156
|
|
|
1157
1157
|
// node_modules/pixi.js/lib/utils/global/globalHooks.mjs
|
|
1158
1158
|
var ApplicationInitHook = class {
|
|
@@ -2408,23 +2408,40 @@ function cleanArray(arr) {
|
|
|
2408
2408
|
}
|
|
2409
2409
|
|
|
2410
2410
|
// node_modules/pixi.js/lib/rendering/renderers/shared/texture/RenderableGCSystem.mjs
|
|
2411
|
+
var renderableGCTick = 0;
|
|
2411
2412
|
var _RenderableGCSystem = class _RenderableGCSystem2 {
|
|
2412
|
-
/**
|
|
2413
|
+
/**
|
|
2414
|
+
* Creates a new RenderableGCSystem instance.
|
|
2415
|
+
* @param renderer - The renderer this garbage collection system works for
|
|
2416
|
+
*/
|
|
2413
2417
|
constructor(renderer) {
|
|
2414
2418
|
this._managedRenderables = [];
|
|
2415
2419
|
this._managedHashes = [];
|
|
2416
2420
|
this._managedArrays = [];
|
|
2417
2421
|
this._renderer = renderer;
|
|
2418
2422
|
}
|
|
2423
|
+
/**
|
|
2424
|
+
* Initializes the garbage collection system with the provided options.
|
|
2425
|
+
* @param options - Configuration options for the renderer
|
|
2426
|
+
*/
|
|
2419
2427
|
init(options) {
|
|
2420
2428
|
options = { ..._RenderableGCSystem2.defaultOptions, ...options };
|
|
2421
2429
|
this.maxUnusedTime = options.renderableGCMaxUnusedTime;
|
|
2422
2430
|
this._frequency = options.renderableGCFrequency;
|
|
2423
2431
|
this.enabled = options.renderableGCActive;
|
|
2424
2432
|
}
|
|
2433
|
+
/**
|
|
2434
|
+
* Gets whether the garbage collection system is currently enabled.
|
|
2435
|
+
* @returns True if GC is enabled, false otherwise
|
|
2436
|
+
*/
|
|
2425
2437
|
get enabled() {
|
|
2426
2438
|
return !!this._handler;
|
|
2427
2439
|
}
|
|
2440
|
+
/**
|
|
2441
|
+
* Enables or disables the garbage collection system.
|
|
2442
|
+
* When enabled, schedules periodic cleanup of resources.
|
|
2443
|
+
* When disabled, cancels all scheduled cleanups.
|
|
2444
|
+
*/
|
|
2428
2445
|
set enabled(value) {
|
|
2429
2446
|
if (this.enabled === value)
|
|
2430
2447
|
return;
|
|
@@ -2456,28 +2473,53 @@ var _RenderableGCSystem = class _RenderableGCSystem2 {
|
|
|
2456
2473
|
this._renderer.scheduler.cancel(this._arrayHandler);
|
|
2457
2474
|
}
|
|
2458
2475
|
}
|
|
2476
|
+
/**
|
|
2477
|
+
* Adds a hash table to be managed by the garbage collector.
|
|
2478
|
+
* @param context - The object containing the hash table
|
|
2479
|
+
* @param hash - The property name of the hash table
|
|
2480
|
+
*/
|
|
2459
2481
|
addManagedHash(context, hash) {
|
|
2460
2482
|
this._managedHashes.push({ context, hash });
|
|
2461
2483
|
}
|
|
2484
|
+
/**
|
|
2485
|
+
* Adds an array to be managed by the garbage collector.
|
|
2486
|
+
* @param context - The object containing the array
|
|
2487
|
+
* @param hash - The property name of the array
|
|
2488
|
+
*/
|
|
2462
2489
|
addManagedArray(context, hash) {
|
|
2463
2490
|
this._managedArrays.push({ context, hash });
|
|
2464
2491
|
}
|
|
2465
|
-
|
|
2492
|
+
/**
|
|
2493
|
+
* Updates the GC timestamp and tracking before rendering.
|
|
2494
|
+
* @param options - The render options
|
|
2495
|
+
* @param options.container - The container to render
|
|
2496
|
+
*/
|
|
2497
|
+
prerender({
|
|
2498
|
+
container
|
|
2499
|
+
}) {
|
|
2466
2500
|
this._now = performance.now();
|
|
2501
|
+
container.renderGroup.gcTick = renderableGCTick++;
|
|
2502
|
+
this._updateInstructionGCTick(container.renderGroup, container.renderGroup.gcTick);
|
|
2467
2503
|
}
|
|
2468
|
-
|
|
2504
|
+
/**
|
|
2505
|
+
* Starts tracking a renderable for garbage collection.
|
|
2506
|
+
* @param renderable - The renderable to track
|
|
2507
|
+
*/
|
|
2508
|
+
addRenderable(renderable) {
|
|
2469
2509
|
if (!this.enabled)
|
|
2470
2510
|
return;
|
|
2471
|
-
renderable._lastUsed
|
|
2472
|
-
if (renderable._lastInstructionTick === -1) {
|
|
2511
|
+
if (renderable._lastUsed === -1) {
|
|
2473
2512
|
this._managedRenderables.push(renderable);
|
|
2474
2513
|
renderable.once("destroyed", this._removeRenderable, this);
|
|
2475
2514
|
}
|
|
2476
|
-
renderable.
|
|
2515
|
+
renderable._lastUsed = this._now;
|
|
2477
2516
|
}
|
|
2478
|
-
/**
|
|
2517
|
+
/**
|
|
2518
|
+
* Performs garbage collection by cleaning up unused renderables.
|
|
2519
|
+
* Removes renderables that haven't been used for longer than maxUnusedTime.
|
|
2520
|
+
*/
|
|
2479
2521
|
run() {
|
|
2480
|
-
const now =
|
|
2522
|
+
const now = this._now;
|
|
2481
2523
|
const managedRenderables = this._managedRenderables;
|
|
2482
2524
|
const renderPipes = this._renderer.renderPipes;
|
|
2483
2525
|
let offset = 0;
|
|
@@ -2488,13 +2530,18 @@ var _RenderableGCSystem = class _RenderableGCSystem2 {
|
|
|
2488
2530
|
continue;
|
|
2489
2531
|
}
|
|
2490
2532
|
const renderGroup = renderable.renderGroup ?? renderable.parentRenderGroup;
|
|
2491
|
-
const
|
|
2492
|
-
if (
|
|
2533
|
+
const currentTick = renderGroup?.instructionSet?.gcTick ?? -1;
|
|
2534
|
+
if ((renderGroup?.gcTick ?? 0) === currentTick) {
|
|
2535
|
+
renderable._lastUsed = now;
|
|
2536
|
+
}
|
|
2537
|
+
if (now - renderable._lastUsed > this.maxUnusedTime) {
|
|
2493
2538
|
if (!renderable.destroyed) {
|
|
2494
2539
|
const rp = renderPipes;
|
|
2540
|
+
if (renderGroup)
|
|
2541
|
+
renderGroup.structureDidChange = true;
|
|
2495
2542
|
rp[renderable.renderPipeId].destroyRenderable(renderable);
|
|
2496
2543
|
}
|
|
2497
|
-
renderable.
|
|
2544
|
+
renderable._lastUsed = -1;
|
|
2498
2545
|
offset++;
|
|
2499
2546
|
renderable.off("destroyed", this._removeRenderable, this);
|
|
2500
2547
|
} else {
|
|
@@ -2503,6 +2550,7 @@ var _RenderableGCSystem = class _RenderableGCSystem2 {
|
|
|
2503
2550
|
}
|
|
2504
2551
|
managedRenderables.length -= offset;
|
|
2505
2552
|
}
|
|
2553
|
+
/** Cleans up the garbage collection system. Disables GC and removes all tracked resources. */
|
|
2506
2554
|
destroy() {
|
|
2507
2555
|
this.enabled = false;
|
|
2508
2556
|
this._renderer = null;
|
|
@@ -2510,6 +2558,10 @@ var _RenderableGCSystem = class _RenderableGCSystem2 {
|
|
|
2510
2558
|
this._managedHashes.length = 0;
|
|
2511
2559
|
this._managedArrays.length = 0;
|
|
2512
2560
|
}
|
|
2561
|
+
/**
|
|
2562
|
+
* Removes a renderable from being tracked when it's destroyed.
|
|
2563
|
+
* @param renderable - The renderable to stop tracking
|
|
2564
|
+
*/
|
|
2513
2565
|
_removeRenderable(renderable) {
|
|
2514
2566
|
const index = this._managedRenderables.indexOf(renderable);
|
|
2515
2567
|
if (index >= 0) {
|
|
@@ -2517,6 +2569,17 @@ var _RenderableGCSystem = class _RenderableGCSystem2 {
|
|
|
2517
2569
|
this._managedRenderables[index] = null;
|
|
2518
2570
|
}
|
|
2519
2571
|
}
|
|
2572
|
+
/**
|
|
2573
|
+
* Updates the GC tick counter for a render group and its children.
|
|
2574
|
+
* @param renderGroup - The render group to update
|
|
2575
|
+
* @param gcTick - The new tick value
|
|
2576
|
+
*/
|
|
2577
|
+
_updateInstructionGCTick(renderGroup, gcTick) {
|
|
2578
|
+
renderGroup.instructionSet.gcTick = gcTick;
|
|
2579
|
+
for (const child of renderGroup.renderGroupChildren) {
|
|
2580
|
+
this._updateInstructionGCTick(child, gcTick);
|
|
2581
|
+
}
|
|
2582
|
+
}
|
|
2520
2583
|
};
|
|
2521
2584
|
_RenderableGCSystem.extension = {
|
|
2522
2585
|
type: [
|
|
@@ -2527,20 +2590,11 @@ _RenderableGCSystem.extension = {
|
|
|
2527
2590
|
priority: 0
|
|
2528
2591
|
};
|
|
2529
2592
|
_RenderableGCSystem.defaultOptions = {
|
|
2530
|
-
/**
|
|
2531
|
-
* If set to true, this will enable the garbage collector on the GPU.
|
|
2532
|
-
* @default true
|
|
2533
|
-
*/
|
|
2593
|
+
/** Enable/disable the garbage collector */
|
|
2534
2594
|
renderableGCActive: true,
|
|
2535
|
-
/**
|
|
2536
|
-
* The maximum idle frames before a texture is destroyed by garbage collection.
|
|
2537
|
-
* @default 60 * 60
|
|
2538
|
-
*/
|
|
2595
|
+
/** Time in ms before an unused resource is collected (default 1 minute) */
|
|
2539
2596
|
renderableGCMaxUnusedTime: 6e4,
|
|
2540
|
-
/**
|
|
2541
|
-
* Frames between two garbage collections.
|
|
2542
|
-
* @default 600
|
|
2543
|
-
*/
|
|
2597
|
+
/** How often to run garbage collection in ms (default 30 seconds) */
|
|
2544
2598
|
renderableGCFrequency: 3e4
|
|
2545
2599
|
};
|
|
2546
2600
|
var RenderableGCSystem = _RenderableGCSystem;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CanvasPool,
|
|
3
3
|
getTextureBatchBindGroup
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XGGTEP7V.js";
|
|
5
5
|
import {
|
|
6
6
|
AbstractRenderer,
|
|
7
7
|
BufferResource,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
ensureAttributes,
|
|
16
16
|
textureBit,
|
|
17
17
|
uboSyncFunctionsWGSL
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-BJGKFUMU.js";
|
|
19
19
|
import {
|
|
20
20
|
BindGroup,
|
|
21
21
|
Buffer,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
localUniformBitGroup2,
|
|
43
43
|
roundPixelsBit,
|
|
44
44
|
warn
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-KAHX5SKO.js";
|
|
46
46
|
|
|
47
47
|
// node_modules/pixi.js/lib/scene/graphics/gpu/GpuGraphicsAdaptor.mjs
|
|
48
48
|
var GpuGraphicsAdaptor = class {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CanvasPool,
|
|
3
3
|
getTextureBatchBindGroup
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XGGTEP7V.js";
|
|
5
5
|
import {
|
|
6
6
|
BatchableSprite,
|
|
7
7
|
BigPool,
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
v8_0_0,
|
|
66
66
|
v8_3_4,
|
|
67
67
|
warn
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-KAHX5SKO.js";
|
|
69
69
|
import {
|
|
70
70
|
__commonJS,
|
|
71
71
|
__toESM
|
|
@@ -4938,17 +4938,18 @@ var Circle = class _Circle {
|
|
|
4938
4938
|
* @param x - The X coordinate of the point to test
|
|
4939
4939
|
* @param y - The Y coordinate of the point to test
|
|
4940
4940
|
* @param width - The width of the line to check
|
|
4941
|
+
* @param alignment - The alignment of the stroke, 0.5 by default
|
|
4941
4942
|
* @returns Whether the x/y coordinates are within this Circle
|
|
4942
4943
|
*/
|
|
4943
|
-
strokeContains(x, y, width) {
|
|
4944
|
+
strokeContains(x, y, width, alignment = 0.5) {
|
|
4944
4945
|
if (this.radius === 0)
|
|
4945
4946
|
return false;
|
|
4946
4947
|
const dx = this.x - x;
|
|
4947
4948
|
const dy = this.y - y;
|
|
4948
|
-
const
|
|
4949
|
-
const
|
|
4949
|
+
const radius = this.radius;
|
|
4950
|
+
const outerWidth = (1 - alignment) * width;
|
|
4950
4951
|
const distance = Math.sqrt(dx * dx + dy * dy);
|
|
4951
|
-
return distance
|
|
4952
|
+
return distance <= radius + outerWidth && distance > radius - (width - outerWidth);
|
|
4952
4953
|
}
|
|
4953
4954
|
/**
|
|
4954
4955
|
* Returns the framing rectangle of the circle as a Rectangle object
|
|
@@ -5030,23 +5031,25 @@ var Ellipse = class _Ellipse {
|
|
|
5030
5031
|
* Checks whether the x and y coordinates given are contained within this ellipse including stroke
|
|
5031
5032
|
* @param x - The X coordinate of the point to test
|
|
5032
5033
|
* @param y - The Y coordinate of the point to test
|
|
5033
|
-
* @param width
|
|
5034
|
+
* @param strokeWidth - The width of the line to check
|
|
5035
|
+
* @param alignment - The alignment of the stroke
|
|
5034
5036
|
* @returns Whether the x/y coords are within this ellipse
|
|
5035
5037
|
*/
|
|
5036
|
-
strokeContains(x, y,
|
|
5038
|
+
strokeContains(x, y, strokeWidth, alignment = 0.5) {
|
|
5037
5039
|
const { halfWidth, halfHeight } = this;
|
|
5038
5040
|
if (halfWidth <= 0 || halfHeight <= 0) {
|
|
5039
5041
|
return false;
|
|
5040
5042
|
}
|
|
5041
|
-
const
|
|
5042
|
-
const
|
|
5043
|
-
const
|
|
5044
|
-
const
|
|
5045
|
-
const
|
|
5043
|
+
const strokeOuterWidth = strokeWidth * (1 - alignment);
|
|
5044
|
+
const strokeInnerWidth = strokeWidth - strokeOuterWidth;
|
|
5045
|
+
const innerHorizontal = halfWidth - strokeInnerWidth;
|
|
5046
|
+
const innerVertical = halfHeight - strokeInnerWidth;
|
|
5047
|
+
const outerHorizontal = halfWidth + strokeOuterWidth;
|
|
5048
|
+
const outerVertical = halfHeight + strokeOuterWidth;
|
|
5046
5049
|
const normalizedX = x - this.x;
|
|
5047
5050
|
const normalizedY = y - this.y;
|
|
5048
|
-
const innerEllipse = normalizedX * normalizedX / (
|
|
5049
|
-
const outerEllipse = normalizedX * normalizedX / (
|
|
5051
|
+
const innerEllipse = normalizedX * normalizedX / (innerHorizontal * innerHorizontal) + normalizedY * normalizedY / (innerVertical * innerVertical);
|
|
5052
|
+
const outerEllipse = normalizedX * normalizedX / (outerHorizontal * outerHorizontal) + normalizedY * normalizedY / (outerVertical * outerVertical);
|
|
5050
5053
|
return innerEllipse > 1 && outerEllipse <= 1;
|
|
5051
5054
|
}
|
|
5052
5055
|
/**
|
|
@@ -5175,11 +5178,13 @@ var Polygon = class _Polygon {
|
|
|
5175
5178
|
* @param x - The X coordinate of the point to test
|
|
5176
5179
|
* @param y - The Y coordinate of the point to test
|
|
5177
5180
|
* @param strokeWidth - The width of the line to check
|
|
5181
|
+
* @param alignment - The alignment of the stroke, 0.5 by default
|
|
5178
5182
|
* @returns Whether the x/y coordinates are within this polygon
|
|
5179
5183
|
*/
|
|
5180
|
-
strokeContains(x, y, strokeWidth) {
|
|
5181
|
-
const
|
|
5182
|
-
const
|
|
5184
|
+
strokeContains(x, y, strokeWidth, alignment = 0.5) {
|
|
5185
|
+
const strokeWidthSquared = strokeWidth * strokeWidth;
|
|
5186
|
+
const rightWidthSquared = strokeWidthSquared * (1 - alignment);
|
|
5187
|
+
const leftWidthSquared = strokeWidthSquared - rightWidthSquared;
|
|
5183
5188
|
const { points } = this;
|
|
5184
5189
|
const iterationLength = points.length - (this.closePath ? 0 : 2);
|
|
5185
5190
|
for (let i = 0; i < iterationLength; i += 2) {
|
|
@@ -5187,8 +5192,9 @@ var Polygon = class _Polygon {
|
|
|
5187
5192
|
const y1 = points[i + 1];
|
|
5188
5193
|
const x2 = points[(i + 2) % points.length];
|
|
5189
5194
|
const y2 = points[(i + 3) % points.length];
|
|
5190
|
-
const
|
|
5191
|
-
|
|
5195
|
+
const distanceSquared = squaredDistanceToLineSegment(x, y, x1, y1, x2, y2);
|
|
5196
|
+
const sign = Math.sign((x2 - x1) * (y - y1) - (y2 - y1) * (x - x1));
|
|
5197
|
+
if (distanceSquared <= (sign < 0 ? leftWidthSquared : rightWidthSquared)) {
|
|
5192
5198
|
return true;
|
|
5193
5199
|
}
|
|
5194
5200
|
}
|
|
@@ -5273,11 +5279,11 @@ var Polygon = class _Polygon {
|
|
|
5273
5279
|
};
|
|
5274
5280
|
|
|
5275
5281
|
// node_modules/pixi.js/lib/maths/shapes/RoundedRectangle.mjs
|
|
5276
|
-
var isCornerWithinStroke = (pX, pY, cornerX, cornerY, radius,
|
|
5282
|
+
var isCornerWithinStroke = (pX, pY, cornerX, cornerY, radius, strokeWidthInner, strokeWidthOuter) => {
|
|
5277
5283
|
const dx = pX - cornerX;
|
|
5278
5284
|
const dy = pY - cornerY;
|
|
5279
5285
|
const distance = Math.sqrt(dx * dx + dy * dy);
|
|
5280
|
-
return distance >= radius -
|
|
5286
|
+
return distance >= radius - strokeWidthInner && distance <= radius + strokeWidthOuter;
|
|
5281
5287
|
};
|
|
5282
5288
|
var RoundedRectangle = class _RoundedRectangle {
|
|
5283
5289
|
/**
|
|
@@ -5379,26 +5385,60 @@ var RoundedRectangle = class _RoundedRectangle {
|
|
|
5379
5385
|
* @param pX - The X coordinate of the point to test
|
|
5380
5386
|
* @param pY - The Y coordinate of the point to test
|
|
5381
5387
|
* @param strokeWidth - The width of the line to check
|
|
5388
|
+
* @param alignment - The alignment of the stroke, 0.5 by default
|
|
5382
5389
|
* @returns Whether the x/y coordinates are within this rectangle
|
|
5383
5390
|
*/
|
|
5384
|
-
strokeContains(pX, pY, strokeWidth) {
|
|
5391
|
+
strokeContains(pX, pY, strokeWidth, alignment = 0.5) {
|
|
5385
5392
|
const { x, y, width, height, radius } = this;
|
|
5386
|
-
const
|
|
5393
|
+
const strokeWidthOuter = strokeWidth * (1 - alignment);
|
|
5394
|
+
const strokeWidthInner = strokeWidth - strokeWidthOuter;
|
|
5387
5395
|
const innerX = x + radius;
|
|
5388
5396
|
const innerY = y + radius;
|
|
5389
5397
|
const innerWidth = width - radius * 2;
|
|
5390
5398
|
const innerHeight = height - radius * 2;
|
|
5391
5399
|
const rightBound = x + width;
|
|
5392
5400
|
const bottomBound = y + height;
|
|
5393
|
-
if ((pX >= x -
|
|
5401
|
+
if ((pX >= x - strokeWidthOuter && pX <= x + strokeWidthInner || pX >= rightBound - strokeWidthInner && pX <= rightBound + strokeWidthOuter) && pY >= innerY && pY <= innerY + innerHeight) {
|
|
5394
5402
|
return true;
|
|
5395
5403
|
}
|
|
5396
|
-
if ((pY >= y -
|
|
5404
|
+
if ((pY >= y - strokeWidthOuter && pY <= y + strokeWidthInner || pY >= bottomBound - strokeWidthInner && pY <= bottomBound + strokeWidthOuter) && pX >= innerX && pX <= innerX + innerWidth) {
|
|
5397
5405
|
return true;
|
|
5398
5406
|
}
|
|
5399
5407
|
return (
|
|
5400
5408
|
// Top-left
|
|
5401
|
-
pX < innerX && pY < innerY && isCornerWithinStroke(
|
|
5409
|
+
pX < innerX && pY < innerY && isCornerWithinStroke(
|
|
5410
|
+
pX,
|
|
5411
|
+
pY,
|
|
5412
|
+
innerX,
|
|
5413
|
+
innerY,
|
|
5414
|
+
radius,
|
|
5415
|
+
strokeWidthInner,
|
|
5416
|
+
strokeWidthOuter
|
|
5417
|
+
) || pX > rightBound - radius && pY < innerY && isCornerWithinStroke(
|
|
5418
|
+
pX,
|
|
5419
|
+
pY,
|
|
5420
|
+
rightBound - radius,
|
|
5421
|
+
innerY,
|
|
5422
|
+
radius,
|
|
5423
|
+
strokeWidthInner,
|
|
5424
|
+
strokeWidthOuter
|
|
5425
|
+
) || pX > rightBound - radius && pY > bottomBound - radius && isCornerWithinStroke(
|
|
5426
|
+
pX,
|
|
5427
|
+
pY,
|
|
5428
|
+
rightBound - radius,
|
|
5429
|
+
bottomBound - radius,
|
|
5430
|
+
radius,
|
|
5431
|
+
strokeWidthInner,
|
|
5432
|
+
strokeWidthOuter
|
|
5433
|
+
) || pX < innerX && pY > bottomBound - radius && isCornerWithinStroke(
|
|
5434
|
+
pX,
|
|
5435
|
+
pY,
|
|
5436
|
+
innerX,
|
|
5437
|
+
bottomBound - radius,
|
|
5438
|
+
radius,
|
|
5439
|
+
strokeWidthInner,
|
|
5440
|
+
strokeWidthOuter
|
|
5441
|
+
)
|
|
5402
5442
|
);
|
|
5403
5443
|
}
|
|
5404
5444
|
toString() {
|
|
@@ -6177,7 +6217,7 @@ var ShapePath = class {
|
|
|
6177
6217
|
const delta = Math.PI * 2 / sides;
|
|
6178
6218
|
const polygon = [];
|
|
6179
6219
|
for (let i = 0; i < sides; i++) {
|
|
6180
|
-
const angle = i * delta
|
|
6220
|
+
const angle = startAngle - i * delta;
|
|
6181
6221
|
polygon.push(
|
|
6182
6222
|
x + radius * Math.cos(angle),
|
|
6183
6223
|
y + radius * Math.sin(angle)
|
|
@@ -7832,13 +7872,13 @@ var _GraphicsContext = class _GraphicsContext2 extends eventemitter3_default {
|
|
|
7832
7872
|
if (action === "stroke") {
|
|
7833
7873
|
const data = instruction.data;
|
|
7834
7874
|
const alignment = data.style.alignment;
|
|
7835
|
-
const
|
|
7875
|
+
const outerPadding = data.style.width * (1 - alignment);
|
|
7836
7876
|
const _bounds = data.path.bounds;
|
|
7837
7877
|
bounds.addFrame(
|
|
7838
|
-
_bounds.minX -
|
|
7839
|
-
_bounds.minY -
|
|
7840
|
-
_bounds.maxX +
|
|
7841
|
-
_bounds.maxY +
|
|
7878
|
+
_bounds.minX - outerPadding,
|
|
7879
|
+
_bounds.minY - outerPadding,
|
|
7880
|
+
_bounds.maxX + outerPadding,
|
|
7881
|
+
_bounds.maxY + outerPadding
|
|
7842
7882
|
);
|
|
7843
7883
|
}
|
|
7844
7884
|
}
|
|
@@ -7871,7 +7911,8 @@ var _GraphicsContext = class _GraphicsContext2 extends eventemitter3_default {
|
|
|
7871
7911
|
if (instruction.action === "fill") {
|
|
7872
7912
|
hasHit = shape.contains(transformedPoint.x, transformedPoint.y);
|
|
7873
7913
|
} else {
|
|
7874
|
-
|
|
7914
|
+
const strokeStyle = style;
|
|
7915
|
+
hasHit = shape.strokeContains(transformedPoint.x, transformedPoint.y, strokeStyle.width, strokeStyle.alignment);
|
|
7875
7916
|
}
|
|
7876
7917
|
const holes = data.hole;
|
|
7877
7918
|
if (holes) {
|
|
@@ -2324,22 +2324,25 @@ var Rectangle = class _Rectangle {
|
|
|
2324
2324
|
* @param x - The X coordinate of the point to test
|
|
2325
2325
|
* @param y - The Y coordinate of the point to test
|
|
2326
2326
|
* @param strokeWidth - The width of the line to check
|
|
2327
|
+
* @param alignment - The alignment of the stroke, 0.5 by default
|
|
2327
2328
|
* @returns Whether the x/y coordinates are within this rectangle
|
|
2328
2329
|
*/
|
|
2329
|
-
strokeContains(x2, y2, strokeWidth) {
|
|
2330
|
+
strokeContains(x2, y2, strokeWidth, alignment = 0.5) {
|
|
2330
2331
|
const { width, height } = this;
|
|
2331
2332
|
if (width <= 0 || height <= 0)
|
|
2332
2333
|
return false;
|
|
2333
2334
|
const _x = this.x;
|
|
2334
2335
|
const _y = this.y;
|
|
2335
|
-
const
|
|
2336
|
-
const
|
|
2337
|
-
const
|
|
2338
|
-
const
|
|
2339
|
-
const
|
|
2340
|
-
const
|
|
2341
|
-
const
|
|
2342
|
-
const
|
|
2336
|
+
const strokeWidthOuter = strokeWidth * (1 - alignment);
|
|
2337
|
+
const strokeWidthInner = strokeWidth - strokeWidthOuter;
|
|
2338
|
+
const outerLeft = _x - strokeWidthOuter;
|
|
2339
|
+
const outerRight = _x + width + strokeWidthOuter;
|
|
2340
|
+
const outerTop = _y - strokeWidthOuter;
|
|
2341
|
+
const outerBottom = _y + height + strokeWidthOuter;
|
|
2342
|
+
const innerLeft = _x + strokeWidthInner;
|
|
2343
|
+
const innerRight = _x + width - strokeWidthInner;
|
|
2344
|
+
const innerTop = _y + strokeWidthInner;
|
|
2345
|
+
const innerBottom = _y + height - strokeWidthInner;
|
|
2343
2346
|
return x2 >= outerLeft && x2 <= outerRight && y2 >= outerTop && y2 <= outerBottom && !(x2 > innerLeft && x2 < innerRight && y2 > innerTop && y2 < innerBottom);
|
|
2344
2347
|
}
|
|
2345
2348
|
/**
|
|
@@ -3376,19 +3379,17 @@ var toLocalGlobalMixin = {
|
|
|
3376
3379
|
};
|
|
3377
3380
|
|
|
3378
3381
|
// node_modules/pixi.js/lib/rendering/renderers/shared/instructions/InstructionSet.mjs
|
|
3379
|
-
var _tick = 0;
|
|
3380
3382
|
var InstructionSet = class {
|
|
3381
3383
|
constructor() {
|
|
3382
3384
|
this.uid = uid("instructionSet");
|
|
3383
3385
|
this.instructions = [];
|
|
3384
3386
|
this.instructionSize = 0;
|
|
3385
3387
|
this.renderables = [];
|
|
3386
|
-
this.
|
|
3388
|
+
this.gcTick = 0;
|
|
3387
3389
|
}
|
|
3388
3390
|
/** reset the instruction set so it can be reused set size back to 0 */
|
|
3389
3391
|
reset() {
|
|
3390
3392
|
this.instructionSize = 0;
|
|
3391
|
-
this.tick = _tick++;
|
|
3392
3393
|
}
|
|
3393
3394
|
/**
|
|
3394
3395
|
* Add an instruction to the set
|
|
@@ -4470,6 +4471,7 @@ var RenderGroup = class {
|
|
|
4470
4471
|
this.worldAlpha = 1;
|
|
4471
4472
|
this.childrenToUpdate = /* @__PURE__ */ Object.create(null);
|
|
4472
4473
|
this.updateTick = 0;
|
|
4474
|
+
this.gcTick = 0;
|
|
4473
4475
|
this.childrenRenderablesToUpdate = { list: [], index: 0 };
|
|
4474
4476
|
this.structureDidChange = true;
|
|
4475
4477
|
this.instructionSet = new InstructionSet();
|
|
@@ -4485,7 +4487,9 @@ var RenderGroup = class {
|
|
|
4485
4487
|
root.didChange = true;
|
|
4486
4488
|
const children = root.children;
|
|
4487
4489
|
for (let i2 = 0; i2 < children.length; i2++) {
|
|
4488
|
-
|
|
4490
|
+
const child = children[i2];
|
|
4491
|
+
child._updateFlags = 15;
|
|
4492
|
+
this.addChild(child);
|
|
4489
4493
|
}
|
|
4490
4494
|
}
|
|
4491
4495
|
enableCacheAsTexture(options = {}) {
|
|
@@ -5835,8 +5839,7 @@ var ViewContainer = class extends Container {
|
|
|
5835
5839
|
this.canBundle = true;
|
|
5836
5840
|
this.allowChildren = false;
|
|
5837
5841
|
this._roundPixels = 0;
|
|
5838
|
-
this._lastUsed =
|
|
5839
|
-
this._lastInstructionTick = -1;
|
|
5842
|
+
this._lastUsed = -1;
|
|
5840
5843
|
this._bounds = new Bounds(0, 1, 0, 0);
|
|
5841
5844
|
this._boundsDirty = true;
|
|
5842
5845
|
}
|