@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
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
juliette,
|
|
9
9
|
skullyImage,
|
|
10
10
|
skullyName
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-FM5SFYXO.js";
|
|
12
12
|
import {
|
|
13
13
|
CanvasImage,
|
|
14
14
|
ChoiceMenuOption,
|
|
@@ -24,18 +24,22 @@ import {
|
|
|
24
24
|
moveOut,
|
|
25
25
|
narration,
|
|
26
26
|
newLabel,
|
|
27
|
+
pushIn,
|
|
28
|
+
pushOut,
|
|
27
29
|
removeWithDissolveTransition,
|
|
28
30
|
removeWithFadeTransition,
|
|
31
|
+
shakeEffect,
|
|
29
32
|
showImage,
|
|
30
33
|
showWithDissolveTransition,
|
|
31
34
|
showWithFadeTransition,
|
|
32
35
|
zoomIn,
|
|
33
36
|
zoomOut
|
|
34
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-D3ZQSJKZ.js";
|
|
35
38
|
import {
|
|
39
|
+
CANVAS_APP_STAGE_ALIAS,
|
|
36
40
|
Pause,
|
|
37
41
|
Repeat
|
|
38
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-A4NKPUL5.js";
|
|
39
43
|
|
|
40
44
|
// src/labels/ImagesAnimationsTestLabel.ts
|
|
41
45
|
var IMAGE_ANIMAIONS_TEST_LABEL = "___pixi_vn_images_animations_test___";
|
|
@@ -69,6 +73,8 @@ var imagesAnimationsTest = newLabel(IMAGE_ANIMAIONS_TEST_LABEL, [
|
|
|
69
73
|
new ChoiceMenuOption("Zoom", imagesZoomTest, {}),
|
|
70
74
|
new ChoiceMenuOption("Move in/out", imagesMoveInOutTest, {}),
|
|
71
75
|
new ChoiceMenuOption("Zoom in/out", imagesZoomInOutTest, {}),
|
|
76
|
+
new ChoiceMenuOption("Push in/out", imagesPushInOutTest, {}),
|
|
77
|
+
new ChoiceMenuOption("Shake", shakeStageTest, {}),
|
|
72
78
|
new ChoiceMenuOption("Add same alias", imagesAddSameAliasTestLabel, {}),
|
|
73
79
|
new ChoiceMenuOptionClose("Cancel", { closeCurrentLabel: true })
|
|
74
80
|
];
|
|
@@ -401,6 +407,44 @@ var imagesZoomInOutTest = newLabel("___pixi_vn_images_zoom_in_out_test___", [
|
|
|
401
407
|
});
|
|
402
408
|
}
|
|
403
409
|
]);
|
|
410
|
+
var imagesPushInOutTest = newLabel("___pixi_vn_images_push_in_out_test___", [
|
|
411
|
+
async () => {
|
|
412
|
+
narration.dialogue = {
|
|
413
|
+
character: juliette,
|
|
414
|
+
text: `Here's what's going to happen:`
|
|
415
|
+
};
|
|
416
|
+
let eggHead = new CanvasImage({ x: 100, y: 100 }, eggHeadImage);
|
|
417
|
+
let flowerTop = new CanvasImage({ x: 300, y: 100 }, flowerTopImage);
|
|
418
|
+
let helmlok = new CanvasImage({ x: 100, y: 300 }, helmlokImage);
|
|
419
|
+
let skully = new CanvasImage({ x: 300, y: 300 }, skullyImage);
|
|
420
|
+
pushIn("eggHead", eggHead, { speed: 20, direction: "down" });
|
|
421
|
+
pushIn("flowerTop", flowerTop, {
|
|
422
|
+
speed: 3,
|
|
423
|
+
direction: "left",
|
|
424
|
+
speedProgression: { type: "exponential", percentage: 0.02 }
|
|
425
|
+
});
|
|
426
|
+
pushIn("helmlok", helmlok, { speed: 30, direction: "right" });
|
|
427
|
+
pushIn("skully", skully, {
|
|
428
|
+
speed: 3,
|
|
429
|
+
direction: "up",
|
|
430
|
+
speedProgression: { type: "exponential", percentage: 0.02 }
|
|
431
|
+
});
|
|
432
|
+
},
|
|
433
|
+
async () => {
|
|
434
|
+
pushOut("eggHead", {
|
|
435
|
+
speed: 3,
|
|
436
|
+
direction: "down",
|
|
437
|
+
speedProgression: { type: "exponential", percentage: 0.02 }
|
|
438
|
+
});
|
|
439
|
+
pushOut("flowerTop", { speed: 30, direction: "left" });
|
|
440
|
+
pushOut("helmlok", { speed: 10, direction: "right" });
|
|
441
|
+
pushOut("skully", {
|
|
442
|
+
speed: 3,
|
|
443
|
+
direction: "up",
|
|
444
|
+
speedProgression: { type: "exponential", percentage: 0.02 }
|
|
445
|
+
});
|
|
446
|
+
}
|
|
447
|
+
]);
|
|
404
448
|
var imagesAddSameAliasTestLabel = newLabel("___pixi_vn_images_add_same_tag_test___", [
|
|
405
449
|
() => {
|
|
406
450
|
narration.dialogue = {
|
|
@@ -442,7 +486,24 @@ var imagesAddSameAliasTestLabel = newLabel("___pixi_vn_images_add_same_tag_test_
|
|
|
442
486
|
async () => await showWithDissolveTransition("eggHead", helmlokImage),
|
|
443
487
|
async () => await showWithFadeTransition("eggHead", skullyImage),
|
|
444
488
|
async () => await moveIn("eggHead", eggHeadImage, { speed: 100 }),
|
|
445
|
-
async () => await zoomIn("eggHead", eggHeadImage)
|
|
489
|
+
async () => await zoomIn("eggHead", eggHeadImage),
|
|
490
|
+
async () => await pushIn("eggHead", eggHeadImage)
|
|
491
|
+
]);
|
|
492
|
+
var shakeStageTest = newLabel("___pixi_vn_images_shake_stage_test___", [
|
|
493
|
+
() => {
|
|
494
|
+
narration.dialogue = {
|
|
495
|
+
character: juliette,
|
|
496
|
+
text: `Ok this is a test for the shake effect. The ${eggHeadName} will shake.`
|
|
497
|
+
};
|
|
498
|
+
shakeEffect("eggHead");
|
|
499
|
+
},
|
|
500
|
+
() => {
|
|
501
|
+
narration.dialogue = {
|
|
502
|
+
character: juliette,
|
|
503
|
+
text: `Now the whole stage will shake.`
|
|
504
|
+
};
|
|
505
|
+
shakeEffect(CANVAS_APP_STAGE_ALIAS);
|
|
506
|
+
}
|
|
446
507
|
]);
|
|
447
508
|
|
|
448
509
|
export {
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
bunnyImage,
|
|
3
3
|
bunnyName,
|
|
4
4
|
juliette
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FM5SFYXO.js";
|
|
6
6
|
import {
|
|
7
7
|
CanvasSprite,
|
|
8
8
|
canvas,
|
|
9
9
|
narration,
|
|
10
10
|
newLabel
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-D3ZQSJKZ.js";
|
|
12
12
|
import {
|
|
13
13
|
eventDecorator
|
|
14
14
|
} from "./chunk-LEMOIFSV.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
juliette,
|
|
3
3
|
videoLink
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FM5SFYXO.js";
|
|
5
5
|
import {
|
|
6
6
|
canvas,
|
|
7
7
|
narration,
|
|
8
8
|
newLabel,
|
|
9
9
|
showWithDissolveTransition
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-D3ZQSJKZ.js";
|
|
11
11
|
|
|
12
12
|
// src/labels/VideoTestLabel.ts
|
|
13
13
|
var VIDEO_TEST_LABEL = "___pixi_vn_video_test___";
|
|
@@ -7,7 +7,7 @@ function createExportableElement(element) {
|
|
|
7
7
|
let elementString = JSON.stringify(element);
|
|
8
8
|
return JSON.parse(elementString);
|
|
9
9
|
} catch (e) {
|
|
10
|
-
console.error("[Pixi\u2019VN] Error creating exportable element", e);
|
|
10
|
+
console.error("[Pixi\u2019VN] Error creating exportable element", element, e);
|
|
11
11
|
throw new Error("[Pixi\u2019VN] Error creating exportable element");
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
juliette,
|
|
3
3
|
musicalAudio
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FM5SFYXO.js";
|
|
5
5
|
import {
|
|
6
6
|
narration,
|
|
7
7
|
newLabel,
|
|
8
8
|
sound
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-D3ZQSJKZ.js";
|
|
10
10
|
import {
|
|
11
11
|
filters
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-A4NKPUL5.js";
|
|
13
13
|
|
|
14
14
|
// src/labels/SoundTestLabel.ts
|
|
15
15
|
var SOUND_TEST_LABEL = "___pixi_vn_sound_test___";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
juliette
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FM5SFYXO.js";
|
|
4
4
|
import {
|
|
5
5
|
narration,
|
|
6
6
|
newLabel
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-D3ZQSJKZ.js";
|
|
8
8
|
|
|
9
9
|
// src/labels/MarkdownTest.ts
|
|
10
10
|
var MARKDOWN_TEST_LABEL = "___pixi_vn_markdown_test___";
|
|
@@ -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() {
|
|
@@ -57406,6 +57406,7 @@ var filters = {
|
|
|
57406
57406
|
StreamFilter: filters_exports.StreamFilter,
|
|
57407
57407
|
TelephoneFilter: filters_exports.TelephoneFilter
|
|
57408
57408
|
};
|
|
57409
|
+
var CANVAS_APP_STAGE_ALIAS = "_stage_";
|
|
57409
57410
|
|
|
57410
57411
|
// src/functions/canvas/canvas-utility.ts
|
|
57411
57412
|
function getTextureMemory(texture) {
|
|
@@ -58403,7 +58404,7 @@ var StoredClassModel = class {
|
|
|
58403
58404
|
if (Object.keys(storageValue[this.id]).length === 0) {
|
|
58404
58405
|
delete storageValue[this.id];
|
|
58405
58406
|
}
|
|
58406
|
-
|
|
58407
|
+
storage.setVariable(this.categoryId, storageValue);
|
|
58407
58408
|
}
|
|
58408
58409
|
/**
|
|
58409
58410
|
* Get a property from the storage.
|
|
@@ -58482,7 +58483,7 @@ function createExportableElement(element) {
|
|
|
58482
58483
|
let elementString = JSON.stringify(element);
|
|
58483
58484
|
return JSON.parse(elementString);
|
|
58484
58485
|
} catch (e2) {
|
|
58485
|
-
console.error("[Pixi\u2019VN] Error creating exportable element", e2);
|
|
58486
|
+
console.error("[Pixi\u2019VN] Error creating exportable element", element, e2);
|
|
58486
58487
|
throw new Error("[Pixi\u2019VN] Error creating exportable element");
|
|
58487
58488
|
}
|
|
58488
58489
|
}
|
|
@@ -58915,6 +58916,10 @@ var CanvasManager = class {
|
|
|
58915
58916
|
* ```
|
|
58916
58917
|
*/
|
|
58917
58918
|
add(alias, canvasElement, options = {}) {
|
|
58919
|
+
if (alias === CANVAS_APP_STAGE_ALIAS) {
|
|
58920
|
+
console.error(`[Pixi\u2019VN] The alias ${CANVAS_APP_STAGE_ALIAS} is reserved`);
|
|
58921
|
+
return;
|
|
58922
|
+
}
|
|
58918
58923
|
let ignoreOldStyle = options?.ignoreOldStyle;
|
|
58919
58924
|
let oldCanvasElement = this.find(alias);
|
|
58920
58925
|
if (oldCanvasElement) {
|
|
@@ -58945,6 +58950,10 @@ var CanvasManager = class {
|
|
|
58945
58950
|
* ```
|
|
58946
58951
|
*/
|
|
58947
58952
|
remove(alias, options = {}) {
|
|
58953
|
+
if (alias === CANVAS_APP_STAGE_ALIAS) {
|
|
58954
|
+
console.error(`[Pixi\u2019VN] The alias ${CANVAS_APP_STAGE_ALIAS} is reserved`);
|
|
58955
|
+
return;
|
|
58956
|
+
}
|
|
58948
58957
|
let ignoreTickers = options.ignoreTickers;
|
|
58949
58958
|
if (typeof alias === "string") {
|
|
58950
58959
|
alias = [alias];
|
|
@@ -58973,6 +58982,9 @@ var CanvasManager = class {
|
|
|
58973
58982
|
* ```
|
|
58974
58983
|
*/
|
|
58975
58984
|
find(alias) {
|
|
58985
|
+
if (alias === CANVAS_APP_STAGE_ALIAS) {
|
|
58986
|
+
return this.app.stage;
|
|
58987
|
+
}
|
|
58976
58988
|
return CanvasManagerStatic._children[alias];
|
|
58977
58989
|
}
|
|
58978
58990
|
/**
|
|
@@ -58999,16 +59011,17 @@ var CanvasManager = class {
|
|
|
58999
59011
|
this.removeAllTickers();
|
|
59000
59012
|
}
|
|
59001
59013
|
/**
|
|
59002
|
-
* Edit the alias of a canvas element.
|
|
59014
|
+
* Edit the alias of a canvas element. The tickers that are connected to the canvas element will be transferred.
|
|
59003
59015
|
* @param oldAlias The old alias of the canvas element.
|
|
59004
59016
|
* @param newAlias The new alias of the canvas element.
|
|
59017
|
+
* @param options The options of the canvas element.
|
|
59005
59018
|
*/
|
|
59006
|
-
editAlias(oldAlias, newAlias) {
|
|
59019
|
+
editAlias(oldAlias, newAlias, options = {}) {
|
|
59007
59020
|
if (CanvasManagerStatic._children[oldAlias]) {
|
|
59008
59021
|
CanvasManagerStatic._children[newAlias] = CanvasManagerStatic._children[oldAlias];
|
|
59009
59022
|
delete CanvasManagerStatic._children[oldAlias];
|
|
59010
59023
|
}
|
|
59011
|
-
this.transferTickers(oldAlias, newAlias, "move");
|
|
59024
|
+
!options.ignoreTickers && this.transferTickers(oldAlias, newAlias, "move");
|
|
59012
59025
|
}
|
|
59013
59026
|
/** Edit Tickers Methods */
|
|
59014
59027
|
/**
|
|
@@ -59083,12 +59096,16 @@ var CanvasManager = class {
|
|
|
59083
59096
|
pushTicker(id3, tickerData, ticker) {
|
|
59084
59097
|
CanvasManagerStatic._currentTickers[id3] = tickerData;
|
|
59085
59098
|
tickerData.fn = (t2) => {
|
|
59086
|
-
if (tickerData.createdByTicketSteps && this.isTickerPaused(tickerData.createdByTicketSteps.canvasElementAlias, tickerData.createdByTicketSteps.id)) {
|
|
59087
|
-
return;
|
|
59088
|
-
}
|
|
59089
59099
|
let data = CanvasManagerStatic._currentTickers[id3];
|
|
59090
59100
|
if (data) {
|
|
59091
|
-
let canvasElementAliases = data.canvasElementAliases
|
|
59101
|
+
let canvasElementAliases = data.canvasElementAliases;
|
|
59102
|
+
if (tickerData.createdByTicketSteps) {
|
|
59103
|
+
if (this.isTickerPaused(tickerData.createdByTicketSteps.canvasElementAlias, tickerData.createdByTicketSteps.id)) {
|
|
59104
|
+
return;
|
|
59105
|
+
}
|
|
59106
|
+
} else {
|
|
59107
|
+
canvasElementAliases = canvasElementAliases.filter((alias) => !this.isTickerPaused(alias, id3));
|
|
59108
|
+
}
|
|
59092
59109
|
ticker?.fn(t2, data.args, canvasElementAliases, id3);
|
|
59093
59110
|
}
|
|
59094
59111
|
};
|
|
@@ -59435,15 +59452,19 @@ var CanvasManager = class {
|
|
|
59435
59452
|
});
|
|
59436
59453
|
CanvasManagerStatic._tickersMustBeCompletedBeforeNextStep.stepAlias.forEach(({ alias, id: id3 }) => {
|
|
59437
59454
|
let ticker = CanvasManagerStatic._currentTickersSteps[alias];
|
|
59438
|
-
if (ticker && ticker[id3]
|
|
59439
|
-
ticker[id3].steps.
|
|
59440
|
-
|
|
59441
|
-
|
|
59442
|
-
|
|
59443
|
-
|
|
59455
|
+
if (ticker && ticker[id3]) {
|
|
59456
|
+
if (ticker[id3].steps.includes(Repeat)) {
|
|
59457
|
+
console.error(`[Pixi\u2019VN] The ticker alias: ${alias} id: ${id3} contains a RepeatType, so it can't be forced to complete`, ticker[id3]);
|
|
59458
|
+
} else {
|
|
59459
|
+
ticker[id3].steps.forEach((step) => {
|
|
59460
|
+
if (typeof step === "object" && "ticker" in step) {
|
|
59461
|
+
let ticker2 = geTickerInstanceById(step.ticker, step.args, step.duration, step.priority);
|
|
59462
|
+
if (ticker2) {
|
|
59463
|
+
ticker2.onEndOfTicker([alias], id3, step.args);
|
|
59464
|
+
}
|
|
59444
59465
|
}
|
|
59445
|
-
}
|
|
59446
|
-
}
|
|
59466
|
+
});
|
|
59467
|
+
}
|
|
59447
59468
|
}
|
|
59448
59469
|
});
|
|
59449
59470
|
CanvasManagerStatic._tickersMustBeCompletedBeforeNextStep = { tikersIds: [], stepAlias: [] };
|
|
@@ -59484,6 +59505,7 @@ var CanvasManager = class {
|
|
|
59484
59505
|
tickers: createExportableElement(CanvasManagerStatic.currentTickersWithoutCreatedBySteps),
|
|
59485
59506
|
tickersSteps: createExportableElement(CanvasManagerStatic._currentTickersSteps),
|
|
59486
59507
|
elements: createExportableElement(currentElements),
|
|
59508
|
+
stage: createExportableElement(getMemoryContainer(this.app.stage)),
|
|
59487
59509
|
elementAliasesOrder: createExportableElement(CanvasManagerStatic.childrenAliasesOrder),
|
|
59488
59510
|
tickersOnPause: createExportableElement(CanvasManagerStatic._tickersOnPause)
|
|
59489
59511
|
};
|
|
@@ -59517,6 +59539,11 @@ var CanvasManager = class {
|
|
|
59517
59539
|
console.error("[Pixi\u2019VN] The data does not have the properties elementAliasesOrder and elements");
|
|
59518
59540
|
return;
|
|
59519
59541
|
}
|
|
59542
|
+
if (data.hasOwnProperty("stage") && data.hasOwnProperty("stage")) {
|
|
59543
|
+
setMemoryContainer(this.app.stage, data["stage"]);
|
|
59544
|
+
} else {
|
|
59545
|
+
console.error("[Pixi\u2019VN] The data does not have the properties stage");
|
|
59546
|
+
}
|
|
59520
59547
|
if (data.hasOwnProperty("tickers")) {
|
|
59521
59548
|
let tickers = data["tickers"];
|
|
59522
59549
|
Object.entries(tickers).forEach(([oldId, t2]) => {
|
|
@@ -59678,8 +59705,8 @@ function getExponentialProgression(number, progression, valueConvert) {
|
|
|
59678
59705
|
// src/classes/ticker/MoveTicker.ts
|
|
59679
59706
|
var MoveTicker = class extends TickerBase {
|
|
59680
59707
|
fn(ticker, args, aliases, tickerId) {
|
|
59681
|
-
let xSpeed =
|
|
59682
|
-
let ySpeed =
|
|
59708
|
+
let xSpeed = 10;
|
|
59709
|
+
let ySpeed = 10;
|
|
59683
59710
|
if (args.speed) {
|
|
59684
59711
|
if (typeof args.speed === "number") {
|
|
59685
59712
|
xSpeed = this.speedConvert(args.speed);
|
|
@@ -59743,6 +59770,10 @@ var MoveTicker = class extends TickerBase {
|
|
|
59743
59770
|
let destination = args.destination;
|
|
59744
59771
|
element.x = destination.x;
|
|
59745
59772
|
element.y = destination.y;
|
|
59773
|
+
if (args.isPushInOut && element.children.length > 0) {
|
|
59774
|
+
let elementChild = element.children[0];
|
|
59775
|
+
canvas.add(alias2, elementChild, { ignoreOldStyle: true });
|
|
59776
|
+
}
|
|
59746
59777
|
}
|
|
59747
59778
|
});
|
|
59748
59779
|
super.onEndOfTicker(alias, tickerId, args);
|
|
@@ -60175,6 +60206,7 @@ var NarrationManagerStatic = class _NarrationManagerStatic {
|
|
|
60175
60206
|
canvas: {
|
|
60176
60207
|
elementAliasesOrder: [],
|
|
60177
60208
|
elements: {},
|
|
60209
|
+
stage: {},
|
|
60178
60210
|
tickers: {},
|
|
60179
60211
|
tickersSteps: {},
|
|
60180
60212
|
tickersOnPause: {}
|
|
@@ -60754,8 +60786,10 @@ var NarrationManager = class {
|
|
|
60754
60786
|
console.warn("[Pixi\u2019VN] stepSha not found");
|
|
60755
60787
|
}
|
|
60756
60788
|
try {
|
|
60789
|
+
if (NarrationManagerStatic.stepsRunning === 0) {
|
|
60790
|
+
canvas.forceCompletionOfReportedTickers();
|
|
60791
|
+
}
|
|
60757
60792
|
NarrationManagerStatic.stepsRunning++;
|
|
60758
|
-
canvas.forceCompletionOfReportedTickers();
|
|
60759
60793
|
let result = await step(props);
|
|
60760
60794
|
if (this.choiceMenuOptions?.length === 1 && this.choiceMenuOptions[0].autoSelect) {
|
|
60761
60795
|
let choice = this.choiceMenuOptions[0];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CharacterBaseModel
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-D3ZQSJKZ.js";
|
|
4
4
|
import "../chunk-OMPJ74CO.js";
|
|
5
5
|
import "../chunk-2BUPSB7O.js";
|
|
6
6
|
import "../chunk-CZKJI26F.js";
|
|
7
7
|
import "../chunk-I6TNJEE3.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-DPUSONJ3.js";
|
|
9
9
|
import "../chunk-P44J5BE2.js";
|
|
10
10
|
import "../chunk-CAUF2LKZ.js";
|
|
11
11
|
import "../chunk-VXCA724Z.js";
|
|
@@ -13,12 +13,12 @@ import "../chunk-3DOISWD6.js";
|
|
|
13
13
|
import "../chunk-I4UGLC3A.js";
|
|
14
14
|
import "../chunk-ZZLQ3ILH.js";
|
|
15
15
|
import "../chunk-JTQGULTR.js";
|
|
16
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-FHNQBWIZ.js";
|
|
17
17
|
import "../chunk-ZBUW3MBH.js";
|
|
18
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-PIYIZHZL.js";
|
|
19
19
|
import "../chunk-WX267JP2.js";
|
|
20
20
|
import "../chunk-LEMOIFSV.js";
|
|
21
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-A4NKPUL5.js";
|
|
22
22
|
import "../chunk-RATGPKD3.js";
|
|
23
23
|
import "../chunk-2PXN34ON.js";
|
|
24
24
|
import "../chunk-TAJJZPEH.js";
|