@drincs/pixi-vn 0.8.4 → 0.8.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/README.md +36 -27
- package/dist/{chunk-T4KKYU4J.js → chunk-4KV6VMUV.js} +92 -6
- package/dist/{chunk-M6X6FHCH.js → chunk-5A543GJ4.js} +2 -2
- package/dist/{chunk-FYCYVQTG.js → chunk-A4NKPUL5.js} +7 -3
- package/dist/{chunk-2FSBBQFF.js → chunk-BHVKSBFZ.js} +2 -2
- package/dist/{chunk-3FJYYZOP.js → chunk-D3ZQSJKZ.js} +292 -33
- package/dist/{chunk-66F5CGHV.js → chunk-DPUSONJ3.js} +1 -1
- package/dist/{chunk-6SZOXEOR.js → chunk-FHNQBWIZ.js} +1 -1
- package/dist/{chunk-MKN3AKFV.js → chunk-FIQXZ3P3.js} +2 -2
- package/dist/{chunk-UWXYEVOE.js → chunk-FM5SFYXO.js} +1 -1
- package/dist/{chunk-WJ5SUJTD.js → chunk-GEWQS6GP.js} +65 -4
- package/dist/{chunk-ENMHDS5Q.js → chunk-GKLIT4GX.js} +2 -2
- package/dist/{chunk-7IWXRHUU.js → chunk-GNFWXAOE.js} +2 -2
- package/dist/{chunk-D3NHF5OS.js → chunk-PIYIZHZL.js} +1 -1
- package/dist/{chunk-DI77NC2O.js → chunk-SZWI2CBA.js} +3 -3
- package/dist/{chunk-CUYGFKNS.js → chunk-TNQKYUOG.js} +2 -2
- package/dist/classes/CharacterBaseModel.cjs +61 -27
- package/dist/classes/CharacterBaseModel.js +5 -5
- package/dist/classes/CharacterStoredClass.cjs +61 -27
- package/dist/classes/CharacterStoredClass.js +5 -5
- package/dist/classes/ChoiceMenuOption.cjs +60 -26
- package/dist/classes/ChoiceMenuOption.d.cts +1 -1
- package/dist/classes/ChoiceMenuOption.d.ts +1 -1
- package/dist/classes/ChoiceMenuOption.js +5 -5
- package/dist/classes/Sound.cjs +60 -26
- package/dist/classes/Sound.js +5 -5
- package/dist/classes/StoredClassModel.cjs +61 -27
- package/dist/classes/StoredClassModel.js +5 -5
- package/dist/classes/canvas/CanvasAVideo.cjs +60 -26
- package/dist/classes/canvas/CanvasAVideo.d.cts +5 -8
- package/dist/classes/canvas/CanvasAVideo.d.ts +5 -8
- package/dist/classes/canvas/CanvasAVideo.js +5 -5
- package/dist/classes/canvas/CanvasBase.d.cts +4 -2
- package/dist/classes/canvas/CanvasBase.d.ts +4 -2
- package/dist/classes/canvas/CanvasContainer.cjs +60 -26
- package/dist/classes/canvas/CanvasContainer.d.cts +7 -6
- package/dist/classes/canvas/CanvasContainer.d.ts +7 -6
- package/dist/classes/canvas/CanvasContainer.js +5 -5
- package/dist/classes/canvas/CanvasImage.cjs +60 -26
- package/dist/classes/canvas/CanvasImage.d.cts +6 -8
- package/dist/classes/canvas/CanvasImage.d.ts +6 -8
- package/dist/classes/canvas/CanvasImage.js +5 -5
- package/dist/classes/canvas/CanvasSprite.cjs +60 -26
- package/dist/classes/canvas/CanvasSprite.d.cts +7 -8
- package/dist/classes/canvas/CanvasSprite.d.ts +7 -8
- package/dist/classes/canvas/CanvasSprite.js +5 -5
- package/dist/classes/canvas/CanvasText.cjs +60 -26
- package/dist/classes/canvas/CanvasText.d.cts +7 -7
- package/dist/classes/canvas/CanvasText.d.ts +7 -7
- package/dist/classes/canvas/CanvasText.js +5 -5
- package/dist/classes/index.cjs +61 -27
- package/dist/classes/index.d.cts +3 -8
- package/dist/classes/index.d.ts +3 -8
- package/dist/classes/index.js +5 -5
- package/dist/classes/ticker/FadeAlphaTicker.cjs +60 -26
- package/dist/classes/ticker/FadeAlphaTicker.d.cts +3 -2
- package/dist/classes/ticker/FadeAlphaTicker.d.ts +3 -2
- package/dist/classes/ticker/FadeAlphaTicker.js +5 -5
- package/dist/classes/ticker/MoveTicker.cjs +60 -26
- package/dist/classes/ticker/MoveTicker.d.cts +3 -2
- package/dist/classes/ticker/MoveTicker.d.ts +3 -2
- package/dist/classes/ticker/MoveTicker.js +5 -5
- package/dist/classes/ticker/RotateTicker.cjs +60 -26
- package/dist/classes/ticker/RotateTicker.d.cts +3 -2
- package/dist/classes/ticker/RotateTicker.d.ts +3 -2
- package/dist/classes/ticker/RotateTicker.js +5 -5
- package/dist/classes/ticker/TickerBase.cjs +60 -26
- package/dist/classes/ticker/TickerBase.d.cts +70 -4
- package/dist/classes/ticker/TickerBase.d.ts +70 -4
- package/dist/classes/ticker/TickerBase.js +5 -5
- package/dist/classes/ticker/ZoomTicker.cjs +60 -26
- package/dist/classes/ticker/ZoomTicker.d.cts +4 -3
- package/dist/classes/ticker/ZoomTicker.d.ts +4 -3
- package/dist/classes/ticker/ZoomTicker.js +5 -5
- package/dist/classes/ticker/index.cjs +60 -26
- package/dist/classes/ticker/index.d.cts +3 -2
- package/dist/classes/ticker/index.d.ts +3 -2
- package/dist/classes/ticker/index.js +5 -5
- package/dist/constants.cjs +11 -6
- package/dist/constants.d.cts +7 -2
- package/dist/constants.d.ts +7 -2
- package/dist/constants.js +5 -3
- package/dist/decorators/canvas-element-decorator.cjs +60 -26
- package/dist/decorators/canvas-element-decorator.d.cts +3 -1
- package/dist/decorators/canvas-element-decorator.d.ts +3 -1
- package/dist/decorators/canvas-element-decorator.js +5 -5
- package/dist/decorators/event-decorator.d.cts +2 -1
- package/dist/decorators/event-decorator.d.ts +2 -1
- package/dist/decorators/index.cjs +60 -26
- package/dist/decorators/index.d.cts +6 -4
- package/dist/decorators/index.d.ts +6 -4
- package/dist/decorators/index.js +5 -5
- package/dist/decorators/label-decorator.cjs +60 -26
- package/dist/decorators/label-decorator.js +5 -5
- package/dist/decorators/ticker-decorator.d.cts +4 -3
- package/dist/decorators/ticker-decorator.d.ts +4 -3
- package/dist/functions/canvas/canvas-effect.cjs +61821 -0
- package/dist/functions/canvas/canvas-effect.d.cts +15 -0
- package/dist/functions/canvas/canvas-effect.d.ts +15 -0
- package/dist/functions/canvas/canvas-effect.js +40 -0
- package/dist/functions/canvas/canvas-memory-utility.cjs +60 -26
- package/dist/functions/canvas/canvas-memory-utility.d.cts +5 -3
- package/dist/functions/canvas/canvas-memory-utility.d.ts +5 -3
- package/dist/functions/canvas/canvas-memory-utility.js +5 -5
- package/dist/functions/canvas/canvas-transition.cjs +586 -408
- package/dist/functions/canvas/canvas-transition.d.cts +43 -20
- package/dist/functions/canvas/canvas-transition.d.ts +43 -20
- package/dist/functions/canvas/canvas-transition.js +9 -5
- package/dist/functions/canvas/canvas-utility.cjs +60 -26
- package/dist/functions/canvas/canvas-utility.d.cts +2 -2
- package/dist/functions/canvas/canvas-utility.d.ts +2 -2
- package/dist/functions/canvas/canvas-utility.js +5 -5
- package/dist/functions/canvas/image-utility.cjs +60 -26
- package/dist/functions/canvas/image-utility.d.cts +2 -4
- package/dist/functions/canvas/image-utility.d.ts +2 -4
- package/dist/functions/canvas/image-utility.js +5 -5
- package/dist/functions/canvas/video-utility.cjs +60 -26
- package/dist/functions/canvas/video-utility.d.cts +3 -6
- package/dist/functions/canvas/video-utility.d.ts +3 -6
- package/dist/functions/canvas/video-utility.js +5 -5
- package/dist/functions/dialogue-utility.cjs +60 -26
- package/dist/functions/dialogue-utility.d.cts +1 -1
- package/dist/functions/dialogue-utility.d.ts +1 -1
- package/dist/functions/dialogue-utility.js +5 -5
- package/dist/functions/diff-utility.cjs +1 -1
- package/dist/functions/diff-utility.js +2 -2
- package/dist/functions/export-utility.cjs +1 -1
- package/dist/functions/export-utility.js +1 -1
- package/dist/functions/flags-utility.cjs +60 -26
- package/dist/functions/flags-utility.js +5 -5
- package/dist/functions/game-utility.cjs +60 -26
- package/dist/functions/game-utility.js +5 -5
- package/dist/functions/index.cjs +449 -183
- package/dist/functions/index.d.cts +17 -18
- package/dist/functions/index.d.ts +17 -18
- package/dist/functions/index.js +11 -5
- package/dist/functions/saves-utility.cjs +64 -28
- package/dist/functions/saves-utility.d.cts +13 -11
- package/dist/functions/saves-utility.d.ts +13 -11
- package/dist/functions/saves-utility.js +5 -5
- package/dist/functions/ticker-utility.d.cts +1 -1
- package/dist/functions/ticker-utility.d.ts +1 -1
- package/dist/index.cjs +363 -40
- package/dist/index.d.cts +16 -17
- package/dist/index.d.ts +16 -17
- package/dist/index.js +24 -18
- package/dist/interface/{IOpenedLabel.cjs → HistoryStep.cjs} +3 -3
- package/dist/interface/{IHistoryStep.d.cts → HistoryStep.d.cts} +12 -10
- package/dist/interface/{IHistoryStep.d.ts → HistoryStep.d.ts} +12 -10
- package/dist/interface/{IHistoryStep.cjs → OpenedLabel.cjs} +3 -3
- package/dist/interface/{IOpenedLabel.d.cts → OpenedLabel.d.cts} +2 -2
- package/dist/interface/{IOpenedLabel.d.ts → OpenedLabel.d.ts} +2 -2
- package/dist/interface/{ISaveData.cjs → SaveData.cjs} +3 -3
- package/dist/interface/{ISaveData.d.cts → SaveData.d.cts} +11 -9
- package/dist/interface/{ISaveData.d.ts → SaveData.d.ts} +11 -9
- package/dist/interface/{ITicker.cjs → Ticker.cjs} +3 -3
- package/dist/interface/Ticker.d.cts +24 -0
- package/dist/interface/Ticker.d.ts +24 -0
- package/dist/interface/TickerArgs.cjs +18 -0
- package/dist/interface/TickerArgs.d.cts +5 -0
- package/dist/interface/TickerArgs.d.ts +5 -0
- package/dist/interface/TickerHistory.d.cts +3 -4
- package/dist/interface/TickerHistory.d.ts +3 -4
- package/dist/interface/TickerProgrationType.d.cts +7 -6
- package/dist/interface/TickerProgrationType.d.ts +7 -6
- package/dist/interface/TickersSteps.cjs +18 -0
- package/dist/interface/{ITickersSteps.d.cts → TickersSteps.d.cts} +5 -7
- package/dist/interface/{ITickersSteps.d.ts → TickersSteps.d.ts} +5 -7
- package/dist/interface/canvas/TextureMemory.cjs +18 -0
- package/dist/interface/canvas/TextureMemory.d.cts +8 -0
- package/dist/interface/canvas/TextureMemory.d.ts +8 -0
- package/dist/interface/canvas/canvas-memory.cjs +18 -0
- package/dist/interface/canvas/canvas-memory.d.cts +51 -0
- package/dist/interface/canvas/canvas-memory.d.ts +51 -0
- package/dist/interface/canvas/effect-props.cjs +18 -0
- package/dist/interface/canvas/effect-props.d.cts +36 -0
- package/dist/interface/canvas/effect-props.d.ts +36 -0
- package/dist/interface/canvas/transition-props.cjs +18 -0
- package/dist/interface/canvas/transition-props.d.cts +38 -0
- package/dist/interface/canvas/transition-props.d.ts +38 -0
- package/dist/interface/export/ExportedCanvas.d.cts +8 -6
- package/dist/interface/export/ExportedCanvas.d.ts +8 -6
- package/dist/interface/export/ExportedStep.d.cts +12 -10
- package/dist/interface/export/ExportedStep.d.ts +12 -10
- package/dist/interface/index.d.cts +13 -16
- package/dist/interface/index.d.ts +13 -16
- package/dist/labels/BaseCanvasElementTestLabel.cjs +61 -27
- package/dist/labels/BaseCanvasElementTestLabel.js +7 -7
- package/dist/labels/CanvasEventsTestLabel.cjs +61 -27
- package/dist/labels/CanvasEventsTestLabel.d.cts +2 -3
- package/dist/labels/CanvasEventsTestLabel.d.ts +2 -3
- package/dist/labels/CanvasEventsTestLabel.js +7 -7
- package/dist/labels/CustomTickerCanvasElementTestLabel.cjs +1692 -28
- package/dist/labels/CustomTickerCanvasElementTestLabel.d.cts +3 -2
- package/dist/labels/CustomTickerCanvasElementTestLabel.d.ts +3 -2
- package/dist/labels/CustomTickerCanvasElementTestLabel.js +17 -7
- package/dist/labels/ImagesAnimationsTestLabel.cjs +349 -36
- package/dist/labels/ImagesAnimationsTestLabel.js +7 -7
- package/dist/labels/InputTestLabel.cjs +61 -27
- package/dist/labels/InputTestLabel.js +7 -7
- package/dist/labels/MarkdownTest.cjs +61 -27
- package/dist/labels/MarkdownTest.js +7 -7
- package/dist/labels/SoundTestLabel.cjs +61 -27
- package/dist/labels/SoundTestLabel.js +7 -7
- package/dist/labels/StartLabel.cjs +359 -39
- package/dist/labels/StartLabel.js +17 -16
- package/dist/labels/StepLabelTest.cjs +61 -27
- package/dist/labels/StepLabelTest.js +7 -7
- package/dist/labels/TestConstant.cjs +61 -27
- package/dist/labels/TestConstant.js +6 -6
- package/dist/labels/VideoTestLabel.cjs +66 -29
- package/dist/labels/VideoTestLabel.js +7 -7
- package/dist/labels/index.cjs +359 -39
- package/dist/labels/index.js +17 -17
- package/dist/managers/CanvasManager.cjs +60 -26
- package/dist/managers/CanvasManager.d.cts +21 -11
- package/dist/managers/CanvasManager.d.ts +21 -11
- package/dist/managers/CanvasManager.js +5 -5
- package/dist/managers/CanvasManagerStatic.d.cts +7 -6
- package/dist/managers/CanvasManagerStatic.d.ts +7 -6
- package/dist/managers/NarrationManager.cjs +60 -26
- package/dist/managers/NarrationManager.d.cts +10 -8
- package/dist/managers/NarrationManager.d.ts +10 -8
- package/dist/managers/NarrationManager.js +5 -5
- package/dist/managers/NarrationManagerStatic.cjs +60 -26
- package/dist/managers/NarrationManagerStatic.d.cts +16 -14
- package/dist/managers/NarrationManagerStatic.d.ts +16 -14
- package/dist/managers/NarrationManagerStatic.js +5 -5
- package/dist/managers/SoundManager.cjs +60 -26
- package/dist/managers/SoundManager.js +5 -5
- package/dist/managers/StorageManager.cjs +60 -26
- package/dist/managers/StorageManager.js +5 -5
- package/dist/managers/StorageManagerStatic.cjs +1 -1
- package/dist/managers/StorageManagerStatic.js +2 -2
- package/dist/managers/index.cjs +60 -26
- package/dist/managers/index.d.cts +12 -8
- package/dist/managers/index.d.ts +12 -8
- package/dist/managers/index.js +5 -5
- package/dist/types/ChoiceMenuOptionsType.d.cts +1 -1
- package/dist/types/ChoiceMenuOptionsType.d.ts +1 -1
- package/dist/types/ticker/MoveTickerProps.d.cts +8 -2
- package/dist/types/ticker/MoveTickerProps.d.ts +8 -2
- package/dist/types/ticker/RotateTickerProps.d.cts +1 -1
- package/dist/types/ticker/RotateTickerProps.d.ts +1 -1
- package/dist/types/ticker/ZoomTickerProps.d.cts +1 -1
- package/dist/types/ticker/ZoomTickerProps.d.ts +1 -1
- package/package.json +4 -4
- package/dist/TickerBase-DbIg7gDS.d.ts +0 -94
- package/dist/TickerBase-eU4Hvvy0.d.cts +0 -94
- package/dist/chunk-II324FA5.js +0 -101
- package/dist/interface/ITicker.d.cts +0 -4
- package/dist/interface/ITicker.d.ts +0 -4
- package/dist/interface/ITickersSteps.cjs +0 -18
- package/dist/interface/canvas/ICanvasBaseMemory.cjs +0 -18
- package/dist/interface/canvas/ICanvasBaseMemory.d.cts +0 -8
- package/dist/interface/canvas/ICanvasBaseMemory.d.ts +0 -8
- package/dist/interface/canvas/ICanvasContainerMemory.cjs +0 -18
- package/dist/interface/canvas/ICanvasContainerMemory.d.cts +0 -11
- package/dist/interface/canvas/ICanvasContainerMemory.d.ts +0 -11
- package/dist/interface/canvas/ICanvasImageMemory.cjs +0 -18
- package/dist/interface/canvas/ICanvasImageMemory.d.cts +0 -14
- package/dist/interface/canvas/ICanvasImageMemory.d.ts +0 -14
- package/dist/interface/canvas/ICanvasSpriteMemory.cjs +0 -18
- package/dist/interface/canvas/ICanvasSpriteMemory.d.cts +0 -18
- package/dist/interface/canvas/ICanvasSpriteMemory.d.ts +0 -18
- package/dist/interface/canvas/ICanvasTextTextMemory.cjs +0 -18
- package/dist/interface/canvas/ICanvasTextTextMemory.d.cts +0 -14
- package/dist/interface/canvas/ICanvasTextTextMemory.d.ts +0 -14
- package/dist/interface/canvas/ICanvasTextTextMemory.js +0 -0
- package/dist/interface/canvas/ICanvasVideoMemory.cjs +0 -18
- package/dist/interface/canvas/ICanvasVideoMemory.d.cts +0 -17
- package/dist/interface/canvas/ICanvasVideoMemory.d.ts +0 -17
- package/dist/interface/canvas/ICanvasVideoMemory.js +0 -0
- package/dist/interface/canvas/ITextureMemory.cjs +0 -18
- package/dist/interface/canvas/ITextureMemory.d.cts +0 -8
- package/dist/interface/canvas/ITextureMemory.d.ts +0 -8
- package/dist/interface/canvas/ITextureMemory.js +0 -0
- package/dist/interface/canvas/ITransitionProps.cjs +0 -18
- package/dist/interface/canvas/ITransitionProps.d.cts +0 -22
- package/dist/interface/canvas/ITransitionProps.d.ts +0 -22
- package/dist/interface/canvas/ITransitionProps.js +0 -0
- /package/dist/{chunk-JQ2KK52M.js → interface/HistoryStep.js} +0 -0
- /package/dist/interface/{IHistoryStep.js → OpenedLabel.js} +0 -0
- /package/dist/interface/{IOpenedLabel.js → SaveData.js} +0 -0
- /package/dist/interface/{ISaveData.js → Ticker.js} +0 -0
- /package/dist/interface/{ITicker.js → TickerArgs.js} +0 -0
- /package/dist/interface/{ITickersSteps.js → TickersSteps.js} +0 -0
- /package/dist/interface/canvas/{ICanvasBaseMemory.js → TextureMemory.js} +0 -0
- /package/dist/interface/canvas/{ICanvasContainerMemory.js → canvas-memory.js} +0 -0
- /package/dist/interface/canvas/{ICanvasImageMemory.js → effect-props.js} +0 -0
- /package/dist/interface/canvas/{ICanvasSpriteMemory.js → transition-props.js} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import HistoryStep, { HistoryStepData } from '../HistoryStep.js';
|
|
2
|
+
import OpenedLabel from '../OpenedLabel.js';
|
|
3
3
|
import 'deep-diff';
|
|
4
4
|
import '../../classes/ChoiceMenuOption.js';
|
|
5
|
-
import '../../types/StorageElementType.js';
|
|
6
5
|
import '../../types/LabelIdType.js';
|
|
6
|
+
import '../../types/StorageElementType.js';
|
|
7
7
|
import '../../classes/Label.js';
|
|
8
8
|
import '../../classes/LabelAbstract.js';
|
|
9
9
|
import '../../types/StepLabelType.js';
|
|
@@ -13,14 +13,16 @@ import '../../types/CloseType.js';
|
|
|
13
13
|
import '../../types/LabelRunModeType.js';
|
|
14
14
|
import './ExportedCanvas.js';
|
|
15
15
|
import '../../types/PauseTickerType.js';
|
|
16
|
-
import '../canvas/
|
|
17
|
-
import '../ITickersSteps.js';
|
|
16
|
+
import '../canvas/canvas-memory.js';
|
|
18
17
|
import 'pixi.js';
|
|
19
|
-
import '
|
|
18
|
+
import '../canvas/TextureMemory.js';
|
|
19
|
+
import '../../types/EventIdType.js';
|
|
20
|
+
import '../TickerHistory.js';
|
|
20
21
|
import '../../types/TickerIdType.js';
|
|
22
|
+
import '../TickerArgs.js';
|
|
23
|
+
import '../TickersSteps.js';
|
|
21
24
|
import '../../types/PauseType.js';
|
|
22
25
|
import '../../types/RepeatType.js';
|
|
23
|
-
import '../TickerHistory.js';
|
|
24
26
|
import './ExportedSounds.js';
|
|
25
27
|
import '../SoundOptions.js';
|
|
26
28
|
import '@pixi/sound';
|
|
@@ -33,10 +35,10 @@ import '../CharacterInterface.js';
|
|
|
33
35
|
* Interface exported step data
|
|
34
36
|
*/
|
|
35
37
|
interface ExportedStep {
|
|
36
|
-
stepsHistory:
|
|
37
|
-
openedLabels:
|
|
38
|
+
stepsHistory: HistoryStep[];
|
|
39
|
+
openedLabels: OpenedLabel[];
|
|
38
40
|
lastStepIndex: number;
|
|
39
|
-
originalStepData:
|
|
41
|
+
originalStepData: HistoryStepData | undefined;
|
|
40
42
|
}
|
|
41
43
|
|
|
42
44
|
export type { ExportedStep as default };
|
|
@@ -1,26 +1,23 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export { default as
|
|
4
|
-
export {
|
|
5
|
-
export { default as ICanvasTextTextMemory } from './canvas/ICanvasTextTextMemory.cjs';
|
|
6
|
-
export { default as ICanvasVideoMemory } from './canvas/ICanvasVideoMemory.cjs';
|
|
7
|
-
export { default as ITextureMemory } from './canvas/ITextureMemory.cjs';
|
|
8
|
-
export { MoveInOutProps, ShowWithDissolveTransitionProps, ShowWithFadeTransitionProps, ZoomInOutProps } from './canvas/ITransitionProps.cjs';
|
|
1
|
+
export { CanvasBaseMemory, CanvasContainerMemory, CanvasImageMemory, CanvasSpriteBaseMemory, CanvasSpriteMemory, CanvasTextMemory, CanvasVideoMemory } from './canvas/canvas-memory.cjs';
|
|
2
|
+
export { ShakeEffectProps } from './canvas/effect-props.cjs';
|
|
3
|
+
export { default as TextureMemory } from './canvas/TextureMemory.cjs';
|
|
4
|
+
export { MoveInOutProps, ShowWithDissolveTransitionProps, ShowWithFadeTransitionProps, ZoomInOutProps } from './canvas/transition-props.cjs';
|
|
9
5
|
export { default as CharacterInterface } from './CharacterInterface.cjs';
|
|
10
6
|
export { default as ExportedCanvas } from './export/ExportedCanvas.cjs';
|
|
11
7
|
export { ExportedSound, default as ExportedSounds } from './export/ExportedSounds.cjs';
|
|
12
8
|
export { default as ExportedStep } from './export/ExportedStep.cjs';
|
|
13
9
|
export { default as ExportedStorage } from './export/ExportedStorage.cjs';
|
|
14
|
-
export { default as
|
|
15
|
-
export { default as IOpenedLabel } from './IOpenedLabel.cjs';
|
|
16
|
-
export { default as ISaveData } from './ISaveData.cjs';
|
|
17
|
-
export { I as ITicker } from '../TickerBase-eU4Hvvy0.cjs';
|
|
18
|
-
export { default as ITickersSteps } from './ITickersSteps.cjs';
|
|
10
|
+
export { default as HistoryStep, HistoryStepData } from './HistoryStep.cjs';
|
|
19
11
|
export { default as LabelProps } from './LabelProps.cjs';
|
|
20
12
|
export { default as NarrativeHistory } from './NarrativeHistory.cjs';
|
|
13
|
+
export { default as OpenedLabel } from './OpenedLabel.cjs';
|
|
14
|
+
export { default as SaveData } from './SaveData.cjs';
|
|
21
15
|
export { default as SoundOptions, SoundPlayOptions } from './SoundOptions.cjs';
|
|
16
|
+
export { default as Ticker } from './Ticker.cjs';
|
|
17
|
+
export { default as TickerArgs } from './TickerArgs.cjs';
|
|
22
18
|
export { default as TickerHistory, TickerHistoryForExport } from './TickerHistory.cjs';
|
|
23
|
-
export { TickerProgrationType } from './TickerProgrationType.cjs';
|
|
19
|
+
export { TickerProgrationExponential, TickerProgrationLinear, default as TickerProgrationType } from './TickerProgrationType.cjs';
|
|
20
|
+
export { default as TickersSteps } from './TickersSteps.cjs';
|
|
24
21
|
export { default as TickerTimeoutHistory } from './TickerTimeoutHistory.cjs';
|
|
25
22
|
import 'pixi.js';
|
|
26
23
|
import '../types/EventIdType.cjs';
|
|
@@ -41,8 +38,8 @@ import '../types/StepLabelType.cjs';
|
|
|
41
38
|
import '../types/CloseType.cjs';
|
|
42
39
|
import '../types/LabelRunModeType.cjs';
|
|
43
40
|
import '../classes/Dialogue.cjs';
|
|
41
|
+
import '../types/HistoryChoiceMenuOption.cjs';
|
|
42
|
+
import '@pixi/sound';
|
|
44
43
|
import '../types/TickerIdType.cjs';
|
|
45
44
|
import '../types/PauseType.cjs';
|
|
46
45
|
import '../types/RepeatType.cjs';
|
|
47
|
-
import '../types/HistoryChoiceMenuOption.cjs';
|
|
48
|
-
import '@pixi/sound';
|
|
@@ -1,26 +1,23 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export { default as
|
|
4
|
-
export {
|
|
5
|
-
export { default as ICanvasTextTextMemory } from './canvas/ICanvasTextTextMemory.js';
|
|
6
|
-
export { default as ICanvasVideoMemory } from './canvas/ICanvasVideoMemory.js';
|
|
7
|
-
export { default as ITextureMemory } from './canvas/ITextureMemory.js';
|
|
8
|
-
export { MoveInOutProps, ShowWithDissolveTransitionProps, ShowWithFadeTransitionProps, ZoomInOutProps } from './canvas/ITransitionProps.js';
|
|
1
|
+
export { CanvasBaseMemory, CanvasContainerMemory, CanvasImageMemory, CanvasSpriteBaseMemory, CanvasSpriteMemory, CanvasTextMemory, CanvasVideoMemory } from './canvas/canvas-memory.js';
|
|
2
|
+
export { ShakeEffectProps } from './canvas/effect-props.js';
|
|
3
|
+
export { default as TextureMemory } from './canvas/TextureMemory.js';
|
|
4
|
+
export { MoveInOutProps, ShowWithDissolveTransitionProps, ShowWithFadeTransitionProps, ZoomInOutProps } from './canvas/transition-props.js';
|
|
9
5
|
export { default as CharacterInterface } from './CharacterInterface.js';
|
|
10
6
|
export { default as ExportedCanvas } from './export/ExportedCanvas.js';
|
|
11
7
|
export { ExportedSound, default as ExportedSounds } from './export/ExportedSounds.js';
|
|
12
8
|
export { default as ExportedStep } from './export/ExportedStep.js';
|
|
13
9
|
export { default as ExportedStorage } from './export/ExportedStorage.js';
|
|
14
|
-
export { default as
|
|
15
|
-
export { default as IOpenedLabel } from './IOpenedLabel.js';
|
|
16
|
-
export { default as ISaveData } from './ISaveData.js';
|
|
17
|
-
export { I as ITicker } from '../TickerBase-DbIg7gDS.js';
|
|
18
|
-
export { default as ITickersSteps } from './ITickersSteps.js';
|
|
10
|
+
export { default as HistoryStep, HistoryStepData } from './HistoryStep.js';
|
|
19
11
|
export { default as LabelProps } from './LabelProps.js';
|
|
20
12
|
export { default as NarrativeHistory } from './NarrativeHistory.js';
|
|
13
|
+
export { default as OpenedLabel } from './OpenedLabel.js';
|
|
14
|
+
export { default as SaveData } from './SaveData.js';
|
|
21
15
|
export { default as SoundOptions, SoundPlayOptions } from './SoundOptions.js';
|
|
16
|
+
export { default as Ticker } from './Ticker.js';
|
|
17
|
+
export { default as TickerArgs } from './TickerArgs.js';
|
|
22
18
|
export { default as TickerHistory, TickerHistoryForExport } from './TickerHistory.js';
|
|
23
|
-
export { TickerProgrationType } from './TickerProgrationType.js';
|
|
19
|
+
export { TickerProgrationExponential, TickerProgrationLinear, default as TickerProgrationType } from './TickerProgrationType.js';
|
|
20
|
+
export { default as TickersSteps } from './TickersSteps.js';
|
|
24
21
|
export { default as TickerTimeoutHistory } from './TickerTimeoutHistory.js';
|
|
25
22
|
import 'pixi.js';
|
|
26
23
|
import '../types/EventIdType.js';
|
|
@@ -41,8 +38,8 @@ import '../types/StepLabelType.js';
|
|
|
41
38
|
import '../types/CloseType.js';
|
|
42
39
|
import '../types/LabelRunModeType.js';
|
|
43
40
|
import '../classes/Dialogue.js';
|
|
41
|
+
import '../types/HistoryChoiceMenuOption.js';
|
|
42
|
+
import '@pixi/sound';
|
|
44
43
|
import '../types/TickerIdType.js';
|
|
45
44
|
import '../types/PauseType.js';
|
|
46
45
|
import '../types/RepeatType.js';
|
|
47
|
-
import '../types/HistoryChoiceMenuOption.js';
|
|
48
|
-
import '@pixi/sound';
|
|
@@ -1607,14 +1607,14 @@ var init_uid = __esm({
|
|
|
1607
1607
|
});
|
|
1608
1608
|
|
|
1609
1609
|
// node_modules/pixi.js/lib/utils/logging/deprecation.mjs
|
|
1610
|
-
function deprecation(
|
|
1610
|
+
function deprecation(version2, message, ignoreDepth = 3) {
|
|
1611
1611
|
if (warnings[message]) {
|
|
1612
1612
|
return;
|
|
1613
1613
|
}
|
|
1614
1614
|
let stack = new Error().stack;
|
|
1615
1615
|
if (typeof stack === "undefined") {
|
|
1616
1616
|
console.warn("PixiJS Deprecation Warning: ", `${message}
|
|
1617
|
-
Deprecated since v${
|
|
1617
|
+
Deprecated since v${version2}`);
|
|
1618
1618
|
} else {
|
|
1619
1619
|
stack = stack.split("\n").splice(ignoreDepth).join("\n");
|
|
1620
1620
|
if (console.groupCollapsed) {
|
|
@@ -1623,13 +1623,13 @@ Deprecated since v${version}`);
|
|
|
1623
1623
|
"color:#614108;background:#fffbe6",
|
|
1624
1624
|
"font-weight:normal;color:#614108;background:#fffbe6",
|
|
1625
1625
|
`${message}
|
|
1626
|
-
Deprecated since v${
|
|
1626
|
+
Deprecated since v${version2}`
|
|
1627
1627
|
);
|
|
1628
1628
|
console.warn(stack);
|
|
1629
1629
|
console.groupEnd();
|
|
1630
1630
|
} else {
|
|
1631
1631
|
console.warn("PixiJS Deprecation Warning: ", `${message}
|
|
1632
|
-
Deprecated since v${
|
|
1632
|
+
Deprecated since v${version2}`);
|
|
1633
1633
|
console.warn(stack);
|
|
1634
1634
|
}
|
|
1635
1635
|
}
|
|
@@ -42998,7 +42998,7 @@ var require_dom = __commonJS({
|
|
|
42998
42998
|
* @see https://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-5CED94D7 DOM Level 1 Core
|
|
42999
42999
|
* @see https://dom.spec.whatwg.org/#dom-domimplementation-hasfeature DOM Living Standard
|
|
43000
43000
|
*/
|
|
43001
|
-
hasFeature: function(feature,
|
|
43001
|
+
hasFeature: function(feature, version2) {
|
|
43002
43002
|
return true;
|
|
43003
43003
|
},
|
|
43004
43004
|
/**
|
|
@@ -43119,8 +43119,8 @@ var require_dom = __commonJS({
|
|
|
43119
43119
|
}
|
|
43120
43120
|
},
|
|
43121
43121
|
// Introduced in DOM Level 2:
|
|
43122
|
-
isSupported: function(feature,
|
|
43123
|
-
return this.ownerDocument.implementation.hasFeature(feature,
|
|
43122
|
+
isSupported: function(feature, version2) {
|
|
43123
|
+
return this.ownerDocument.implementation.hasFeature(feature, version2);
|
|
43124
43124
|
},
|
|
43125
43125
|
// Introduced in DOM Level 2:
|
|
43126
43126
|
hasAttributes: function() {
|
|
@@ -57404,6 +57404,7 @@ var filters = {
|
|
|
57404
57404
|
StreamFilter: filters_exports.StreamFilter,
|
|
57405
57405
|
TelephoneFilter: filters_exports.TelephoneFilter
|
|
57406
57406
|
};
|
|
57407
|
+
var CANVAS_APP_STAGE_ALIAS = "_stage_";
|
|
57407
57408
|
|
|
57408
57409
|
// src/managers/CanvasManager.ts
|
|
57409
57410
|
init_lib();
|
|
@@ -57744,7 +57745,7 @@ function createExportableElement(element) {
|
|
|
57744
57745
|
let elementString = JSON.stringify(element);
|
|
57745
57746
|
return JSON.parse(elementString);
|
|
57746
57747
|
} catch (e2) {
|
|
57747
|
-
console.error("[Pixi\u2019VN] Error creating exportable element", e2);
|
|
57748
|
+
console.error("[Pixi\u2019VN] Error creating exportable element", element, e2);
|
|
57748
57749
|
throw new Error("[Pixi\u2019VN] Error creating exportable element");
|
|
57749
57750
|
}
|
|
57750
57751
|
}
|
|
@@ -58177,6 +58178,10 @@ var CanvasManager = class {
|
|
|
58177
58178
|
* ```
|
|
58178
58179
|
*/
|
|
58179
58180
|
add(alias, canvasElement, options = {}) {
|
|
58181
|
+
if (alias === CANVAS_APP_STAGE_ALIAS) {
|
|
58182
|
+
console.error(`[Pixi\u2019VN] The alias ${CANVAS_APP_STAGE_ALIAS} is reserved`);
|
|
58183
|
+
return;
|
|
58184
|
+
}
|
|
58180
58185
|
let ignoreOldStyle = options?.ignoreOldStyle;
|
|
58181
58186
|
let oldCanvasElement = this.find(alias);
|
|
58182
58187
|
if (oldCanvasElement) {
|
|
@@ -58207,6 +58212,10 @@ var CanvasManager = class {
|
|
|
58207
58212
|
* ```
|
|
58208
58213
|
*/
|
|
58209
58214
|
remove(alias, options = {}) {
|
|
58215
|
+
if (alias === CANVAS_APP_STAGE_ALIAS) {
|
|
58216
|
+
console.error(`[Pixi\u2019VN] The alias ${CANVAS_APP_STAGE_ALIAS} is reserved`);
|
|
58217
|
+
return;
|
|
58218
|
+
}
|
|
58210
58219
|
let ignoreTickers = options.ignoreTickers;
|
|
58211
58220
|
if (typeof alias === "string") {
|
|
58212
58221
|
alias = [alias];
|
|
@@ -58235,6 +58244,9 @@ var CanvasManager = class {
|
|
|
58235
58244
|
* ```
|
|
58236
58245
|
*/
|
|
58237
58246
|
find(alias) {
|
|
58247
|
+
if (alias === CANVAS_APP_STAGE_ALIAS) {
|
|
58248
|
+
return this.app.stage;
|
|
58249
|
+
}
|
|
58238
58250
|
return CanvasManagerStatic._children[alias];
|
|
58239
58251
|
}
|
|
58240
58252
|
/**
|
|
@@ -58261,16 +58273,17 @@ var CanvasManager = class {
|
|
|
58261
58273
|
this.removeAllTickers();
|
|
58262
58274
|
}
|
|
58263
58275
|
/**
|
|
58264
|
-
* Edit the alias of a canvas element.
|
|
58276
|
+
* Edit the alias of a canvas element. The tickers that are connected to the canvas element will be transferred.
|
|
58265
58277
|
* @param oldAlias The old alias of the canvas element.
|
|
58266
58278
|
* @param newAlias The new alias of the canvas element.
|
|
58279
|
+
* @param options The options of the canvas element.
|
|
58267
58280
|
*/
|
|
58268
|
-
editAlias(oldAlias, newAlias) {
|
|
58281
|
+
editAlias(oldAlias, newAlias, options = {}) {
|
|
58269
58282
|
if (CanvasManagerStatic._children[oldAlias]) {
|
|
58270
58283
|
CanvasManagerStatic._children[newAlias] = CanvasManagerStatic._children[oldAlias];
|
|
58271
58284
|
delete CanvasManagerStatic._children[oldAlias];
|
|
58272
58285
|
}
|
|
58273
|
-
this.transferTickers(oldAlias, newAlias, "move");
|
|
58286
|
+
!options.ignoreTickers && this.transferTickers(oldAlias, newAlias, "move");
|
|
58274
58287
|
}
|
|
58275
58288
|
/** Edit Tickers Methods */
|
|
58276
58289
|
/**
|
|
@@ -58345,12 +58358,16 @@ var CanvasManager = class {
|
|
|
58345
58358
|
pushTicker(id3, tickerData, ticker) {
|
|
58346
58359
|
CanvasManagerStatic._currentTickers[id3] = tickerData;
|
|
58347
58360
|
tickerData.fn = (t2) => {
|
|
58348
|
-
if (tickerData.createdByTicketSteps && this.isTickerPaused(tickerData.createdByTicketSteps.canvasElementAlias, tickerData.createdByTicketSteps.id)) {
|
|
58349
|
-
return;
|
|
58350
|
-
}
|
|
58351
58361
|
let data = CanvasManagerStatic._currentTickers[id3];
|
|
58352
58362
|
if (data) {
|
|
58353
|
-
let canvasElementAliases = data.canvasElementAliases
|
|
58363
|
+
let canvasElementAliases = data.canvasElementAliases;
|
|
58364
|
+
if (tickerData.createdByTicketSteps) {
|
|
58365
|
+
if (this.isTickerPaused(tickerData.createdByTicketSteps.canvasElementAlias, tickerData.createdByTicketSteps.id)) {
|
|
58366
|
+
return;
|
|
58367
|
+
}
|
|
58368
|
+
} else {
|
|
58369
|
+
canvasElementAliases = canvasElementAliases.filter((alias) => !this.isTickerPaused(alias, id3));
|
|
58370
|
+
}
|
|
58354
58371
|
ticker?.fn(t2, data.args, canvasElementAliases, id3);
|
|
58355
58372
|
}
|
|
58356
58373
|
};
|
|
@@ -58697,15 +58714,19 @@ var CanvasManager = class {
|
|
|
58697
58714
|
});
|
|
58698
58715
|
CanvasManagerStatic._tickersMustBeCompletedBeforeNextStep.stepAlias.forEach(({ alias, id: id3 }) => {
|
|
58699
58716
|
let ticker = CanvasManagerStatic._currentTickersSteps[alias];
|
|
58700
|
-
if (ticker && ticker[id3]
|
|
58701
|
-
ticker[id3].steps.
|
|
58702
|
-
|
|
58703
|
-
|
|
58704
|
-
|
|
58705
|
-
|
|
58717
|
+
if (ticker && ticker[id3]) {
|
|
58718
|
+
if (ticker[id3].steps.includes(Repeat)) {
|
|
58719
|
+
console.error(`[Pixi\u2019VN] The ticker alias: ${alias} id: ${id3} contains a RepeatType, so it can't be forced to complete`, ticker[id3]);
|
|
58720
|
+
} else {
|
|
58721
|
+
ticker[id3].steps.forEach((step) => {
|
|
58722
|
+
if (typeof step === "object" && "ticker" in step) {
|
|
58723
|
+
let ticker2 = geTickerInstanceById(step.ticker, step.args, step.duration, step.priority);
|
|
58724
|
+
if (ticker2) {
|
|
58725
|
+
ticker2.onEndOfTicker([alias], id3, step.args);
|
|
58726
|
+
}
|
|
58706
58727
|
}
|
|
58707
|
-
}
|
|
58708
|
-
}
|
|
58728
|
+
});
|
|
58729
|
+
}
|
|
58709
58730
|
}
|
|
58710
58731
|
});
|
|
58711
58732
|
CanvasManagerStatic._tickersMustBeCompletedBeforeNextStep = { tikersIds: [], stepAlias: [] };
|
|
@@ -58746,6 +58767,7 @@ var CanvasManager = class {
|
|
|
58746
58767
|
tickers: createExportableElement(CanvasManagerStatic.currentTickersWithoutCreatedBySteps),
|
|
58747
58768
|
tickersSteps: createExportableElement(CanvasManagerStatic._currentTickersSteps),
|
|
58748
58769
|
elements: createExportableElement(currentElements),
|
|
58770
|
+
stage: createExportableElement(getMemoryContainer(this.app.stage)),
|
|
58749
58771
|
elementAliasesOrder: createExportableElement(CanvasManagerStatic.childrenAliasesOrder),
|
|
58750
58772
|
tickersOnPause: createExportableElement(CanvasManagerStatic._tickersOnPause)
|
|
58751
58773
|
};
|
|
@@ -58779,6 +58801,11 @@ var CanvasManager = class {
|
|
|
58779
58801
|
console.error("[Pixi\u2019VN] The data does not have the properties elementAliasesOrder and elements");
|
|
58780
58802
|
return;
|
|
58781
58803
|
}
|
|
58804
|
+
if (data.hasOwnProperty("stage") && data.hasOwnProperty("stage")) {
|
|
58805
|
+
setMemoryContainer(this.app.stage, data["stage"]);
|
|
58806
|
+
} else {
|
|
58807
|
+
console.error("[Pixi\u2019VN] The data does not have the properties stage");
|
|
58808
|
+
}
|
|
58782
58809
|
if (data.hasOwnProperty("tickers")) {
|
|
58783
58810
|
let tickers = data["tickers"];
|
|
58784
58811
|
Object.entries(tickers).forEach(([oldId, t2]) => {
|
|
@@ -59227,8 +59254,8 @@ function getExponentialProgression(number, progression, valueConvert) {
|
|
|
59227
59254
|
// src/classes/ticker/MoveTicker.ts
|
|
59228
59255
|
var MoveTicker = class extends TickerBase {
|
|
59229
59256
|
fn(ticker, args, aliases, tickerId) {
|
|
59230
|
-
let xSpeed =
|
|
59231
|
-
let ySpeed =
|
|
59257
|
+
let xSpeed = 10;
|
|
59258
|
+
let ySpeed = 10;
|
|
59232
59259
|
if (args.speed) {
|
|
59233
59260
|
if (typeof args.speed === "number") {
|
|
59234
59261
|
xSpeed = this.speedConvert(args.speed);
|
|
@@ -59292,6 +59319,10 @@ var MoveTicker = class extends TickerBase {
|
|
|
59292
59319
|
let destination = args.destination;
|
|
59293
59320
|
element.x = destination.x;
|
|
59294
59321
|
element.y = destination.y;
|
|
59322
|
+
if (args.isPushInOut && element.children.length > 0) {
|
|
59323
|
+
let elementChild = element.children[0];
|
|
59324
|
+
canvas.add(alias2, elementChild, { ignoreOldStyle: true });
|
|
59325
|
+
}
|
|
59295
59326
|
}
|
|
59296
59327
|
});
|
|
59297
59328
|
super.onEndOfTicker(alias, tickerId, args);
|
|
@@ -59724,6 +59755,7 @@ var NarrationManagerStatic = class _NarrationManagerStatic {
|
|
|
59724
59755
|
canvas: {
|
|
59725
59756
|
elementAliasesOrder: [],
|
|
59726
59757
|
elements: {},
|
|
59758
|
+
stage: {},
|
|
59727
59759
|
tickers: {},
|
|
59728
59760
|
tickersSteps: {},
|
|
59729
59761
|
tickersOnPause: {}
|
|
@@ -60303,8 +60335,10 @@ var NarrationManager = class {
|
|
|
60303
60335
|
console.warn("[Pixi\u2019VN] stepSha not found");
|
|
60304
60336
|
}
|
|
60305
60337
|
try {
|
|
60338
|
+
if (NarrationManagerStatic.stepsRunning === 0) {
|
|
60339
|
+
canvas.forceCompletionOfReportedTickers();
|
|
60340
|
+
}
|
|
60306
60341
|
NarrationManagerStatic.stepsRunning++;
|
|
60307
|
-
canvas.forceCompletionOfReportedTickers();
|
|
60308
60342
|
let result = await step(props);
|
|
60309
60343
|
if (this.choiceMenuOptions?.length === 1 && this.choiceMenuOptions[0].autoSelect) {
|
|
60310
60344
|
let choice = this.choiceMenuOptions[0];
|
|
@@ -61643,7 +61677,7 @@ var StoredClassModel = class {
|
|
|
61643
61677
|
if (Object.keys(storageValue[this.id]).length === 0) {
|
|
61644
61678
|
delete storageValue[this.id];
|
|
61645
61679
|
}
|
|
61646
|
-
|
|
61680
|
+
storage.setVariable(this.categoryId, storageValue);
|
|
61647
61681
|
}
|
|
61648
61682
|
/**
|
|
61649
61683
|
* Get a property from the storage.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
baseCanvasElementTestLabel
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-BHVKSBFZ.js";
|
|
4
|
+
import "../chunk-FM5SFYXO.js";
|
|
5
|
+
import "../chunk-D3ZQSJKZ.js";
|
|
6
6
|
import "../chunk-OMPJ74CO.js";
|
|
7
7
|
import "../chunk-2BUPSB7O.js";
|
|
8
8
|
import "../chunk-CZKJI26F.js";
|
|
9
9
|
import "../chunk-I6TNJEE3.js";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-DPUSONJ3.js";
|
|
11
11
|
import "../chunk-P44J5BE2.js";
|
|
12
12
|
import "../chunk-CAUF2LKZ.js";
|
|
13
13
|
import "../chunk-VXCA724Z.js";
|
|
@@ -15,12 +15,12 @@ import "../chunk-3DOISWD6.js";
|
|
|
15
15
|
import "../chunk-I4UGLC3A.js";
|
|
16
16
|
import "../chunk-ZZLQ3ILH.js";
|
|
17
17
|
import "../chunk-JTQGULTR.js";
|
|
18
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-FHNQBWIZ.js";
|
|
19
19
|
import "../chunk-ZBUW3MBH.js";
|
|
20
|
-
import "../chunk-
|
|
20
|
+
import "../chunk-PIYIZHZL.js";
|
|
21
21
|
import "../chunk-WX267JP2.js";
|
|
22
22
|
import "../chunk-LEMOIFSV.js";
|
|
23
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-A4NKPUL5.js";
|
|
24
24
|
import "../chunk-RATGPKD3.js";
|
|
25
25
|
import "../chunk-2PXN34ON.js";
|
|
26
26
|
import "../chunk-TAJJZPEH.js";
|
|
@@ -1607,14 +1607,14 @@ var init_uid = __esm({
|
|
|
1607
1607
|
});
|
|
1608
1608
|
|
|
1609
1609
|
// node_modules/pixi.js/lib/utils/logging/deprecation.mjs
|
|
1610
|
-
function deprecation(
|
|
1610
|
+
function deprecation(version2, message, ignoreDepth = 3) {
|
|
1611
1611
|
if (warnings[message]) {
|
|
1612
1612
|
return;
|
|
1613
1613
|
}
|
|
1614
1614
|
let stack = new Error().stack;
|
|
1615
1615
|
if (typeof stack === "undefined") {
|
|
1616
1616
|
console.warn("PixiJS Deprecation Warning: ", `${message}
|
|
1617
|
-
Deprecated since v${
|
|
1617
|
+
Deprecated since v${version2}`);
|
|
1618
1618
|
} else {
|
|
1619
1619
|
stack = stack.split("\n").splice(ignoreDepth).join("\n");
|
|
1620
1620
|
if (console.groupCollapsed) {
|
|
@@ -1623,13 +1623,13 @@ Deprecated since v${version}`);
|
|
|
1623
1623
|
"color:#614108;background:#fffbe6",
|
|
1624
1624
|
"font-weight:normal;color:#614108;background:#fffbe6",
|
|
1625
1625
|
`${message}
|
|
1626
|
-
Deprecated since v${
|
|
1626
|
+
Deprecated since v${version2}`
|
|
1627
1627
|
);
|
|
1628
1628
|
console.warn(stack);
|
|
1629
1629
|
console.groupEnd();
|
|
1630
1630
|
} else {
|
|
1631
1631
|
console.warn("PixiJS Deprecation Warning: ", `${message}
|
|
1632
|
-
Deprecated since v${
|
|
1632
|
+
Deprecated since v${version2}`);
|
|
1633
1633
|
console.warn(stack);
|
|
1634
1634
|
}
|
|
1635
1635
|
}
|
|
@@ -42998,7 +42998,7 @@ var require_dom = __commonJS({
|
|
|
42998
42998
|
* @see https://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-5CED94D7 DOM Level 1 Core
|
|
42999
42999
|
* @see https://dom.spec.whatwg.org/#dom-domimplementation-hasfeature DOM Living Standard
|
|
43000
43000
|
*/
|
|
43001
|
-
hasFeature: function(feature,
|
|
43001
|
+
hasFeature: function(feature, version2) {
|
|
43002
43002
|
return true;
|
|
43003
43003
|
},
|
|
43004
43004
|
/**
|
|
@@ -43119,8 +43119,8 @@ var require_dom = __commonJS({
|
|
|
43119
43119
|
}
|
|
43120
43120
|
},
|
|
43121
43121
|
// Introduced in DOM Level 2:
|
|
43122
|
-
isSupported: function(feature,
|
|
43123
|
-
return this.ownerDocument.implementation.hasFeature(feature,
|
|
43122
|
+
isSupported: function(feature, version2) {
|
|
43123
|
+
return this.ownerDocument.implementation.hasFeature(feature, version2);
|
|
43124
43124
|
},
|
|
43125
43125
|
// Introduced in DOM Level 2:
|
|
43126
43126
|
hasAttributes: function() {
|
|
@@ -57418,6 +57418,7 @@ var filters = {
|
|
|
57418
57418
|
StreamFilter: filters_exports.StreamFilter,
|
|
57419
57419
|
TelephoneFilter: filters_exports.TelephoneFilter
|
|
57420
57420
|
};
|
|
57421
|
+
var CANVAS_APP_STAGE_ALIAS = "_stage_";
|
|
57421
57422
|
|
|
57422
57423
|
// src/managers/CanvasManager.ts
|
|
57423
57424
|
init_lib();
|
|
@@ -57758,7 +57759,7 @@ function createExportableElement(element) {
|
|
|
57758
57759
|
let elementString = JSON.stringify(element);
|
|
57759
57760
|
return JSON.parse(elementString);
|
|
57760
57761
|
} catch (e2) {
|
|
57761
|
-
console.error("[Pixi\u2019VN] Error creating exportable element", e2);
|
|
57762
|
+
console.error("[Pixi\u2019VN] Error creating exportable element", element, e2);
|
|
57762
57763
|
throw new Error("[Pixi\u2019VN] Error creating exportable element");
|
|
57763
57764
|
}
|
|
57764
57765
|
}
|
|
@@ -58191,6 +58192,10 @@ var CanvasManager = class {
|
|
|
58191
58192
|
* ```
|
|
58192
58193
|
*/
|
|
58193
58194
|
add(alias, canvasElement, options = {}) {
|
|
58195
|
+
if (alias === CANVAS_APP_STAGE_ALIAS) {
|
|
58196
|
+
console.error(`[Pixi\u2019VN] The alias ${CANVAS_APP_STAGE_ALIAS} is reserved`);
|
|
58197
|
+
return;
|
|
58198
|
+
}
|
|
58194
58199
|
let ignoreOldStyle = options?.ignoreOldStyle;
|
|
58195
58200
|
let oldCanvasElement = this.find(alias);
|
|
58196
58201
|
if (oldCanvasElement) {
|
|
@@ -58221,6 +58226,10 @@ var CanvasManager = class {
|
|
|
58221
58226
|
* ```
|
|
58222
58227
|
*/
|
|
58223
58228
|
remove(alias, options = {}) {
|
|
58229
|
+
if (alias === CANVAS_APP_STAGE_ALIAS) {
|
|
58230
|
+
console.error(`[Pixi\u2019VN] The alias ${CANVAS_APP_STAGE_ALIAS} is reserved`);
|
|
58231
|
+
return;
|
|
58232
|
+
}
|
|
58224
58233
|
let ignoreTickers = options.ignoreTickers;
|
|
58225
58234
|
if (typeof alias === "string") {
|
|
58226
58235
|
alias = [alias];
|
|
@@ -58249,6 +58258,9 @@ var CanvasManager = class {
|
|
|
58249
58258
|
* ```
|
|
58250
58259
|
*/
|
|
58251
58260
|
find(alias) {
|
|
58261
|
+
if (alias === CANVAS_APP_STAGE_ALIAS) {
|
|
58262
|
+
return this.app.stage;
|
|
58263
|
+
}
|
|
58252
58264
|
return CanvasManagerStatic._children[alias];
|
|
58253
58265
|
}
|
|
58254
58266
|
/**
|
|
@@ -58275,16 +58287,17 @@ var CanvasManager = class {
|
|
|
58275
58287
|
this.removeAllTickers();
|
|
58276
58288
|
}
|
|
58277
58289
|
/**
|
|
58278
|
-
* Edit the alias of a canvas element.
|
|
58290
|
+
* Edit the alias of a canvas element. The tickers that are connected to the canvas element will be transferred.
|
|
58279
58291
|
* @param oldAlias The old alias of the canvas element.
|
|
58280
58292
|
* @param newAlias The new alias of the canvas element.
|
|
58293
|
+
* @param options The options of the canvas element.
|
|
58281
58294
|
*/
|
|
58282
|
-
editAlias(oldAlias, newAlias) {
|
|
58295
|
+
editAlias(oldAlias, newAlias, options = {}) {
|
|
58283
58296
|
if (CanvasManagerStatic._children[oldAlias]) {
|
|
58284
58297
|
CanvasManagerStatic._children[newAlias] = CanvasManagerStatic._children[oldAlias];
|
|
58285
58298
|
delete CanvasManagerStatic._children[oldAlias];
|
|
58286
58299
|
}
|
|
58287
|
-
this.transferTickers(oldAlias, newAlias, "move");
|
|
58300
|
+
!options.ignoreTickers && this.transferTickers(oldAlias, newAlias, "move");
|
|
58288
58301
|
}
|
|
58289
58302
|
/** Edit Tickers Methods */
|
|
58290
58303
|
/**
|
|
@@ -58359,12 +58372,16 @@ var CanvasManager = class {
|
|
|
58359
58372
|
pushTicker(id3, tickerData, ticker) {
|
|
58360
58373
|
CanvasManagerStatic._currentTickers[id3] = tickerData;
|
|
58361
58374
|
tickerData.fn = (t2) => {
|
|
58362
|
-
if (tickerData.createdByTicketSteps && this.isTickerPaused(tickerData.createdByTicketSteps.canvasElementAlias, tickerData.createdByTicketSteps.id)) {
|
|
58363
|
-
return;
|
|
58364
|
-
}
|
|
58365
58375
|
let data = CanvasManagerStatic._currentTickers[id3];
|
|
58366
58376
|
if (data) {
|
|
58367
|
-
let canvasElementAliases = data.canvasElementAliases
|
|
58377
|
+
let canvasElementAliases = data.canvasElementAliases;
|
|
58378
|
+
if (tickerData.createdByTicketSteps) {
|
|
58379
|
+
if (this.isTickerPaused(tickerData.createdByTicketSteps.canvasElementAlias, tickerData.createdByTicketSteps.id)) {
|
|
58380
|
+
return;
|
|
58381
|
+
}
|
|
58382
|
+
} else {
|
|
58383
|
+
canvasElementAliases = canvasElementAliases.filter((alias) => !this.isTickerPaused(alias, id3));
|
|
58384
|
+
}
|
|
58368
58385
|
ticker?.fn(t2, data.args, canvasElementAliases, id3);
|
|
58369
58386
|
}
|
|
58370
58387
|
};
|
|
@@ -58711,15 +58728,19 @@ var CanvasManager = class {
|
|
|
58711
58728
|
});
|
|
58712
58729
|
CanvasManagerStatic._tickersMustBeCompletedBeforeNextStep.stepAlias.forEach(({ alias, id: id3 }) => {
|
|
58713
58730
|
let ticker = CanvasManagerStatic._currentTickersSteps[alias];
|
|
58714
|
-
if (ticker && ticker[id3]
|
|
58715
|
-
ticker[id3].steps.
|
|
58716
|
-
|
|
58717
|
-
|
|
58718
|
-
|
|
58719
|
-
|
|
58731
|
+
if (ticker && ticker[id3]) {
|
|
58732
|
+
if (ticker[id3].steps.includes(Repeat)) {
|
|
58733
|
+
console.error(`[Pixi\u2019VN] The ticker alias: ${alias} id: ${id3} contains a RepeatType, so it can't be forced to complete`, ticker[id3]);
|
|
58734
|
+
} else {
|
|
58735
|
+
ticker[id3].steps.forEach((step) => {
|
|
58736
|
+
if (typeof step === "object" && "ticker" in step) {
|
|
58737
|
+
let ticker2 = geTickerInstanceById(step.ticker, step.args, step.duration, step.priority);
|
|
58738
|
+
if (ticker2) {
|
|
58739
|
+
ticker2.onEndOfTicker([alias], id3, step.args);
|
|
58740
|
+
}
|
|
58720
58741
|
}
|
|
58721
|
-
}
|
|
58722
|
-
}
|
|
58742
|
+
});
|
|
58743
|
+
}
|
|
58723
58744
|
}
|
|
58724
58745
|
});
|
|
58725
58746
|
CanvasManagerStatic._tickersMustBeCompletedBeforeNextStep = { tikersIds: [], stepAlias: [] };
|
|
@@ -58760,6 +58781,7 @@ var CanvasManager = class {
|
|
|
58760
58781
|
tickers: createExportableElement(CanvasManagerStatic.currentTickersWithoutCreatedBySteps),
|
|
58761
58782
|
tickersSteps: createExportableElement(CanvasManagerStatic._currentTickersSteps),
|
|
58762
58783
|
elements: createExportableElement(currentElements),
|
|
58784
|
+
stage: createExportableElement(getMemoryContainer(this.app.stage)),
|
|
58763
58785
|
elementAliasesOrder: createExportableElement(CanvasManagerStatic.childrenAliasesOrder),
|
|
58764
58786
|
tickersOnPause: createExportableElement(CanvasManagerStatic._tickersOnPause)
|
|
58765
58787
|
};
|
|
@@ -58793,6 +58815,11 @@ var CanvasManager = class {
|
|
|
58793
58815
|
console.error("[Pixi\u2019VN] The data does not have the properties elementAliasesOrder and elements");
|
|
58794
58816
|
return;
|
|
58795
58817
|
}
|
|
58818
|
+
if (data.hasOwnProperty("stage") && data.hasOwnProperty("stage")) {
|
|
58819
|
+
setMemoryContainer(this.app.stage, data["stage"]);
|
|
58820
|
+
} else {
|
|
58821
|
+
console.error("[Pixi\u2019VN] The data does not have the properties stage");
|
|
58822
|
+
}
|
|
58796
58823
|
if (data.hasOwnProperty("tickers")) {
|
|
58797
58824
|
let tickers = data["tickers"];
|
|
58798
58825
|
Object.entries(tickers).forEach(([oldId, t2]) => {
|
|
@@ -59241,8 +59268,8 @@ function getExponentialProgression(number, progression, valueConvert) {
|
|
|
59241
59268
|
// src/classes/ticker/MoveTicker.ts
|
|
59242
59269
|
var MoveTicker = class extends TickerBase {
|
|
59243
59270
|
fn(ticker, args, aliases, tickerId) {
|
|
59244
|
-
let xSpeed =
|
|
59245
|
-
let ySpeed =
|
|
59271
|
+
let xSpeed = 10;
|
|
59272
|
+
let ySpeed = 10;
|
|
59246
59273
|
if (args.speed) {
|
|
59247
59274
|
if (typeof args.speed === "number") {
|
|
59248
59275
|
xSpeed = this.speedConvert(args.speed);
|
|
@@ -59306,6 +59333,10 @@ var MoveTicker = class extends TickerBase {
|
|
|
59306
59333
|
let destination = args.destination;
|
|
59307
59334
|
element.x = destination.x;
|
|
59308
59335
|
element.y = destination.y;
|
|
59336
|
+
if (args.isPushInOut && element.children.length > 0) {
|
|
59337
|
+
let elementChild = element.children[0];
|
|
59338
|
+
canvas.add(alias2, elementChild, { ignoreOldStyle: true });
|
|
59339
|
+
}
|
|
59309
59340
|
}
|
|
59310
59341
|
});
|
|
59311
59342
|
super.onEndOfTicker(alias, tickerId, args);
|
|
@@ -59738,6 +59769,7 @@ var NarrationManagerStatic = class _NarrationManagerStatic {
|
|
|
59738
59769
|
canvas: {
|
|
59739
59770
|
elementAliasesOrder: [],
|
|
59740
59771
|
elements: {},
|
|
59772
|
+
stage: {},
|
|
59741
59773
|
tickers: {},
|
|
59742
59774
|
tickersSteps: {},
|
|
59743
59775
|
tickersOnPause: {}
|
|
@@ -60317,8 +60349,10 @@ var NarrationManager = class {
|
|
|
60317
60349
|
console.warn("[Pixi\u2019VN] stepSha not found");
|
|
60318
60350
|
}
|
|
60319
60351
|
try {
|
|
60352
|
+
if (NarrationManagerStatic.stepsRunning === 0) {
|
|
60353
|
+
canvas.forceCompletionOfReportedTickers();
|
|
60354
|
+
}
|
|
60320
60355
|
NarrationManagerStatic.stepsRunning++;
|
|
60321
|
-
canvas.forceCompletionOfReportedTickers();
|
|
60322
60356
|
let result = await step(props);
|
|
60323
60357
|
if (this.choiceMenuOptions?.length === 1 && this.choiceMenuOptions[0].autoSelect) {
|
|
60324
60358
|
let choice = this.choiceMenuOptions[0];
|
|
@@ -61671,7 +61705,7 @@ var StoredClassModel = class {
|
|
|
61671
61705
|
if (Object.keys(storageValue[this.id]).length === 0) {
|
|
61672
61706
|
delete storageValue[this.id];
|
|
61673
61707
|
}
|
|
61674
|
-
|
|
61708
|
+
storage.setVariable(this.categoryId, storageValue);
|
|
61675
61709
|
}
|
|
61676
61710
|
/**
|
|
61677
61711
|
* Get a property from the storage.
|