@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
package/dist/index.cjs
CHANGED
|
@@ -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() {
|
|
@@ -54699,6 +54699,7 @@ var require_deep_diff = __commonJS({
|
|
|
54699
54699
|
var src_exports = {};
|
|
54700
54700
|
__export(src_exports, {
|
|
54701
54701
|
Assets: () => Assets,
|
|
54702
|
+
CANVAS_APP_STAGE_ALIAS: () => CANVAS_APP_STAGE_ALIAS,
|
|
54702
54703
|
CanvasBase: () => CanvasBase2,
|
|
54703
54704
|
CanvasContainer: () => CanvasContainer,
|
|
54704
54705
|
CanvasEvent: () => CanvasEvent,
|
|
@@ -54760,6 +54761,8 @@ __export(src_exports, {
|
|
|
54760
54761
|
narration: () => narration,
|
|
54761
54762
|
newLabel: () => newLabel,
|
|
54762
54763
|
pixivnTestStartLabel: () => pixivnTestStartLabel,
|
|
54764
|
+
pushIn: () => pushIn,
|
|
54765
|
+
pushOut: () => pushOut,
|
|
54763
54766
|
removeCanvasElement: () => removeCanvasElement,
|
|
54764
54767
|
removeWithDissolveTransition: () => removeWithDissolveTransition,
|
|
54765
54768
|
removeWithFadeTransition: () => removeWithFadeTransition,
|
|
@@ -54768,6 +54771,7 @@ __export(src_exports, {
|
|
|
54768
54771
|
setChoiceMenuOptions: () => setChoiceMenuOptions,
|
|
54769
54772
|
setDialogue: () => setDialogue,
|
|
54770
54773
|
setFlag: () => setFlag,
|
|
54774
|
+
shakeEffect: () => shakeEffect,
|
|
54771
54775
|
showImage: () => showImage,
|
|
54772
54776
|
showVideo: () => showVideo,
|
|
54773
54777
|
showWithDissolveTransition: () => showWithDissolveTransition,
|
|
@@ -57483,8 +57487,10 @@ extensions.add(soundAsset);
|
|
|
57483
57487
|
// node_modules/@pixi/sound/lib/index.mjs
|
|
57484
57488
|
var sound = setInstance(new SoundLibrary());
|
|
57485
57489
|
|
|
57490
|
+
// package.json
|
|
57491
|
+
var version = "0.8.9";
|
|
57492
|
+
|
|
57486
57493
|
// src/constants.ts
|
|
57487
|
-
var PIXIVN_VERSION = "0.8.3";
|
|
57488
57494
|
var Repeat = "repeat";
|
|
57489
57495
|
function Pause(duration) {
|
|
57490
57496
|
return {
|
|
@@ -57603,6 +57609,7 @@ var videoFormats = [
|
|
|
57603
57609
|
"asf",
|
|
57604
57610
|
"vob"
|
|
57605
57611
|
];
|
|
57612
|
+
var CANVAS_APP_STAGE_ALIAS = "_stage_";
|
|
57606
57613
|
|
|
57607
57614
|
// src/managers/CanvasManager.ts
|
|
57608
57615
|
init_lib();
|
|
@@ -57955,7 +57962,7 @@ function createExportableElement(element) {
|
|
|
57955
57962
|
let elementString = JSON.stringify(element);
|
|
57956
57963
|
return JSON.parse(elementString);
|
|
57957
57964
|
} catch (e2) {
|
|
57958
|
-
console.error("[Pixi\u2019VN] Error creating exportable element", e2);
|
|
57965
|
+
console.error("[Pixi\u2019VN] Error creating exportable element", element, e2);
|
|
57959
57966
|
throw new Error("[Pixi\u2019VN] Error creating exportable element");
|
|
57960
57967
|
}
|
|
57961
57968
|
}
|
|
@@ -58388,6 +58395,10 @@ var CanvasManager = class {
|
|
|
58388
58395
|
* ```
|
|
58389
58396
|
*/
|
|
58390
58397
|
add(alias, canvasElement, options = {}) {
|
|
58398
|
+
if (alias === CANVAS_APP_STAGE_ALIAS) {
|
|
58399
|
+
console.error(`[Pixi\u2019VN] The alias ${CANVAS_APP_STAGE_ALIAS} is reserved`);
|
|
58400
|
+
return;
|
|
58401
|
+
}
|
|
58391
58402
|
let ignoreOldStyle = options?.ignoreOldStyle;
|
|
58392
58403
|
let oldCanvasElement = this.find(alias);
|
|
58393
58404
|
if (oldCanvasElement) {
|
|
@@ -58418,6 +58429,10 @@ var CanvasManager = class {
|
|
|
58418
58429
|
* ```
|
|
58419
58430
|
*/
|
|
58420
58431
|
remove(alias, options = {}) {
|
|
58432
|
+
if (alias === CANVAS_APP_STAGE_ALIAS) {
|
|
58433
|
+
console.error(`[Pixi\u2019VN] The alias ${CANVAS_APP_STAGE_ALIAS} is reserved`);
|
|
58434
|
+
return;
|
|
58435
|
+
}
|
|
58421
58436
|
let ignoreTickers = options.ignoreTickers;
|
|
58422
58437
|
if (typeof alias === "string") {
|
|
58423
58438
|
alias = [alias];
|
|
@@ -58446,6 +58461,9 @@ var CanvasManager = class {
|
|
|
58446
58461
|
* ```
|
|
58447
58462
|
*/
|
|
58448
58463
|
find(alias) {
|
|
58464
|
+
if (alias === CANVAS_APP_STAGE_ALIAS) {
|
|
58465
|
+
return this.app.stage;
|
|
58466
|
+
}
|
|
58449
58467
|
return CanvasManagerStatic._children[alias];
|
|
58450
58468
|
}
|
|
58451
58469
|
/**
|
|
@@ -58472,16 +58490,17 @@ var CanvasManager = class {
|
|
|
58472
58490
|
this.removeAllTickers();
|
|
58473
58491
|
}
|
|
58474
58492
|
/**
|
|
58475
|
-
* Edit the alias of a canvas element.
|
|
58493
|
+
* Edit the alias of a canvas element. The tickers that are connected to the canvas element will be transferred.
|
|
58476
58494
|
* @param oldAlias The old alias of the canvas element.
|
|
58477
58495
|
* @param newAlias The new alias of the canvas element.
|
|
58496
|
+
* @param options The options of the canvas element.
|
|
58478
58497
|
*/
|
|
58479
|
-
editAlias(oldAlias, newAlias) {
|
|
58498
|
+
editAlias(oldAlias, newAlias, options = {}) {
|
|
58480
58499
|
if (CanvasManagerStatic._children[oldAlias]) {
|
|
58481
58500
|
CanvasManagerStatic._children[newAlias] = CanvasManagerStatic._children[oldAlias];
|
|
58482
58501
|
delete CanvasManagerStatic._children[oldAlias];
|
|
58483
58502
|
}
|
|
58484
|
-
this.transferTickers(oldAlias, newAlias, "move");
|
|
58503
|
+
!options.ignoreTickers && this.transferTickers(oldAlias, newAlias, "move");
|
|
58485
58504
|
}
|
|
58486
58505
|
/** Edit Tickers Methods */
|
|
58487
58506
|
/**
|
|
@@ -58556,12 +58575,16 @@ var CanvasManager = class {
|
|
|
58556
58575
|
pushTicker(id3, tickerData, ticker) {
|
|
58557
58576
|
CanvasManagerStatic._currentTickers[id3] = tickerData;
|
|
58558
58577
|
tickerData.fn = (t2) => {
|
|
58559
|
-
if (tickerData.createdByTicketSteps && this.isTickerPaused(tickerData.createdByTicketSteps.canvasElementAlias, tickerData.createdByTicketSteps.id)) {
|
|
58560
|
-
return;
|
|
58561
|
-
}
|
|
58562
58578
|
let data = CanvasManagerStatic._currentTickers[id3];
|
|
58563
58579
|
if (data) {
|
|
58564
|
-
let canvasElementAliases = data.canvasElementAliases
|
|
58580
|
+
let canvasElementAliases = data.canvasElementAliases;
|
|
58581
|
+
if (tickerData.createdByTicketSteps) {
|
|
58582
|
+
if (this.isTickerPaused(tickerData.createdByTicketSteps.canvasElementAlias, tickerData.createdByTicketSteps.id)) {
|
|
58583
|
+
return;
|
|
58584
|
+
}
|
|
58585
|
+
} else {
|
|
58586
|
+
canvasElementAliases = canvasElementAliases.filter((alias) => !this.isTickerPaused(alias, id3));
|
|
58587
|
+
}
|
|
58565
58588
|
ticker?.fn(t2, data.args, canvasElementAliases, id3);
|
|
58566
58589
|
}
|
|
58567
58590
|
};
|
|
@@ -58908,15 +58931,19 @@ var CanvasManager = class {
|
|
|
58908
58931
|
});
|
|
58909
58932
|
CanvasManagerStatic._tickersMustBeCompletedBeforeNextStep.stepAlias.forEach(({ alias, id: id3 }) => {
|
|
58910
58933
|
let ticker = CanvasManagerStatic._currentTickersSteps[alias];
|
|
58911
|
-
if (ticker && ticker[id3]
|
|
58912
|
-
ticker[id3].steps.
|
|
58913
|
-
|
|
58914
|
-
|
|
58915
|
-
|
|
58916
|
-
|
|
58934
|
+
if (ticker && ticker[id3]) {
|
|
58935
|
+
if (ticker[id3].steps.includes(Repeat)) {
|
|
58936
|
+
console.error(`[Pixi\u2019VN] The ticker alias: ${alias} id: ${id3} contains a RepeatType, so it can't be forced to complete`, ticker[id3]);
|
|
58937
|
+
} else {
|
|
58938
|
+
ticker[id3].steps.forEach((step) => {
|
|
58939
|
+
if (typeof step === "object" && "ticker" in step) {
|
|
58940
|
+
let ticker2 = geTickerInstanceById(step.ticker, step.args, step.duration, step.priority);
|
|
58941
|
+
if (ticker2) {
|
|
58942
|
+
ticker2.onEndOfTicker([alias], id3, step.args);
|
|
58943
|
+
}
|
|
58917
58944
|
}
|
|
58918
|
-
}
|
|
58919
|
-
}
|
|
58945
|
+
});
|
|
58946
|
+
}
|
|
58920
58947
|
}
|
|
58921
58948
|
});
|
|
58922
58949
|
CanvasManagerStatic._tickersMustBeCompletedBeforeNextStep = { tikersIds: [], stepAlias: [] };
|
|
@@ -58957,6 +58984,7 @@ var CanvasManager = class {
|
|
|
58957
58984
|
tickers: createExportableElement(CanvasManagerStatic.currentTickersWithoutCreatedBySteps),
|
|
58958
58985
|
tickersSteps: createExportableElement(CanvasManagerStatic._currentTickersSteps),
|
|
58959
58986
|
elements: createExportableElement(currentElements),
|
|
58987
|
+
stage: createExportableElement(getMemoryContainer(this.app.stage)),
|
|
58960
58988
|
elementAliasesOrder: createExportableElement(CanvasManagerStatic.childrenAliasesOrder),
|
|
58961
58989
|
tickersOnPause: createExportableElement(CanvasManagerStatic._tickersOnPause)
|
|
58962
58990
|
};
|
|
@@ -58990,6 +59018,11 @@ var CanvasManager = class {
|
|
|
58990
59018
|
console.error("[Pixi\u2019VN] The data does not have the properties elementAliasesOrder and elements");
|
|
58991
59019
|
return;
|
|
58992
59020
|
}
|
|
59021
|
+
if (data.hasOwnProperty("stage") && data.hasOwnProperty("stage")) {
|
|
59022
|
+
setMemoryContainer(this.app.stage, data["stage"]);
|
|
59023
|
+
} else {
|
|
59024
|
+
console.error("[Pixi\u2019VN] The data does not have the properties stage");
|
|
59025
|
+
}
|
|
58993
59026
|
if (data.hasOwnProperty("tickers")) {
|
|
58994
59027
|
let tickers = data["tickers"];
|
|
58995
59028
|
Object.entries(tickers).forEach(([oldId, t2]) => {
|
|
@@ -59457,8 +59490,8 @@ function getExponentialProgression(number, progression, valueConvert) {
|
|
|
59457
59490
|
// src/classes/ticker/MoveTicker.ts
|
|
59458
59491
|
var MoveTicker = class extends TickerBase {
|
|
59459
59492
|
fn(ticker, args, aliases, tickerId) {
|
|
59460
|
-
let xSpeed =
|
|
59461
|
-
let ySpeed =
|
|
59493
|
+
let xSpeed = 10;
|
|
59494
|
+
let ySpeed = 10;
|
|
59462
59495
|
if (args.speed) {
|
|
59463
59496
|
if (typeof args.speed === "number") {
|
|
59464
59497
|
xSpeed = this.speedConvert(args.speed);
|
|
@@ -59522,6 +59555,10 @@ var MoveTicker = class extends TickerBase {
|
|
|
59522
59555
|
let destination = args.destination;
|
|
59523
59556
|
element.x = destination.x;
|
|
59524
59557
|
element.y = destination.y;
|
|
59558
|
+
if (args.isPushInOut && element.children.length > 0) {
|
|
59559
|
+
let elementChild = element.children[0];
|
|
59560
|
+
canvas.add(alias2, elementChild, { ignoreOldStyle: true });
|
|
59561
|
+
}
|
|
59525
59562
|
}
|
|
59526
59563
|
});
|
|
59527
59564
|
super.onEndOfTicker(alias, tickerId, args);
|
|
@@ -59712,6 +59749,88 @@ ZoomTicker = __decorateClass([
|
|
|
59712
59749
|
tickerDecorator()
|
|
59713
59750
|
], ZoomTicker);
|
|
59714
59751
|
|
|
59752
|
+
// src/functions/canvas/canvas-effect.ts
|
|
59753
|
+
async function shakeEffect(alias, props = {}, priority) {
|
|
59754
|
+
let elemet = canvas.find(alias);
|
|
59755
|
+
if (!elemet) {
|
|
59756
|
+
console.error(`[Pixi\u2019VN] The element with the alias ${alias} does not exist. So the shake effect can't be applied.`);
|
|
59757
|
+
return;
|
|
59758
|
+
}
|
|
59759
|
+
let position = { x: elemet.position.x, y: elemet.position.y };
|
|
59760
|
+
let speed = props.speed || 20;
|
|
59761
|
+
let speedProgression = props.speedProgression || void 0;
|
|
59762
|
+
let startOnlyIfHaveTexture = props.startOnlyIfHaveTexture || false;
|
|
59763
|
+
let type = props.type || "horizontal";
|
|
59764
|
+
let maximumShockSize = props.maximumShockSize || 10;
|
|
59765
|
+
let shocksNumber = (props.shocksNumber || 10) - 1;
|
|
59766
|
+
if (shocksNumber < 2) {
|
|
59767
|
+
console.error("[Pixi\u2019VN] The number of shocks must be at least 3.");
|
|
59768
|
+
return;
|
|
59769
|
+
}
|
|
59770
|
+
let upshocksNumber = Math.floor(shocksNumber / 2);
|
|
59771
|
+
let downshocksNumber = Math.ceil(shocksNumber / 2);
|
|
59772
|
+
let moveTickers = [];
|
|
59773
|
+
for (let i3 = 0; i3 < upshocksNumber; i3++) {
|
|
59774
|
+
let destination = { x: position.x, y: position.y };
|
|
59775
|
+
let shockSize = maximumShockSize * (i3 + 1) / upshocksNumber;
|
|
59776
|
+
if (type === "horizontal") {
|
|
59777
|
+
if (i3 % 2 !== 0) {
|
|
59778
|
+
destination.x = position.x + shockSize;
|
|
59779
|
+
} else {
|
|
59780
|
+
destination.x = position.x - shockSize;
|
|
59781
|
+
}
|
|
59782
|
+
} else {
|
|
59783
|
+
if (i3 % 2 !== 0) {
|
|
59784
|
+
destination.y = position.y + shockSize;
|
|
59785
|
+
} else {
|
|
59786
|
+
destination.y = position.y - shockSize;
|
|
59787
|
+
}
|
|
59788
|
+
}
|
|
59789
|
+
moveTickers.push(new MoveTicker({
|
|
59790
|
+
destination,
|
|
59791
|
+
speed,
|
|
59792
|
+
speedProgression,
|
|
59793
|
+
startOnlyIfHaveTexture
|
|
59794
|
+
}, void 0, priority));
|
|
59795
|
+
}
|
|
59796
|
+
let lastItemIsLeft = upshocksNumber % 2 === 0;
|
|
59797
|
+
for (let i3 = downshocksNumber; i3 > 0; i3--) {
|
|
59798
|
+
let destination = { x: position.x, y: position.y };
|
|
59799
|
+
let shockSize = maximumShockSize * (i3 + 1) / (downshocksNumber - 1);
|
|
59800
|
+
if (type === "horizontal") {
|
|
59801
|
+
if (i3 % 2 === 0 && !lastItemIsLeft || i3 % 2 !== 0 && lastItemIsLeft) {
|
|
59802
|
+
destination.x = position.x - shockSize;
|
|
59803
|
+
} else {
|
|
59804
|
+
destination.x = position.x + shockSize;
|
|
59805
|
+
}
|
|
59806
|
+
} else {
|
|
59807
|
+
if (i3 % 2 === 0 && !lastItemIsLeft || i3 % 2 !== 0 && lastItemIsLeft) {
|
|
59808
|
+
destination.y = position.y - shockSize;
|
|
59809
|
+
} else {
|
|
59810
|
+
destination.y = position.y + shockSize;
|
|
59811
|
+
}
|
|
59812
|
+
}
|
|
59813
|
+
moveTickers.push(new MoveTicker({
|
|
59814
|
+
destination,
|
|
59815
|
+
speed,
|
|
59816
|
+
speedProgression,
|
|
59817
|
+
startOnlyIfHaveTexture
|
|
59818
|
+
}, void 0, priority));
|
|
59819
|
+
}
|
|
59820
|
+
moveTickers.push(new MoveTicker({
|
|
59821
|
+
destination: position,
|
|
59822
|
+
speed,
|
|
59823
|
+
speedProgression,
|
|
59824
|
+
startOnlyIfHaveTexture,
|
|
59825
|
+
tickerAliasToResume: alias
|
|
59826
|
+
}, void 0, priority));
|
|
59827
|
+
let id3 = canvas.addTickersSteps(alias, moveTickers);
|
|
59828
|
+
if (id3) {
|
|
59829
|
+
canvas.addTickerMustBeCompletedBeforeNextStep({ id: id3, alias });
|
|
59830
|
+
canvas.putOnPauseTicker(alias, id3);
|
|
59831
|
+
}
|
|
59832
|
+
}
|
|
59833
|
+
|
|
59715
59834
|
// src/functions/canvas/image-utility.ts
|
|
59716
59835
|
function addImage(alias, imageUrl) {
|
|
59717
59836
|
let image = new CanvasImage();
|
|
@@ -59778,6 +59897,7 @@ async function showVideo(alias, videoUrl) {
|
|
|
59778
59897
|
|
|
59779
59898
|
// src/functions/canvas/canvas-transition.ts
|
|
59780
59899
|
async function showWithDissolveTransition(alias, image, props = {}, priority) {
|
|
59900
|
+
let mustBeCompletedBeforeNextStep = props.mustBeCompletedBeforeNextStep ?? true;
|
|
59781
59901
|
let oldCanvasAlias = void 0;
|
|
59782
59902
|
if (canvas.find(alias)) {
|
|
59783
59903
|
oldCanvasAlias = alias + "_temp_disolve";
|
|
@@ -59807,10 +59927,13 @@ async function showWithDissolveTransition(alias, image, props = {}, priority) {
|
|
|
59807
59927
|
startOnlyIfHaveTexture: true
|
|
59808
59928
|
}, 10, priority);
|
|
59809
59929
|
let id3 = canvas.addTicker(alias, effect);
|
|
59810
|
-
|
|
59811
|
-
|
|
59930
|
+
if (id3) {
|
|
59931
|
+
mustBeCompletedBeforeNextStep && canvas.addTickerMustBeCompletedBeforeNextStep({ id: id3 });
|
|
59932
|
+
return [id3];
|
|
59933
|
+
}
|
|
59812
59934
|
}
|
|
59813
59935
|
function removeWithDissolveTransition(alias, props = {}, priority) {
|
|
59936
|
+
let mustBeCompletedBeforeNextStep = props.mustBeCompletedBeforeNextStep ?? true;
|
|
59814
59937
|
if (typeof alias === "string") {
|
|
59815
59938
|
alias = [alias];
|
|
59816
59939
|
}
|
|
@@ -59820,12 +59943,17 @@ function removeWithDissolveTransition(alias, props = {}, priority) {
|
|
|
59820
59943
|
aliasToRemoveAfter: alias,
|
|
59821
59944
|
startOnlyIfHaveTexture: true
|
|
59822
59945
|
}, 10, priority);
|
|
59823
|
-
canvas.addTicker(alias, effect);
|
|
59946
|
+
let id3 = canvas.addTicker(alias, effect);
|
|
59947
|
+
if (id3) {
|
|
59948
|
+
mustBeCompletedBeforeNextStep && canvas.addTickerMustBeCompletedBeforeNextStep({ id: id3 });
|
|
59949
|
+
return [id3];
|
|
59950
|
+
}
|
|
59824
59951
|
}
|
|
59825
59952
|
async function showWithFadeTransition(alias, image, props = {}, priority) {
|
|
59826
59953
|
if (!canvas.find(alias)) {
|
|
59827
59954
|
return showWithDissolveTransition(alias, image, props, priority);
|
|
59828
59955
|
}
|
|
59956
|
+
let mustBeCompletedBeforeNextStep = props.mustBeCompletedBeforeNextStep ?? true;
|
|
59829
59957
|
let oldCanvasAlias = alias + "_temp_fade";
|
|
59830
59958
|
canvas.editAlias(alias, oldCanvasAlias);
|
|
59831
59959
|
let canvasElement;
|
|
@@ -59861,14 +59989,23 @@ async function showWithFadeTransition(alias, image, props = {}, priority) {
|
|
|
59861
59989
|
aliasToRemoveAfter: oldCanvasAlias
|
|
59862
59990
|
}, void 0, priority)
|
|
59863
59991
|
]);
|
|
59864
|
-
|
|
59865
|
-
|
|
59992
|
+
let res = void 0;
|
|
59993
|
+
if (id1) {
|
|
59994
|
+
res = [id1];
|
|
59995
|
+
mustBeCompletedBeforeNextStep && canvas.addTickerMustBeCompletedBeforeNextStep({ id: id1, alias });
|
|
59996
|
+
}
|
|
59997
|
+
if (id22) {
|
|
59998
|
+
res ? res.push(id22) : res = [id22];
|
|
59999
|
+
mustBeCompletedBeforeNextStep && canvas.addTickerMustBeCompletedBeforeNextStep({ id: id22, alias });
|
|
60000
|
+
}
|
|
60001
|
+
return res;
|
|
59866
60002
|
}
|
|
59867
60003
|
function removeWithFadeTransition(alias, props = {}, priority) {
|
|
59868
60004
|
return removeWithDissolveTransition(alias, props, priority);
|
|
59869
60005
|
}
|
|
59870
60006
|
async function moveIn(alias, image, props = {}, priority) {
|
|
59871
60007
|
let direction = props.direction || "right";
|
|
60008
|
+
let mustBeCompletedBeforeNextStep = props.mustBeCompletedBeforeNextStep ?? true;
|
|
59872
60009
|
let tickerAliasToResume = typeof props.tickerAliasToResume === "string" ? [props.tickerAliasToResume] : props.tickerAliasToResume || [];
|
|
59873
60010
|
tickerAliasToResume.push(alias);
|
|
59874
60011
|
let canvasElement;
|
|
@@ -59909,10 +60046,15 @@ async function moveIn(alias, image, props = {}, priority) {
|
|
|
59909
60046
|
let id3 = canvas.addTicker(alias, effect);
|
|
59910
60047
|
if (id3) {
|
|
59911
60048
|
canvas.putOnPauseTicker(alias, id3);
|
|
60049
|
+
mustBeCompletedBeforeNextStep && canvas.addTickerMustBeCompletedBeforeNextStep({ id: id3 });
|
|
60050
|
+
return [id3];
|
|
59912
60051
|
}
|
|
59913
60052
|
}
|
|
59914
60053
|
function moveOut(alias, props = {}, priority) {
|
|
59915
60054
|
let direction = props.direction || "right";
|
|
60055
|
+
let mustBeCompletedBeforeNextStep = props.mustBeCompletedBeforeNextStep ?? true;
|
|
60056
|
+
let tickerAliasToResume = typeof props.tickerAliasToResume === "string" ? [props.tickerAliasToResume] : props.tickerAliasToResume || [];
|
|
60057
|
+
tickerAliasToResume.push(alias);
|
|
59916
60058
|
let canvasElement = canvas.find(alias);
|
|
59917
60059
|
if (!canvasElement) {
|
|
59918
60060
|
console.warn("[Pixi\u2019VN] The canvas element is not found.");
|
|
@@ -59935,13 +60077,20 @@ function moveOut(alias, props = {}, priority) {
|
|
|
59935
60077
|
}
|
|
59936
60078
|
let effect = new MoveTicker({
|
|
59937
60079
|
...props,
|
|
60080
|
+
tickerAliasToResume,
|
|
59938
60081
|
destination,
|
|
59939
60082
|
startOnlyIfHaveTexture: true,
|
|
59940
60083
|
aliasToRemoveAfter: alias
|
|
59941
60084
|
}, void 0, priority);
|
|
59942
|
-
canvas.addTicker(alias, effect);
|
|
60085
|
+
let id3 = canvas.addTicker(alias, effect);
|
|
60086
|
+
if (id3) {
|
|
60087
|
+
canvas.putOnPauseTicker(alias, id3);
|
|
60088
|
+
mustBeCompletedBeforeNextStep && canvas.addTickerMustBeCompletedBeforeNextStep({ id: id3 });
|
|
60089
|
+
return [id3];
|
|
60090
|
+
}
|
|
59943
60091
|
}
|
|
59944
60092
|
async function zoomIn(alias, image, props = { direction: "right" }, priority) {
|
|
60093
|
+
let mustBeCompletedBeforeNextStep = props.mustBeCompletedBeforeNextStep ?? true;
|
|
59945
60094
|
let tickerAliasToResume = typeof props.tickerAliasToResume === "string" ? [props.tickerAliasToResume] : props.tickerAliasToResume || [];
|
|
59946
60095
|
tickerAliasToResume.push(alias);
|
|
59947
60096
|
let canvasElement;
|
|
@@ -59954,7 +60103,9 @@ async function zoomIn(alias, image, props = { direction: "right" }, priority) {
|
|
|
59954
60103
|
} else {
|
|
59955
60104
|
canvasElement = image;
|
|
59956
60105
|
}
|
|
59957
|
-
canvas.
|
|
60106
|
+
if (canvas.find(alias)) {
|
|
60107
|
+
canvas.copyCanvasElementProperty(alias, canvasElement);
|
|
60108
|
+
}
|
|
59958
60109
|
let container = new CanvasContainer();
|
|
59959
60110
|
container.addChild(canvasElement);
|
|
59960
60111
|
container.height = canvas.canvasHeight;
|
|
@@ -59996,9 +60147,14 @@ async function zoomIn(alias, image, props = { direction: "right" }, priority) {
|
|
|
59996
60147
|
let id3 = canvas.addTicker(alias, effect);
|
|
59997
60148
|
if (id3) {
|
|
59998
60149
|
canvas.putOnPauseTicker(alias, id3);
|
|
60150
|
+
mustBeCompletedBeforeNextStep && canvas.addTickerMustBeCompletedBeforeNextStep({ id: id3 });
|
|
60151
|
+
return [id3];
|
|
59999
60152
|
}
|
|
60000
60153
|
}
|
|
60001
60154
|
function zoomOut(alias, props = { direction: "right" }, priority) {
|
|
60155
|
+
let mustBeCompletedBeforeNextStep = props.mustBeCompletedBeforeNextStep ?? true;
|
|
60156
|
+
let tickerAliasToResume = typeof props.tickerAliasToResume === "string" ? [props.tickerAliasToResume] : props.tickerAliasToResume || [];
|
|
60157
|
+
tickerAliasToResume.push(alias);
|
|
60002
60158
|
let canvasElement = canvas.find(alias);
|
|
60003
60159
|
if (!canvasElement) {
|
|
60004
60160
|
console.warn("[Pixi\u2019VN] The canvas element is not found.");
|
|
@@ -60033,13 +60189,116 @@ function zoomOut(alias, props = { direction: "right" }, priority) {
|
|
|
60033
60189
|
container.scale.set(1);
|
|
60034
60190
|
let effect = new ZoomTicker({
|
|
60035
60191
|
...props,
|
|
60192
|
+
tickerAliasToResume,
|
|
60036
60193
|
startOnlyIfHaveTexture: true,
|
|
60037
60194
|
type: "unzoom",
|
|
60038
60195
|
limit: 0,
|
|
60039
60196
|
aliasToRemoveAfter: alias,
|
|
60040
60197
|
isZoomInOut: true
|
|
60041
60198
|
}, void 0, priority);
|
|
60042
|
-
canvas.addTicker(alias, effect);
|
|
60199
|
+
let id3 = canvas.addTicker(alias, effect);
|
|
60200
|
+
if (id3) {
|
|
60201
|
+
canvas.putOnPauseTicker(alias, id3);
|
|
60202
|
+
mustBeCompletedBeforeNextStep && canvas.addTickerMustBeCompletedBeforeNextStep({ id: id3 });
|
|
60203
|
+
return [id3];
|
|
60204
|
+
}
|
|
60205
|
+
}
|
|
60206
|
+
async function pushIn(alias, image, props = { direction: "right" }, priority) {
|
|
60207
|
+
let oldCanvasAlias = alias + "_temp_push";
|
|
60208
|
+
let mustBeCompletedBeforeNextStep = props.mustBeCompletedBeforeNextStep ?? true;
|
|
60209
|
+
let tickerAliasToResume = typeof props.tickerAliasToResume === "string" ? [props.tickerAliasToResume] : props.tickerAliasToResume || [];
|
|
60210
|
+
tickerAliasToResume.push(alias);
|
|
60211
|
+
let canvasElement;
|
|
60212
|
+
if (typeof image === "string") {
|
|
60213
|
+
if (checkIfVideo(image)) {
|
|
60214
|
+
canvasElement = new CanvasVideo({}, image);
|
|
60215
|
+
} else {
|
|
60216
|
+
canvasElement = new CanvasImage({}, image);
|
|
60217
|
+
}
|
|
60218
|
+
} else {
|
|
60219
|
+
canvasElement = image;
|
|
60220
|
+
}
|
|
60221
|
+
let oldCanvas = canvas.find(alias);
|
|
60222
|
+
if (oldCanvas) {
|
|
60223
|
+
canvas.copyCanvasElementProperty(oldCanvas, canvasElement);
|
|
60224
|
+
canvas.editAlias(alias, oldCanvasAlias, { ignoreTickers: true });
|
|
60225
|
+
pushOut(oldCanvasAlias, props, priority);
|
|
60226
|
+
}
|
|
60227
|
+
let container = new CanvasContainer();
|
|
60228
|
+
container.height = canvas.canvasHeight;
|
|
60229
|
+
container.width = canvas.canvasWidth;
|
|
60230
|
+
container.addChild(canvasElement);
|
|
60231
|
+
canvas.add(alias, container, { ignoreOldStyle: true });
|
|
60232
|
+
if (canvasElement instanceof CanvasImage && canvasElement.texture?.label == "EMPTY") {
|
|
60233
|
+
await canvasElement.load();
|
|
60234
|
+
}
|
|
60235
|
+
if (props.direction == "up") {
|
|
60236
|
+
container.x = 0;
|
|
60237
|
+
container.y = -canvas.canvasHeight;
|
|
60238
|
+
} else if (props.direction == "down") {
|
|
60239
|
+
container.x = 0;
|
|
60240
|
+
container.y = canvas.canvasHeight;
|
|
60241
|
+
} else if (props.direction == "left") {
|
|
60242
|
+
container.x = canvas.canvasWidth;
|
|
60243
|
+
container.y = 0;
|
|
60244
|
+
} else if (props.direction == "right") {
|
|
60245
|
+
container.x = -canvas.canvasWidth;
|
|
60246
|
+
container.y = 0;
|
|
60247
|
+
}
|
|
60248
|
+
let effect = new MoveTicker({
|
|
60249
|
+
...props,
|
|
60250
|
+
tickerAliasToResume,
|
|
60251
|
+
startOnlyIfHaveTexture: true,
|
|
60252
|
+
isPushInOut: true,
|
|
60253
|
+
destination: { x: 0, y: 0 }
|
|
60254
|
+
}, void 0, priority);
|
|
60255
|
+
let id3 = canvas.addTicker(alias, effect);
|
|
60256
|
+
if (id3) {
|
|
60257
|
+
canvas.putOnPauseTicker(alias, id3);
|
|
60258
|
+
mustBeCompletedBeforeNextStep && canvas.addTickerMustBeCompletedBeforeNextStep({ id: id3 });
|
|
60259
|
+
return [id3];
|
|
60260
|
+
}
|
|
60261
|
+
}
|
|
60262
|
+
function pushOut(alias, props = { direction: "right" }, priority) {
|
|
60263
|
+
let mustBeCompletedBeforeNextStep = props.mustBeCompletedBeforeNextStep ?? true;
|
|
60264
|
+
let tickerAliasToResume = typeof props.tickerAliasToResume === "string" ? [props.tickerAliasToResume] : props.tickerAliasToResume || [];
|
|
60265
|
+
tickerAliasToResume.push(alias);
|
|
60266
|
+
let canvasElement = canvas.find(alias);
|
|
60267
|
+
if (!canvasElement) {
|
|
60268
|
+
console.warn("[Pixi\u2019VN] The canvas element is not found.");
|
|
60269
|
+
return;
|
|
60270
|
+
}
|
|
60271
|
+
let container = new CanvasContainer();
|
|
60272
|
+
container.pivot.x = 0;
|
|
60273
|
+
container.pivot.y = 0;
|
|
60274
|
+
container.x = 0;
|
|
60275
|
+
container.y = 0;
|
|
60276
|
+
container.addChild(canvasElement);
|
|
60277
|
+
canvas.add(alias, container, { ignoreOldStyle: true });
|
|
60278
|
+
let destination = { x: 0, y: 0 };
|
|
60279
|
+
if (props.direction == "up") {
|
|
60280
|
+
destination.y = canvas.canvasHeight;
|
|
60281
|
+
} else if (props.direction == "down") {
|
|
60282
|
+
destination.y = -canvas.canvasHeight;
|
|
60283
|
+
} else if (props.direction == "left") {
|
|
60284
|
+
destination.x = -canvas.canvasWidth;
|
|
60285
|
+
} else if (props.direction == "right") {
|
|
60286
|
+
destination.x = canvas.canvasWidth;
|
|
60287
|
+
}
|
|
60288
|
+
let effect = new MoveTicker({
|
|
60289
|
+
...props,
|
|
60290
|
+
tickerAliasToResume,
|
|
60291
|
+
startOnlyIfHaveTexture: true,
|
|
60292
|
+
destination,
|
|
60293
|
+
aliasToRemoveAfter: alias,
|
|
60294
|
+
isPushInOut: true
|
|
60295
|
+
}, void 0, priority);
|
|
60296
|
+
let id3 = canvas.addTicker(alias, effect);
|
|
60297
|
+
if (id3) {
|
|
60298
|
+
canvas.putOnPauseTicker(alias, id3);
|
|
60299
|
+
mustBeCompletedBeforeNextStep && canvas.addTickerMustBeCompletedBeforeNextStep({ id: id3 });
|
|
60300
|
+
return [id3];
|
|
60301
|
+
}
|
|
60043
60302
|
}
|
|
60044
60303
|
|
|
60045
60304
|
// src/functions/dialogue-utility.ts
|
|
@@ -60102,7 +60361,7 @@ function getGamePath() {
|
|
|
60102
60361
|
// src/functions/saves-utility.ts
|
|
60103
60362
|
function getSaveData() {
|
|
60104
60363
|
return {
|
|
60105
|
-
pixivn_version:
|
|
60364
|
+
pixivn_version: version,
|
|
60106
60365
|
stepData: narration.export(),
|
|
60107
60366
|
storageData: storage.export(),
|
|
60108
60367
|
canvasData: canvas.export(),
|
|
@@ -60341,6 +60600,7 @@ var NarrationManagerStatic = class _NarrationManagerStatic {
|
|
|
60341
60600
|
canvas: {
|
|
60342
60601
|
elementAliasesOrder: [],
|
|
60343
60602
|
elements: {},
|
|
60603
|
+
stage: {},
|
|
60344
60604
|
tickers: {},
|
|
60345
60605
|
tickersSteps: {},
|
|
60346
60606
|
tickersOnPause: {}
|
|
@@ -60920,8 +61180,10 @@ var NarrationManager = class {
|
|
|
60920
61180
|
console.warn("[Pixi\u2019VN] stepSha not found");
|
|
60921
61181
|
}
|
|
60922
61182
|
try {
|
|
61183
|
+
if (NarrationManagerStatic.stepsRunning === 0) {
|
|
61184
|
+
canvas.forceCompletionOfReportedTickers();
|
|
61185
|
+
}
|
|
60923
61186
|
NarrationManagerStatic.stepsRunning++;
|
|
60924
|
-
canvas.forceCompletionOfReportedTickers();
|
|
60925
61187
|
let result = await step(props);
|
|
60926
61188
|
if (this.choiceMenuOptions?.length === 1 && this.choiceMenuOptions[0].autoSelect) {
|
|
60927
61189
|
let choice = this.choiceMenuOptions[0];
|
|
@@ -62302,7 +62564,7 @@ var StoredClassModel = class {
|
|
|
62302
62564
|
if (Object.keys(storageValue[this.id]).length === 0) {
|
|
62303
62565
|
delete storageValue[this.id];
|
|
62304
62566
|
}
|
|
62305
|
-
|
|
62567
|
+
storage.setVariable(this.categoryId, storageValue);
|
|
62306
62568
|
}
|
|
62307
62569
|
/**
|
|
62308
62570
|
* Get a property from the storage.
|
|
@@ -62773,7 +63035,7 @@ var AlienTintingTest = class extends CanvasSprite {
|
|
|
62773
63035
|
turningSpeed = 0;
|
|
62774
63036
|
speed = 0;
|
|
62775
63037
|
static from(source7, skipCache) {
|
|
62776
|
-
let sprite =
|
|
63038
|
+
let sprite = CanvasSprite.from(source7, skipCache);
|
|
62777
63039
|
let mySprite = new AlienTintingTest();
|
|
62778
63040
|
mySprite.texture = sprite.texture;
|
|
62779
63041
|
return mySprite;
|
|
@@ -62878,6 +63140,8 @@ var imagesAnimationsTest = newLabel(IMAGE_ANIMAIONS_TEST_LABEL, [
|
|
|
62878
63140
|
new ChoiceMenuOption("Zoom", imagesZoomTest, {}),
|
|
62879
63141
|
new ChoiceMenuOption("Move in/out", imagesMoveInOutTest, {}),
|
|
62880
63142
|
new ChoiceMenuOption("Zoom in/out", imagesZoomInOutTest, {}),
|
|
63143
|
+
new ChoiceMenuOption("Push in/out", imagesPushInOutTest, {}),
|
|
63144
|
+
new ChoiceMenuOption("Shake", shakeStageTest, {}),
|
|
62881
63145
|
new ChoiceMenuOption("Add same alias", imagesAddSameAliasTestLabel, {}),
|
|
62882
63146
|
new ChoiceMenuOptionClose("Cancel", { closeCurrentLabel: true })
|
|
62883
63147
|
];
|
|
@@ -63210,6 +63474,44 @@ var imagesZoomInOutTest = newLabel("___pixi_vn_images_zoom_in_out_test___", [
|
|
|
63210
63474
|
});
|
|
63211
63475
|
}
|
|
63212
63476
|
]);
|
|
63477
|
+
var imagesPushInOutTest = newLabel("___pixi_vn_images_push_in_out_test___", [
|
|
63478
|
+
async () => {
|
|
63479
|
+
narration.dialogue = {
|
|
63480
|
+
character: juliette,
|
|
63481
|
+
text: `Here's what's going to happen:`
|
|
63482
|
+
};
|
|
63483
|
+
let eggHead = new CanvasImage({ x: 100, y: 100 }, eggHeadImage);
|
|
63484
|
+
let flowerTop = new CanvasImage({ x: 300, y: 100 }, flowerTopImage);
|
|
63485
|
+
let helmlok = new CanvasImage({ x: 100, y: 300 }, helmlokImage);
|
|
63486
|
+
let skully = new CanvasImage({ x: 300, y: 300 }, skullyImage);
|
|
63487
|
+
pushIn("eggHead", eggHead, { speed: 20, direction: "down" });
|
|
63488
|
+
pushIn("flowerTop", flowerTop, {
|
|
63489
|
+
speed: 3,
|
|
63490
|
+
direction: "left",
|
|
63491
|
+
speedProgression: { type: "exponential", percentage: 0.02 }
|
|
63492
|
+
});
|
|
63493
|
+
pushIn("helmlok", helmlok, { speed: 30, direction: "right" });
|
|
63494
|
+
pushIn("skully", skully, {
|
|
63495
|
+
speed: 3,
|
|
63496
|
+
direction: "up",
|
|
63497
|
+
speedProgression: { type: "exponential", percentage: 0.02 }
|
|
63498
|
+
});
|
|
63499
|
+
},
|
|
63500
|
+
async () => {
|
|
63501
|
+
pushOut("eggHead", {
|
|
63502
|
+
speed: 3,
|
|
63503
|
+
direction: "down",
|
|
63504
|
+
speedProgression: { type: "exponential", percentage: 0.02 }
|
|
63505
|
+
});
|
|
63506
|
+
pushOut("flowerTop", { speed: 30, direction: "left" });
|
|
63507
|
+
pushOut("helmlok", { speed: 10, direction: "right" });
|
|
63508
|
+
pushOut("skully", {
|
|
63509
|
+
speed: 3,
|
|
63510
|
+
direction: "up",
|
|
63511
|
+
speedProgression: { type: "exponential", percentage: 0.02 }
|
|
63512
|
+
});
|
|
63513
|
+
}
|
|
63514
|
+
]);
|
|
63213
63515
|
var imagesAddSameAliasTestLabel = newLabel("___pixi_vn_images_add_same_tag_test___", [
|
|
63214
63516
|
() => {
|
|
63215
63517
|
narration.dialogue = {
|
|
@@ -63251,7 +63553,24 @@ var imagesAddSameAliasTestLabel = newLabel("___pixi_vn_images_add_same_tag_test_
|
|
|
63251
63553
|
async () => await showWithDissolveTransition("eggHead", helmlokImage),
|
|
63252
63554
|
async () => await showWithFadeTransition("eggHead", skullyImage),
|
|
63253
63555
|
async () => await moveIn("eggHead", eggHeadImage, { speed: 100 }),
|
|
63254
|
-
async () => await zoomIn("eggHead", eggHeadImage)
|
|
63556
|
+
async () => await zoomIn("eggHead", eggHeadImage),
|
|
63557
|
+
async () => await pushIn("eggHead", eggHeadImage)
|
|
63558
|
+
]);
|
|
63559
|
+
var shakeStageTest = newLabel("___pixi_vn_images_shake_stage_test___", [
|
|
63560
|
+
() => {
|
|
63561
|
+
narration.dialogue = {
|
|
63562
|
+
character: juliette,
|
|
63563
|
+
text: `Ok this is a test for the shake effect. The ${eggHeadName} will shake.`
|
|
63564
|
+
};
|
|
63565
|
+
shakeEffect("eggHead");
|
|
63566
|
+
},
|
|
63567
|
+
() => {
|
|
63568
|
+
narration.dialogue = {
|
|
63569
|
+
character: juliette,
|
|
63570
|
+
text: `Now the whole stage will shake.`
|
|
63571
|
+
};
|
|
63572
|
+
shakeEffect(CANVAS_APP_STAGE_ALIAS);
|
|
63573
|
+
}
|
|
63255
63574
|
]);
|
|
63256
63575
|
|
|
63257
63576
|
// src/labels/InputTestLabel.ts
|
|
@@ -63481,7 +63800,7 @@ var pixivnTestStartLabel = newLabel(
|
|
|
63481
63800
|
}
|
|
63482
63801
|
narration.dialogue = { character: juliette, text: `Good ${currentTimeName}! I'm ${juliette.name}, your virtual assistant. I'm here to help you with your tests.` };
|
|
63483
63802
|
},
|
|
63484
|
-
() => narration.dialogue = { character: juliette, text: `You are running the Pixi\u2019VN v${
|
|
63803
|
+
() => narration.dialogue = { character: juliette, text: `You are running the Pixi\u2019VN v${version} test. This test will guide you through the different features of the library.` },
|
|
63485
63804
|
(props) => narration.jumpLabel(pixivnTestStartLabel2, props)
|
|
63486
63805
|
]
|
|
63487
63806
|
);
|
|
@@ -63522,6 +63841,7 @@ var pixivnTestStartLabel2 = newLabel(
|
|
|
63522
63841
|
// Annotate the CommonJS export names for ESM import in node:
|
|
63523
63842
|
0 && (module.exports = {
|
|
63524
63843
|
Assets,
|
|
63844
|
+
CANVAS_APP_STAGE_ALIAS,
|
|
63525
63845
|
CanvasBase,
|
|
63526
63846
|
CanvasContainer,
|
|
63527
63847
|
CanvasEvent,
|
|
@@ -63583,6 +63903,8 @@ var pixivnTestStartLabel2 = newLabel(
|
|
|
63583
63903
|
narration,
|
|
63584
63904
|
newLabel,
|
|
63585
63905
|
pixivnTestStartLabel,
|
|
63906
|
+
pushIn,
|
|
63907
|
+
pushOut,
|
|
63586
63908
|
removeCanvasElement,
|
|
63587
63909
|
removeWithDissolveTransition,
|
|
63588
63910
|
removeWithFadeTransition,
|
|
@@ -63591,6 +63913,7 @@ var pixivnTestStartLabel2 = newLabel(
|
|
|
63591
63913
|
setChoiceMenuOptions,
|
|
63592
63914
|
setDialogue,
|
|
63593
63915
|
setFlag,
|
|
63916
|
+
shakeEffect,
|
|
63594
63917
|
showImage,
|
|
63595
63918
|
showVideo,
|
|
63596
63919
|
showWithDissolveTransition,
|