@drincs/pixi-vn 0.9.6 → 0.9.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ContainerChild-HBivknFV.d.ts → ContainerChild-B5yD0BI8.d.ts} +3 -7
- package/dist/{ContainerChild-CEuXVx00.d.cts → ContainerChild-WzyxEjAc.d.cts} +3 -7
- package/dist/{chunk-SCOZ46ME.js → chunk-IRUKNG2Y.js} +32 -18
- package/dist/{chunk-JMXJKUTS.js → chunk-NB4Q3GFK.js} +19 -11
- package/dist/{chunk-AQPVWC55.js → chunk-TOG67Z7Q.js} +1 -1
- package/dist/classes/CharacterBaseModel.cjs +50 -28
- package/dist/classes/CharacterBaseModel.js +3 -3
- package/dist/classes/CharacterStoredClass.cjs +50 -28
- package/dist/classes/CharacterStoredClass.js +3 -3
- package/dist/classes/ChoiceMenuOption.cjs +50 -28
- package/dist/classes/ChoiceMenuOption.js +3 -3
- package/dist/classes/Sound.cjs +50 -28
- package/dist/classes/Sound.js +3 -3
- package/dist/classes/StoredClassModel.cjs +50 -28
- package/dist/classes/StoredClassModel.js +3 -3
- package/dist/classes/canvas/AdditionalPositions.cjs +32 -18
- package/dist/classes/canvas/AdditionalPositions.js +1 -1
- package/dist/classes/canvas/CanvasBaseItem.d.cts +2 -2
- package/dist/classes/canvas/CanvasBaseItem.d.ts +2 -2
- package/dist/classes/canvas/Container.cjs +50 -28
- package/dist/classes/canvas/Container.d.cts +3 -2
- package/dist/classes/canvas/Container.d.ts +3 -2
- package/dist/classes/canvas/Container.js +3 -3
- package/dist/classes/canvas/ImageContainer.cjs +67 -45
- package/dist/classes/canvas/ImageContainer.d.cts +1 -1
- package/dist/classes/canvas/ImageContainer.d.ts +1 -1
- package/dist/classes/canvas/ImageContainer.js +3 -3
- package/dist/classes/canvas/ImageSprite.cjs +50 -28
- package/dist/classes/canvas/ImageSprite.d.cts +1 -1
- package/dist/classes/canvas/ImageSprite.d.ts +1 -1
- package/dist/classes/canvas/ImageSprite.js +3 -3
- package/dist/classes/canvas/Sprite.cjs +50 -28
- package/dist/classes/canvas/Sprite.d.cts +2 -2
- package/dist/classes/canvas/Sprite.d.ts +2 -2
- package/dist/classes/canvas/Sprite.js +3 -3
- package/dist/classes/canvas/Text.cjs +50 -28
- package/dist/classes/canvas/Text.d.cts +2 -2
- package/dist/classes/canvas/Text.d.ts +2 -2
- package/dist/classes/canvas/Text.js +3 -3
- package/dist/classes/canvas/VideoSprite.cjs +50 -28
- package/dist/classes/canvas/VideoSprite.d.cts +2 -2
- package/dist/classes/canvas/VideoSprite.d.ts +2 -2
- package/dist/classes/canvas/VideoSprite.js +3 -3
- package/dist/classes/index.cjs +50 -28
- package/dist/classes/index.d.cts +2 -2
- package/dist/classes/index.d.ts +2 -2
- package/dist/classes/index.js +3 -3
- package/dist/classes/ticker/FadeAlphaTicker.cjs +50 -28
- package/dist/classes/ticker/FadeAlphaTicker.js +3 -3
- package/dist/classes/ticker/MoveTicker.cjs +50 -28
- package/dist/classes/ticker/MoveTicker.js +3 -3
- package/dist/classes/ticker/RotateTicker.cjs +50 -28
- package/dist/classes/ticker/RotateTicker.js +3 -3
- package/dist/classes/ticker/TickerBase.cjs +50 -28
- package/dist/classes/ticker/TickerBase.js +3 -3
- package/dist/classes/ticker/ZoomTicker.cjs +50 -28
- package/dist/classes/ticker/ZoomTicker.js +3 -3
- package/dist/classes/ticker/index.cjs +50 -28
- package/dist/classes/ticker/index.js +3 -3
- package/dist/constants.cjs +1 -1
- package/dist/constants.d.cts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/decorators/canvas-element-decorator.cjs +50 -28
- package/dist/decorators/canvas-element-decorator.d.cts +2 -2
- package/dist/decorators/canvas-element-decorator.d.ts +2 -2
- package/dist/decorators/canvas-element-decorator.js +3 -3
- package/dist/decorators/event-decorator.d.cts +2 -2
- package/dist/decorators/event-decorator.d.ts +2 -2
- package/dist/decorators/index.cjs +50 -28
- package/dist/decorators/index.d.cts +2 -2
- package/dist/decorators/index.d.ts +2 -2
- package/dist/decorators/index.js +3 -3
- package/dist/decorators/label-decorator.cjs +50 -28
- package/dist/decorators/label-decorator.js +3 -3
- package/dist/functions/canvas/canvas-effect.cjs +50 -28
- package/dist/functions/canvas/canvas-effect.js +3 -3
- package/dist/functions/canvas/canvas-memory-utility.cjs +50 -28
- package/dist/functions/canvas/canvas-memory-utility.d.cts +2 -2
- package/dist/functions/canvas/canvas-memory-utility.d.ts +2 -2
- package/dist/functions/canvas/canvas-memory-utility.js +3 -3
- package/dist/functions/canvas/canvas-transition.cjs +50 -28
- package/dist/functions/canvas/canvas-transition.d.cts +2 -2
- package/dist/functions/canvas/canvas-transition.d.ts +2 -2
- package/dist/functions/canvas/canvas-transition.js +3 -3
- package/dist/functions/canvas/canvas-utility.cjs +50 -28
- package/dist/functions/canvas/canvas-utility.js +3 -3
- package/dist/functions/canvas/image-container-utility.cjs +50 -28
- package/dist/functions/canvas/image-container-utility.d.cts +2 -2
- package/dist/functions/canvas/image-container-utility.d.ts +2 -2
- package/dist/functions/canvas/image-container-utility.js +3 -3
- package/dist/functions/canvas/image-utility.cjs +50 -28
- package/dist/functions/canvas/image-utility.d.cts +2 -2
- package/dist/functions/canvas/image-utility.d.ts +2 -2
- package/dist/functions/canvas/image-utility.js +3 -3
- package/dist/functions/canvas/video-utility.cjs +50 -28
- package/dist/functions/canvas/video-utility.d.cts +2 -2
- package/dist/functions/canvas/video-utility.d.ts +2 -2
- package/dist/functions/canvas/video-utility.js +3 -3
- package/dist/functions/dialogue-utility.cjs +50 -28
- package/dist/functions/dialogue-utility.js +3 -3
- package/dist/functions/flags-utility.cjs +50 -28
- package/dist/functions/flags-utility.js +3 -3
- package/dist/functions/game-utility.cjs +50 -28
- package/dist/functions/game-utility.js +3 -3
- package/dist/functions/index.cjs +50 -28
- package/dist/functions/index.d.cts +2 -2
- package/dist/functions/index.d.ts +2 -2
- package/dist/functions/index.js +3 -3
- package/dist/functions/saves-utility.cjs +50 -28
- package/dist/functions/saves-utility.d.cts +2 -2
- package/dist/functions/saves-utility.d.ts +2 -2
- package/dist/functions/saves-utility.js +3 -3
- package/dist/functions/texture-utility.cjs +50 -28
- package/dist/functions/texture-utility.d.cts +2 -2
- package/dist/functions/texture-utility.d.ts +2 -2
- package/dist/functions/texture-utility.js +3 -3
- package/dist/index.cjs +67 -47
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/interface/HistoryStep.d.cts +2 -2
- package/dist/interface/HistoryStep.d.ts +2 -2
- package/dist/interface/SaveData.d.cts +2 -2
- package/dist/interface/SaveData.d.ts +2 -2
- package/dist/interface/canvas/canvas-memory.d.cts +2 -2
- package/dist/interface/canvas/canvas-memory.d.ts +2 -2
- package/dist/interface/canvas/canvas-options.d.cts +1 -1
- package/dist/interface/canvas/canvas-options.d.ts +1 -1
- package/dist/interface/export/ExportedCanvas.d.cts +2 -2
- package/dist/interface/export/ExportedCanvas.d.ts +2 -2
- package/dist/interface/export/ExportedStep.d.cts +2 -2
- package/dist/interface/export/ExportedStep.d.ts +2 -2
- package/dist/interface/index.d.cts +1 -1
- package/dist/interface/index.d.ts +1 -1
- package/dist/labels/BaseCanvasElementTestLabel.cjs +50 -28
- package/dist/labels/BaseCanvasElementTestLabel.js +3 -3
- package/dist/labels/CanvasEventsTestLabel.cjs +50 -28
- package/dist/labels/CanvasEventsTestLabel.d.cts +2 -2
- package/dist/labels/CanvasEventsTestLabel.d.ts +2 -2
- package/dist/labels/CanvasEventsTestLabel.js +3 -3
- package/dist/labels/CustomTickerCanvasElementTestLabel.cjs +67 -47
- package/dist/labels/CustomTickerCanvasElementTestLabel.js +3 -3
- package/dist/labels/ImagesAnimationsTestLabel.cjs +50 -28
- package/dist/labels/ImagesAnimationsTestLabel.js +3 -3
- package/dist/labels/InputTestLabel.cjs +50 -28
- package/dist/labels/InputTestLabel.js +3 -3
- package/dist/labels/MarkdownTest.cjs +50 -28
- package/dist/labels/MarkdownTest.js +3 -3
- package/dist/labels/SoundTestLabel.cjs +50 -28
- package/dist/labels/SoundTestLabel.js +3 -3
- package/dist/labels/StartLabel.cjs +50 -28
- package/dist/labels/StartLabel.js +3 -3
- package/dist/labels/StepLabelTest.cjs +50 -28
- package/dist/labels/StepLabelTest.js +3 -3
- package/dist/labels/VideoTestLabel.cjs +50 -28
- package/dist/labels/VideoTestLabel.js +3 -3
- package/dist/labels/index.cjs +50 -28
- package/dist/labels/index.js +3 -3
- package/dist/managers/CanvasManager.cjs +50 -28
- package/dist/managers/CanvasManager.d.cts +2 -2
- package/dist/managers/CanvasManager.d.ts +2 -2
- package/dist/managers/CanvasManager.js +3 -3
- package/dist/managers/CanvasManagerStatic.d.cts +2 -2
- package/dist/managers/CanvasManagerStatic.d.ts +2 -2
- package/dist/managers/NarrationManager.cjs +50 -28
- package/dist/managers/NarrationManager.d.cts +2 -2
- package/dist/managers/NarrationManager.d.ts +2 -2
- package/dist/managers/NarrationManager.js +3 -3
- package/dist/managers/NarrationManagerStatic.cjs +50 -28
- package/dist/managers/NarrationManagerStatic.d.cts +2 -2
- package/dist/managers/NarrationManagerStatic.d.ts +2 -2
- package/dist/managers/NarrationManagerStatic.js +3 -3
- package/dist/managers/SoundManager.cjs +50 -28
- package/dist/managers/SoundManager.js +3 -3
- package/dist/managers/StorageManager.cjs +50 -28
- package/dist/managers/StorageManager.js +3 -3
- package/dist/managers/index.cjs +50 -28
- package/dist/managers/index.d.cts +2 -2
- package/dist/managers/index.d.ts +2 -2
- package/dist/managers/index.js +3 -3
- package/dist/types/ContainerChild.d.cts +2 -2
- package/dist/types/ContainerChild.d.ts +2 -2
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/package.json +1 -1
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
addImage,
|
|
3
3
|
loadImage,
|
|
4
4
|
showImage
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-NB4Q3GFK.js";
|
|
6
6
|
import "../../chunk-OMPJ74CO.js";
|
|
7
7
|
import "../../chunk-2JGQWY5I.js";
|
|
8
8
|
import "../../chunk-2BUPSB7O.js";
|
|
9
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-IRUKNG2Y.js";
|
|
10
10
|
import "../../chunk-6GJXIPNB.js";
|
|
11
11
|
import "../../chunk-I6TNJEE3.js";
|
|
12
12
|
import "../../chunk-DPUSONJ3.js";
|
|
@@ -23,7 +23,7 @@ import "../../chunk-ZBUW3MBH.js";
|
|
|
23
23
|
import "../../chunk-PIYIZHZL.js";
|
|
24
24
|
import "../../chunk-B7XQM2BB.js";
|
|
25
25
|
import "../../chunk-LEMOIFSV.js";
|
|
26
|
-
import "../../chunk-
|
|
26
|
+
import "../../chunk-TOG67Z7Q.js";
|
|
27
27
|
import "../../chunk-WS3FY4Q6.js";
|
|
28
28
|
import "../../chunk-Z3NBKYVU.js";
|
|
29
29
|
import "../../chunk-SAUNZQHZ.js";
|
|
@@ -57723,7 +57723,7 @@ extensions.add(soundAsset);
|
|
|
57723
57723
|
var sound = setInstance(new SoundLibrary());
|
|
57724
57724
|
|
|
57725
57725
|
// package.json
|
|
57726
|
-
var version = "0.9.
|
|
57726
|
+
var version = "0.9.7";
|
|
57727
57727
|
|
|
57728
57728
|
// src/constants.ts
|
|
57729
57729
|
var Repeat = "repeat";
|
|
@@ -57940,12 +57940,15 @@ var Container2 = class extends Container {
|
|
|
57940
57940
|
this.setMemory(value);
|
|
57941
57941
|
}
|
|
57942
57942
|
async setMemory(value) {
|
|
57943
|
+
await this.importChildren(value);
|
|
57944
|
+
return await setMemoryContainer(this, value);
|
|
57945
|
+
}
|
|
57946
|
+
async importChildren(value) {
|
|
57943
57947
|
for (let i3 = 0; i3 < value.elements.length; i3++) {
|
|
57944
57948
|
let child = value.elements[i3];
|
|
57945
57949
|
let element = await importCanvasElement(child);
|
|
57946
57950
|
this.addChild(element);
|
|
57947
57951
|
}
|
|
57948
|
-
return await setMemoryContainer(this, value);
|
|
57949
57952
|
}
|
|
57950
57953
|
};
|
|
57951
57954
|
function getMemoryContainer(element) {
|
|
@@ -58033,29 +58036,43 @@ function analizePositionsExtensionProps(props) {
|
|
|
58033
58036
|
if (!props) {
|
|
58034
58037
|
return props;
|
|
58035
58038
|
}
|
|
58036
|
-
if (props.align
|
|
58037
|
-
if (
|
|
58038
|
-
props.
|
|
58039
|
-
|
|
58040
|
-
|
|
58041
|
-
|
|
58042
|
-
props.
|
|
58039
|
+
if (typeof props.align !== "number") {
|
|
58040
|
+
if (props.xAlign != void 0) {
|
|
58041
|
+
if (props.align === void 0) {
|
|
58042
|
+
props.align = { x: props.xAlign };
|
|
58043
|
+
delete props.xAlign;
|
|
58044
|
+
} else {
|
|
58045
|
+
props.align.x = props.xAlign;
|
|
58046
|
+
delete props.xAlign;
|
|
58043
58047
|
}
|
|
58044
|
-
|
|
58045
|
-
|
|
58048
|
+
}
|
|
58049
|
+
if (props.yAlign != void 0) {
|
|
58050
|
+
if (props.align === void 0) {
|
|
58051
|
+
props.align = { y: props.yAlign };
|
|
58052
|
+
delete props.yAlign;
|
|
58053
|
+
} else {
|
|
58054
|
+
props.align.y = props.yAlign;
|
|
58055
|
+
delete props.yAlign;
|
|
58046
58056
|
}
|
|
58047
58057
|
}
|
|
58048
58058
|
}
|
|
58049
|
-
if (props.percentagePosition
|
|
58050
|
-
if (
|
|
58051
|
-
props.
|
|
58052
|
-
|
|
58053
|
-
|
|
58054
|
-
|
|
58055
|
-
props.
|
|
58059
|
+
if (typeof props.percentagePosition !== "number") {
|
|
58060
|
+
if (props.xPercentagePosition != void 0) {
|
|
58061
|
+
if (props.percentagePosition === void 0) {
|
|
58062
|
+
props.percentagePosition = { x: props.xPercentagePosition };
|
|
58063
|
+
delete props.xPercentagePosition;
|
|
58064
|
+
} else {
|
|
58065
|
+
props.percentagePosition.x = props.xPercentagePosition;
|
|
58066
|
+
delete props.xPercentagePosition;
|
|
58056
58067
|
}
|
|
58057
|
-
|
|
58058
|
-
|
|
58068
|
+
}
|
|
58069
|
+
if (props.yPercentagePosition != void 0) {
|
|
58070
|
+
if (props.percentagePosition === void 0) {
|
|
58071
|
+
props.percentagePosition = { y: props.yPercentagePosition };
|
|
58072
|
+
delete props.yPercentagePosition;
|
|
58073
|
+
} else {
|
|
58074
|
+
props.percentagePosition.y = props.yPercentagePosition;
|
|
58075
|
+
delete props.yPercentagePosition;
|
|
58059
58076
|
}
|
|
58060
58077
|
}
|
|
58061
58078
|
}
|
|
@@ -58075,10 +58092,10 @@ var ImageContainer = class extends Container2 {
|
|
|
58075
58092
|
if (options?.anchor !== void 0) {
|
|
58076
58093
|
this.anchor = options.anchor;
|
|
58077
58094
|
}
|
|
58078
|
-
if (options?.align !== void 0) {
|
|
58095
|
+
if (options && "align" in options && options?.align !== void 0) {
|
|
58079
58096
|
this.align = options.align;
|
|
58080
58097
|
}
|
|
58081
|
-
if (options?.percentagePosition !== void 0) {
|
|
58098
|
+
if (options && "percentagePosition" in options && options?.percentagePosition !== void 0) {
|
|
58082
58099
|
this.percentagePosition = options.percentagePosition;
|
|
58083
58100
|
}
|
|
58084
58101
|
}
|
|
@@ -58096,7 +58113,8 @@ var ImageContainer = class extends Container2 {
|
|
|
58096
58113
|
this.setMemory(value);
|
|
58097
58114
|
}
|
|
58098
58115
|
async setMemory(value) {
|
|
58099
|
-
await
|
|
58116
|
+
await this.importChildren(value);
|
|
58117
|
+
await setMemoryImageContainer(this, value);
|
|
58100
58118
|
this.reloadAnchor();
|
|
58101
58119
|
this.reloadPosition();
|
|
58102
58120
|
}
|
|
@@ -58270,11 +58288,13 @@ var ImageContainer = class extends Container2 {
|
|
|
58270
58288
|
}
|
|
58271
58289
|
};
|
|
58272
58290
|
async function setMemoryImageContainer(element, memory, opstions) {
|
|
58291
|
+
memory = analizePositionsExtensionProps(memory);
|
|
58273
58292
|
setMemoryContainer(element, memory, {
|
|
58274
58293
|
...opstions,
|
|
58275
58294
|
end: async () => {
|
|
58276
58295
|
"anchor" in memory && memory.anchor !== void 0 && (element.anchor = memory.anchor);
|
|
58277
58296
|
"align" in memory && memory.align !== void 0 && (element.align = memory.align);
|
|
58297
|
+
"percentagePosition" in memory && memory.percentagePosition !== void 0 && (element.percentagePosition = memory.percentagePosition);
|
|
58278
58298
|
if ("loadIsStarted" in memory && memory.loadIsStarted) {
|
|
58279
58299
|
await element.load();
|
|
58280
58300
|
}
|
|
@@ -59698,7 +59718,6 @@ var CanvasManager = class {
|
|
|
59698
59718
|
* @param data The object.
|
|
59699
59719
|
*/
|
|
59700
59720
|
async import(data) {
|
|
59701
|
-
this.clear();
|
|
59702
59721
|
try {
|
|
59703
59722
|
let tickersOnPause = data["tickersOnPause"] || {};
|
|
59704
59723
|
if (data.hasOwnProperty("elementAliasesOrder") && data.hasOwnProperty("elements")) {
|
|
@@ -59706,6 +59725,7 @@ var CanvasManager = class {
|
|
|
59706
59725
|
let elementAliasesOrder = data["elementAliasesOrder"];
|
|
59707
59726
|
let promises = elementAliasesOrder.filter((alias) => currentElements[alias]).map((alias) => importCanvasElement(currentElements[alias]));
|
|
59708
59727
|
let list = await Promise.all(promises);
|
|
59728
|
+
this.clear();
|
|
59709
59729
|
list.forEach((element, i3) => {
|
|
59710
59730
|
let alias = elementAliasesOrder[i3];
|
|
59711
59731
|
this.add(alias, element);
|
|
@@ -63971,9 +63991,8 @@ var customPositionTest = newLabel("___pixi_vn_images_custom_position_test___", [
|
|
|
63971
63991
|
- ${skullyName} will be added with the anchor set to 0.5 and align set to 0.25.`
|
|
63972
63992
|
};
|
|
63973
63993
|
canvas.removeAll();
|
|
63974
|
-
let container =
|
|
63975
|
-
container
|
|
63976
|
-
container.align = 0.5;
|
|
63994
|
+
let container = new ImageContainer({ anchor: 0.5, align: 0.5 }, [eggHeadImage, flowerTopImage]);
|
|
63995
|
+
canvas.add("container", container);
|
|
63977
63996
|
let helmlok = addImage("helmlok", helmlokImage);
|
|
63978
63997
|
helmlok.anchor = 0.5;
|
|
63979
63998
|
helmlok.xAlign = 1;
|
|
@@ -64284,6 +64303,7 @@ var ImageSprite = class _ImageSprite extends Sprite2 {
|
|
|
64284
64303
|
pixivnId = CANVAS_IMAGE_ID;
|
|
64285
64304
|
constructor(options, textureAlias) {
|
|
64286
64305
|
super(options);
|
|
64306
|
+
options = analizePositionsExtensionProps(options);
|
|
64287
64307
|
if (textureAlias) {
|
|
64288
64308
|
this.textureAlias = textureAlias;
|
|
64289
64309
|
}
|
|
@@ -64307,7 +64327,7 @@ var ImageSprite = class _ImageSprite extends Sprite2 {
|
|
|
64307
64327
|
this.setMemory(value);
|
|
64308
64328
|
}
|
|
64309
64329
|
async setMemory(value) {
|
|
64310
|
-
await
|
|
64330
|
+
await setMemoryImageSprite(this, value);
|
|
64311
64331
|
this.reloadPosition();
|
|
64312
64332
|
}
|
|
64313
64333
|
static from(source7, skipCache) {
|
|
@@ -64444,9 +64464,11 @@ var ImageSprite = class _ImageSprite extends Sprite2 {
|
|
|
64444
64464
|
}
|
|
64445
64465
|
};
|
|
64446
64466
|
async function setMemoryImageSprite(element, memory) {
|
|
64467
|
+
memory = analizePositionsExtensionProps(memory);
|
|
64447
64468
|
return await setMemorySprite(element, memory, {
|
|
64448
64469
|
half: async () => {
|
|
64449
64470
|
"align" in memory && memory.align !== void 0 && (element.align = memory.align);
|
|
64471
|
+
"percentagePosition" in memory && memory.percentagePosition !== void 0 && (element.percentagePosition = memory.percentagePosition);
|
|
64450
64472
|
"imageLink" in memory && memory.imageLink !== void 0 && (element.textureAlias = memory.imageLink);
|
|
64451
64473
|
if ("loadIsStarted" in memory && memory.loadIsStarted) {
|
|
64452
64474
|
await element.load();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import VideoSprite from '../../classes/canvas/VideoSprite.cjs';
|
|
2
2
|
import 'pixi.js';
|
|
3
|
-
import '../../ContainerChild-
|
|
4
|
-
import '../../interface/canvas/TextureMemory.cjs';
|
|
3
|
+
import '../../ContainerChild-WzyxEjAc.cjs';
|
|
5
4
|
import '../../classes/canvas/AdditionalPositions.cjs';
|
|
5
|
+
import '../../interface/canvas/TextureMemory.cjs';
|
|
6
6
|
import '../../classes/canvas/AnchorExtension.cjs';
|
|
7
7
|
import '../../types/CanvasEventNamesType.cjs';
|
|
8
8
|
import '../../classes/CanvasEvent.cjs';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import VideoSprite from '../../classes/canvas/VideoSprite.js';
|
|
2
2
|
import 'pixi.js';
|
|
3
|
-
import '../../ContainerChild-
|
|
4
|
-
import '../../interface/canvas/TextureMemory.js';
|
|
3
|
+
import '../../ContainerChild-B5yD0BI8.js';
|
|
5
4
|
import '../../classes/canvas/AdditionalPositions.js';
|
|
5
|
+
import '../../interface/canvas/TextureMemory.js';
|
|
6
6
|
import '../../classes/canvas/AnchorExtension.js';
|
|
7
7
|
import '../../types/CanvasEventNamesType.js';
|
|
8
8
|
import '../../classes/CanvasEvent.js';
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
addVideo,
|
|
3
3
|
loadVideo,
|
|
4
4
|
showVideo
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-NB4Q3GFK.js";
|
|
6
6
|
import "../../chunk-OMPJ74CO.js";
|
|
7
7
|
import "../../chunk-2JGQWY5I.js";
|
|
8
8
|
import "../../chunk-2BUPSB7O.js";
|
|
9
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-IRUKNG2Y.js";
|
|
10
10
|
import "../../chunk-6GJXIPNB.js";
|
|
11
11
|
import "../../chunk-I6TNJEE3.js";
|
|
12
12
|
import "../../chunk-DPUSONJ3.js";
|
|
@@ -23,7 +23,7 @@ import "../../chunk-ZBUW3MBH.js";
|
|
|
23
23
|
import "../../chunk-PIYIZHZL.js";
|
|
24
24
|
import "../../chunk-B7XQM2BB.js";
|
|
25
25
|
import "../../chunk-LEMOIFSV.js";
|
|
26
|
-
import "../../chunk-
|
|
26
|
+
import "../../chunk-TOG67Z7Q.js";
|
|
27
27
|
import "../../chunk-WS3FY4Q6.js";
|
|
28
28
|
import "../../chunk-Z3NBKYVU.js";
|
|
29
29
|
import "../../chunk-SAUNZQHZ.js";
|
|
@@ -57728,7 +57728,7 @@ extensions.add(soundAsset);
|
|
|
57728
57728
|
var sound = setInstance(new SoundLibrary());
|
|
57729
57729
|
|
|
57730
57730
|
// package.json
|
|
57731
|
-
var version = "0.9.
|
|
57731
|
+
var version = "0.9.7";
|
|
57732
57732
|
|
|
57733
57733
|
// src/constants.ts
|
|
57734
57734
|
var Repeat = "repeat";
|
|
@@ -58629,29 +58629,43 @@ function analizePositionsExtensionProps(props) {
|
|
|
58629
58629
|
if (!props) {
|
|
58630
58630
|
return props;
|
|
58631
58631
|
}
|
|
58632
|
-
if (props.align
|
|
58633
|
-
if (
|
|
58634
|
-
props.
|
|
58635
|
-
|
|
58636
|
-
|
|
58637
|
-
|
|
58638
|
-
props.
|
|
58632
|
+
if (typeof props.align !== "number") {
|
|
58633
|
+
if (props.xAlign != void 0) {
|
|
58634
|
+
if (props.align === void 0) {
|
|
58635
|
+
props.align = { x: props.xAlign };
|
|
58636
|
+
delete props.xAlign;
|
|
58637
|
+
} else {
|
|
58638
|
+
props.align.x = props.xAlign;
|
|
58639
|
+
delete props.xAlign;
|
|
58639
58640
|
}
|
|
58640
|
-
|
|
58641
|
-
|
|
58641
|
+
}
|
|
58642
|
+
if (props.yAlign != void 0) {
|
|
58643
|
+
if (props.align === void 0) {
|
|
58644
|
+
props.align = { y: props.yAlign };
|
|
58645
|
+
delete props.yAlign;
|
|
58646
|
+
} else {
|
|
58647
|
+
props.align.y = props.yAlign;
|
|
58648
|
+
delete props.yAlign;
|
|
58642
58649
|
}
|
|
58643
58650
|
}
|
|
58644
58651
|
}
|
|
58645
|
-
if (props.percentagePosition
|
|
58646
|
-
if (
|
|
58647
|
-
props.
|
|
58648
|
-
|
|
58649
|
-
|
|
58650
|
-
|
|
58651
|
-
props.
|
|
58652
|
+
if (typeof props.percentagePosition !== "number") {
|
|
58653
|
+
if (props.xPercentagePosition != void 0) {
|
|
58654
|
+
if (props.percentagePosition === void 0) {
|
|
58655
|
+
props.percentagePosition = { x: props.xPercentagePosition };
|
|
58656
|
+
delete props.xPercentagePosition;
|
|
58657
|
+
} else {
|
|
58658
|
+
props.percentagePosition.x = props.xPercentagePosition;
|
|
58659
|
+
delete props.xPercentagePosition;
|
|
58652
58660
|
}
|
|
58653
|
-
|
|
58654
|
-
|
|
58661
|
+
}
|
|
58662
|
+
if (props.yPercentagePosition != void 0) {
|
|
58663
|
+
if (props.percentagePosition === void 0) {
|
|
58664
|
+
props.percentagePosition = { y: props.yPercentagePosition };
|
|
58665
|
+
delete props.yPercentagePosition;
|
|
58666
|
+
} else {
|
|
58667
|
+
props.percentagePosition.y = props.yPercentagePosition;
|
|
58668
|
+
delete props.yPercentagePosition;
|
|
58655
58669
|
}
|
|
58656
58670
|
}
|
|
58657
58671
|
}
|
|
@@ -58693,12 +58707,15 @@ var Container2 = class extends Container {
|
|
|
58693
58707
|
this.setMemory(value);
|
|
58694
58708
|
}
|
|
58695
58709
|
async setMemory(value) {
|
|
58710
|
+
await this.importChildren(value);
|
|
58711
|
+
return await setMemoryContainer(this, value);
|
|
58712
|
+
}
|
|
58713
|
+
async importChildren(value) {
|
|
58696
58714
|
for (let i3 = 0; i3 < value.elements.length; i3++) {
|
|
58697
58715
|
let child = value.elements[i3];
|
|
58698
58716
|
let element = await importCanvasElement(child);
|
|
58699
58717
|
this.addChild(element);
|
|
58700
58718
|
}
|
|
58701
|
-
return await setMemoryContainer(this, value);
|
|
58702
58719
|
}
|
|
58703
58720
|
};
|
|
58704
58721
|
function getMemoryContainer(element) {
|
|
@@ -58790,10 +58807,10 @@ var ImageContainer = class extends Container2 {
|
|
|
58790
58807
|
if (options?.anchor !== void 0) {
|
|
58791
58808
|
this.anchor = options.anchor;
|
|
58792
58809
|
}
|
|
58793
|
-
if (options?.align !== void 0) {
|
|
58810
|
+
if (options && "align" in options && options?.align !== void 0) {
|
|
58794
58811
|
this.align = options.align;
|
|
58795
58812
|
}
|
|
58796
|
-
if (options?.percentagePosition !== void 0) {
|
|
58813
|
+
if (options && "percentagePosition" in options && options?.percentagePosition !== void 0) {
|
|
58797
58814
|
this.percentagePosition = options.percentagePosition;
|
|
58798
58815
|
}
|
|
58799
58816
|
}
|
|
@@ -58811,7 +58828,8 @@ var ImageContainer = class extends Container2 {
|
|
|
58811
58828
|
this.setMemory(value);
|
|
58812
58829
|
}
|
|
58813
58830
|
async setMemory(value) {
|
|
58814
|
-
await
|
|
58831
|
+
await this.importChildren(value);
|
|
58832
|
+
await setMemoryImageContainer(this, value);
|
|
58815
58833
|
this.reloadAnchor();
|
|
58816
58834
|
this.reloadPosition();
|
|
58817
58835
|
}
|
|
@@ -58985,11 +59003,13 @@ var ImageContainer = class extends Container2 {
|
|
|
58985
59003
|
}
|
|
58986
59004
|
};
|
|
58987
59005
|
async function setMemoryImageContainer(element, memory, opstions) {
|
|
59006
|
+
memory = analizePositionsExtensionProps(memory);
|
|
58988
59007
|
setMemoryContainer(element, memory, {
|
|
58989
59008
|
...opstions,
|
|
58990
59009
|
end: async () => {
|
|
58991
59010
|
"anchor" in memory && memory.anchor !== void 0 && (element.anchor = memory.anchor);
|
|
58992
59011
|
"align" in memory && memory.align !== void 0 && (element.align = memory.align);
|
|
59012
|
+
"percentagePosition" in memory && memory.percentagePosition !== void 0 && (element.percentagePosition = memory.percentagePosition);
|
|
58993
59013
|
if ("loadIsStarted" in memory && memory.loadIsStarted) {
|
|
58994
59014
|
await element.load();
|
|
58995
59015
|
}
|
|
@@ -60354,9 +60374,8 @@ var customPositionTest = newLabel("___pixi_vn_images_custom_position_test___", [
|
|
|
60354
60374
|
- ${skullyName} will be added with the anchor set to 0.5 and align set to 0.25.`
|
|
60355
60375
|
};
|
|
60356
60376
|
canvas.removeAll();
|
|
60357
|
-
let container =
|
|
60358
|
-
container
|
|
60359
|
-
container.align = 0.5;
|
|
60377
|
+
let container = new ImageContainer({ anchor: 0.5, align: 0.5 }, [eggHeadImage, flowerTopImage]);
|
|
60378
|
+
canvas.add("container", container);
|
|
60360
60379
|
let helmlok = addImage("helmlok", helmlokImage);
|
|
60361
60380
|
helmlok.anchor = 0.5;
|
|
60362
60381
|
helmlok.xAlign = 1;
|
|
@@ -60816,6 +60835,7 @@ var ImageSprite = class _ImageSprite extends Sprite2 {
|
|
|
60816
60835
|
pixivnId = CANVAS_IMAGE_ID;
|
|
60817
60836
|
constructor(options, textureAlias) {
|
|
60818
60837
|
super(options);
|
|
60838
|
+
options = analizePositionsExtensionProps(options);
|
|
60819
60839
|
if (textureAlias) {
|
|
60820
60840
|
this.textureAlias = textureAlias;
|
|
60821
60841
|
}
|
|
@@ -60839,7 +60859,7 @@ var ImageSprite = class _ImageSprite extends Sprite2 {
|
|
|
60839
60859
|
this.setMemory(value);
|
|
60840
60860
|
}
|
|
60841
60861
|
async setMemory(value) {
|
|
60842
|
-
await
|
|
60862
|
+
await setMemoryImageSprite(this, value);
|
|
60843
60863
|
this.reloadPosition();
|
|
60844
60864
|
}
|
|
60845
60865
|
static from(source7, skipCache) {
|
|
@@ -60976,9 +60996,11 @@ var ImageSprite = class _ImageSprite extends Sprite2 {
|
|
|
60976
60996
|
}
|
|
60977
60997
|
};
|
|
60978
60998
|
async function setMemoryImageSprite(element, memory) {
|
|
60999
|
+
memory = analizePositionsExtensionProps(memory);
|
|
60979
61000
|
return await setMemorySprite(element, memory, {
|
|
60980
61001
|
half: async () => {
|
|
60981
61002
|
"align" in memory && memory.align !== void 0 && (element.align = memory.align);
|
|
61003
|
+
"percentagePosition" in memory && memory.percentagePosition !== void 0 && (element.percentagePosition = memory.percentagePosition);
|
|
60982
61004
|
"imageLink" in memory && memory.imageLink !== void 0 && (element.textureAlias = memory.imageLink);
|
|
60983
61005
|
if ("loadIsStarted" in memory && memory.loadIsStarted) {
|
|
60984
61006
|
await element.load();
|
|
@@ -62653,7 +62675,6 @@ var CanvasManager = class {
|
|
|
62653
62675
|
* @param data The object.
|
|
62654
62676
|
*/
|
|
62655
62677
|
async import(data) {
|
|
62656
|
-
this.clear();
|
|
62657
62678
|
try {
|
|
62658
62679
|
let tickersOnPause = data["tickersOnPause"] || {};
|
|
62659
62680
|
if (data.hasOwnProperty("elementAliasesOrder") && data.hasOwnProperty("elements")) {
|
|
@@ -62661,6 +62682,7 @@ var CanvasManager = class {
|
|
|
62661
62682
|
let elementAliasesOrder = data["elementAliasesOrder"];
|
|
62662
62683
|
let promises = elementAliasesOrder.filter((alias) => currentElements[alias]).map((alias) => importCanvasElement(currentElements[alias]));
|
|
62663
62684
|
let list = await Promise.all(promises);
|
|
62685
|
+
this.clear();
|
|
62664
62686
|
list.forEach((element, i3) => {
|
|
62665
62687
|
let alias = elementAliasesOrder[i3];
|
|
62666
62688
|
this.add(alias, element);
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
getDialogue,
|
|
6
6
|
setChoiceMenuOptions,
|
|
7
7
|
setDialogue
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-NB4Q3GFK.js";
|
|
9
9
|
import "../chunk-OMPJ74CO.js";
|
|
10
10
|
import "../chunk-2JGQWY5I.js";
|
|
11
11
|
import "../chunk-2BUPSB7O.js";
|
|
12
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-IRUKNG2Y.js";
|
|
13
13
|
import "../chunk-6GJXIPNB.js";
|
|
14
14
|
import "../chunk-I6TNJEE3.js";
|
|
15
15
|
import "../chunk-DPUSONJ3.js";
|
|
@@ -26,7 +26,7 @@ import "../chunk-ZBUW3MBH.js";
|
|
|
26
26
|
import "../chunk-PIYIZHZL.js";
|
|
27
27
|
import "../chunk-B7XQM2BB.js";
|
|
28
28
|
import "../chunk-LEMOIFSV.js";
|
|
29
|
-
import "../chunk-
|
|
29
|
+
import "../chunk-TOG67Z7Q.js";
|
|
30
30
|
import "../chunk-WS3FY4Q6.js";
|
|
31
31
|
import "../chunk-Z3NBKYVU.js";
|
|
32
32
|
import "../chunk-SAUNZQHZ.js";
|
|
@@ -57724,7 +57724,7 @@ extensions.add(soundAsset);
|
|
|
57724
57724
|
var sound = setInstance(new SoundLibrary());
|
|
57725
57725
|
|
|
57726
57726
|
// package.json
|
|
57727
|
-
var version = "0.9.
|
|
57727
|
+
var version = "0.9.7";
|
|
57728
57728
|
|
|
57729
57729
|
// src/constants.ts
|
|
57730
57730
|
var Repeat = "repeat";
|
|
@@ -58625,29 +58625,43 @@ function analizePositionsExtensionProps(props) {
|
|
|
58625
58625
|
if (!props) {
|
|
58626
58626
|
return props;
|
|
58627
58627
|
}
|
|
58628
|
-
if (props.align
|
|
58629
|
-
if (
|
|
58630
|
-
props.
|
|
58631
|
-
|
|
58632
|
-
|
|
58633
|
-
|
|
58634
|
-
props.
|
|
58628
|
+
if (typeof props.align !== "number") {
|
|
58629
|
+
if (props.xAlign != void 0) {
|
|
58630
|
+
if (props.align === void 0) {
|
|
58631
|
+
props.align = { x: props.xAlign };
|
|
58632
|
+
delete props.xAlign;
|
|
58633
|
+
} else {
|
|
58634
|
+
props.align.x = props.xAlign;
|
|
58635
|
+
delete props.xAlign;
|
|
58635
58636
|
}
|
|
58636
|
-
|
|
58637
|
-
|
|
58637
|
+
}
|
|
58638
|
+
if (props.yAlign != void 0) {
|
|
58639
|
+
if (props.align === void 0) {
|
|
58640
|
+
props.align = { y: props.yAlign };
|
|
58641
|
+
delete props.yAlign;
|
|
58642
|
+
} else {
|
|
58643
|
+
props.align.y = props.yAlign;
|
|
58644
|
+
delete props.yAlign;
|
|
58638
58645
|
}
|
|
58639
58646
|
}
|
|
58640
58647
|
}
|
|
58641
|
-
if (props.percentagePosition
|
|
58642
|
-
if (
|
|
58643
|
-
props.
|
|
58644
|
-
|
|
58645
|
-
|
|
58646
|
-
|
|
58647
|
-
props.
|
|
58648
|
+
if (typeof props.percentagePosition !== "number") {
|
|
58649
|
+
if (props.xPercentagePosition != void 0) {
|
|
58650
|
+
if (props.percentagePosition === void 0) {
|
|
58651
|
+
props.percentagePosition = { x: props.xPercentagePosition };
|
|
58652
|
+
delete props.xPercentagePosition;
|
|
58653
|
+
} else {
|
|
58654
|
+
props.percentagePosition.x = props.xPercentagePosition;
|
|
58655
|
+
delete props.xPercentagePosition;
|
|
58648
58656
|
}
|
|
58649
|
-
|
|
58650
|
-
|
|
58657
|
+
}
|
|
58658
|
+
if (props.yPercentagePosition != void 0) {
|
|
58659
|
+
if (props.percentagePosition === void 0) {
|
|
58660
|
+
props.percentagePosition = { y: props.yPercentagePosition };
|
|
58661
|
+
delete props.yPercentagePosition;
|
|
58662
|
+
} else {
|
|
58663
|
+
props.percentagePosition.y = props.yPercentagePosition;
|
|
58664
|
+
delete props.yPercentagePosition;
|
|
58651
58665
|
}
|
|
58652
58666
|
}
|
|
58653
58667
|
}
|
|
@@ -58689,12 +58703,15 @@ var Container2 = class extends Container {
|
|
|
58689
58703
|
this.setMemory(value);
|
|
58690
58704
|
}
|
|
58691
58705
|
async setMemory(value) {
|
|
58706
|
+
await this.importChildren(value);
|
|
58707
|
+
return await setMemoryContainer(this, value);
|
|
58708
|
+
}
|
|
58709
|
+
async importChildren(value) {
|
|
58692
58710
|
for (let i3 = 0; i3 < value.elements.length; i3++) {
|
|
58693
58711
|
let child = value.elements[i3];
|
|
58694
58712
|
let element = await importCanvasElement(child);
|
|
58695
58713
|
this.addChild(element);
|
|
58696
58714
|
}
|
|
58697
|
-
return await setMemoryContainer(this, value);
|
|
58698
58715
|
}
|
|
58699
58716
|
};
|
|
58700
58717
|
function getMemoryContainer(element) {
|
|
@@ -58786,10 +58803,10 @@ var ImageContainer = class extends Container2 {
|
|
|
58786
58803
|
if (options?.anchor !== void 0) {
|
|
58787
58804
|
this.anchor = options.anchor;
|
|
58788
58805
|
}
|
|
58789
|
-
if (options?.align !== void 0) {
|
|
58806
|
+
if (options && "align" in options && options?.align !== void 0) {
|
|
58790
58807
|
this.align = options.align;
|
|
58791
58808
|
}
|
|
58792
|
-
if (options?.percentagePosition !== void 0) {
|
|
58809
|
+
if (options && "percentagePosition" in options && options?.percentagePosition !== void 0) {
|
|
58793
58810
|
this.percentagePosition = options.percentagePosition;
|
|
58794
58811
|
}
|
|
58795
58812
|
}
|
|
@@ -58807,7 +58824,8 @@ var ImageContainer = class extends Container2 {
|
|
|
58807
58824
|
this.setMemory(value);
|
|
58808
58825
|
}
|
|
58809
58826
|
async setMemory(value) {
|
|
58810
|
-
await
|
|
58827
|
+
await this.importChildren(value);
|
|
58828
|
+
await setMemoryImageContainer(this, value);
|
|
58811
58829
|
this.reloadAnchor();
|
|
58812
58830
|
this.reloadPosition();
|
|
58813
58831
|
}
|
|
@@ -58981,11 +58999,13 @@ var ImageContainer = class extends Container2 {
|
|
|
58981
58999
|
}
|
|
58982
59000
|
};
|
|
58983
59001
|
async function setMemoryImageContainer(element, memory, opstions) {
|
|
59002
|
+
memory = analizePositionsExtensionProps(memory);
|
|
58984
59003
|
setMemoryContainer(element, memory, {
|
|
58985
59004
|
...opstions,
|
|
58986
59005
|
end: async () => {
|
|
58987
59006
|
"anchor" in memory && memory.anchor !== void 0 && (element.anchor = memory.anchor);
|
|
58988
59007
|
"align" in memory && memory.align !== void 0 && (element.align = memory.align);
|
|
59008
|
+
"percentagePosition" in memory && memory.percentagePosition !== void 0 && (element.percentagePosition = memory.percentagePosition);
|
|
58989
59009
|
if ("loadIsStarted" in memory && memory.loadIsStarted) {
|
|
58990
59010
|
await element.load();
|
|
58991
59011
|
}
|
|
@@ -60330,9 +60350,8 @@ var customPositionTest = newLabel("___pixi_vn_images_custom_position_test___", [
|
|
|
60330
60350
|
- ${skullyName} will be added with the anchor set to 0.5 and align set to 0.25.`
|
|
60331
60351
|
};
|
|
60332
60352
|
canvas.removeAll();
|
|
60333
|
-
let container =
|
|
60334
|
-
container
|
|
60335
|
-
container.align = 0.5;
|
|
60353
|
+
let container = new ImageContainer({ anchor: 0.5, align: 0.5 }, [eggHeadImage, flowerTopImage]);
|
|
60354
|
+
canvas.add("container", container);
|
|
60336
60355
|
let helmlok = addImage("helmlok", helmlokImage);
|
|
60337
60356
|
helmlok.anchor = 0.5;
|
|
60338
60357
|
helmlok.xAlign = 1;
|
|
@@ -60792,6 +60811,7 @@ var ImageSprite = class _ImageSprite extends Sprite2 {
|
|
|
60792
60811
|
pixivnId = CANVAS_IMAGE_ID;
|
|
60793
60812
|
constructor(options, textureAlias) {
|
|
60794
60813
|
super(options);
|
|
60814
|
+
options = analizePositionsExtensionProps(options);
|
|
60795
60815
|
if (textureAlias) {
|
|
60796
60816
|
this.textureAlias = textureAlias;
|
|
60797
60817
|
}
|
|
@@ -60815,7 +60835,7 @@ var ImageSprite = class _ImageSprite extends Sprite2 {
|
|
|
60815
60835
|
this.setMemory(value);
|
|
60816
60836
|
}
|
|
60817
60837
|
async setMemory(value) {
|
|
60818
|
-
await
|
|
60838
|
+
await setMemoryImageSprite(this, value);
|
|
60819
60839
|
this.reloadPosition();
|
|
60820
60840
|
}
|
|
60821
60841
|
static from(source7, skipCache) {
|
|
@@ -60952,9 +60972,11 @@ var ImageSprite = class _ImageSprite extends Sprite2 {
|
|
|
60952
60972
|
}
|
|
60953
60973
|
};
|
|
60954
60974
|
async function setMemoryImageSprite(element, memory) {
|
|
60975
|
+
memory = analizePositionsExtensionProps(memory);
|
|
60955
60976
|
return await setMemorySprite(element, memory, {
|
|
60956
60977
|
half: async () => {
|
|
60957
60978
|
"align" in memory && memory.align !== void 0 && (element.align = memory.align);
|
|
60979
|
+
"percentagePosition" in memory && memory.percentagePosition !== void 0 && (element.percentagePosition = memory.percentagePosition);
|
|
60958
60980
|
"imageLink" in memory && memory.imageLink !== void 0 && (element.textureAlias = memory.imageLink);
|
|
60959
60981
|
if ("loadIsStarted" in memory && memory.loadIsStarted) {
|
|
60960
60982
|
await element.load();
|
|
@@ -62629,7 +62651,6 @@ var CanvasManager = class {
|
|
|
62629
62651
|
* @param data The object.
|
|
62630
62652
|
*/
|
|
62631
62653
|
async import(data) {
|
|
62632
|
-
this.clear();
|
|
62633
62654
|
try {
|
|
62634
62655
|
let tickersOnPause = data["tickersOnPause"] || {};
|
|
62635
62656
|
if (data.hasOwnProperty("elementAliasesOrder") && data.hasOwnProperty("elements")) {
|
|
@@ -62637,6 +62658,7 @@ var CanvasManager = class {
|
|
|
62637
62658
|
let elementAliasesOrder = data["elementAliasesOrder"];
|
|
62638
62659
|
let promises = elementAliasesOrder.filter((alias) => currentElements[alias]).map((alias) => importCanvasElement(currentElements[alias]));
|
|
62639
62660
|
let list = await Promise.all(promises);
|
|
62661
|
+
this.clear();
|
|
62640
62662
|
list.forEach((element, i3) => {
|
|
62641
62663
|
let alias = elementAliasesOrder[i3];
|
|
62642
62664
|
this.add(alias, element);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getFlag,
|
|
3
3
|
setFlag
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-NB4Q3GFK.js";
|
|
5
5
|
import "../chunk-OMPJ74CO.js";
|
|
6
6
|
import "../chunk-2JGQWY5I.js";
|
|
7
7
|
import "../chunk-2BUPSB7O.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-IRUKNG2Y.js";
|
|
9
9
|
import "../chunk-6GJXIPNB.js";
|
|
10
10
|
import "../chunk-I6TNJEE3.js";
|
|
11
11
|
import "../chunk-DPUSONJ3.js";
|
|
@@ -22,7 +22,7 @@ import "../chunk-ZBUW3MBH.js";
|
|
|
22
22
|
import "../chunk-PIYIZHZL.js";
|
|
23
23
|
import "../chunk-B7XQM2BB.js";
|
|
24
24
|
import "../chunk-LEMOIFSV.js";
|
|
25
|
-
import "../chunk-
|
|
25
|
+
import "../chunk-TOG67Z7Q.js";
|
|
26
26
|
import "../chunk-WS3FY4Q6.js";
|
|
27
27
|
import "../chunk-Z3NBKYVU.js";
|
|
28
28
|
import "../chunk-SAUNZQHZ.js";
|