@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
|
@@ -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() {
|
|
@@ -57411,6 +57411,7 @@ var filters = {
|
|
|
57411
57411
|
StreamFilter: filters_exports.StreamFilter,
|
|
57412
57412
|
TelephoneFilter: filters_exports.TelephoneFilter
|
|
57413
57413
|
};
|
|
57414
|
+
var CANVAS_APP_STAGE_ALIAS = "_stage_";
|
|
57414
57415
|
|
|
57415
57416
|
// src/functions/canvas/canvas-utility.ts
|
|
57416
57417
|
function getTextureMemory(texture) {
|
|
@@ -58429,7 +58430,7 @@ function createExportableElement(element) {
|
|
|
58429
58430
|
let elementString = JSON.stringify(element);
|
|
58430
58431
|
return JSON.parse(elementString);
|
|
58431
58432
|
} catch (e2) {
|
|
58432
|
-
console.error("[Pixi\u2019VN] Error creating exportable element", e2);
|
|
58433
|
+
console.error("[Pixi\u2019VN] Error creating exportable element", element, e2);
|
|
58433
58434
|
throw new Error("[Pixi\u2019VN] Error creating exportable element");
|
|
58434
58435
|
}
|
|
58435
58436
|
}
|
|
@@ -58862,6 +58863,10 @@ var CanvasManager = class {
|
|
|
58862
58863
|
* ```
|
|
58863
58864
|
*/
|
|
58864
58865
|
add(alias, canvasElement, options = {}) {
|
|
58866
|
+
if (alias === CANVAS_APP_STAGE_ALIAS) {
|
|
58867
|
+
console.error(`[Pixi\u2019VN] The alias ${CANVAS_APP_STAGE_ALIAS} is reserved`);
|
|
58868
|
+
return;
|
|
58869
|
+
}
|
|
58865
58870
|
let ignoreOldStyle = options?.ignoreOldStyle;
|
|
58866
58871
|
let oldCanvasElement = this.find(alias);
|
|
58867
58872
|
if (oldCanvasElement) {
|
|
@@ -58892,6 +58897,10 @@ var CanvasManager = class {
|
|
|
58892
58897
|
* ```
|
|
58893
58898
|
*/
|
|
58894
58899
|
remove(alias, options = {}) {
|
|
58900
|
+
if (alias === CANVAS_APP_STAGE_ALIAS) {
|
|
58901
|
+
console.error(`[Pixi\u2019VN] The alias ${CANVAS_APP_STAGE_ALIAS} is reserved`);
|
|
58902
|
+
return;
|
|
58903
|
+
}
|
|
58895
58904
|
let ignoreTickers = options.ignoreTickers;
|
|
58896
58905
|
if (typeof alias === "string") {
|
|
58897
58906
|
alias = [alias];
|
|
@@ -58920,6 +58929,9 @@ var CanvasManager = class {
|
|
|
58920
58929
|
* ```
|
|
58921
58930
|
*/
|
|
58922
58931
|
find(alias) {
|
|
58932
|
+
if (alias === CANVAS_APP_STAGE_ALIAS) {
|
|
58933
|
+
return this.app.stage;
|
|
58934
|
+
}
|
|
58923
58935
|
return CanvasManagerStatic._children[alias];
|
|
58924
58936
|
}
|
|
58925
58937
|
/**
|
|
@@ -58946,16 +58958,17 @@ var CanvasManager = class {
|
|
|
58946
58958
|
this.removeAllTickers();
|
|
58947
58959
|
}
|
|
58948
58960
|
/**
|
|
58949
|
-
* Edit the alias of a canvas element.
|
|
58961
|
+
* Edit the alias of a canvas element. The tickers that are connected to the canvas element will be transferred.
|
|
58950
58962
|
* @param oldAlias The old alias of the canvas element.
|
|
58951
58963
|
* @param newAlias The new alias of the canvas element.
|
|
58964
|
+
* @param options The options of the canvas element.
|
|
58952
58965
|
*/
|
|
58953
|
-
editAlias(oldAlias, newAlias) {
|
|
58966
|
+
editAlias(oldAlias, newAlias, options = {}) {
|
|
58954
58967
|
if (CanvasManagerStatic._children[oldAlias]) {
|
|
58955
58968
|
CanvasManagerStatic._children[newAlias] = CanvasManagerStatic._children[oldAlias];
|
|
58956
58969
|
delete CanvasManagerStatic._children[oldAlias];
|
|
58957
58970
|
}
|
|
58958
|
-
this.transferTickers(oldAlias, newAlias, "move");
|
|
58971
|
+
!options.ignoreTickers && this.transferTickers(oldAlias, newAlias, "move");
|
|
58959
58972
|
}
|
|
58960
58973
|
/** Edit Tickers Methods */
|
|
58961
58974
|
/**
|
|
@@ -59030,12 +59043,16 @@ var CanvasManager = class {
|
|
|
59030
59043
|
pushTicker(id3, tickerData, ticker) {
|
|
59031
59044
|
CanvasManagerStatic._currentTickers[id3] = tickerData;
|
|
59032
59045
|
tickerData.fn = (t2) => {
|
|
59033
|
-
if (tickerData.createdByTicketSteps && this.isTickerPaused(tickerData.createdByTicketSteps.canvasElementAlias, tickerData.createdByTicketSteps.id)) {
|
|
59034
|
-
return;
|
|
59035
|
-
}
|
|
59036
59046
|
let data = CanvasManagerStatic._currentTickers[id3];
|
|
59037
59047
|
if (data) {
|
|
59038
|
-
let canvasElementAliases = data.canvasElementAliases
|
|
59048
|
+
let canvasElementAliases = data.canvasElementAliases;
|
|
59049
|
+
if (tickerData.createdByTicketSteps) {
|
|
59050
|
+
if (this.isTickerPaused(tickerData.createdByTicketSteps.canvasElementAlias, tickerData.createdByTicketSteps.id)) {
|
|
59051
|
+
return;
|
|
59052
|
+
}
|
|
59053
|
+
} else {
|
|
59054
|
+
canvasElementAliases = canvasElementAliases.filter((alias) => !this.isTickerPaused(alias, id3));
|
|
59055
|
+
}
|
|
59039
59056
|
ticker?.fn(t2, data.args, canvasElementAliases, id3);
|
|
59040
59057
|
}
|
|
59041
59058
|
};
|
|
@@ -59382,15 +59399,19 @@ var CanvasManager = class {
|
|
|
59382
59399
|
});
|
|
59383
59400
|
CanvasManagerStatic._tickersMustBeCompletedBeforeNextStep.stepAlias.forEach(({ alias, id: id3 }) => {
|
|
59384
59401
|
let ticker = CanvasManagerStatic._currentTickersSteps[alias];
|
|
59385
|
-
if (ticker && ticker[id3]
|
|
59386
|
-
ticker[id3].steps.
|
|
59387
|
-
|
|
59388
|
-
|
|
59389
|
-
|
|
59390
|
-
|
|
59402
|
+
if (ticker && ticker[id3]) {
|
|
59403
|
+
if (ticker[id3].steps.includes(Repeat)) {
|
|
59404
|
+
console.error(`[Pixi\u2019VN] The ticker alias: ${alias} id: ${id3} contains a RepeatType, so it can't be forced to complete`, ticker[id3]);
|
|
59405
|
+
} else {
|
|
59406
|
+
ticker[id3].steps.forEach((step) => {
|
|
59407
|
+
if (typeof step === "object" && "ticker" in step) {
|
|
59408
|
+
let ticker2 = geTickerInstanceById(step.ticker, step.args, step.duration, step.priority);
|
|
59409
|
+
if (ticker2) {
|
|
59410
|
+
ticker2.onEndOfTicker([alias], id3, step.args);
|
|
59411
|
+
}
|
|
59391
59412
|
}
|
|
59392
|
-
}
|
|
59393
|
-
}
|
|
59413
|
+
});
|
|
59414
|
+
}
|
|
59394
59415
|
}
|
|
59395
59416
|
});
|
|
59396
59417
|
CanvasManagerStatic._tickersMustBeCompletedBeforeNextStep = { tikersIds: [], stepAlias: [] };
|
|
@@ -59431,6 +59452,7 @@ var CanvasManager = class {
|
|
|
59431
59452
|
tickers: createExportableElement(CanvasManagerStatic.currentTickersWithoutCreatedBySteps),
|
|
59432
59453
|
tickersSteps: createExportableElement(CanvasManagerStatic._currentTickersSteps),
|
|
59433
59454
|
elements: createExportableElement(currentElements),
|
|
59455
|
+
stage: createExportableElement(getMemoryContainer(this.app.stage)),
|
|
59434
59456
|
elementAliasesOrder: createExportableElement(CanvasManagerStatic.childrenAliasesOrder),
|
|
59435
59457
|
tickersOnPause: createExportableElement(CanvasManagerStatic._tickersOnPause)
|
|
59436
59458
|
};
|
|
@@ -59464,6 +59486,11 @@ var CanvasManager = class {
|
|
|
59464
59486
|
console.error("[Pixi\u2019VN] The data does not have the properties elementAliasesOrder and elements");
|
|
59465
59487
|
return;
|
|
59466
59488
|
}
|
|
59489
|
+
if (data.hasOwnProperty("stage") && data.hasOwnProperty("stage")) {
|
|
59490
|
+
setMemoryContainer(this.app.stage, data["stage"]);
|
|
59491
|
+
} else {
|
|
59492
|
+
console.error("[Pixi\u2019VN] The data does not have the properties stage");
|
|
59493
|
+
}
|
|
59467
59494
|
if (data.hasOwnProperty("tickers")) {
|
|
59468
59495
|
let tickers = data["tickers"];
|
|
59469
59496
|
Object.entries(tickers).forEach(([oldId, t2]) => {
|
|
@@ -59625,8 +59652,8 @@ function getExponentialProgression(number, progression, valueConvert) {
|
|
|
59625
59652
|
// src/classes/ticker/MoveTicker.ts
|
|
59626
59653
|
var MoveTicker = class extends TickerBase {
|
|
59627
59654
|
fn(ticker, args, aliases, tickerId) {
|
|
59628
|
-
let xSpeed =
|
|
59629
|
-
let ySpeed =
|
|
59655
|
+
let xSpeed = 10;
|
|
59656
|
+
let ySpeed = 10;
|
|
59630
59657
|
if (args.speed) {
|
|
59631
59658
|
if (typeof args.speed === "number") {
|
|
59632
59659
|
xSpeed = this.speedConvert(args.speed);
|
|
@@ -59690,6 +59717,10 @@ var MoveTicker = class extends TickerBase {
|
|
|
59690
59717
|
let destination = args.destination;
|
|
59691
59718
|
element.x = destination.x;
|
|
59692
59719
|
element.y = destination.y;
|
|
59720
|
+
if (args.isPushInOut && element.children.length > 0) {
|
|
59721
|
+
let elementChild = element.children[0];
|
|
59722
|
+
canvas.add(alias2, elementChild, { ignoreOldStyle: true });
|
|
59723
|
+
}
|
|
59693
59724
|
}
|
|
59694
59725
|
});
|
|
59695
59726
|
super.onEndOfTicker(alias, tickerId, args);
|
|
@@ -60122,6 +60153,7 @@ var NarrationManagerStatic = class _NarrationManagerStatic {
|
|
|
60122
60153
|
canvas: {
|
|
60123
60154
|
elementAliasesOrder: [],
|
|
60124
60155
|
elements: {},
|
|
60156
|
+
stage: {},
|
|
60125
60157
|
tickers: {},
|
|
60126
60158
|
tickersSteps: {},
|
|
60127
60159
|
tickersOnPause: {}
|
|
@@ -60701,8 +60733,10 @@ var NarrationManager = class {
|
|
|
60701
60733
|
console.warn("[Pixi\u2019VN] stepSha not found");
|
|
60702
60734
|
}
|
|
60703
60735
|
try {
|
|
60736
|
+
if (NarrationManagerStatic.stepsRunning === 0) {
|
|
60737
|
+
canvas.forceCompletionOfReportedTickers();
|
|
60738
|
+
}
|
|
60704
60739
|
NarrationManagerStatic.stepsRunning++;
|
|
60705
|
-
canvas.forceCompletionOfReportedTickers();
|
|
60706
60740
|
let result = await step(props);
|
|
60707
60741
|
if (this.choiceMenuOptions?.length === 1 && this.choiceMenuOptions[0].autoSelect) {
|
|
60708
60742
|
let choice = this.choiceMenuOptions[0];
|
|
@@ -2,8 +2,8 @@ import { ChoiceMenuOptionsType } from '../types/ChoiceMenuOptionsType.cjs';
|
|
|
2
2
|
import CharacterBaseInterface from '../interface/CharacterInterface.cjs';
|
|
3
3
|
import Dialogue from '../classes/Dialogue.cjs';
|
|
4
4
|
import '../classes/ChoiceMenuOption.cjs';
|
|
5
|
-
import '../types/StorageElementType.cjs';
|
|
6
5
|
import '../types/LabelIdType.cjs';
|
|
6
|
+
import '../types/StorageElementType.cjs';
|
|
7
7
|
import '../classes/Label.cjs';
|
|
8
8
|
import '../classes/LabelAbstract.cjs';
|
|
9
9
|
import '../types/StepLabelType.cjs';
|
|
@@ -2,8 +2,8 @@ import { ChoiceMenuOptionsType } from '../types/ChoiceMenuOptionsType.js';
|
|
|
2
2
|
import CharacterBaseInterface from '../interface/CharacterInterface.js';
|
|
3
3
|
import Dialogue from '../classes/Dialogue.js';
|
|
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';
|
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
getDialogue,
|
|
6
6
|
setChoiceMenuOptions,
|
|
7
7
|
setDialogue
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-D3ZQSJKZ.js";
|
|
9
9
|
import "../chunk-OMPJ74CO.js";
|
|
10
10
|
import "../chunk-2BUPSB7O.js";
|
|
11
11
|
import "../chunk-CZKJI26F.js";
|
|
12
12
|
import "../chunk-I6TNJEE3.js";
|
|
13
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-DPUSONJ3.js";
|
|
14
14
|
import "../chunk-P44J5BE2.js";
|
|
15
15
|
import "../chunk-CAUF2LKZ.js";
|
|
16
16
|
import "../chunk-VXCA724Z.js";
|
|
@@ -18,12 +18,12 @@ import "../chunk-3DOISWD6.js";
|
|
|
18
18
|
import "../chunk-I4UGLC3A.js";
|
|
19
19
|
import "../chunk-ZZLQ3ILH.js";
|
|
20
20
|
import "../chunk-JTQGULTR.js";
|
|
21
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-FHNQBWIZ.js";
|
|
22
22
|
import "../chunk-ZBUW3MBH.js";
|
|
23
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-PIYIZHZL.js";
|
|
24
24
|
import "../chunk-WX267JP2.js";
|
|
25
25
|
import "../chunk-LEMOIFSV.js";
|
|
26
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-A4NKPUL5.js";
|
|
27
27
|
import "../chunk-RATGPKD3.js";
|
|
28
28
|
import "../chunk-2PXN34ON.js";
|
|
29
29
|
import "../chunk-TAJJZPEH.js";
|
|
@@ -33,7 +33,7 @@ function createExportableElement(element) {
|
|
|
33
33
|
let elementString = JSON.stringify(element);
|
|
34
34
|
return JSON.parse(elementString);
|
|
35
35
|
} catch (e) {
|
|
36
|
-
console.error("[Pixi\u2019VN] Error creating exportable element", e);
|
|
36
|
+
console.error("[Pixi\u2019VN] Error creating exportable element", element, e);
|
|
37
37
|
throw new Error("[Pixi\u2019VN] Error creating exportable element");
|
|
38
38
|
}
|
|
39
39
|
}
|
|
@@ -31,7 +31,7 @@ function createExportableElement(element) {
|
|
|
31
31
|
let elementString = JSON.stringify(element);
|
|
32
32
|
return JSON.parse(elementString);
|
|
33
33
|
} catch (e) {
|
|
34
|
-
console.error("[Pixi\u2019VN] Error creating exportable element", e);
|
|
34
|
+
console.error("[Pixi\u2019VN] Error creating exportable element", element, e);
|
|
35
35
|
throw new Error("[Pixi\u2019VN] Error creating exportable element");
|
|
36
36
|
}
|
|
37
37
|
}
|
|
@@ -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() {
|
|
@@ -57407,6 +57407,7 @@ var filters = {
|
|
|
57407
57407
|
StreamFilter: filters_exports.StreamFilter,
|
|
57408
57408
|
TelephoneFilter: filters_exports.TelephoneFilter
|
|
57409
57409
|
};
|
|
57410
|
+
var CANVAS_APP_STAGE_ALIAS = "_stage_";
|
|
57410
57411
|
|
|
57411
57412
|
// src/functions/canvas/canvas-utility.ts
|
|
57412
57413
|
function getTextureMemory(texture) {
|
|
@@ -58425,7 +58426,7 @@ function createExportableElement(element) {
|
|
|
58425
58426
|
let elementString = JSON.stringify(element);
|
|
58426
58427
|
return JSON.parse(elementString);
|
|
58427
58428
|
} catch (e2) {
|
|
58428
|
-
console.error("[Pixi\u2019VN] Error creating exportable element", e2);
|
|
58429
|
+
console.error("[Pixi\u2019VN] Error creating exportable element", element, e2);
|
|
58429
58430
|
throw new Error("[Pixi\u2019VN] Error creating exportable element");
|
|
58430
58431
|
}
|
|
58431
58432
|
}
|
|
@@ -58858,6 +58859,10 @@ var CanvasManager = class {
|
|
|
58858
58859
|
* ```
|
|
58859
58860
|
*/
|
|
58860
58861
|
add(alias, canvasElement, options = {}) {
|
|
58862
|
+
if (alias === CANVAS_APP_STAGE_ALIAS) {
|
|
58863
|
+
console.error(`[Pixi\u2019VN] The alias ${CANVAS_APP_STAGE_ALIAS} is reserved`);
|
|
58864
|
+
return;
|
|
58865
|
+
}
|
|
58861
58866
|
let ignoreOldStyle = options?.ignoreOldStyle;
|
|
58862
58867
|
let oldCanvasElement = this.find(alias);
|
|
58863
58868
|
if (oldCanvasElement) {
|
|
@@ -58888,6 +58893,10 @@ var CanvasManager = class {
|
|
|
58888
58893
|
* ```
|
|
58889
58894
|
*/
|
|
58890
58895
|
remove(alias, options = {}) {
|
|
58896
|
+
if (alias === CANVAS_APP_STAGE_ALIAS) {
|
|
58897
|
+
console.error(`[Pixi\u2019VN] The alias ${CANVAS_APP_STAGE_ALIAS} is reserved`);
|
|
58898
|
+
return;
|
|
58899
|
+
}
|
|
58891
58900
|
let ignoreTickers = options.ignoreTickers;
|
|
58892
58901
|
if (typeof alias === "string") {
|
|
58893
58902
|
alias = [alias];
|
|
@@ -58916,6 +58925,9 @@ var CanvasManager = class {
|
|
|
58916
58925
|
* ```
|
|
58917
58926
|
*/
|
|
58918
58927
|
find(alias) {
|
|
58928
|
+
if (alias === CANVAS_APP_STAGE_ALIAS) {
|
|
58929
|
+
return this.app.stage;
|
|
58930
|
+
}
|
|
58919
58931
|
return CanvasManagerStatic._children[alias];
|
|
58920
58932
|
}
|
|
58921
58933
|
/**
|
|
@@ -58942,16 +58954,17 @@ var CanvasManager = class {
|
|
|
58942
58954
|
this.removeAllTickers();
|
|
58943
58955
|
}
|
|
58944
58956
|
/**
|
|
58945
|
-
* Edit the alias of a canvas element.
|
|
58957
|
+
* Edit the alias of a canvas element. The tickers that are connected to the canvas element will be transferred.
|
|
58946
58958
|
* @param oldAlias The old alias of the canvas element.
|
|
58947
58959
|
* @param newAlias The new alias of the canvas element.
|
|
58960
|
+
* @param options The options of the canvas element.
|
|
58948
58961
|
*/
|
|
58949
|
-
editAlias(oldAlias, newAlias) {
|
|
58962
|
+
editAlias(oldAlias, newAlias, options = {}) {
|
|
58950
58963
|
if (CanvasManagerStatic._children[oldAlias]) {
|
|
58951
58964
|
CanvasManagerStatic._children[newAlias] = CanvasManagerStatic._children[oldAlias];
|
|
58952
58965
|
delete CanvasManagerStatic._children[oldAlias];
|
|
58953
58966
|
}
|
|
58954
|
-
this.transferTickers(oldAlias, newAlias, "move");
|
|
58967
|
+
!options.ignoreTickers && this.transferTickers(oldAlias, newAlias, "move");
|
|
58955
58968
|
}
|
|
58956
58969
|
/** Edit Tickers Methods */
|
|
58957
58970
|
/**
|
|
@@ -59026,12 +59039,16 @@ var CanvasManager = class {
|
|
|
59026
59039
|
pushTicker(id3, tickerData, ticker) {
|
|
59027
59040
|
CanvasManagerStatic._currentTickers[id3] = tickerData;
|
|
59028
59041
|
tickerData.fn = (t2) => {
|
|
59029
|
-
if (tickerData.createdByTicketSteps && this.isTickerPaused(tickerData.createdByTicketSteps.canvasElementAlias, tickerData.createdByTicketSteps.id)) {
|
|
59030
|
-
return;
|
|
59031
|
-
}
|
|
59032
59042
|
let data = CanvasManagerStatic._currentTickers[id3];
|
|
59033
59043
|
if (data) {
|
|
59034
|
-
let canvasElementAliases = data.canvasElementAliases
|
|
59044
|
+
let canvasElementAliases = data.canvasElementAliases;
|
|
59045
|
+
if (tickerData.createdByTicketSteps) {
|
|
59046
|
+
if (this.isTickerPaused(tickerData.createdByTicketSteps.canvasElementAlias, tickerData.createdByTicketSteps.id)) {
|
|
59047
|
+
return;
|
|
59048
|
+
}
|
|
59049
|
+
} else {
|
|
59050
|
+
canvasElementAliases = canvasElementAliases.filter((alias) => !this.isTickerPaused(alias, id3));
|
|
59051
|
+
}
|
|
59035
59052
|
ticker?.fn(t2, data.args, canvasElementAliases, id3);
|
|
59036
59053
|
}
|
|
59037
59054
|
};
|
|
@@ -59378,15 +59395,19 @@ var CanvasManager = class {
|
|
|
59378
59395
|
});
|
|
59379
59396
|
CanvasManagerStatic._tickersMustBeCompletedBeforeNextStep.stepAlias.forEach(({ alias, id: id3 }) => {
|
|
59380
59397
|
let ticker = CanvasManagerStatic._currentTickersSteps[alias];
|
|
59381
|
-
if (ticker && ticker[id3]
|
|
59382
|
-
ticker[id3].steps.
|
|
59383
|
-
|
|
59384
|
-
|
|
59385
|
-
|
|
59386
|
-
|
|
59398
|
+
if (ticker && ticker[id3]) {
|
|
59399
|
+
if (ticker[id3].steps.includes(Repeat)) {
|
|
59400
|
+
console.error(`[Pixi\u2019VN] The ticker alias: ${alias} id: ${id3} contains a RepeatType, so it can't be forced to complete`, ticker[id3]);
|
|
59401
|
+
} else {
|
|
59402
|
+
ticker[id3].steps.forEach((step) => {
|
|
59403
|
+
if (typeof step === "object" && "ticker" in step) {
|
|
59404
|
+
let ticker2 = geTickerInstanceById(step.ticker, step.args, step.duration, step.priority);
|
|
59405
|
+
if (ticker2) {
|
|
59406
|
+
ticker2.onEndOfTicker([alias], id3, step.args);
|
|
59407
|
+
}
|
|
59387
59408
|
}
|
|
59388
|
-
}
|
|
59389
|
-
}
|
|
59409
|
+
});
|
|
59410
|
+
}
|
|
59390
59411
|
}
|
|
59391
59412
|
});
|
|
59392
59413
|
CanvasManagerStatic._tickersMustBeCompletedBeforeNextStep = { tikersIds: [], stepAlias: [] };
|
|
@@ -59427,6 +59448,7 @@ var CanvasManager = class {
|
|
|
59427
59448
|
tickers: createExportableElement(CanvasManagerStatic.currentTickersWithoutCreatedBySteps),
|
|
59428
59449
|
tickersSteps: createExportableElement(CanvasManagerStatic._currentTickersSteps),
|
|
59429
59450
|
elements: createExportableElement(currentElements),
|
|
59451
|
+
stage: createExportableElement(getMemoryContainer(this.app.stage)),
|
|
59430
59452
|
elementAliasesOrder: createExportableElement(CanvasManagerStatic.childrenAliasesOrder),
|
|
59431
59453
|
tickersOnPause: createExportableElement(CanvasManagerStatic._tickersOnPause)
|
|
59432
59454
|
};
|
|
@@ -59460,6 +59482,11 @@ var CanvasManager = class {
|
|
|
59460
59482
|
console.error("[Pixi\u2019VN] The data does not have the properties elementAliasesOrder and elements");
|
|
59461
59483
|
return;
|
|
59462
59484
|
}
|
|
59485
|
+
if (data.hasOwnProperty("stage") && data.hasOwnProperty("stage")) {
|
|
59486
|
+
setMemoryContainer(this.app.stage, data["stage"]);
|
|
59487
|
+
} else {
|
|
59488
|
+
console.error("[Pixi\u2019VN] The data does not have the properties stage");
|
|
59489
|
+
}
|
|
59463
59490
|
if (data.hasOwnProperty("tickers")) {
|
|
59464
59491
|
let tickers = data["tickers"];
|
|
59465
59492
|
Object.entries(tickers).forEach(([oldId, t2]) => {
|
|
@@ -59621,8 +59648,8 @@ function getExponentialProgression(number, progression, valueConvert) {
|
|
|
59621
59648
|
// src/classes/ticker/MoveTicker.ts
|
|
59622
59649
|
var MoveTicker = class extends TickerBase {
|
|
59623
59650
|
fn(ticker, args, aliases, tickerId) {
|
|
59624
|
-
let xSpeed =
|
|
59625
|
-
let ySpeed =
|
|
59651
|
+
let xSpeed = 10;
|
|
59652
|
+
let ySpeed = 10;
|
|
59626
59653
|
if (args.speed) {
|
|
59627
59654
|
if (typeof args.speed === "number") {
|
|
59628
59655
|
xSpeed = this.speedConvert(args.speed);
|
|
@@ -59686,6 +59713,10 @@ var MoveTicker = class extends TickerBase {
|
|
|
59686
59713
|
let destination = args.destination;
|
|
59687
59714
|
element.x = destination.x;
|
|
59688
59715
|
element.y = destination.y;
|
|
59716
|
+
if (args.isPushInOut && element.children.length > 0) {
|
|
59717
|
+
let elementChild = element.children[0];
|
|
59718
|
+
canvas.add(alias2, elementChild, { ignoreOldStyle: true });
|
|
59719
|
+
}
|
|
59689
59720
|
}
|
|
59690
59721
|
});
|
|
59691
59722
|
super.onEndOfTicker(alias, tickerId, args);
|
|
@@ -60098,6 +60129,7 @@ var NarrationManagerStatic = class _NarrationManagerStatic {
|
|
|
60098
60129
|
canvas: {
|
|
60099
60130
|
elementAliasesOrder: [],
|
|
60100
60131
|
elements: {},
|
|
60132
|
+
stage: {},
|
|
60101
60133
|
tickers: {},
|
|
60102
60134
|
tickersSteps: {},
|
|
60103
60135
|
tickersOnPause: {}
|
|
@@ -60677,8 +60709,10 @@ var NarrationManager = class {
|
|
|
60677
60709
|
console.warn("[Pixi\u2019VN] stepSha not found");
|
|
60678
60710
|
}
|
|
60679
60711
|
try {
|
|
60712
|
+
if (NarrationManagerStatic.stepsRunning === 0) {
|
|
60713
|
+
canvas.forceCompletionOfReportedTickers();
|
|
60714
|
+
}
|
|
60680
60715
|
NarrationManagerStatic.stepsRunning++;
|
|
60681
|
-
canvas.forceCompletionOfReportedTickers();
|
|
60682
60716
|
let result = await step(props);
|
|
60683
60717
|
if (this.choiceMenuOptions?.length === 1 && this.choiceMenuOptions[0].autoSelect) {
|
|
60684
60718
|
let choice = this.choiceMenuOptions[0];
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getFlag,
|
|
3
3
|
setFlag
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-D3ZQSJKZ.js";
|
|
5
5
|
import "../chunk-OMPJ74CO.js";
|
|
6
6
|
import "../chunk-2BUPSB7O.js";
|
|
7
7
|
import "../chunk-CZKJI26F.js";
|
|
8
8
|
import "../chunk-I6TNJEE3.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-DPUSONJ3.js";
|
|
10
10
|
import "../chunk-P44J5BE2.js";
|
|
11
11
|
import "../chunk-CAUF2LKZ.js";
|
|
12
12
|
import "../chunk-VXCA724Z.js";
|
|
@@ -14,12 +14,12 @@ import "../chunk-3DOISWD6.js";
|
|
|
14
14
|
import "../chunk-I4UGLC3A.js";
|
|
15
15
|
import "../chunk-ZZLQ3ILH.js";
|
|
16
16
|
import "../chunk-JTQGULTR.js";
|
|
17
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-FHNQBWIZ.js";
|
|
18
18
|
import "../chunk-ZBUW3MBH.js";
|
|
19
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-PIYIZHZL.js";
|
|
20
20
|
import "../chunk-WX267JP2.js";
|
|
21
21
|
import "../chunk-LEMOIFSV.js";
|
|
22
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-A4NKPUL5.js";
|
|
23
23
|
import "../chunk-RATGPKD3.js";
|
|
24
24
|
import "../chunk-2PXN34ON.js";
|
|
25
25
|
import "../chunk-TAJJZPEH.js";
|