@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.
Files changed (219) hide show
  1. package/dist/{ContainerChild-B5yD0BI8.d.ts → ContainerChild-AjuVp3wW.d.ts} +4 -1
  2. package/dist/{ContainerChild-WzyxEjAc.d.cts → ContainerChild-BUFxM6Ya.d.cts} +4 -1
  3. package/dist/WebGLRenderer-CWVLYTYY.js +9 -0
  4. package/dist/WebGPURenderer-46NKQGBG.js +10 -0
  5. package/dist/{browserAll-2HD5EH7K.js → browserAll-S4EPEXZD.js} +5 -5
  6. package/dist/{chunk-PP5T5HEO.js → chunk-52ZSR3AN.js} +1 -1
  7. package/dist/{chunk-5VX2VTDZ.js → chunk-BJGKFUMU.js} +81 -27
  8. package/dist/{chunk-SAUNZQHZ.js → chunk-D753T42C.js} +1 -1
  9. package/dist/{chunk-ODIEVSQX.js → chunk-F74VVSHO.js} +3 -3
  10. package/dist/{chunk-6GJXIPNB.js → chunk-GEY6RTYO.js} +1 -1
  11. package/dist/{chunk-CAWOWL3P.js → chunk-IG7HSAEJ.js} +75 -34
  12. package/dist/{chunk-PP3SBC3C.js → chunk-KAHX5SKO.js} +18 -15
  13. package/dist/{chunk-WNOARCWH.js → chunk-LZNY6NEZ.js} +2 -2
  14. package/dist/{chunk-Z3NBKYVU.js → chunk-MQPMJVDR.js} +10 -9
  15. package/dist/{chunk-Y3WNBACN.js → chunk-R4J2U4HN.js} +2 -2
  16. package/dist/{chunk-NB4Q3GFK.js → chunk-RGKEAZTY.js} +256 -70
  17. package/dist/{chunk-73ID6GAW.js → chunk-UWBWDBB3.js} +2 -2
  18. package/dist/{chunk-TOG67Z7Q.js → chunk-V7WJOX65.js} +2 -2
  19. package/dist/{chunk-WS3FY4Q6.js → chunk-X55ALTH7.js} +2 -2
  20. package/dist/{chunk-5JREOVCG.js → chunk-XGGTEP7V.js} +1 -1
  21. package/dist/classes/CharacterBaseModel.cjs +413 -258
  22. package/dist/classes/CharacterBaseModel.js +16 -17
  23. package/dist/classes/CharacterStoredClass.cjs +413 -258
  24. package/dist/classes/CharacterStoredClass.js +16 -17
  25. package/dist/classes/ChoiceMenuOption.cjs +341 -188
  26. package/dist/classes/ChoiceMenuOption.js +16 -17
  27. package/dist/classes/Sound.cjs +413 -258
  28. package/dist/classes/Sound.js +16 -17
  29. package/dist/classes/StoredClassModel.cjs +413 -258
  30. package/dist/classes/StoredClassModel.js +16 -17
  31. package/dist/classes/canvas/AdditionalPositions.cjs +39329 -963
  32. package/dist/classes/canvas/AdditionalPositions.d.cts +3 -1
  33. package/dist/classes/canvas/AdditionalPositions.d.ts +3 -1
  34. package/dist/classes/canvas/AdditionalPositions.js +41 -10
  35. package/dist/classes/canvas/AnchorExtension.cjs +92 -48
  36. package/dist/classes/canvas/AnchorExtension.js +8 -8
  37. package/dist/classes/canvas/CanvasBaseItem.cjs +92 -48
  38. package/dist/classes/canvas/CanvasBaseItem.d.cts +1 -1
  39. package/dist/classes/canvas/CanvasBaseItem.d.ts +1 -1
  40. package/dist/classes/canvas/CanvasBaseItem.js +9 -9
  41. package/dist/classes/canvas/Container.cjs +405 -252
  42. package/dist/classes/canvas/Container.d.cts +1 -1
  43. package/dist/classes/canvas/Container.d.ts +1 -1
  44. package/dist/classes/canvas/Container.js +16 -17
  45. package/dist/classes/canvas/ImageContainer.cjs +341 -186
  46. package/dist/classes/canvas/ImageContainer.d.cts +1 -1
  47. package/dist/classes/canvas/ImageContainer.d.ts +1 -1
  48. package/dist/classes/canvas/ImageContainer.js +16 -17
  49. package/dist/classes/canvas/ImageSprite.cjs +3049 -2894
  50. package/dist/classes/canvas/ImageSprite.d.cts +1 -1
  51. package/dist/classes/canvas/ImageSprite.d.ts +1 -1
  52. package/dist/classes/canvas/ImageSprite.js +16 -17
  53. package/dist/classes/canvas/Sprite.cjs +413 -262
  54. package/dist/classes/canvas/Sprite.d.cts +1 -1
  55. package/dist/classes/canvas/Sprite.d.ts +1 -1
  56. package/dist/classes/canvas/Sprite.js +16 -17
  57. package/dist/classes/canvas/Text.cjs +335 -182
  58. package/dist/classes/canvas/Text.d.cts +1 -1
  59. package/dist/classes/canvas/Text.d.ts +1 -1
  60. package/dist/classes/canvas/Text.js +16 -17
  61. package/dist/classes/canvas/VideoSprite.cjs +3046 -2889
  62. package/dist/classes/canvas/VideoSprite.d.cts +4 -2
  63. package/dist/classes/canvas/VideoSprite.d.ts +4 -2
  64. package/dist/classes/canvas/VideoSprite.js +16 -17
  65. package/dist/classes/index.cjs +415 -262
  66. package/dist/classes/index.d.cts +1 -1
  67. package/dist/classes/index.d.ts +1 -1
  68. package/dist/classes/index.js +17 -18
  69. package/dist/classes/ticker/FadeAlphaTicker.cjs +341 -188
  70. package/dist/classes/ticker/FadeAlphaTicker.js +16 -17
  71. package/dist/classes/ticker/MoveTicker.cjs +3572 -3421
  72. package/dist/classes/ticker/MoveTicker.js +16 -17
  73. package/dist/classes/ticker/RotateTicker.cjs +341 -188
  74. package/dist/classes/ticker/RotateTicker.js +16 -17
  75. package/dist/classes/ticker/TickerBase.cjs +413 -258
  76. package/dist/classes/ticker/TickerBase.js +16 -17
  77. package/dist/classes/ticker/ZoomTicker.cjs +341 -188
  78. package/dist/classes/ticker/ZoomTicker.js +16 -17
  79. package/dist/classes/ticker/index.cjs +413 -262
  80. package/dist/classes/ticker/index.js +16 -17
  81. package/dist/constants.cjs +93 -49
  82. package/dist/constants.d.cts +1 -1
  83. package/dist/constants.d.ts +1 -1
  84. package/dist/constants.js +10 -10
  85. package/dist/decorators/canvas-element-decorator.cjs +405 -252
  86. package/dist/decorators/canvas-element-decorator.d.cts +1 -1
  87. package/dist/decorators/canvas-element-decorator.d.ts +1 -1
  88. package/dist/decorators/canvas-element-decorator.js +16 -17
  89. package/dist/decorators/event-decorator.d.cts +1 -1
  90. package/dist/decorators/event-decorator.d.ts +1 -1
  91. package/dist/decorators/index.cjs +341 -188
  92. package/dist/decorators/index.d.cts +1 -1
  93. package/dist/decorators/index.d.ts +1 -1
  94. package/dist/decorators/index.js +16 -17
  95. package/dist/decorators/label-decorator.cjs +413 -260
  96. package/dist/decorators/label-decorator.js +16 -17
  97. package/dist/functions/canvas/canvas-effect.cjs +410 -257
  98. package/dist/functions/canvas/canvas-effect.js +16 -17
  99. package/dist/functions/canvas/canvas-memory-utility.cjs +405 -252
  100. package/dist/functions/canvas/canvas-memory-utility.d.cts +1 -1
  101. package/dist/functions/canvas/canvas-memory-utility.d.ts +1 -1
  102. package/dist/functions/canvas/canvas-memory-utility.js +16 -17
  103. package/dist/functions/canvas/canvas-transition.cjs +413 -260
  104. package/dist/functions/canvas/canvas-transition.d.cts +1 -1
  105. package/dist/functions/canvas/canvas-transition.d.ts +1 -1
  106. package/dist/functions/canvas/canvas-transition.js +16 -17
  107. package/dist/functions/canvas/canvas-utility.cjs +413 -258
  108. package/dist/functions/canvas/canvas-utility.js +16 -17
  109. package/dist/functions/canvas/image-container-utility.cjs +416 -262
  110. package/dist/functions/canvas/image-container-utility.d.cts +5 -3
  111. package/dist/functions/canvas/image-container-utility.d.ts +5 -3
  112. package/dist/functions/canvas/image-container-utility.js +16 -17
  113. package/dist/functions/canvas/image-utility.cjs +413 -260
  114. package/dist/functions/canvas/image-utility.d.cts +5 -3
  115. package/dist/functions/canvas/image-utility.d.ts +5 -3
  116. package/dist/functions/canvas/image-utility.js +16 -17
  117. package/dist/functions/canvas/video-utility.cjs +4701 -4536
  118. package/dist/functions/canvas/video-utility.d.cts +5 -3
  119. package/dist/functions/canvas/video-utility.d.ts +5 -3
  120. package/dist/functions/canvas/video-utility.js +16 -17
  121. package/dist/functions/dialogue-utility.cjs +413 -258
  122. package/dist/functions/dialogue-utility.js +16 -17
  123. package/dist/functions/flags-utility.cjs +413 -258
  124. package/dist/functions/flags-utility.js +16 -17
  125. package/dist/functions/game-utility.cjs +413 -258
  126. package/dist/functions/game-utility.js +16 -17
  127. package/dist/functions/index.cjs +426 -266
  128. package/dist/functions/index.d.cts +1 -1
  129. package/dist/functions/index.d.ts +1 -1
  130. package/dist/functions/index.js +16 -17
  131. package/dist/functions/saves-utility.cjs +413 -258
  132. package/dist/functions/saves-utility.d.cts +1 -1
  133. package/dist/functions/saves-utility.d.ts +1 -1
  134. package/dist/functions/saves-utility.js +16 -17
  135. package/dist/functions/sound-utility.cjs +92 -48
  136. package/dist/functions/sound-utility.js +10 -10
  137. package/dist/functions/texture-utility.cjs +335 -182
  138. package/dist/functions/texture-utility.d.cts +1 -1
  139. package/dist/functions/texture-utility.d.ts +1 -1
  140. package/dist/functions/texture-utility.js +16 -17
  141. package/dist/index.cjs +300 -138
  142. package/dist/index.d.cts +1 -1
  143. package/dist/index.d.ts +1 -1
  144. package/dist/index.js +20 -21
  145. package/dist/interface/HistoryStep.d.cts +1 -1
  146. package/dist/interface/HistoryStep.d.ts +1 -1
  147. package/dist/interface/SaveData.d.cts +1 -1
  148. package/dist/interface/SaveData.d.ts +1 -1
  149. package/dist/interface/canvas/canvas-memory.d.cts +1 -1
  150. package/dist/interface/canvas/canvas-memory.d.ts +1 -1
  151. package/dist/interface/canvas/canvas-options.d.cts +1 -1
  152. package/dist/interface/canvas/canvas-options.d.ts +1 -1
  153. package/dist/interface/export/ExportedCanvas.d.cts +1 -1
  154. package/dist/interface/export/ExportedCanvas.d.ts +1 -1
  155. package/dist/interface/export/ExportedStep.d.cts +1 -1
  156. package/dist/interface/export/ExportedStep.d.ts +1 -1
  157. package/dist/interface/index.d.cts +1 -1
  158. package/dist/interface/index.d.ts +1 -1
  159. package/dist/labels/BaseCanvasElementTestLabel.cjs +413 -260
  160. package/dist/labels/BaseCanvasElementTestLabel.js +16 -17
  161. package/dist/labels/CanvasEventsTestLabel.cjs +413 -260
  162. package/dist/labels/CanvasEventsTestLabel.d.cts +1 -1
  163. package/dist/labels/CanvasEventsTestLabel.d.ts +1 -1
  164. package/dist/labels/CanvasEventsTestLabel.js +16 -17
  165. package/dist/labels/CustomTickerCanvasElementTestLabel.cjs +284 -131
  166. package/dist/labels/CustomTickerCanvasElementTestLabel.js +16 -17
  167. package/dist/labels/ImagesAnimationsTestLabel.cjs +413 -260
  168. package/dist/labels/ImagesAnimationsTestLabel.js +16 -17
  169. package/dist/labels/InputTestLabel.cjs +341 -188
  170. package/dist/labels/InputTestLabel.js +16 -17
  171. package/dist/labels/MarkdownTest.cjs +341 -188
  172. package/dist/labels/MarkdownTest.js +16 -17
  173. package/dist/labels/SoundTestLabel.cjs +341 -188
  174. package/dist/labels/SoundTestLabel.js +16 -17
  175. package/dist/labels/StartLabel.cjs +413 -260
  176. package/dist/labels/StartLabel.js +16 -17
  177. package/dist/labels/StepLabelTest.cjs +341 -188
  178. package/dist/labels/StepLabelTest.js +16 -17
  179. package/dist/labels/VideoTestLabel.cjs +341 -188
  180. package/dist/labels/VideoTestLabel.js +16 -17
  181. package/dist/labels/index.cjs +413 -260
  182. package/dist/labels/index.js +16 -17
  183. package/dist/{lib-6FCVILMQ.js → lib-EBGYUC35.js} +8 -8
  184. package/dist/managers/CanvasManager.cjs +413 -258
  185. package/dist/managers/CanvasManager.d.cts +1 -1
  186. package/dist/managers/CanvasManager.d.ts +1 -1
  187. package/dist/managers/CanvasManager.js +16 -17
  188. package/dist/managers/CanvasManagerStatic.cjs +176 -77
  189. package/dist/managers/CanvasManagerStatic.d.cts +1 -1
  190. package/dist/managers/CanvasManagerStatic.d.ts +1 -1
  191. package/dist/managers/CanvasManagerStatic.js +9 -9
  192. package/dist/managers/NarrationManager.cjs +413 -258
  193. package/dist/managers/NarrationManager.d.cts +2 -1
  194. package/dist/managers/NarrationManager.d.ts +2 -1
  195. package/dist/managers/NarrationManager.js +16 -17
  196. package/dist/managers/NarrationManagerStatic.cjs +413 -258
  197. package/dist/managers/NarrationManagerStatic.d.cts +1 -1
  198. package/dist/managers/NarrationManagerStatic.d.ts +1 -1
  199. package/dist/managers/NarrationManagerStatic.js +16 -17
  200. package/dist/managers/SoundManager.cjs +413 -258
  201. package/dist/managers/SoundManager.js +16 -17
  202. package/dist/managers/StorageManager.cjs +413 -258
  203. package/dist/managers/StorageManager.js +16 -17
  204. package/dist/managers/index.cjs +413 -258
  205. package/dist/managers/index.d.cts +1 -1
  206. package/dist/managers/index.d.ts +1 -1
  207. package/dist/managers/index.js +16 -17
  208. package/dist/types/ContainerChild.d.cts +1 -1
  209. package/dist/types/ContainerChild.d.ts +1 -1
  210. package/dist/types/index.d.cts +1 -1
  211. package/dist/types/index.d.ts +1 -1
  212. package/dist/types/ticker/MoveTickerProps.d.cts +8 -0
  213. package/dist/types/ticker/MoveTickerProps.d.ts +8 -0
  214. package/dist/webworkerAll-XFBJBJMM.js +5 -0
  215. package/package.json +1 -1
  216. package/dist/WebGLRenderer-U57ZOBH6.js +0 -9
  217. package/dist/WebGPURenderer-EYIZ7IXV.js +0 -10
  218. package/dist/chunk-IRUKNG2Y.js +0 -130
  219. 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 | {}): Promise<void>;
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 | {}): Promise<void>;
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
 
@@ -0,0 +1,9 @@
1
+ import {
2
+ WebGLRenderer
3
+ } from "./chunk-UWBWDBB3.js";
4
+ import "./chunk-BJGKFUMU.js";
5
+ import "./chunk-KAHX5SKO.js";
6
+ import "./chunk-N342G4HO.js";
7
+ export {
8
+ WebGLRenderer
9
+ };
@@ -0,0 +1,10 @@
1
+ import {
2
+ WebGPURenderer
3
+ } from "./chunk-F74VVSHO.js";
4
+ import "./chunk-XGGTEP7V.js";
5
+ import "./chunk-BJGKFUMU.js";
6
+ import "./chunk-KAHX5SKO.js";
7
+ import "./chunk-N342G4HO.js";
8
+ export {
9
+ WebGPURenderer
10
+ };
@@ -1,16 +1,16 @@
1
- import "./chunk-Y3WNBACN.js";
1
+ import "./chunk-R4J2U4HN.js";
2
2
  import {
3
3
  AccessibilitySystem,
4
4
  EventSystem,
5
5
  FederatedContainer,
6
6
  accessibilityTarget
7
- } from "./chunk-SAUNZQHZ.js";
8
- import "./chunk-CAWOWL3P.js";
9
- import "./chunk-5JREOVCG.js";
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-PP3SBC3C.js";
13
+ } from "./chunk-KAHX5SKO.js";
14
14
  import "./chunk-N342G4HO.js";
15
15
 
16
16
  // node_modules/pixi.js/lib/accessibility/init.mjs
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  filters_exports
3
- } from "./chunk-WS3FY4Q6.js";
3
+ } from "./chunk-X55ALTH7.js";
4
4
 
5
5
  // src/functions/sound-utility.ts
6
6
  function FilterMemoryToFilter(filter) {
@@ -42,7 +42,7 @@ import {
42
42
  uid,
43
43
  v8_0_0,
44
44
  warn
45
- } from "./chunk-PP3SBC3C.js";
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, instructionSet);
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, instructionSet);
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.4";
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
- /** @param renderer - The renderer this System works for. */
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
- prerender() {
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
- addRenderable(renderable, instructionSet) {
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 = this._now;
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._lastInstructionTick = instructionSet.tick;
2515
+ renderable._lastUsed = this._now;
2477
2516
  }
2478
- /** Runs the scheduled garbage collection */
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 = performance.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 currentIndex = renderGroup?.instructionSet?.tick ?? -1;
2492
- if (renderable._lastInstructionTick !== currentIndex && now - renderable._lastUsed > this.maxUnusedTime) {
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._lastInstructionTick = -1;
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;
@@ -6,7 +6,7 @@ import {
6
6
  eventemitter3_default,
7
7
  removeItems,
8
8
  warn
9
- } from "./chunk-PP3SBC3C.js";
9
+ } from "./chunk-KAHX5SKO.js";
10
10
 
11
11
  // node_modules/pixi.js/lib/events/FederatedEvent.mjs
12
12
  var FederatedEvent = class _FederatedEvent {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  CanvasPool,
3
3
  getTextureBatchBindGroup
4
- } from "./chunk-5JREOVCG.js";
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-5VX2VTDZ.js";
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-PP3SBC3C.js";
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,6 +1,6 @@
1
1
  import {
2
2
  Container
3
- } from "./chunk-PP3SBC3C.js";
3
+ } from "./chunk-KAHX5SKO.js";
4
4
 
5
5
  // src/classes/canvas/CanvasBaseItem.ts
6
6
  var CanvasBaseItem = class extends Container {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  CanvasPool,
3
3
  getTextureBatchBindGroup
4
- } from "./chunk-5JREOVCG.js";
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-PP3SBC3C.js";
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 r = this.radius;
4949
- const w2 = width / 2;
4949
+ const radius = this.radius;
4950
+ const outerWidth = (1 - alignment) * width;
4950
4951
  const distance = Math.sqrt(dx * dx + dy * dy);
4951
- return distance < r + w2 && distance > r - w2;
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, width) {
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 halfStrokeWidth = width / 2;
5042
- const innerA = halfWidth - halfStrokeWidth;
5043
- const innerB = halfHeight - halfStrokeWidth;
5044
- const outerA = halfWidth + halfStrokeWidth;
5045
- const outerB = halfHeight + halfStrokeWidth;
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 / (innerA * innerA) + normalizedY * normalizedY / (innerB * innerB);
5049
- const outerEllipse = normalizedX * normalizedX / (outerA * outerA) + normalizedY * normalizedY / (outerB * outerB);
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 halfStrokeWidth = strokeWidth / 2;
5182
- const halfStrokeWidthSqrd = halfStrokeWidth * halfStrokeWidth;
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 distanceSqrd = squaredDistanceToLineSegment(x, y, x1, y1, x2, y2);
5191
- if (distanceSqrd <= halfStrokeWidthSqrd) {
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, halfStrokeWidth) => {
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 - halfStrokeWidth && distance <= radius + halfStrokeWidth;
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 halfStrokeWidth = strokeWidth / 2;
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 - halfStrokeWidth && pX <= x + halfStrokeWidth || pX >= rightBound - halfStrokeWidth && pX <= rightBound + halfStrokeWidth) && pY >= innerY && pY <= innerY + innerHeight) {
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 - halfStrokeWidth && pY <= y + halfStrokeWidth || pY >= bottomBound - halfStrokeWidth && pY <= bottomBound + halfStrokeWidth) && pX >= innerX && pX <= innerX + innerWidth) {
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(pX, pY, innerX, innerY, radius, halfStrokeWidth) || pX > rightBound - radius && pY < innerY && isCornerWithinStroke(pX, pY, rightBound - radius, innerY, radius, halfStrokeWidth) || pX > rightBound - radius && pY > bottomBound - radius && isCornerWithinStroke(pX, pY, rightBound - radius, bottomBound - radius, radius, halfStrokeWidth) || pX < innerX && pY > bottomBound - radius && isCornerWithinStroke(pX, pY, innerX, bottomBound - radius, radius, halfStrokeWidth)
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 + startAngle;
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 padding = data.style.width * (1 - alignment);
7875
+ const outerPadding = data.style.width * (1 - alignment);
7836
7876
  const _bounds = data.path.bounds;
7837
7877
  bounds.addFrame(
7838
- _bounds.minX - padding,
7839
- _bounds.minY - padding,
7840
- _bounds.maxX + padding,
7841
- _bounds.maxY + padding
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
- hasHit = shape.strokeContains(transformedPoint.x, transformedPoint.y, style.width);
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 outerLeft = _x - strokeWidth / 2;
2336
- const outerRight = _x + width + strokeWidth / 2;
2337
- const outerTop = _y - strokeWidth / 2;
2338
- const outerBottom = _y + height + strokeWidth / 2;
2339
- const innerLeft = _x + strokeWidth / 2;
2340
- const innerRight = _x + width - strokeWidth / 2;
2341
- const innerTop = _y + strokeWidth / 2;
2342
- const innerBottom = _y + height - strokeWidth / 2;
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.tick = 0;
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
- this.addChild(children[i2]);
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 = 0;
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
  }