@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ContainerOptions, PointData, SpriteOptions, TextOptions, Container, Sprite as Sprite$1, Texture, ContainerEvents, ContainerChild as ContainerChild$1, EventEmitter, TextureSourceLike, TextureSource, ObservablePoint } from 'pixi.js';
|
|
2
|
-
import TextureMemory from './interface/canvas/TextureMemory.js';
|
|
3
2
|
import AdditionalPositionsExtension, { AdditionalPositionsExtensionProps } from './classes/canvas/AdditionalPositions.js';
|
|
3
|
+
import TextureMemory from './interface/canvas/TextureMemory.js';
|
|
4
4
|
import { AnchorExtensionProps } from './classes/canvas/AnchorExtension.js';
|
|
5
5
|
import CanvasEventNamesType from './types/CanvasEventNamesType.js';
|
|
6
6
|
import CanvasEvent from './classes/CanvasEvent.js';
|
|
@@ -21,11 +21,9 @@ interface ContainerMemory<C extends ContainerChild = ContainerChild> extends Con
|
|
|
21
21
|
/**
|
|
22
22
|
* Interface for the canvas container memory
|
|
23
23
|
*/
|
|
24
|
-
interface ImageContainerMemory extends ContainerMemory<ImageSprite
|
|
24
|
+
interface ImageContainerMemory extends ContainerMemory<ImageSprite>, AdditionalPositionsExtensionProps {
|
|
25
25
|
elements: ImageSpriteMemory[];
|
|
26
26
|
anchor?: PointData;
|
|
27
|
-
align?: Partial<PointData>;
|
|
28
|
-
percentagePosition?: Partial<PointData>;
|
|
29
27
|
loadIsStarted: boolean;
|
|
30
28
|
}
|
|
31
29
|
interface SpriteBaseMemory extends SpriteOptions, CanvasBaseItemMemory {
|
|
@@ -54,13 +52,11 @@ interface TextMemory extends TextOptions, CanvasBaseItemMemory {
|
|
|
54
52
|
/**
|
|
55
53
|
* The memory of the image. It uses for save the state of the image.
|
|
56
54
|
*/
|
|
57
|
-
interface ImageSpriteMemory extends SpriteBaseMemory {
|
|
55
|
+
interface ImageSpriteMemory extends SpriteBaseMemory, AdditionalPositionsExtensionProps {
|
|
58
56
|
/**
|
|
59
57
|
* @deprecated use SpriteBaseMemory.textureAlias
|
|
60
58
|
*/
|
|
61
59
|
imageLink?: string;
|
|
62
|
-
align?: Partial<PointData>;
|
|
63
|
-
percentagePosition?: Partial<PointData>;
|
|
64
60
|
loadIsStarted: boolean;
|
|
65
61
|
}
|
|
66
62
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ContainerOptions, PointData, SpriteOptions, TextOptions, Container, Sprite as Sprite$1, Texture, ContainerEvents, ContainerChild as ContainerChild$1, EventEmitter, TextureSourceLike, TextureSource, ObservablePoint } from 'pixi.js';
|
|
2
|
-
import TextureMemory from './interface/canvas/TextureMemory.cjs';
|
|
3
2
|
import AdditionalPositionsExtension, { AdditionalPositionsExtensionProps } from './classes/canvas/AdditionalPositions.cjs';
|
|
3
|
+
import TextureMemory from './interface/canvas/TextureMemory.cjs';
|
|
4
4
|
import { AnchorExtensionProps } from './classes/canvas/AnchorExtension.cjs';
|
|
5
5
|
import CanvasEventNamesType from './types/CanvasEventNamesType.cjs';
|
|
6
6
|
import CanvasEvent from './classes/CanvasEvent.cjs';
|
|
@@ -21,11 +21,9 @@ interface ContainerMemory<C extends ContainerChild = ContainerChild> extends Con
|
|
|
21
21
|
/**
|
|
22
22
|
* Interface for the canvas container memory
|
|
23
23
|
*/
|
|
24
|
-
interface ImageContainerMemory extends ContainerMemory<ImageSprite
|
|
24
|
+
interface ImageContainerMemory extends ContainerMemory<ImageSprite>, AdditionalPositionsExtensionProps {
|
|
25
25
|
elements: ImageSpriteMemory[];
|
|
26
26
|
anchor?: PointData;
|
|
27
|
-
align?: Partial<PointData>;
|
|
28
|
-
percentagePosition?: Partial<PointData>;
|
|
29
27
|
loadIsStarted: boolean;
|
|
30
28
|
}
|
|
31
29
|
interface SpriteBaseMemory extends SpriteOptions, CanvasBaseItemMemory {
|
|
@@ -54,13 +52,11 @@ interface TextMemory extends TextOptions, CanvasBaseItemMemory {
|
|
|
54
52
|
/**
|
|
55
53
|
* The memory of the image. It uses for save the state of the image.
|
|
56
54
|
*/
|
|
57
|
-
interface ImageSpriteMemory extends SpriteBaseMemory {
|
|
55
|
+
interface ImageSpriteMemory extends SpriteBaseMemory, AdditionalPositionsExtensionProps {
|
|
58
56
|
/**
|
|
59
57
|
* @deprecated use SpriteBaseMemory.textureAlias
|
|
60
58
|
*/
|
|
61
59
|
imageLink?: string;
|
|
62
|
-
align?: Partial<PointData>;
|
|
63
|
-
percentagePosition?: Partial<PointData>;
|
|
64
60
|
loadIsStarted: boolean;
|
|
65
61
|
}
|
|
66
62
|
/**
|
|
@@ -81,29 +81,43 @@ function analizePositionsExtensionProps(props) {
|
|
|
81
81
|
if (!props) {
|
|
82
82
|
return props;
|
|
83
83
|
}
|
|
84
|
-
if (props.align
|
|
85
|
-
if (
|
|
86
|
-
props.
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
props.
|
|
84
|
+
if (typeof props.align !== "number") {
|
|
85
|
+
if (props.xAlign != void 0) {
|
|
86
|
+
if (props.align === void 0) {
|
|
87
|
+
props.align = { x: props.xAlign };
|
|
88
|
+
delete props.xAlign;
|
|
89
|
+
} else {
|
|
90
|
+
props.align.x = props.xAlign;
|
|
91
|
+
delete props.xAlign;
|
|
91
92
|
}
|
|
92
|
-
|
|
93
|
-
|
|
93
|
+
}
|
|
94
|
+
if (props.yAlign != void 0) {
|
|
95
|
+
if (props.align === void 0) {
|
|
96
|
+
props.align = { y: props.yAlign };
|
|
97
|
+
delete props.yAlign;
|
|
98
|
+
} else {
|
|
99
|
+
props.align.y = props.yAlign;
|
|
100
|
+
delete props.yAlign;
|
|
94
101
|
}
|
|
95
102
|
}
|
|
96
103
|
}
|
|
97
|
-
if (props.percentagePosition
|
|
98
|
-
if (
|
|
99
|
-
props.
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
props.
|
|
104
|
+
if (typeof props.percentagePosition !== "number") {
|
|
105
|
+
if (props.xPercentagePosition != void 0) {
|
|
106
|
+
if (props.percentagePosition === void 0) {
|
|
107
|
+
props.percentagePosition = { x: props.xPercentagePosition };
|
|
108
|
+
delete props.xPercentagePosition;
|
|
109
|
+
} else {
|
|
110
|
+
props.percentagePosition.x = props.xPercentagePosition;
|
|
111
|
+
delete props.xPercentagePosition;
|
|
104
112
|
}
|
|
105
|
-
|
|
106
|
-
|
|
113
|
+
}
|
|
114
|
+
if (props.yPercentagePosition != void 0) {
|
|
115
|
+
if (props.percentagePosition === void 0) {
|
|
116
|
+
props.percentagePosition = { y: props.yPercentagePosition };
|
|
117
|
+
delete props.yPercentagePosition;
|
|
118
|
+
} else {
|
|
119
|
+
props.percentagePosition.y = props.yPercentagePosition;
|
|
120
|
+
delete props.yPercentagePosition;
|
|
107
121
|
}
|
|
108
122
|
}
|
|
109
123
|
}
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-OMPJ74CO.js";
|
|
4
4
|
import {
|
|
5
5
|
analizePositionsExtensionProps
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-IRUKNG2Y.js";
|
|
7
7
|
import {
|
|
8
8
|
Close
|
|
9
9
|
} from "./chunk-I6TNJEE3.js";
|
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
filters,
|
|
73
73
|
version,
|
|
74
74
|
videoFormats
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-TOG67Z7Q.js";
|
|
76
76
|
import {
|
|
77
77
|
Sound,
|
|
78
78
|
SoundLibrary,
|
|
@@ -687,12 +687,15 @@ var Container2 = class extends Container {
|
|
|
687
687
|
this.setMemory(value);
|
|
688
688
|
}
|
|
689
689
|
async setMemory(value) {
|
|
690
|
+
await this.importChildren(value);
|
|
691
|
+
return await setMemoryContainer(this, value);
|
|
692
|
+
}
|
|
693
|
+
async importChildren(value) {
|
|
690
694
|
for (let i = 0; i < value.elements.length; i++) {
|
|
691
695
|
let child = value.elements[i];
|
|
692
696
|
let element = await importCanvasElement(child);
|
|
693
697
|
this.addChild(element);
|
|
694
698
|
}
|
|
695
|
-
return await setMemoryContainer(this, value);
|
|
696
699
|
}
|
|
697
700
|
};
|
|
698
701
|
function getMemoryContainer(element) {
|
|
@@ -784,10 +787,10 @@ var ImageContainer = class extends Container2 {
|
|
|
784
787
|
if (options?.anchor !== void 0) {
|
|
785
788
|
this.anchor = options.anchor;
|
|
786
789
|
}
|
|
787
|
-
if (options?.align !== void 0) {
|
|
790
|
+
if (options && "align" in options && options?.align !== void 0) {
|
|
788
791
|
this.align = options.align;
|
|
789
792
|
}
|
|
790
|
-
if (options?.percentagePosition !== void 0) {
|
|
793
|
+
if (options && "percentagePosition" in options && options?.percentagePosition !== void 0) {
|
|
791
794
|
this.percentagePosition = options.percentagePosition;
|
|
792
795
|
}
|
|
793
796
|
}
|
|
@@ -805,7 +808,8 @@ var ImageContainer = class extends Container2 {
|
|
|
805
808
|
this.setMemory(value);
|
|
806
809
|
}
|
|
807
810
|
async setMemory(value) {
|
|
808
|
-
await
|
|
811
|
+
await this.importChildren(value);
|
|
812
|
+
await setMemoryImageContainer(this, value);
|
|
809
813
|
this.reloadAnchor();
|
|
810
814
|
this.reloadPosition();
|
|
811
815
|
}
|
|
@@ -979,11 +983,13 @@ var ImageContainer = class extends Container2 {
|
|
|
979
983
|
}
|
|
980
984
|
};
|
|
981
985
|
async function setMemoryImageContainer(element, memory, opstions) {
|
|
986
|
+
memory = analizePositionsExtensionProps(memory);
|
|
982
987
|
setMemoryContainer(element, memory, {
|
|
983
988
|
...opstions,
|
|
984
989
|
end: async () => {
|
|
985
990
|
"anchor" in memory && memory.anchor !== void 0 && (element.anchor = memory.anchor);
|
|
986
991
|
"align" in memory && memory.align !== void 0 && (element.align = memory.align);
|
|
992
|
+
"percentagePosition" in memory && memory.percentagePosition !== void 0 && (element.percentagePosition = memory.percentagePosition);
|
|
987
993
|
if ("loadIsStarted" in memory && memory.loadIsStarted) {
|
|
988
994
|
await element.load();
|
|
989
995
|
}
|
|
@@ -2815,7 +2821,6 @@ var CanvasManager = class {
|
|
|
2815
2821
|
* @param data The object.
|
|
2816
2822
|
*/
|
|
2817
2823
|
async import(data) {
|
|
2818
|
-
this.clear();
|
|
2819
2824
|
try {
|
|
2820
2825
|
let tickersOnPause = data["tickersOnPause"] || {};
|
|
2821
2826
|
if (data.hasOwnProperty("elementAliasesOrder") && data.hasOwnProperty("elements")) {
|
|
@@ -2823,6 +2828,7 @@ var CanvasManager = class {
|
|
|
2823
2828
|
let elementAliasesOrder = data["elementAliasesOrder"];
|
|
2824
2829
|
let promises = elementAliasesOrder.filter((alias) => currentElements[alias]).map((alias) => importCanvasElement(currentElements[alias]));
|
|
2825
2830
|
let list = await Promise.all(promises);
|
|
2831
|
+
this.clear();
|
|
2826
2832
|
list.forEach((element, i) => {
|
|
2827
2833
|
let alias = elementAliasesOrder[i];
|
|
2828
2834
|
this.add(alias, element);
|
|
@@ -5800,9 +5806,8 @@ var customPositionTest = newLabel("___pixi_vn_images_custom_position_test___", [
|
|
|
5800
5806
|
- ${skullyName} will be added with the anchor set to 0.5 and align set to 0.25.`
|
|
5801
5807
|
};
|
|
5802
5808
|
canvas.removeAll();
|
|
5803
|
-
let container =
|
|
5804
|
-
container
|
|
5805
|
-
container.align = 0.5;
|
|
5809
|
+
let container = new ImageContainer({ anchor: 0.5, align: 0.5 }, [eggHeadImage, flowerTopImage]);
|
|
5810
|
+
canvas.add("container", container);
|
|
5806
5811
|
let helmlok = addImage("helmlok", helmlokImage);
|
|
5807
5812
|
helmlok.anchor = 0.5;
|
|
5808
5813
|
helmlok.xAlign = 1;
|
|
@@ -6113,6 +6118,7 @@ var ImageSprite = class _ImageSprite extends Sprite2 {
|
|
|
6113
6118
|
pixivnId = CANVAS_IMAGE_ID;
|
|
6114
6119
|
constructor(options, textureAlias) {
|
|
6115
6120
|
super(options);
|
|
6121
|
+
options = analizePositionsExtensionProps(options);
|
|
6116
6122
|
if (textureAlias) {
|
|
6117
6123
|
this.textureAlias = textureAlias;
|
|
6118
6124
|
}
|
|
@@ -6136,7 +6142,7 @@ var ImageSprite = class _ImageSprite extends Sprite2 {
|
|
|
6136
6142
|
this.setMemory(value);
|
|
6137
6143
|
}
|
|
6138
6144
|
async setMemory(value) {
|
|
6139
|
-
await
|
|
6145
|
+
await setMemoryImageSprite(this, value);
|
|
6140
6146
|
this.reloadPosition();
|
|
6141
6147
|
}
|
|
6142
6148
|
static from(source, skipCache) {
|
|
@@ -6273,9 +6279,11 @@ var ImageSprite = class _ImageSprite extends Sprite2 {
|
|
|
6273
6279
|
}
|
|
6274
6280
|
};
|
|
6275
6281
|
async function setMemoryImageSprite(element, memory) {
|
|
6282
|
+
memory = analizePositionsExtensionProps(memory);
|
|
6276
6283
|
return await setMemorySprite(element, memory, {
|
|
6277
6284
|
half: async () => {
|
|
6278
6285
|
"align" in memory && memory.align !== void 0 && (element.align = memory.align);
|
|
6286
|
+
"percentagePosition" in memory && memory.percentagePosition !== void 0 && (element.percentagePosition = memory.percentagePosition);
|
|
6279
6287
|
"imageLink" in memory && memory.imageLink !== void 0 && (element.textureAlias = memory.imageLink);
|
|
6280
6288
|
if ("loadIsStarted" in memory && memory.loadIsStarted) {
|
|
6281
6289
|
await element.load();
|
|
@@ -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";
|
|
@@ -58624,29 +58624,43 @@ function analizePositionsExtensionProps(props) {
|
|
|
58624
58624
|
if (!props) {
|
|
58625
58625
|
return props;
|
|
58626
58626
|
}
|
|
58627
|
-
if (props.align
|
|
58628
|
-
if (
|
|
58629
|
-
props.
|
|
58630
|
-
|
|
58631
|
-
|
|
58632
|
-
|
|
58633
|
-
props.
|
|
58627
|
+
if (typeof props.align !== "number") {
|
|
58628
|
+
if (props.xAlign != void 0) {
|
|
58629
|
+
if (props.align === void 0) {
|
|
58630
|
+
props.align = { x: props.xAlign };
|
|
58631
|
+
delete props.xAlign;
|
|
58632
|
+
} else {
|
|
58633
|
+
props.align.x = props.xAlign;
|
|
58634
|
+
delete props.xAlign;
|
|
58634
58635
|
}
|
|
58635
|
-
|
|
58636
|
-
|
|
58636
|
+
}
|
|
58637
|
+
if (props.yAlign != void 0) {
|
|
58638
|
+
if (props.align === void 0) {
|
|
58639
|
+
props.align = { y: props.yAlign };
|
|
58640
|
+
delete props.yAlign;
|
|
58641
|
+
} else {
|
|
58642
|
+
props.align.y = props.yAlign;
|
|
58643
|
+
delete props.yAlign;
|
|
58637
58644
|
}
|
|
58638
58645
|
}
|
|
58639
58646
|
}
|
|
58640
|
-
if (props.percentagePosition
|
|
58641
|
-
if (
|
|
58642
|
-
props.
|
|
58643
|
-
|
|
58644
|
-
|
|
58645
|
-
|
|
58646
|
-
props.
|
|
58647
|
+
if (typeof props.percentagePosition !== "number") {
|
|
58648
|
+
if (props.xPercentagePosition != void 0) {
|
|
58649
|
+
if (props.percentagePosition === void 0) {
|
|
58650
|
+
props.percentagePosition = { x: props.xPercentagePosition };
|
|
58651
|
+
delete props.xPercentagePosition;
|
|
58652
|
+
} else {
|
|
58653
|
+
props.percentagePosition.x = props.xPercentagePosition;
|
|
58654
|
+
delete props.xPercentagePosition;
|
|
58647
58655
|
}
|
|
58648
|
-
|
|
58649
|
-
|
|
58656
|
+
}
|
|
58657
|
+
if (props.yPercentagePosition != void 0) {
|
|
58658
|
+
if (props.percentagePosition === void 0) {
|
|
58659
|
+
props.percentagePosition = { y: props.yPercentagePosition };
|
|
58660
|
+
delete props.yPercentagePosition;
|
|
58661
|
+
} else {
|
|
58662
|
+
props.percentagePosition.y = props.yPercentagePosition;
|
|
58663
|
+
delete props.yPercentagePosition;
|
|
58650
58664
|
}
|
|
58651
58665
|
}
|
|
58652
58666
|
}
|
|
@@ -58688,12 +58702,15 @@ var Container2 = class extends Container {
|
|
|
58688
58702
|
this.setMemory(value);
|
|
58689
58703
|
}
|
|
58690
58704
|
async setMemory(value) {
|
|
58705
|
+
await this.importChildren(value);
|
|
58706
|
+
return await setMemoryContainer(this, value);
|
|
58707
|
+
}
|
|
58708
|
+
async importChildren(value) {
|
|
58691
58709
|
for (let i3 = 0; i3 < value.elements.length; i3++) {
|
|
58692
58710
|
let child = value.elements[i3];
|
|
58693
58711
|
let element = await importCanvasElement(child);
|
|
58694
58712
|
this.addChild(element);
|
|
58695
58713
|
}
|
|
58696
|
-
return await setMemoryContainer(this, value);
|
|
58697
58714
|
}
|
|
58698
58715
|
};
|
|
58699
58716
|
function getMemoryContainer(element) {
|
|
@@ -58785,10 +58802,10 @@ var ImageContainer = class extends Container2 {
|
|
|
58785
58802
|
if (options?.anchor !== void 0) {
|
|
58786
58803
|
this.anchor = options.anchor;
|
|
58787
58804
|
}
|
|
58788
|
-
if (options?.align !== void 0) {
|
|
58805
|
+
if (options && "align" in options && options?.align !== void 0) {
|
|
58789
58806
|
this.align = options.align;
|
|
58790
58807
|
}
|
|
58791
|
-
if (options?.percentagePosition !== void 0) {
|
|
58808
|
+
if (options && "percentagePosition" in options && options?.percentagePosition !== void 0) {
|
|
58792
58809
|
this.percentagePosition = options.percentagePosition;
|
|
58793
58810
|
}
|
|
58794
58811
|
}
|
|
@@ -58806,7 +58823,8 @@ var ImageContainer = class extends Container2 {
|
|
|
58806
58823
|
this.setMemory(value);
|
|
58807
58824
|
}
|
|
58808
58825
|
async setMemory(value) {
|
|
58809
|
-
await
|
|
58826
|
+
await this.importChildren(value);
|
|
58827
|
+
await setMemoryImageContainer(this, value);
|
|
58810
58828
|
this.reloadAnchor();
|
|
58811
58829
|
this.reloadPosition();
|
|
58812
58830
|
}
|
|
@@ -58980,11 +58998,13 @@ var ImageContainer = class extends Container2 {
|
|
|
58980
58998
|
}
|
|
58981
58999
|
};
|
|
58982
59000
|
async function setMemoryImageContainer(element, memory, opstions) {
|
|
59001
|
+
memory = analizePositionsExtensionProps(memory);
|
|
58983
59002
|
setMemoryContainer(element, memory, {
|
|
58984
59003
|
...opstions,
|
|
58985
59004
|
end: async () => {
|
|
58986
59005
|
"anchor" in memory && memory.anchor !== void 0 && (element.anchor = memory.anchor);
|
|
58987
59006
|
"align" in memory && memory.align !== void 0 && (element.align = memory.align);
|
|
59007
|
+
"percentagePosition" in memory && memory.percentagePosition !== void 0 && (element.percentagePosition = memory.percentagePosition);
|
|
58988
59008
|
if ("loadIsStarted" in memory && memory.loadIsStarted) {
|
|
58989
59009
|
await element.load();
|
|
58990
59010
|
}
|
|
@@ -60349,9 +60369,8 @@ var customPositionTest = newLabel("___pixi_vn_images_custom_position_test___", [
|
|
|
60349
60369
|
- ${skullyName} will be added with the anchor set to 0.5 and align set to 0.25.`
|
|
60350
60370
|
};
|
|
60351
60371
|
canvas.removeAll();
|
|
60352
|
-
let container =
|
|
60353
|
-
container
|
|
60354
|
-
container.align = 0.5;
|
|
60372
|
+
let container = new ImageContainer({ anchor: 0.5, align: 0.5 }, [eggHeadImage, flowerTopImage]);
|
|
60373
|
+
canvas.add("container", container);
|
|
60355
60374
|
let helmlok = addImage("helmlok", helmlokImage);
|
|
60356
60375
|
helmlok.anchor = 0.5;
|
|
60357
60376
|
helmlok.xAlign = 1;
|
|
@@ -60811,6 +60830,7 @@ var ImageSprite = class _ImageSprite extends Sprite2 {
|
|
|
60811
60830
|
pixivnId = CANVAS_IMAGE_ID;
|
|
60812
60831
|
constructor(options, textureAlias) {
|
|
60813
60832
|
super(options);
|
|
60833
|
+
options = analizePositionsExtensionProps(options);
|
|
60814
60834
|
if (textureAlias) {
|
|
60815
60835
|
this.textureAlias = textureAlias;
|
|
60816
60836
|
}
|
|
@@ -60834,7 +60854,7 @@ var ImageSprite = class _ImageSprite extends Sprite2 {
|
|
|
60834
60854
|
this.setMemory(value);
|
|
60835
60855
|
}
|
|
60836
60856
|
async setMemory(value) {
|
|
60837
|
-
await
|
|
60857
|
+
await setMemoryImageSprite(this, value);
|
|
60838
60858
|
this.reloadPosition();
|
|
60839
60859
|
}
|
|
60840
60860
|
static from(source7, skipCache) {
|
|
@@ -60971,9 +60991,11 @@ var ImageSprite = class _ImageSprite extends Sprite2 {
|
|
|
60971
60991
|
}
|
|
60972
60992
|
};
|
|
60973
60993
|
async function setMemoryImageSprite(element, memory) {
|
|
60994
|
+
memory = analizePositionsExtensionProps(memory);
|
|
60974
60995
|
return await setMemorySprite(element, memory, {
|
|
60975
60996
|
half: async () => {
|
|
60976
60997
|
"align" in memory && memory.align !== void 0 && (element.align = memory.align);
|
|
60998
|
+
"percentagePosition" in memory && memory.percentagePosition !== void 0 && (element.percentagePosition = memory.percentagePosition);
|
|
60977
60999
|
"imageLink" in memory && memory.imageLink !== void 0 && (element.textureAlias = memory.imageLink);
|
|
60978
61000
|
if ("loadIsStarted" in memory && memory.loadIsStarted) {
|
|
60979
61001
|
await element.load();
|
|
@@ -62706,7 +62728,6 @@ var CanvasManager = class {
|
|
|
62706
62728
|
* @param data The object.
|
|
62707
62729
|
*/
|
|
62708
62730
|
async import(data) {
|
|
62709
|
-
this.clear();
|
|
62710
62731
|
try {
|
|
62711
62732
|
let tickersOnPause = data["tickersOnPause"] || {};
|
|
62712
62733
|
if (data.hasOwnProperty("elementAliasesOrder") && data.hasOwnProperty("elements")) {
|
|
@@ -62714,6 +62735,7 @@ var CanvasManager = class {
|
|
|
62714
62735
|
let elementAliasesOrder = data["elementAliasesOrder"];
|
|
62715
62736
|
let promises = elementAliasesOrder.filter((alias) => currentElements[alias]).map((alias) => importCanvasElement(currentElements[alias]));
|
|
62716
62737
|
let list = await Promise.all(promises);
|
|
62738
|
+
this.clear();
|
|
62717
62739
|
list.forEach((element, i3) => {
|
|
62718
62740
|
let alias = elementAliasesOrder[i3];
|
|
62719
62741
|
this.add(alias, element);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CharacterBaseModel
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-NB4Q3GFK.js";
|
|
4
4
|
import "../chunk-OMPJ74CO.js";
|
|
5
5
|
import "../chunk-2JGQWY5I.js";
|
|
6
6
|
import "../chunk-2BUPSB7O.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-IRUKNG2Y.js";
|
|
8
8
|
import "../chunk-6GJXIPNB.js";
|
|
9
9
|
import "../chunk-I6TNJEE3.js";
|
|
10
10
|
import "../chunk-DPUSONJ3.js";
|
|
@@ -21,7 +21,7 @@ import "../chunk-ZBUW3MBH.js";
|
|
|
21
21
|
import "../chunk-PIYIZHZL.js";
|
|
22
22
|
import "../chunk-B7XQM2BB.js";
|
|
23
23
|
import "../chunk-LEMOIFSV.js";
|
|
24
|
-
import "../chunk-
|
|
24
|
+
import "../chunk-TOG67Z7Q.js";
|
|
25
25
|
import "../chunk-WS3FY4Q6.js";
|
|
26
26
|
import "../chunk-Z3NBKYVU.js";
|
|
27
27
|
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";
|
|
@@ -58624,29 +58624,43 @@ function analizePositionsExtensionProps(props) {
|
|
|
58624
58624
|
if (!props) {
|
|
58625
58625
|
return props;
|
|
58626
58626
|
}
|
|
58627
|
-
if (props.align
|
|
58628
|
-
if (
|
|
58629
|
-
props.
|
|
58630
|
-
|
|
58631
|
-
|
|
58632
|
-
|
|
58633
|
-
props.
|
|
58627
|
+
if (typeof props.align !== "number") {
|
|
58628
|
+
if (props.xAlign != void 0) {
|
|
58629
|
+
if (props.align === void 0) {
|
|
58630
|
+
props.align = { x: props.xAlign };
|
|
58631
|
+
delete props.xAlign;
|
|
58632
|
+
} else {
|
|
58633
|
+
props.align.x = props.xAlign;
|
|
58634
|
+
delete props.xAlign;
|
|
58634
58635
|
}
|
|
58635
|
-
|
|
58636
|
-
|
|
58636
|
+
}
|
|
58637
|
+
if (props.yAlign != void 0) {
|
|
58638
|
+
if (props.align === void 0) {
|
|
58639
|
+
props.align = { y: props.yAlign };
|
|
58640
|
+
delete props.yAlign;
|
|
58641
|
+
} else {
|
|
58642
|
+
props.align.y = props.yAlign;
|
|
58643
|
+
delete props.yAlign;
|
|
58637
58644
|
}
|
|
58638
58645
|
}
|
|
58639
58646
|
}
|
|
58640
|
-
if (props.percentagePosition
|
|
58641
|
-
if (
|
|
58642
|
-
props.
|
|
58643
|
-
|
|
58644
|
-
|
|
58645
|
-
|
|
58646
|
-
props.
|
|
58647
|
+
if (typeof props.percentagePosition !== "number") {
|
|
58648
|
+
if (props.xPercentagePosition != void 0) {
|
|
58649
|
+
if (props.percentagePosition === void 0) {
|
|
58650
|
+
props.percentagePosition = { x: props.xPercentagePosition };
|
|
58651
|
+
delete props.xPercentagePosition;
|
|
58652
|
+
} else {
|
|
58653
|
+
props.percentagePosition.x = props.xPercentagePosition;
|
|
58654
|
+
delete props.xPercentagePosition;
|
|
58647
58655
|
}
|
|
58648
|
-
|
|
58649
|
-
|
|
58656
|
+
}
|
|
58657
|
+
if (props.yPercentagePosition != void 0) {
|
|
58658
|
+
if (props.percentagePosition === void 0) {
|
|
58659
|
+
props.percentagePosition = { y: props.yPercentagePosition };
|
|
58660
|
+
delete props.yPercentagePosition;
|
|
58661
|
+
} else {
|
|
58662
|
+
props.percentagePosition.y = props.yPercentagePosition;
|
|
58663
|
+
delete props.yPercentagePosition;
|
|
58650
58664
|
}
|
|
58651
58665
|
}
|
|
58652
58666
|
}
|
|
@@ -58688,12 +58702,15 @@ var Container2 = class extends Container {
|
|
|
58688
58702
|
this.setMemory(value);
|
|
58689
58703
|
}
|
|
58690
58704
|
async setMemory(value) {
|
|
58705
|
+
await this.importChildren(value);
|
|
58706
|
+
return await setMemoryContainer(this, value);
|
|
58707
|
+
}
|
|
58708
|
+
async importChildren(value) {
|
|
58691
58709
|
for (let i3 = 0; i3 < value.elements.length; i3++) {
|
|
58692
58710
|
let child = value.elements[i3];
|
|
58693
58711
|
let element = await importCanvasElement(child);
|
|
58694
58712
|
this.addChild(element);
|
|
58695
58713
|
}
|
|
58696
|
-
return await setMemoryContainer(this, value);
|
|
58697
58714
|
}
|
|
58698
58715
|
};
|
|
58699
58716
|
function getMemoryContainer(element) {
|
|
@@ -58785,10 +58802,10 @@ var ImageContainer = class extends Container2 {
|
|
|
58785
58802
|
if (options?.anchor !== void 0) {
|
|
58786
58803
|
this.anchor = options.anchor;
|
|
58787
58804
|
}
|
|
58788
|
-
if (options?.align !== void 0) {
|
|
58805
|
+
if (options && "align" in options && options?.align !== void 0) {
|
|
58789
58806
|
this.align = options.align;
|
|
58790
58807
|
}
|
|
58791
|
-
if (options?.percentagePosition !== void 0) {
|
|
58808
|
+
if (options && "percentagePosition" in options && options?.percentagePosition !== void 0) {
|
|
58792
58809
|
this.percentagePosition = options.percentagePosition;
|
|
58793
58810
|
}
|
|
58794
58811
|
}
|
|
@@ -58806,7 +58823,8 @@ var ImageContainer = class extends Container2 {
|
|
|
58806
58823
|
this.setMemory(value);
|
|
58807
58824
|
}
|
|
58808
58825
|
async setMemory(value) {
|
|
58809
|
-
await
|
|
58826
|
+
await this.importChildren(value);
|
|
58827
|
+
await setMemoryImageContainer(this, value);
|
|
58810
58828
|
this.reloadAnchor();
|
|
58811
58829
|
this.reloadPosition();
|
|
58812
58830
|
}
|
|
@@ -58980,11 +58998,13 @@ var ImageContainer = class extends Container2 {
|
|
|
58980
58998
|
}
|
|
58981
58999
|
};
|
|
58982
59000
|
async function setMemoryImageContainer(element, memory, opstions) {
|
|
59001
|
+
memory = analizePositionsExtensionProps(memory);
|
|
58983
59002
|
setMemoryContainer(element, memory, {
|
|
58984
59003
|
...opstions,
|
|
58985
59004
|
end: async () => {
|
|
58986
59005
|
"anchor" in memory && memory.anchor !== void 0 && (element.anchor = memory.anchor);
|
|
58987
59006
|
"align" in memory && memory.align !== void 0 && (element.align = memory.align);
|
|
59007
|
+
"percentagePosition" in memory && memory.percentagePosition !== void 0 && (element.percentagePosition = memory.percentagePosition);
|
|
58988
59008
|
if ("loadIsStarted" in memory && memory.loadIsStarted) {
|
|
58989
59009
|
await element.load();
|
|
58990
59010
|
}
|
|
@@ -60349,9 +60369,8 @@ var customPositionTest = newLabel("___pixi_vn_images_custom_position_test___", [
|
|
|
60349
60369
|
- ${skullyName} will be added with the anchor set to 0.5 and align set to 0.25.`
|
|
60350
60370
|
};
|
|
60351
60371
|
canvas.removeAll();
|
|
60352
|
-
let container =
|
|
60353
|
-
container
|
|
60354
|
-
container.align = 0.5;
|
|
60372
|
+
let container = new ImageContainer({ anchor: 0.5, align: 0.5 }, [eggHeadImage, flowerTopImage]);
|
|
60373
|
+
canvas.add("container", container);
|
|
60355
60374
|
let helmlok = addImage("helmlok", helmlokImage);
|
|
60356
60375
|
helmlok.anchor = 0.5;
|
|
60357
60376
|
helmlok.xAlign = 1;
|
|
@@ -60811,6 +60830,7 @@ var ImageSprite = class _ImageSprite extends Sprite2 {
|
|
|
60811
60830
|
pixivnId = CANVAS_IMAGE_ID;
|
|
60812
60831
|
constructor(options, textureAlias) {
|
|
60813
60832
|
super(options);
|
|
60833
|
+
options = analizePositionsExtensionProps(options);
|
|
60814
60834
|
if (textureAlias) {
|
|
60815
60835
|
this.textureAlias = textureAlias;
|
|
60816
60836
|
}
|
|
@@ -60834,7 +60854,7 @@ var ImageSprite = class _ImageSprite extends Sprite2 {
|
|
|
60834
60854
|
this.setMemory(value);
|
|
60835
60855
|
}
|
|
60836
60856
|
async setMemory(value) {
|
|
60837
|
-
await
|
|
60857
|
+
await setMemoryImageSprite(this, value);
|
|
60838
60858
|
this.reloadPosition();
|
|
60839
60859
|
}
|
|
60840
60860
|
static from(source7, skipCache) {
|
|
@@ -60971,9 +60991,11 @@ var ImageSprite = class _ImageSprite extends Sprite2 {
|
|
|
60971
60991
|
}
|
|
60972
60992
|
};
|
|
60973
60993
|
async function setMemoryImageSprite(element, memory) {
|
|
60994
|
+
memory = analizePositionsExtensionProps(memory);
|
|
60974
60995
|
return await setMemorySprite(element, memory, {
|
|
60975
60996
|
half: async () => {
|
|
60976
60997
|
"align" in memory && memory.align !== void 0 && (element.align = memory.align);
|
|
60998
|
+
"percentagePosition" in memory && memory.percentagePosition !== void 0 && (element.percentagePosition = memory.percentagePosition);
|
|
60977
60999
|
"imageLink" in memory && memory.imageLink !== void 0 && (element.textureAlias = memory.imageLink);
|
|
60978
61000
|
if ("loadIsStarted" in memory && memory.loadIsStarted) {
|
|
60979
61001
|
await element.load();
|
|
@@ -62706,7 +62728,6 @@ var CanvasManager = class {
|
|
|
62706
62728
|
* @param data The object.
|
|
62707
62729
|
*/
|
|
62708
62730
|
async import(data) {
|
|
62709
|
-
this.clear();
|
|
62710
62731
|
try {
|
|
62711
62732
|
let tickersOnPause = data["tickersOnPause"] || {};
|
|
62712
62733
|
if (data.hasOwnProperty("elementAliasesOrder") && data.hasOwnProperty("elements")) {
|
|
@@ -62714,6 +62735,7 @@ var CanvasManager = class {
|
|
|
62714
62735
|
let elementAliasesOrder = data["elementAliasesOrder"];
|
|
62715
62736
|
let promises = elementAliasesOrder.filter((alias) => currentElements[alias]).map((alias) => importCanvasElement(currentElements[alias]));
|
|
62716
62737
|
let list = await Promise.all(promises);
|
|
62738
|
+
this.clear();
|
|
62717
62739
|
list.forEach((element, i3) => {
|
|
62718
62740
|
let alias = elementAliasesOrder[i3];
|
|
62719
62741
|
this.add(alias, element);
|