@drincs/pixi-vn 0.9.7 → 0.9.8
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-EFHDNV22.js +9 -0
- package/dist/WebGPURenderer-LEKL575M.js +10 -0
- package/dist/{browserAll-2HD5EH7K.js → browserAll-S4EPEXZD.js} +5 -5
- package/dist/{chunk-WNOARCWH.js → chunk-3XKVLXKN.js} +2 -2
- package/dist/{chunk-PP5T5HEO.js → chunk-52ZSR3AN.js} +1 -1
- package/dist/{chunk-SAUNZQHZ.js → chunk-D753T42C.js} +1 -1
- package/dist/{chunk-TOG67Z7Q.js → chunk-DQ47ST7G.js} +2 -2
- package/dist/{chunk-73ID6GAW.js → chunk-DWJGQ2A5.js} +2 -2
- package/dist/{chunk-5VX2VTDZ.js → chunk-DXOIIOAQ.js} +81 -27
- package/dist/{chunk-Z3NBKYVU.js → chunk-DZMWRZUL.js} +10 -9
- package/dist/{chunk-NB4Q3GFK.js → chunk-FXH7A6UR.js} +224 -53
- 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-ODIEVSQX.js → chunk-OPLBQKS2.js} +3 -3
- package/dist/{chunk-Y3WNBACN.js → chunk-R4J2U4HN.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 +397 -248
- package/dist/classes/CharacterBaseModel.js +14 -15
- package/dist/classes/CharacterStoredClass.cjs +397 -248
- package/dist/classes/CharacterStoredClass.js +14 -15
- package/dist/classes/ChoiceMenuOption.cjs +325 -178
- package/dist/classes/ChoiceMenuOption.js +14 -15
- package/dist/classes/Sound.cjs +397 -248
- package/dist/classes/Sound.js +14 -15
- package/dist/classes/StoredClassModel.cjs +397 -248
- package/dist/classes/StoredClassModel.js +14 -15
- package/dist/classes/canvas/AdditionalPositions.cjs +39323 -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 +389 -242
- package/dist/classes/canvas/Container.d.cts +1 -1
- package/dist/classes/canvas/Container.d.ts +1 -1
- package/dist/classes/canvas/Container.js +14 -15
- package/dist/classes/canvas/ImageContainer.cjs +325 -176
- package/dist/classes/canvas/ImageContainer.d.cts +1 -1
- package/dist/classes/canvas/ImageContainer.d.ts +1 -1
- package/dist/classes/canvas/ImageContainer.js +14 -15
- package/dist/classes/canvas/ImageSprite.cjs +3041 -2892
- package/dist/classes/canvas/ImageSprite.d.cts +1 -1
- package/dist/classes/canvas/ImageSprite.d.ts +1 -1
- package/dist/classes/canvas/ImageSprite.js +14 -15
- package/dist/classes/canvas/Sprite.cjs +397 -252
- package/dist/classes/canvas/Sprite.d.cts +1 -1
- package/dist/classes/canvas/Sprite.d.ts +1 -1
- package/dist/classes/canvas/Sprite.js +14 -15
- package/dist/classes/canvas/Text.cjs +319 -172
- package/dist/classes/canvas/Text.d.cts +1 -1
- package/dist/classes/canvas/Text.d.ts +1 -1
- package/dist/classes/canvas/Text.js +14 -15
- package/dist/classes/canvas/VideoSprite.cjs +3038 -2887
- package/dist/classes/canvas/VideoSprite.d.cts +4 -2
- package/dist/classes/canvas/VideoSprite.d.ts +4 -2
- package/dist/classes/canvas/VideoSprite.js +14 -15
- package/dist/classes/index.cjs +399 -252
- package/dist/classes/index.d.cts +1 -1
- package/dist/classes/index.d.ts +1 -1
- package/dist/classes/index.js +14 -15
- package/dist/classes/ticker/FadeAlphaTicker.cjs +325 -178
- package/dist/classes/ticker/FadeAlphaTicker.js +14 -15
- package/dist/classes/ticker/MoveTicker.cjs +3563 -3418
- package/dist/classes/ticker/MoveTicker.js +14 -15
- package/dist/classes/ticker/RotateTicker.cjs +325 -178
- package/dist/classes/ticker/RotateTicker.js +14 -15
- package/dist/classes/ticker/TickerBase.cjs +397 -248
- package/dist/classes/ticker/TickerBase.js +14 -15
- package/dist/classes/ticker/ZoomTicker.cjs +325 -178
- package/dist/classes/ticker/ZoomTicker.js +14 -15
- package/dist/classes/ticker/index.cjs +397 -252
- package/dist/classes/ticker/index.js +14 -15
- 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 +389 -242
- 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 +14 -15
- package/dist/decorators/event-decorator.d.cts +1 -1
- package/dist/decorators/event-decorator.d.ts +1 -1
- package/dist/decorators/index.cjs +325 -178
- package/dist/decorators/index.d.cts +1 -1
- package/dist/decorators/index.d.ts +1 -1
- package/dist/decorators/index.js +14 -15
- package/dist/decorators/label-decorator.cjs +397 -250
- package/dist/decorators/label-decorator.js +14 -15
- package/dist/functions/canvas/canvas-effect.cjs +394 -247
- package/dist/functions/canvas/canvas-effect.js +14 -15
- package/dist/functions/canvas/canvas-memory-utility.cjs +389 -242
- 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 +14 -15
- package/dist/functions/canvas/canvas-transition.cjs +397 -250
- 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 +14 -15
- package/dist/functions/canvas/canvas-utility.cjs +397 -248
- package/dist/functions/canvas/canvas-utility.js +14 -15
- package/dist/functions/canvas/image-container-utility.cjs +397 -250
- package/dist/functions/canvas/image-container-utility.d.cts +1 -1
- package/dist/functions/canvas/image-container-utility.d.ts +1 -1
- package/dist/functions/canvas/image-container-utility.js +14 -15
- package/dist/functions/canvas/image-utility.cjs +397 -250
- package/dist/functions/canvas/image-utility.d.cts +1 -1
- package/dist/functions/canvas/image-utility.d.ts +1 -1
- package/dist/functions/canvas/image-utility.js +14 -15
- package/dist/functions/canvas/video-utility.cjs +4682 -4531
- package/dist/functions/canvas/video-utility.d.cts +1 -1
- package/dist/functions/canvas/video-utility.d.ts +1 -1
- package/dist/functions/canvas/video-utility.js +14 -15
- package/dist/functions/dialogue-utility.cjs +397 -248
- package/dist/functions/dialogue-utility.js +14 -15
- package/dist/functions/flags-utility.cjs +397 -248
- package/dist/functions/flags-utility.js +14 -15
- package/dist/functions/game-utility.cjs +397 -248
- package/dist/functions/game-utility.js +14 -15
- package/dist/functions/index.cjs +397 -252
- package/dist/functions/index.d.cts +1 -1
- package/dist/functions/index.d.ts +1 -1
- package/dist/functions/index.js +14 -15
- package/dist/functions/saves-utility.cjs +397 -248
- package/dist/functions/saves-utility.d.cts +1 -1
- package/dist/functions/saves-utility.d.ts +1 -1
- package/dist/functions/saves-utility.js +14 -15
- package/dist/functions/sound-utility.cjs +92 -48
- package/dist/functions/sound-utility.js +10 -10
- package/dist/functions/texture-utility.cjs +319 -172
- package/dist/functions/texture-utility.d.cts +1 -1
- package/dist/functions/texture-utility.d.ts +1 -1
- package/dist/functions/texture-utility.js +14 -15
- package/dist/index.cjs +268 -121
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +14 -15
- 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 +397 -250
- package/dist/labels/BaseCanvasElementTestLabel.js +14 -15
- package/dist/labels/CanvasEventsTestLabel.cjs +397 -250
- package/dist/labels/CanvasEventsTestLabel.d.cts +1 -1
- package/dist/labels/CanvasEventsTestLabel.d.ts +1 -1
- package/dist/labels/CanvasEventsTestLabel.js +14 -15
- package/dist/labels/CustomTickerCanvasElementTestLabel.cjs +268 -121
- package/dist/labels/CustomTickerCanvasElementTestLabel.js +14 -15
- package/dist/labels/ImagesAnimationsTestLabel.cjs +397 -250
- package/dist/labels/ImagesAnimationsTestLabel.js +14 -15
- package/dist/labels/InputTestLabel.cjs +325 -178
- package/dist/labels/InputTestLabel.js +14 -15
- package/dist/labels/MarkdownTest.cjs +325 -178
- package/dist/labels/MarkdownTest.js +14 -15
- package/dist/labels/SoundTestLabel.cjs +325 -178
- package/dist/labels/SoundTestLabel.js +14 -15
- package/dist/labels/StartLabel.cjs +397 -250
- package/dist/labels/StartLabel.js +14 -15
- package/dist/labels/StepLabelTest.cjs +325 -178
- package/dist/labels/StepLabelTest.js +14 -15
- package/dist/labels/VideoTestLabel.cjs +325 -178
- package/dist/labels/VideoTestLabel.js +14 -15
- package/dist/labels/index.cjs +397 -250
- package/dist/labels/index.js +14 -15
- package/dist/{lib-6FCVILMQ.js → lib-5KZOZFFM.js} +8 -8
- package/dist/managers/CanvasManager.cjs +397 -248
- package/dist/managers/CanvasManager.d.cts +1 -1
- package/dist/managers/CanvasManager.d.ts +1 -1
- package/dist/managers/CanvasManager.js +14 -15
- 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 +397 -248
- package/dist/managers/NarrationManager.d.cts +2 -1
- package/dist/managers/NarrationManager.d.ts +2 -1
- package/dist/managers/NarrationManager.js +14 -15
- package/dist/managers/NarrationManagerStatic.cjs +397 -248
- package/dist/managers/NarrationManagerStatic.d.cts +1 -1
- package/dist/managers/NarrationManagerStatic.d.ts +1 -1
- package/dist/managers/NarrationManagerStatic.js +14 -15
- package/dist/managers/SoundManager.cjs +397 -248
- package/dist/managers/SoundManager.js +14 -15
- package/dist/managers/StorageManager.cjs +397 -248
- package/dist/managers/StorageManager.js +14 -15
- package/dist/managers/index.cjs +397 -248
- package/dist/managers/index.d.cts +1 -1
- package/dist/managers/index.d.ts +1 -1
- package/dist/managers/index.js +14 -15
- 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as pixi_js from 'pixi.js';
|
|
2
2
|
import { ApplicationOptions, Container } from 'pixi.js';
|
|
3
|
-
import { C as CanvasBaseItem, a as CanvasBaseItemMemory } from '../ContainerChild-
|
|
3
|
+
import { C as CanvasBaseItem, a as CanvasBaseItemMemory } from '../ContainerChild-BUFxM6Ya.cjs';
|
|
4
4
|
import TickerBase from '../classes/ticker/TickerBase.cjs';
|
|
5
5
|
import { PauseType } from '../types/PauseType.cjs';
|
|
6
6
|
import { RepeatType } from '../types/RepeatType.cjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as pixi_js from 'pixi.js';
|
|
2
2
|
import { ApplicationOptions, Container } from 'pixi.js';
|
|
3
|
-
import { C as CanvasBaseItem, a as CanvasBaseItemMemory } from '../ContainerChild-
|
|
3
|
+
import { C as CanvasBaseItem, a as CanvasBaseItemMemory } from '../ContainerChild-AjuVp3wW.js';
|
|
4
4
|
import TickerBase from '../classes/ticker/TickerBase.js';
|
|
5
5
|
import { PauseType } from '../types/PauseType.js';
|
|
6
6
|
import { RepeatType } from '../types/RepeatType.js';
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CanvasManager
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-FXH7A6UR.js";
|
|
4
4
|
import "../chunk-OMPJ74CO.js";
|
|
5
5
|
import "../chunk-2JGQWY5I.js";
|
|
6
6
|
import "../chunk-2BUPSB7O.js";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-6GJXIPNB.js";
|
|
7
|
+
import "../chunk-GEY6RTYO.js";
|
|
9
8
|
import "../chunk-I6TNJEE3.js";
|
|
10
9
|
import "../chunk-DPUSONJ3.js";
|
|
11
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-3XKVLXKN.js";
|
|
12
11
|
import "../chunk-6FAGAUDR.js";
|
|
13
12
|
import "../chunk-RI37WOHP.js";
|
|
14
13
|
import "../chunk-ETZISN54.js";
|
|
15
14
|
import "../chunk-VXCA724Z.js";
|
|
16
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-52ZSR3AN.js";
|
|
17
16
|
import "../chunk-ZZLQ3ILH.js";
|
|
18
17
|
import "../chunk-JTQGULTR.js";
|
|
19
18
|
import "../chunk-FHNQBWIZ.js";
|
|
@@ -21,16 +20,16 @@ import "../chunk-ZBUW3MBH.js";
|
|
|
21
20
|
import "../chunk-PIYIZHZL.js";
|
|
22
21
|
import "../chunk-B7XQM2BB.js";
|
|
23
22
|
import "../chunk-LEMOIFSV.js";
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
29
|
-
import "../chunk-
|
|
30
|
-
import "../chunk-
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-
|
|
33
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-DQ47ST7G.js";
|
|
24
|
+
import "../chunk-X55ALTH7.js";
|
|
25
|
+
import "../chunk-DZMWRZUL.js";
|
|
26
|
+
import "../chunk-D753T42C.js";
|
|
27
|
+
import "../chunk-IG7HSAEJ.js";
|
|
28
|
+
import "../chunk-OPLBQKS2.js";
|
|
29
|
+
import "../chunk-XGGTEP7V.js";
|
|
30
|
+
import "../chunk-DWJGQ2A5.js";
|
|
31
|
+
import "../chunk-DXOIIOAQ.js";
|
|
32
|
+
import "../chunk-KAHX5SKO.js";
|
|
34
33
|
import "../chunk-HKAY3U4R.js";
|
|
35
34
|
import "../chunk-SJIEQTBV.js";
|
|
36
35
|
import "../chunk-CBG6JWY4.js";
|
|
@@ -2496,22 +2496,25 @@ var init_Rectangle = __esm({
|
|
|
2496
2496
|
* @param x - The X coordinate of the point to test
|
|
2497
2497
|
* @param y - The Y coordinate of the point to test
|
|
2498
2498
|
* @param strokeWidth - The width of the line to check
|
|
2499
|
+
* @param alignment - The alignment of the stroke, 0.5 by default
|
|
2499
2500
|
* @returns Whether the x/y coordinates are within this rectangle
|
|
2500
2501
|
*/
|
|
2501
|
-
strokeContains(x2, y2, strokeWidth) {
|
|
2502
|
+
strokeContains(x2, y2, strokeWidth, alignment = 0.5) {
|
|
2502
2503
|
const { width, height } = this;
|
|
2503
2504
|
if (width <= 0 || height <= 0)
|
|
2504
2505
|
return false;
|
|
2505
2506
|
const _x = this.x;
|
|
2506
2507
|
const _y = this.y;
|
|
2507
|
-
const
|
|
2508
|
-
const
|
|
2509
|
-
const
|
|
2510
|
-
const
|
|
2511
|
-
const
|
|
2512
|
-
const
|
|
2513
|
-
const
|
|
2514
|
-
const
|
|
2508
|
+
const strokeWidthOuter = strokeWidth * (1 - alignment);
|
|
2509
|
+
const strokeWidthInner = strokeWidth - strokeWidthOuter;
|
|
2510
|
+
const outerLeft = _x - strokeWidthOuter;
|
|
2511
|
+
const outerRight = _x + width + strokeWidthOuter;
|
|
2512
|
+
const outerTop = _y - strokeWidthOuter;
|
|
2513
|
+
const outerBottom = _y + height + strokeWidthOuter;
|
|
2514
|
+
const innerLeft = _x + strokeWidthInner;
|
|
2515
|
+
const innerRight = _x + width - strokeWidthInner;
|
|
2516
|
+
const innerTop = _y + strokeWidthInner;
|
|
2517
|
+
const innerBottom = _y + height - strokeWidthInner;
|
|
2515
2518
|
return x2 >= outerLeft && x2 <= outerRight && y2 >= outerTop && y2 <= outerBottom && !(x2 > innerLeft && x2 < innerRight && y2 > innerTop && y2 < innerBottom);
|
|
2516
2519
|
}
|
|
2517
2520
|
/**
|
|
@@ -3645,24 +3648,22 @@ var init_toLocalGlobalMixin = __esm({
|
|
|
3645
3648
|
});
|
|
3646
3649
|
|
|
3647
3650
|
// node_modules/pixi.js/lib/rendering/renderers/shared/instructions/InstructionSet.mjs
|
|
3648
|
-
var
|
|
3651
|
+
var InstructionSet;
|
|
3649
3652
|
var init_InstructionSet = __esm({
|
|
3650
3653
|
"node_modules/pixi.js/lib/rendering/renderers/shared/instructions/InstructionSet.mjs"() {
|
|
3651
3654
|
"use strict";
|
|
3652
3655
|
init_uid();
|
|
3653
|
-
_tick = 0;
|
|
3654
3656
|
InstructionSet = class {
|
|
3655
3657
|
constructor() {
|
|
3656
3658
|
this.uid = uid("instructionSet");
|
|
3657
3659
|
this.instructions = [];
|
|
3658
3660
|
this.instructionSize = 0;
|
|
3659
3661
|
this.renderables = [];
|
|
3660
|
-
this.
|
|
3662
|
+
this.gcTick = 0;
|
|
3661
3663
|
}
|
|
3662
3664
|
/** reset the instruction set so it can be reused set size back to 0 */
|
|
3663
3665
|
reset() {
|
|
3664
3666
|
this.instructionSize = 0;
|
|
3665
|
-
this.tick = _tick++;
|
|
3666
3667
|
}
|
|
3667
3668
|
/**
|
|
3668
3669
|
* Add an instruction to the set
|
|
@@ -4835,6 +4836,7 @@ var init_RenderGroup = __esm({
|
|
|
4835
4836
|
this.worldAlpha = 1;
|
|
4836
4837
|
this.childrenToUpdate = /* @__PURE__ */ Object.create(null);
|
|
4837
4838
|
this.updateTick = 0;
|
|
4839
|
+
this.gcTick = 0;
|
|
4838
4840
|
this.childrenRenderablesToUpdate = { list: [], index: 0 };
|
|
4839
4841
|
this.structureDidChange = true;
|
|
4840
4842
|
this.instructionSet = new InstructionSet();
|
|
@@ -4850,7 +4852,9 @@ var init_RenderGroup = __esm({
|
|
|
4850
4852
|
root.didChange = true;
|
|
4851
4853
|
const children = root.children;
|
|
4852
4854
|
for (let i3 = 0; i3 < children.length; i3++) {
|
|
4853
|
-
|
|
4855
|
+
const child = children[i3];
|
|
4856
|
+
child._updateFlags = 15;
|
|
4857
|
+
this.addChild(child);
|
|
4854
4858
|
}
|
|
4855
4859
|
}
|
|
4856
4860
|
enableCacheAsTexture(options = {}) {
|
|
@@ -10785,8 +10789,7 @@ var init_ViewContainer = __esm({
|
|
|
10785
10789
|
this.canBundle = true;
|
|
10786
10790
|
this.allowChildren = false;
|
|
10787
10791
|
this._roundPixels = 0;
|
|
10788
|
-
this._lastUsed =
|
|
10789
|
-
this._lastInstructionTick = -1;
|
|
10792
|
+
this._lastUsed = -1;
|
|
10790
10793
|
this._bounds = new Bounds(0, 1, 0, 0);
|
|
10791
10794
|
this._boundsDirty = true;
|
|
10792
10795
|
}
|
|
@@ -18117,17 +18120,18 @@ var init_Circle = __esm({
|
|
|
18117
18120
|
* @param x - The X coordinate of the point to test
|
|
18118
18121
|
* @param y - The Y coordinate of the point to test
|
|
18119
18122
|
* @param width - The width of the line to check
|
|
18123
|
+
* @param alignment - The alignment of the stroke, 0.5 by default
|
|
18120
18124
|
* @returns Whether the x/y coordinates are within this Circle
|
|
18121
18125
|
*/
|
|
18122
|
-
strokeContains(x2, y2, width) {
|
|
18126
|
+
strokeContains(x2, y2, width, alignment = 0.5) {
|
|
18123
18127
|
if (this.radius === 0)
|
|
18124
18128
|
return false;
|
|
18125
18129
|
const dx = this.x - x2;
|
|
18126
18130
|
const dy = this.y - y2;
|
|
18127
|
-
const
|
|
18128
|
-
const
|
|
18131
|
+
const radius = this.radius;
|
|
18132
|
+
const outerWidth = (1 - alignment) * width;
|
|
18129
18133
|
const distance = Math.sqrt(dx * dx + dy * dy);
|
|
18130
|
-
return distance
|
|
18134
|
+
return distance <= radius + outerWidth && distance > radius - (width - outerWidth);
|
|
18131
18135
|
}
|
|
18132
18136
|
/**
|
|
18133
18137
|
* Returns the framing rectangle of the circle as a Rectangle object
|
|
@@ -18216,23 +18220,25 @@ var init_Ellipse = __esm({
|
|
|
18216
18220
|
* Checks whether the x and y coordinates given are contained within this ellipse including stroke
|
|
18217
18221
|
* @param x - The X coordinate of the point to test
|
|
18218
18222
|
* @param y - The Y coordinate of the point to test
|
|
18219
|
-
* @param width
|
|
18223
|
+
* @param strokeWidth - The width of the line to check
|
|
18224
|
+
* @param alignment - The alignment of the stroke
|
|
18220
18225
|
* @returns Whether the x/y coords are within this ellipse
|
|
18221
18226
|
*/
|
|
18222
|
-
strokeContains(x2, y2,
|
|
18227
|
+
strokeContains(x2, y2, strokeWidth, alignment = 0.5) {
|
|
18223
18228
|
const { halfWidth, halfHeight } = this;
|
|
18224
18229
|
if (halfWidth <= 0 || halfHeight <= 0) {
|
|
18225
18230
|
return false;
|
|
18226
18231
|
}
|
|
18227
|
-
const
|
|
18228
|
-
const
|
|
18229
|
-
const
|
|
18230
|
-
const
|
|
18231
|
-
const
|
|
18232
|
+
const strokeOuterWidth = strokeWidth * (1 - alignment);
|
|
18233
|
+
const strokeInnerWidth = strokeWidth - strokeOuterWidth;
|
|
18234
|
+
const innerHorizontal = halfWidth - strokeInnerWidth;
|
|
18235
|
+
const innerVertical = halfHeight - strokeInnerWidth;
|
|
18236
|
+
const outerHorizontal = halfWidth + strokeOuterWidth;
|
|
18237
|
+
const outerVertical = halfHeight + strokeOuterWidth;
|
|
18232
18238
|
const normalizedX = x2 - this.x;
|
|
18233
18239
|
const normalizedY = y2 - this.y;
|
|
18234
|
-
const innerEllipse = normalizedX * normalizedX / (
|
|
18235
|
-
const outerEllipse = normalizedX * normalizedX / (
|
|
18240
|
+
const innerEllipse = normalizedX * normalizedX / (innerHorizontal * innerHorizontal) + normalizedY * normalizedY / (innerVertical * innerVertical);
|
|
18241
|
+
const outerEllipse = normalizedX * normalizedX / (outerHorizontal * outerHorizontal) + normalizedY * normalizedY / (outerVertical * outerVertical);
|
|
18236
18242
|
return innerEllipse > 1 && outerEllipse <= 1;
|
|
18237
18243
|
}
|
|
18238
18244
|
/**
|
|
@@ -18374,11 +18380,13 @@ var init_Polygon = __esm({
|
|
|
18374
18380
|
* @param x - The X coordinate of the point to test
|
|
18375
18381
|
* @param y - The Y coordinate of the point to test
|
|
18376
18382
|
* @param strokeWidth - The width of the line to check
|
|
18383
|
+
* @param alignment - The alignment of the stroke, 0.5 by default
|
|
18377
18384
|
* @returns Whether the x/y coordinates are within this polygon
|
|
18378
18385
|
*/
|
|
18379
|
-
strokeContains(x2, y2, strokeWidth) {
|
|
18380
|
-
const
|
|
18381
|
-
const
|
|
18386
|
+
strokeContains(x2, y2, strokeWidth, alignment = 0.5) {
|
|
18387
|
+
const strokeWidthSquared = strokeWidth * strokeWidth;
|
|
18388
|
+
const rightWidthSquared = strokeWidthSquared * (1 - alignment);
|
|
18389
|
+
const leftWidthSquared = strokeWidthSquared - rightWidthSquared;
|
|
18382
18390
|
const { points } = this;
|
|
18383
18391
|
const iterationLength = points.length - (this.closePath ? 0 : 2);
|
|
18384
18392
|
for (let i3 = 0; i3 < iterationLength; i3 += 2) {
|
|
@@ -18386,8 +18394,9 @@ var init_Polygon = __esm({
|
|
|
18386
18394
|
const y1 = points[i3 + 1];
|
|
18387
18395
|
const x22 = points[(i3 + 2) % points.length];
|
|
18388
18396
|
const y22 = points[(i3 + 3) % points.length];
|
|
18389
|
-
const
|
|
18390
|
-
|
|
18397
|
+
const distanceSquared = squaredDistanceToLineSegment(x2, y2, x1, y1, x22, y22);
|
|
18398
|
+
const sign = Math.sign((x22 - x1) * (y2 - y1) - (y22 - y1) * (x2 - x1));
|
|
18399
|
+
if (distanceSquared <= (sign < 0 ? leftWidthSquared : rightWidthSquared)) {
|
|
18391
18400
|
return true;
|
|
18392
18401
|
}
|
|
18393
18402
|
}
|
|
@@ -18479,11 +18488,11 @@ var init_RoundedRectangle = __esm({
|
|
|
18479
18488
|
"node_modules/pixi.js/lib/maths/shapes/RoundedRectangle.mjs"() {
|
|
18480
18489
|
"use strict";
|
|
18481
18490
|
init_Rectangle();
|
|
18482
|
-
isCornerWithinStroke = (pX, pY, cornerX, cornerY, radius,
|
|
18491
|
+
isCornerWithinStroke = (pX, pY, cornerX, cornerY, radius, strokeWidthInner, strokeWidthOuter) => {
|
|
18483
18492
|
const dx = pX - cornerX;
|
|
18484
18493
|
const dy = pY - cornerY;
|
|
18485
18494
|
const distance = Math.sqrt(dx * dx + dy * dy);
|
|
18486
|
-
return distance >= radius -
|
|
18495
|
+
return distance >= radius - strokeWidthInner && distance <= radius + strokeWidthOuter;
|
|
18487
18496
|
};
|
|
18488
18497
|
RoundedRectangle = class _RoundedRectangle {
|
|
18489
18498
|
/**
|
|
@@ -18585,26 +18594,60 @@ var init_RoundedRectangle = __esm({
|
|
|
18585
18594
|
* @param pX - The X coordinate of the point to test
|
|
18586
18595
|
* @param pY - The Y coordinate of the point to test
|
|
18587
18596
|
* @param strokeWidth - The width of the line to check
|
|
18597
|
+
* @param alignment - The alignment of the stroke, 0.5 by default
|
|
18588
18598
|
* @returns Whether the x/y coordinates are within this rectangle
|
|
18589
18599
|
*/
|
|
18590
|
-
strokeContains(pX, pY, strokeWidth) {
|
|
18600
|
+
strokeContains(pX, pY, strokeWidth, alignment = 0.5) {
|
|
18591
18601
|
const { x: x2, y: y2, width, height, radius } = this;
|
|
18592
|
-
const
|
|
18602
|
+
const strokeWidthOuter = strokeWidth * (1 - alignment);
|
|
18603
|
+
const strokeWidthInner = strokeWidth - strokeWidthOuter;
|
|
18593
18604
|
const innerX = x2 + radius;
|
|
18594
18605
|
const innerY = y2 + radius;
|
|
18595
18606
|
const innerWidth = width - radius * 2;
|
|
18596
18607
|
const innerHeight = height - radius * 2;
|
|
18597
18608
|
const rightBound = x2 + width;
|
|
18598
18609
|
const bottomBound = y2 + height;
|
|
18599
|
-
if ((pX >= x2 -
|
|
18610
|
+
if ((pX >= x2 - strokeWidthOuter && pX <= x2 + strokeWidthInner || pX >= rightBound - strokeWidthInner && pX <= rightBound + strokeWidthOuter) && pY >= innerY && pY <= innerY + innerHeight) {
|
|
18600
18611
|
return true;
|
|
18601
18612
|
}
|
|
18602
|
-
if ((pY >= y2 -
|
|
18613
|
+
if ((pY >= y2 - strokeWidthOuter && pY <= y2 + strokeWidthInner || pY >= bottomBound - strokeWidthInner && pY <= bottomBound + strokeWidthOuter) && pX >= innerX && pX <= innerX + innerWidth) {
|
|
18603
18614
|
return true;
|
|
18604
18615
|
}
|
|
18605
18616
|
return (
|
|
18606
18617
|
// Top-left
|
|
18607
|
-
pX < innerX && pY < innerY && isCornerWithinStroke(
|
|
18618
|
+
pX < innerX && pY < innerY && isCornerWithinStroke(
|
|
18619
|
+
pX,
|
|
18620
|
+
pY,
|
|
18621
|
+
innerX,
|
|
18622
|
+
innerY,
|
|
18623
|
+
radius,
|
|
18624
|
+
strokeWidthInner,
|
|
18625
|
+
strokeWidthOuter
|
|
18626
|
+
) || pX > rightBound - radius && pY < innerY && isCornerWithinStroke(
|
|
18627
|
+
pX,
|
|
18628
|
+
pY,
|
|
18629
|
+
rightBound - radius,
|
|
18630
|
+
innerY,
|
|
18631
|
+
radius,
|
|
18632
|
+
strokeWidthInner,
|
|
18633
|
+
strokeWidthOuter
|
|
18634
|
+
) || pX > rightBound - radius && pY > bottomBound - radius && isCornerWithinStroke(
|
|
18635
|
+
pX,
|
|
18636
|
+
pY,
|
|
18637
|
+
rightBound - radius,
|
|
18638
|
+
bottomBound - radius,
|
|
18639
|
+
radius,
|
|
18640
|
+
strokeWidthInner,
|
|
18641
|
+
strokeWidthOuter
|
|
18642
|
+
) || pX < innerX && pY > bottomBound - radius && isCornerWithinStroke(
|
|
18643
|
+
pX,
|
|
18644
|
+
pY,
|
|
18645
|
+
innerX,
|
|
18646
|
+
bottomBound - radius,
|
|
18647
|
+
radius,
|
|
18648
|
+
strokeWidthInner,
|
|
18649
|
+
strokeWidthOuter
|
|
18650
|
+
)
|
|
18608
18651
|
);
|
|
18609
18652
|
}
|
|
18610
18653
|
toString() {
|
|
@@ -19438,7 +19481,7 @@ var init_ShapePath = __esm({
|
|
|
19438
19481
|
const delta = Math.PI * 2 / sides;
|
|
19439
19482
|
const polygon = [];
|
|
19440
19483
|
for (let i3 = 0; i3 < sides; i3++) {
|
|
19441
|
-
const angle = i3 * delta
|
|
19484
|
+
const angle = startAngle - i3 * delta;
|
|
19442
19485
|
polygon.push(
|
|
19443
19486
|
x2 + radius * Math.cos(angle),
|
|
19444
19487
|
y2 + radius * Math.sin(angle)
|
|
@@ -21138,13 +21181,13 @@ var init_GraphicsContext = __esm({
|
|
|
21138
21181
|
if (action === "stroke") {
|
|
21139
21182
|
const data = instruction.data;
|
|
21140
21183
|
const alignment = data.style.alignment;
|
|
21141
|
-
const
|
|
21184
|
+
const outerPadding = data.style.width * (1 - alignment);
|
|
21142
21185
|
const _bounds = data.path.bounds;
|
|
21143
21186
|
bounds.addFrame(
|
|
21144
|
-
_bounds.minX -
|
|
21145
|
-
_bounds.minY -
|
|
21146
|
-
_bounds.maxX +
|
|
21147
|
-
_bounds.maxY +
|
|
21187
|
+
_bounds.minX - outerPadding,
|
|
21188
|
+
_bounds.minY - outerPadding,
|
|
21189
|
+
_bounds.maxX + outerPadding,
|
|
21190
|
+
_bounds.maxY + outerPadding
|
|
21148
21191
|
);
|
|
21149
21192
|
}
|
|
21150
21193
|
}
|
|
@@ -21177,7 +21220,8 @@ var init_GraphicsContext = __esm({
|
|
|
21177
21220
|
if (instruction.action === "fill") {
|
|
21178
21221
|
hasHit = shape.contains(transformedPoint.x, transformedPoint.y);
|
|
21179
21222
|
} else {
|
|
21180
|
-
|
|
21223
|
+
const strokeStyle = style;
|
|
21224
|
+
hasHit = shape.strokeContains(transformedPoint.x, transformedPoint.y, strokeStyle.width, strokeStyle.alignment);
|
|
21181
21225
|
}
|
|
21182
21226
|
const holes = data.hole;
|
|
21183
21227
|
if (holes) {
|
|
@@ -29033,7 +29077,7 @@ function collectAllRenderablesSimple(container, instructionSet, renderer) {
|
|
|
29033
29077
|
renderPipes3.blendMode.setBlendMode(renderable, container.groupBlendMode, instructionSet);
|
|
29034
29078
|
const rp = renderPipes3;
|
|
29035
29079
|
rp[renderable.renderPipeId].addRenderable(renderable, instructionSet);
|
|
29036
|
-
renderableGC.addRenderable(renderable
|
|
29080
|
+
renderableGC.addRenderable(renderable);
|
|
29037
29081
|
renderable.didViewUpdate = false;
|
|
29038
29082
|
}
|
|
29039
29083
|
if (!container.renderGroup) {
|
|
@@ -29060,7 +29104,7 @@ function collectAllRenderablesAdvanced(container, instructionSet, renderer, isRo
|
|
|
29060
29104
|
renderPipes3.blendMode.setBlendMode(renderable, renderable.groupBlendMode, instructionSet);
|
|
29061
29105
|
const pipe = renderPipes3[renderPipeId];
|
|
29062
29106
|
pipe.addRenderable(renderable, instructionSet);
|
|
29063
|
-
renderableGC.addRenderable(renderable
|
|
29107
|
+
renderableGC.addRenderable(renderable);
|
|
29064
29108
|
renderable.didViewUpdate = false;
|
|
29065
29109
|
}
|
|
29066
29110
|
const children = container.children;
|
|
@@ -29459,7 +29503,7 @@ var init_const8 = __esm({
|
|
|
29459
29503
|
"use strict";
|
|
29460
29504
|
init_eventemitter3();
|
|
29461
29505
|
DATA_URI = /^\s*data:(?:([\w-]+)\/([\w+.-]+))?(?:;charset=([\w-]+))?(?:;(base64))?,(.*)/i;
|
|
29462
|
-
VERSION = "8.6.
|
|
29506
|
+
VERSION = "8.6.5";
|
|
29463
29507
|
}
|
|
29464
29508
|
});
|
|
29465
29509
|
|
|
@@ -30892,29 +30936,46 @@ var init_clean = __esm({
|
|
|
30892
30936
|
});
|
|
30893
30937
|
|
|
30894
30938
|
// node_modules/pixi.js/lib/rendering/renderers/shared/texture/RenderableGCSystem.mjs
|
|
30895
|
-
var _RenderableGCSystem, RenderableGCSystem;
|
|
30939
|
+
var renderableGCTick, _RenderableGCSystem, RenderableGCSystem;
|
|
30896
30940
|
var init_RenderableGCSystem = __esm({
|
|
30897
30941
|
"node_modules/pixi.js/lib/rendering/renderers/shared/texture/RenderableGCSystem.mjs"() {
|
|
30898
30942
|
"use strict";
|
|
30899
30943
|
init_Extensions();
|
|
30900
30944
|
init_clean();
|
|
30945
|
+
renderableGCTick = 0;
|
|
30901
30946
|
_RenderableGCSystem = class _RenderableGCSystem2 {
|
|
30902
|
-
/**
|
|
30947
|
+
/**
|
|
30948
|
+
* Creates a new RenderableGCSystem instance.
|
|
30949
|
+
* @param renderer - The renderer this garbage collection system works for
|
|
30950
|
+
*/
|
|
30903
30951
|
constructor(renderer) {
|
|
30904
30952
|
this._managedRenderables = [];
|
|
30905
30953
|
this._managedHashes = [];
|
|
30906
30954
|
this._managedArrays = [];
|
|
30907
30955
|
this._renderer = renderer;
|
|
30908
30956
|
}
|
|
30957
|
+
/**
|
|
30958
|
+
* Initializes the garbage collection system with the provided options.
|
|
30959
|
+
* @param options - Configuration options for the renderer
|
|
30960
|
+
*/
|
|
30909
30961
|
init(options) {
|
|
30910
30962
|
options = { ..._RenderableGCSystem2.defaultOptions, ...options };
|
|
30911
30963
|
this.maxUnusedTime = options.renderableGCMaxUnusedTime;
|
|
30912
30964
|
this._frequency = options.renderableGCFrequency;
|
|
30913
30965
|
this.enabled = options.renderableGCActive;
|
|
30914
30966
|
}
|
|
30967
|
+
/**
|
|
30968
|
+
* Gets whether the garbage collection system is currently enabled.
|
|
30969
|
+
* @returns True if GC is enabled, false otherwise
|
|
30970
|
+
*/
|
|
30915
30971
|
get enabled() {
|
|
30916
30972
|
return !!this._handler;
|
|
30917
30973
|
}
|
|
30974
|
+
/**
|
|
30975
|
+
* Enables or disables the garbage collection system.
|
|
30976
|
+
* When enabled, schedules periodic cleanup of resources.
|
|
30977
|
+
* When disabled, cancels all scheduled cleanups.
|
|
30978
|
+
*/
|
|
30918
30979
|
set enabled(value) {
|
|
30919
30980
|
if (this.enabled === value)
|
|
30920
30981
|
return;
|
|
@@ -30946,28 +31007,53 @@ var init_RenderableGCSystem = __esm({
|
|
|
30946
31007
|
this._renderer.scheduler.cancel(this._arrayHandler);
|
|
30947
31008
|
}
|
|
30948
31009
|
}
|
|
31010
|
+
/**
|
|
31011
|
+
* Adds a hash table to be managed by the garbage collector.
|
|
31012
|
+
* @param context - The object containing the hash table
|
|
31013
|
+
* @param hash - The property name of the hash table
|
|
31014
|
+
*/
|
|
30949
31015
|
addManagedHash(context2, hash) {
|
|
30950
31016
|
this._managedHashes.push({ context: context2, hash });
|
|
30951
31017
|
}
|
|
31018
|
+
/**
|
|
31019
|
+
* Adds an array to be managed by the garbage collector.
|
|
31020
|
+
* @param context - The object containing the array
|
|
31021
|
+
* @param hash - The property name of the array
|
|
31022
|
+
*/
|
|
30952
31023
|
addManagedArray(context2, hash) {
|
|
30953
31024
|
this._managedArrays.push({ context: context2, hash });
|
|
30954
31025
|
}
|
|
30955
|
-
|
|
31026
|
+
/**
|
|
31027
|
+
* Updates the GC timestamp and tracking before rendering.
|
|
31028
|
+
* @param options - The render options
|
|
31029
|
+
* @param options.container - The container to render
|
|
31030
|
+
*/
|
|
31031
|
+
prerender({
|
|
31032
|
+
container
|
|
31033
|
+
}) {
|
|
30956
31034
|
this._now = performance.now();
|
|
31035
|
+
container.renderGroup.gcTick = renderableGCTick++;
|
|
31036
|
+
this._updateInstructionGCTick(container.renderGroup, container.renderGroup.gcTick);
|
|
30957
31037
|
}
|
|
30958
|
-
|
|
31038
|
+
/**
|
|
31039
|
+
* Starts tracking a renderable for garbage collection.
|
|
31040
|
+
* @param renderable - The renderable to track
|
|
31041
|
+
*/
|
|
31042
|
+
addRenderable(renderable) {
|
|
30959
31043
|
if (!this.enabled)
|
|
30960
31044
|
return;
|
|
30961
|
-
renderable._lastUsed
|
|
30962
|
-
if (renderable._lastInstructionTick === -1) {
|
|
31045
|
+
if (renderable._lastUsed === -1) {
|
|
30963
31046
|
this._managedRenderables.push(renderable);
|
|
30964
31047
|
renderable.once("destroyed", this._removeRenderable, this);
|
|
30965
31048
|
}
|
|
30966
|
-
renderable.
|
|
31049
|
+
renderable._lastUsed = this._now;
|
|
30967
31050
|
}
|
|
30968
|
-
/**
|
|
31051
|
+
/**
|
|
31052
|
+
* Performs garbage collection by cleaning up unused renderables.
|
|
31053
|
+
* Removes renderables that haven't been used for longer than maxUnusedTime.
|
|
31054
|
+
*/
|
|
30969
31055
|
run() {
|
|
30970
|
-
const now =
|
|
31056
|
+
const now = this._now;
|
|
30971
31057
|
const managedRenderables = this._managedRenderables;
|
|
30972
31058
|
const renderPipes3 = this._renderer.renderPipes;
|
|
30973
31059
|
let offset = 0;
|
|
@@ -30978,13 +31064,18 @@ var init_RenderableGCSystem = __esm({
|
|
|
30978
31064
|
continue;
|
|
30979
31065
|
}
|
|
30980
31066
|
const renderGroup = renderable.renderGroup ?? renderable.parentRenderGroup;
|
|
30981
|
-
const
|
|
30982
|
-
if (
|
|
31067
|
+
const currentTick = renderGroup?.instructionSet?.gcTick ?? -1;
|
|
31068
|
+
if ((renderGroup?.gcTick ?? 0) === currentTick) {
|
|
31069
|
+
renderable._lastUsed = now;
|
|
31070
|
+
}
|
|
31071
|
+
if (now - renderable._lastUsed > this.maxUnusedTime) {
|
|
30983
31072
|
if (!renderable.destroyed) {
|
|
30984
31073
|
const rp = renderPipes3;
|
|
31074
|
+
if (renderGroup)
|
|
31075
|
+
renderGroup.structureDidChange = false;
|
|
30985
31076
|
rp[renderable.renderPipeId].destroyRenderable(renderable);
|
|
30986
31077
|
}
|
|
30987
|
-
renderable.
|
|
31078
|
+
renderable._lastUsed = -1;
|
|
30988
31079
|
offset++;
|
|
30989
31080
|
renderable.off("destroyed", this._removeRenderable, this);
|
|
30990
31081
|
} else {
|
|
@@ -30993,6 +31084,7 @@ var init_RenderableGCSystem = __esm({
|
|
|
30993
31084
|
}
|
|
30994
31085
|
managedRenderables.length -= offset;
|
|
30995
31086
|
}
|
|
31087
|
+
/** Cleans up the garbage collection system. Disables GC and removes all tracked resources. */
|
|
30996
31088
|
destroy() {
|
|
30997
31089
|
this.enabled = false;
|
|
30998
31090
|
this._renderer = null;
|
|
@@ -31000,6 +31092,10 @@ var init_RenderableGCSystem = __esm({
|
|
|
31000
31092
|
this._managedHashes.length = 0;
|
|
31001
31093
|
this._managedArrays.length = 0;
|
|
31002
31094
|
}
|
|
31095
|
+
/**
|
|
31096
|
+
* Removes a renderable from being tracked when it's destroyed.
|
|
31097
|
+
* @param renderable - The renderable to stop tracking
|
|
31098
|
+
*/
|
|
31003
31099
|
_removeRenderable(renderable) {
|
|
31004
31100
|
const index = this._managedRenderables.indexOf(renderable);
|
|
31005
31101
|
if (index >= 0) {
|
|
@@ -31007,6 +31103,17 @@ var init_RenderableGCSystem = __esm({
|
|
|
31007
31103
|
this._managedRenderables[index] = null;
|
|
31008
31104
|
}
|
|
31009
31105
|
}
|
|
31106
|
+
/**
|
|
31107
|
+
* Updates the GC tick counter for a render group and its children.
|
|
31108
|
+
* @param renderGroup - The render group to update
|
|
31109
|
+
* @param gcTick - The new tick value
|
|
31110
|
+
*/
|
|
31111
|
+
_updateInstructionGCTick(renderGroup, gcTick) {
|
|
31112
|
+
renderGroup.instructionSet.gcTick = gcTick;
|
|
31113
|
+
for (const child of renderGroup.renderGroupChildren) {
|
|
31114
|
+
this._updateInstructionGCTick(child, gcTick);
|
|
31115
|
+
}
|
|
31116
|
+
}
|
|
31010
31117
|
};
|
|
31011
31118
|
_RenderableGCSystem.extension = {
|
|
31012
31119
|
type: [
|
|
@@ -31017,20 +31124,11 @@ var init_RenderableGCSystem = __esm({
|
|
|
31017
31124
|
priority: 0
|
|
31018
31125
|
};
|
|
31019
31126
|
_RenderableGCSystem.defaultOptions = {
|
|
31020
|
-
/**
|
|
31021
|
-
* If set to true, this will enable the garbage collector on the GPU.
|
|
31022
|
-
* @default true
|
|
31023
|
-
*/
|
|
31127
|
+
/** Enable/disable the garbage collector */
|
|
31024
31128
|
renderableGCActive: true,
|
|
31025
|
-
/**
|
|
31026
|
-
* The maximum idle frames before a texture is destroyed by garbage collection.
|
|
31027
|
-
* @default 60 * 60
|
|
31028
|
-
*/
|
|
31129
|
+
/** Time in ms before an unused resource is collected (default 1 minute) */
|
|
31029
31130
|
renderableGCMaxUnusedTime: 6e4,
|
|
31030
|
-
/**
|
|
31031
|
-
* Frames between two garbage collections.
|
|
31032
|
-
* @default 600
|
|
31033
|
-
*/
|
|
31131
|
+
/** How often to run garbage collection in ms (default 30 seconds) */
|
|
31034
31132
|
renderableGCFrequency: 3e4
|
|
31035
31133
|
};
|
|
31036
31134
|
RenderableGCSystem = _RenderableGCSystem;
|
|
@@ -39525,7 +39623,7 @@ var init_loadWebFont = __esm({
|
|
|
39525
39623
|
},
|
|
39526
39624
|
unload(font) {
|
|
39527
39625
|
(Array.isArray(font) ? font : [font]).forEach((t2) => {
|
|
39528
|
-
Cache.remove(t2.family);
|
|
39626
|
+
Cache.remove(`${t2.family}-and-url`);
|
|
39529
39627
|
DOMAdapter.get().getFontFaceSet().delete(t2);
|
|
39530
39628
|
});
|
|
39531
39629
|
}
|
|
@@ -49232,9 +49330,10 @@ var init_Triangle = __esm({
|
|
|
49232
49330
|
* @param pointX - The X coordinate of the point to test
|
|
49233
49331
|
* @param pointY - The Y coordinate of the point to test
|
|
49234
49332
|
* @param strokeWidth - The width of the line to check
|
|
49333
|
+
* @param _alignment - The alignment of the stroke
|
|
49235
49334
|
* @returns Whether the x/y coordinates are within this triangle
|
|
49236
49335
|
*/
|
|
49237
|
-
strokeContains(pointX, pointY, strokeWidth) {
|
|
49336
|
+
strokeContains(pointX, pointY, strokeWidth, _alignment = 0.5) {
|
|
49238
49337
|
const halfStrokeWidth = strokeWidth / 2;
|
|
49239
49338
|
const halfStrokeWidthSquared = halfStrokeWidth * halfStrokeWidth;
|
|
49240
49339
|
const { x: x2, x2: x22, x3, y: y2, y2: y22, y3 } = this;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as pixi_js from 'pixi.js';
|
|
2
2
|
import { Application, ApplicationOptions } from 'pixi.js';
|
|
3
|
-
import { C as CanvasBaseItem } from '../ContainerChild-
|
|
3
|
+
import { C as CanvasBaseItem } from '../ContainerChild-BUFxM6Ya.cjs';
|
|
4
4
|
import PauseTickerType from '../types/PauseTickerType.cjs';
|
|
5
5
|
import TickerHistory from '../interface/TickerHistory.cjs';
|
|
6
6
|
import TickersSteps from '../interface/TickersSteps.cjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as pixi_js from 'pixi.js';
|
|
2
2
|
import { Application, ApplicationOptions } from 'pixi.js';
|
|
3
|
-
import { C as CanvasBaseItem } from '../ContainerChild-
|
|
3
|
+
import { C as CanvasBaseItem } from '../ContainerChild-AjuVp3wW.js';
|
|
4
4
|
import PauseTickerType from '../types/PauseTickerType.js';
|
|
5
5
|
import TickerHistory from '../interface/TickerHistory.js';
|
|
6
6
|
import TickersSteps from '../interface/TickersSteps.js';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CanvasManagerStatic
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-3XKVLXKN.js";
|
|
4
4
|
import "../chunk-ZBUW3MBH.js";
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-DZMWRZUL.js";
|
|
6
|
+
import "../chunk-D753T42C.js";
|
|
7
|
+
import "../chunk-IG7HSAEJ.js";
|
|
8
|
+
import "../chunk-OPLBQKS2.js";
|
|
9
|
+
import "../chunk-XGGTEP7V.js";
|
|
10
|
+
import "../chunk-DWJGQ2A5.js";
|
|
11
|
+
import "../chunk-DXOIIOAQ.js";
|
|
12
|
+
import "../chunk-KAHX5SKO.js";
|
|
13
13
|
import "../chunk-IILCLBL2.js";
|
|
14
14
|
import "../chunk-N342G4HO.js";
|
|
15
15
|
export {
|