@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
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
newLabel,
|
|
4
4
|
registeredLabels,
|
|
5
5
|
saveLabel
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-NB4Q3GFK.js";
|
|
7
7
|
import "../chunk-OMPJ74CO.js";
|
|
8
8
|
import "../chunk-2JGQWY5I.js";
|
|
9
9
|
import "../chunk-2BUPSB7O.js";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-IRUKNG2Y.js";
|
|
11
11
|
import "../chunk-6GJXIPNB.js";
|
|
12
12
|
import "../chunk-I6TNJEE3.js";
|
|
13
13
|
import "../chunk-DPUSONJ3.js";
|
|
@@ -24,7 +24,7 @@ import "../chunk-ZBUW3MBH.js";
|
|
|
24
24
|
import "../chunk-PIYIZHZL.js";
|
|
25
25
|
import "../chunk-B7XQM2BB.js";
|
|
26
26
|
import "../chunk-LEMOIFSV.js";
|
|
27
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-TOG67Z7Q.js";
|
|
28
28
|
import "../chunk-WS3FY4Q6.js";
|
|
29
29
|
import "../chunk-Z3NBKYVU.js";
|
|
30
30
|
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";
|
|
@@ -57867,29 +57867,43 @@ function analizePositionsExtensionProps(props) {
|
|
|
57867
57867
|
if (!props) {
|
|
57868
57868
|
return props;
|
|
57869
57869
|
}
|
|
57870
|
-
if (props.align
|
|
57871
|
-
if (
|
|
57872
|
-
props.
|
|
57873
|
-
|
|
57874
|
-
|
|
57875
|
-
|
|
57876
|
-
props.
|
|
57870
|
+
if (typeof props.align !== "number") {
|
|
57871
|
+
if (props.xAlign != void 0) {
|
|
57872
|
+
if (props.align === void 0) {
|
|
57873
|
+
props.align = { x: props.xAlign };
|
|
57874
|
+
delete props.xAlign;
|
|
57875
|
+
} else {
|
|
57876
|
+
props.align.x = props.xAlign;
|
|
57877
|
+
delete props.xAlign;
|
|
57877
57878
|
}
|
|
57878
|
-
|
|
57879
|
-
|
|
57879
|
+
}
|
|
57880
|
+
if (props.yAlign != void 0) {
|
|
57881
|
+
if (props.align === void 0) {
|
|
57882
|
+
props.align = { y: props.yAlign };
|
|
57883
|
+
delete props.yAlign;
|
|
57884
|
+
} else {
|
|
57885
|
+
props.align.y = props.yAlign;
|
|
57886
|
+
delete props.yAlign;
|
|
57880
57887
|
}
|
|
57881
57888
|
}
|
|
57882
57889
|
}
|
|
57883
|
-
if (props.percentagePosition
|
|
57884
|
-
if (
|
|
57885
|
-
props.
|
|
57886
|
-
|
|
57887
|
-
|
|
57888
|
-
|
|
57889
|
-
props.
|
|
57890
|
+
if (typeof props.percentagePosition !== "number") {
|
|
57891
|
+
if (props.xPercentagePosition != void 0) {
|
|
57892
|
+
if (props.percentagePosition === void 0) {
|
|
57893
|
+
props.percentagePosition = { x: props.xPercentagePosition };
|
|
57894
|
+
delete props.xPercentagePosition;
|
|
57895
|
+
} else {
|
|
57896
|
+
props.percentagePosition.x = props.xPercentagePosition;
|
|
57897
|
+
delete props.xPercentagePosition;
|
|
57890
57898
|
}
|
|
57891
|
-
|
|
57892
|
-
|
|
57899
|
+
}
|
|
57900
|
+
if (props.yPercentagePosition != void 0) {
|
|
57901
|
+
if (props.percentagePosition === void 0) {
|
|
57902
|
+
props.percentagePosition = { y: props.yPercentagePosition };
|
|
57903
|
+
delete props.yPercentagePosition;
|
|
57904
|
+
} else {
|
|
57905
|
+
props.percentagePosition.y = props.yPercentagePosition;
|
|
57906
|
+
delete props.yPercentagePosition;
|
|
57893
57907
|
}
|
|
57894
57908
|
}
|
|
57895
57909
|
}
|
|
@@ -57931,12 +57945,15 @@ var Container2 = class extends Container {
|
|
|
57931
57945
|
this.setMemory(value);
|
|
57932
57946
|
}
|
|
57933
57947
|
async setMemory(value) {
|
|
57948
|
+
await this.importChildren(value);
|
|
57949
|
+
return await setMemoryContainer(this, value);
|
|
57950
|
+
}
|
|
57951
|
+
async importChildren(value) {
|
|
57934
57952
|
for (let i3 = 0; i3 < value.elements.length; i3++) {
|
|
57935
57953
|
let child = value.elements[i3];
|
|
57936
57954
|
let element = await importCanvasElement(child);
|
|
57937
57955
|
this.addChild(element);
|
|
57938
57956
|
}
|
|
57939
|
-
return await setMemoryContainer(this, value);
|
|
57940
57957
|
}
|
|
57941
57958
|
};
|
|
57942
57959
|
function getMemoryContainer(element) {
|
|
@@ -58028,10 +58045,10 @@ var ImageContainer = class extends Container2 {
|
|
|
58028
58045
|
if (options?.anchor !== void 0) {
|
|
58029
58046
|
this.anchor = options.anchor;
|
|
58030
58047
|
}
|
|
58031
|
-
if (options?.align !== void 0) {
|
|
58048
|
+
if (options && "align" in options && options?.align !== void 0) {
|
|
58032
58049
|
this.align = options.align;
|
|
58033
58050
|
}
|
|
58034
|
-
if (options?.percentagePosition !== void 0) {
|
|
58051
|
+
if (options && "percentagePosition" in options && options?.percentagePosition !== void 0) {
|
|
58035
58052
|
this.percentagePosition = options.percentagePosition;
|
|
58036
58053
|
}
|
|
58037
58054
|
}
|
|
@@ -58049,7 +58066,8 @@ var ImageContainer = class extends Container2 {
|
|
|
58049
58066
|
this.setMemory(value);
|
|
58050
58067
|
}
|
|
58051
58068
|
async setMemory(value) {
|
|
58052
|
-
await
|
|
58069
|
+
await this.importChildren(value);
|
|
58070
|
+
await setMemoryImageContainer(this, value);
|
|
58053
58071
|
this.reloadAnchor();
|
|
58054
58072
|
this.reloadPosition();
|
|
58055
58073
|
}
|
|
@@ -58223,11 +58241,13 @@ var ImageContainer = class extends Container2 {
|
|
|
58223
58241
|
}
|
|
58224
58242
|
};
|
|
58225
58243
|
async function setMemoryImageContainer(element, memory, opstions) {
|
|
58244
|
+
memory = analizePositionsExtensionProps(memory);
|
|
58226
58245
|
setMemoryContainer(element, memory, {
|
|
58227
58246
|
...opstions,
|
|
58228
58247
|
end: async () => {
|
|
58229
58248
|
"anchor" in memory && memory.anchor !== void 0 && (element.anchor = memory.anchor);
|
|
58230
58249
|
"align" in memory && memory.align !== void 0 && (element.align = memory.align);
|
|
58250
|
+
"percentagePosition" in memory && memory.percentagePosition !== void 0 && (element.percentagePosition = memory.percentagePosition);
|
|
58231
58251
|
if ("loadIsStarted" in memory && memory.loadIsStarted) {
|
|
58232
58252
|
await element.load();
|
|
58233
58253
|
}
|
|
@@ -59769,7 +59789,6 @@ var CanvasManager = class {
|
|
|
59769
59789
|
* @param data The object.
|
|
59770
59790
|
*/
|
|
59771
59791
|
async import(data) {
|
|
59772
|
-
this.clear();
|
|
59773
59792
|
try {
|
|
59774
59793
|
let tickersOnPause = data["tickersOnPause"] || {};
|
|
59775
59794
|
if (data.hasOwnProperty("elementAliasesOrder") && data.hasOwnProperty("elements")) {
|
|
@@ -59777,6 +59796,7 @@ var CanvasManager = class {
|
|
|
59777
59796
|
let elementAliasesOrder = data["elementAliasesOrder"];
|
|
59778
59797
|
let promises = elementAliasesOrder.filter((alias) => currentElements[alias]).map((alias) => importCanvasElement(currentElements[alias]));
|
|
59779
59798
|
let list = await Promise.all(promises);
|
|
59799
|
+
this.clear();
|
|
59780
59800
|
list.forEach((element, i3) => {
|
|
59781
59801
|
let alias = elementAliasesOrder[i3];
|
|
59782
59802
|
this.add(alias, element);
|
|
@@ -63310,9 +63330,8 @@ var customPositionTest = newLabel("___pixi_vn_images_custom_position_test___", [
|
|
|
63310
63330
|
- ${skullyName} will be added with the anchor set to 0.5 and align set to 0.25.`
|
|
63311
63331
|
};
|
|
63312
63332
|
canvas.removeAll();
|
|
63313
|
-
let container =
|
|
63314
|
-
container
|
|
63315
|
-
container.align = 0.5;
|
|
63333
|
+
let container = new ImageContainer({ anchor: 0.5, align: 0.5 }, [eggHeadImage, flowerTopImage]);
|
|
63334
|
+
canvas.add("container", container);
|
|
63316
63335
|
let helmlok = addImage("helmlok", helmlokImage);
|
|
63317
63336
|
helmlok.anchor = 0.5;
|
|
63318
63337
|
helmlok.xAlign = 1;
|
|
@@ -63623,6 +63642,7 @@ var ImageSprite = class _ImageSprite extends Sprite2 {
|
|
|
63623
63642
|
pixivnId = CANVAS_IMAGE_ID;
|
|
63624
63643
|
constructor(options, textureAlias) {
|
|
63625
63644
|
super(options);
|
|
63645
|
+
options = analizePositionsExtensionProps(options);
|
|
63626
63646
|
if (textureAlias) {
|
|
63627
63647
|
this.textureAlias = textureAlias;
|
|
63628
63648
|
}
|
|
@@ -63646,7 +63666,7 @@ var ImageSprite = class _ImageSprite extends Sprite2 {
|
|
|
63646
63666
|
this.setMemory(value);
|
|
63647
63667
|
}
|
|
63648
63668
|
async setMemory(value) {
|
|
63649
|
-
await
|
|
63669
|
+
await setMemoryImageSprite(this, value);
|
|
63650
63670
|
this.reloadPosition();
|
|
63651
63671
|
}
|
|
63652
63672
|
static from(source7, skipCache) {
|
|
@@ -63783,9 +63803,11 @@ var ImageSprite = class _ImageSprite extends Sprite2 {
|
|
|
63783
63803
|
}
|
|
63784
63804
|
};
|
|
63785
63805
|
async function setMemoryImageSprite(element, memory) {
|
|
63806
|
+
memory = analizePositionsExtensionProps(memory);
|
|
63786
63807
|
return await setMemorySprite(element, memory, {
|
|
63787
63808
|
half: async () => {
|
|
63788
63809
|
"align" in memory && memory.align !== void 0 && (element.align = memory.align);
|
|
63810
|
+
"percentagePosition" in memory && memory.percentagePosition !== void 0 && (element.percentagePosition = memory.percentagePosition);
|
|
63789
63811
|
"imageLink" in memory && memory.imageLink !== void 0 && (element.textureAlias = memory.imageLink);
|
|
63790
63812
|
if ("loadIsStarted" in memory && memory.loadIsStarted) {
|
|
63791
63813
|
await element.load();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
shakeEffect
|
|
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";
|
|
@@ -57721,7 +57721,7 @@ extensions.add(soundAsset);
|
|
|
57721
57721
|
var sound = setInstance(new SoundLibrary());
|
|
57722
57722
|
|
|
57723
57723
|
// package.json
|
|
57724
|
-
var version = "0.9.
|
|
57724
|
+
var version = "0.9.7";
|
|
57725
57725
|
|
|
57726
57726
|
// src/constants.ts
|
|
57727
57727
|
var Repeat = "repeat";
|
|
@@ -58065,12 +58065,15 @@ var Container3 = class extends Container {
|
|
|
58065
58065
|
this.setMemory(value);
|
|
58066
58066
|
}
|
|
58067
58067
|
async setMemory(value) {
|
|
58068
|
+
await this.importChildren(value);
|
|
58069
|
+
return await setMemoryContainer(this, value);
|
|
58070
|
+
}
|
|
58071
|
+
async importChildren(value) {
|
|
58068
58072
|
for (let i3 = 0; i3 < value.elements.length; i3++) {
|
|
58069
58073
|
let child = value.elements[i3];
|
|
58070
58074
|
let element = await importCanvasElement(child);
|
|
58071
58075
|
this.addChild(element);
|
|
58072
58076
|
}
|
|
58073
|
-
return await setMemoryContainer(this, value);
|
|
58074
58077
|
}
|
|
58075
58078
|
};
|
|
58076
58079
|
function getMemoryContainer(element) {
|
|
@@ -58158,29 +58161,43 @@ function analizePositionsExtensionProps(props) {
|
|
|
58158
58161
|
if (!props) {
|
|
58159
58162
|
return props;
|
|
58160
58163
|
}
|
|
58161
|
-
if (props.align
|
|
58162
|
-
if (
|
|
58163
|
-
props.
|
|
58164
|
-
|
|
58165
|
-
|
|
58166
|
-
|
|
58167
|
-
props.
|
|
58164
|
+
if (typeof props.align !== "number") {
|
|
58165
|
+
if (props.xAlign != void 0) {
|
|
58166
|
+
if (props.align === void 0) {
|
|
58167
|
+
props.align = { x: props.xAlign };
|
|
58168
|
+
delete props.xAlign;
|
|
58169
|
+
} else {
|
|
58170
|
+
props.align.x = props.xAlign;
|
|
58171
|
+
delete props.xAlign;
|
|
58168
58172
|
}
|
|
58169
|
-
|
|
58170
|
-
|
|
58173
|
+
}
|
|
58174
|
+
if (props.yAlign != void 0) {
|
|
58175
|
+
if (props.align === void 0) {
|
|
58176
|
+
props.align = { y: props.yAlign };
|
|
58177
|
+
delete props.yAlign;
|
|
58178
|
+
} else {
|
|
58179
|
+
props.align.y = props.yAlign;
|
|
58180
|
+
delete props.yAlign;
|
|
58171
58181
|
}
|
|
58172
58182
|
}
|
|
58173
58183
|
}
|
|
58174
|
-
if (props.percentagePosition
|
|
58175
|
-
if (
|
|
58176
|
-
props.
|
|
58177
|
-
|
|
58178
|
-
|
|
58179
|
-
|
|
58180
|
-
props.
|
|
58184
|
+
if (typeof props.percentagePosition !== "number") {
|
|
58185
|
+
if (props.xPercentagePosition != void 0) {
|
|
58186
|
+
if (props.percentagePosition === void 0) {
|
|
58187
|
+
props.percentagePosition = { x: props.xPercentagePosition };
|
|
58188
|
+
delete props.xPercentagePosition;
|
|
58189
|
+
} else {
|
|
58190
|
+
props.percentagePosition.x = props.xPercentagePosition;
|
|
58191
|
+
delete props.xPercentagePosition;
|
|
58181
58192
|
}
|
|
58182
|
-
|
|
58183
|
-
|
|
58193
|
+
}
|
|
58194
|
+
if (props.yPercentagePosition != void 0) {
|
|
58195
|
+
if (props.percentagePosition === void 0) {
|
|
58196
|
+
props.percentagePosition = { y: props.yPercentagePosition };
|
|
58197
|
+
delete props.yPercentagePosition;
|
|
58198
|
+
} else {
|
|
58199
|
+
props.percentagePosition.y = props.yPercentagePosition;
|
|
58200
|
+
delete props.yPercentagePosition;
|
|
58184
58201
|
}
|
|
58185
58202
|
}
|
|
58186
58203
|
}
|
|
@@ -58200,10 +58217,10 @@ var ImageContainer = class extends Container3 {
|
|
|
58200
58217
|
if (options?.anchor !== void 0) {
|
|
58201
58218
|
this.anchor = options.anchor;
|
|
58202
58219
|
}
|
|
58203
|
-
if (options?.align !== void 0) {
|
|
58220
|
+
if (options && "align" in options && options?.align !== void 0) {
|
|
58204
58221
|
this.align = options.align;
|
|
58205
58222
|
}
|
|
58206
|
-
if (options?.percentagePosition !== void 0) {
|
|
58223
|
+
if (options && "percentagePosition" in options && options?.percentagePosition !== void 0) {
|
|
58207
58224
|
this.percentagePosition = options.percentagePosition;
|
|
58208
58225
|
}
|
|
58209
58226
|
}
|
|
@@ -58221,7 +58238,8 @@ var ImageContainer = class extends Container3 {
|
|
|
58221
58238
|
this.setMemory(value);
|
|
58222
58239
|
}
|
|
58223
58240
|
async setMemory(value) {
|
|
58224
|
-
await
|
|
58241
|
+
await this.importChildren(value);
|
|
58242
|
+
await setMemoryImageContainer(this, value);
|
|
58225
58243
|
this.reloadAnchor();
|
|
58226
58244
|
this.reloadPosition();
|
|
58227
58245
|
}
|
|
@@ -58395,11 +58413,13 @@ var ImageContainer = class extends Container3 {
|
|
|
58395
58413
|
}
|
|
58396
58414
|
};
|
|
58397
58415
|
async function setMemoryImageContainer(element, memory, opstions) {
|
|
58416
|
+
memory = analizePositionsExtensionProps(memory);
|
|
58398
58417
|
setMemoryContainer(element, memory, {
|
|
58399
58418
|
...opstions,
|
|
58400
58419
|
end: async () => {
|
|
58401
58420
|
"anchor" in memory && memory.anchor !== void 0 && (element.anchor = memory.anchor);
|
|
58402
58421
|
"align" in memory && memory.align !== void 0 && (element.align = memory.align);
|
|
58422
|
+
"percentagePosition" in memory && memory.percentagePosition !== void 0 && (element.percentagePosition = memory.percentagePosition);
|
|
58403
58423
|
if ("loadIsStarted" in memory && memory.loadIsStarted) {
|
|
58404
58424
|
await element.load();
|
|
58405
58425
|
}
|
|
@@ -60385,7 +60405,6 @@ var CanvasManager = class {
|
|
|
60385
60405
|
* @param data The object.
|
|
60386
60406
|
*/
|
|
60387
60407
|
async import(data) {
|
|
60388
|
-
this.clear();
|
|
60389
60408
|
try {
|
|
60390
60409
|
let tickersOnPause = data["tickersOnPause"] || {};
|
|
60391
60410
|
if (data.hasOwnProperty("elementAliasesOrder") && data.hasOwnProperty("elements")) {
|
|
@@ -60393,6 +60412,7 @@ var CanvasManager = class {
|
|
|
60393
60412
|
let elementAliasesOrder = data["elementAliasesOrder"];
|
|
60394
60413
|
let promises = elementAliasesOrder.filter((alias) => currentElements[alias]).map((alias) => importCanvasElement(currentElements[alias]));
|
|
60395
60414
|
let list = await Promise.all(promises);
|
|
60415
|
+
this.clear();
|
|
60396
60416
|
list.forEach((element, i3) => {
|
|
60397
60417
|
let alias = elementAliasesOrder[i3];
|
|
60398
60418
|
this.add(alias, element);
|
|
@@ -63790,9 +63810,8 @@ var customPositionTest = newLabel("___pixi_vn_images_custom_position_test___", [
|
|
|
63790
63810
|
- ${skullyName} will be added with the anchor set to 0.5 and align set to 0.25.`
|
|
63791
63811
|
};
|
|
63792
63812
|
canvas.removeAll();
|
|
63793
|
-
let container =
|
|
63794
|
-
container
|
|
63795
|
-
container.align = 0.5;
|
|
63813
|
+
let container = new ImageContainer({ anchor: 0.5, align: 0.5 }, [eggHeadImage, flowerTopImage]);
|
|
63814
|
+
canvas.add("container", container);
|
|
63796
63815
|
let helmlok = addImage("helmlok", helmlokImage);
|
|
63797
63816
|
helmlok.anchor = 0.5;
|
|
63798
63817
|
helmlok.xAlign = 1;
|
|
@@ -64103,6 +64122,7 @@ var ImageSprite = class _ImageSprite extends Sprite2 {
|
|
|
64103
64122
|
pixivnId = CANVAS_IMAGE_ID;
|
|
64104
64123
|
constructor(options, textureAlias) {
|
|
64105
64124
|
super(options);
|
|
64125
|
+
options = analizePositionsExtensionProps(options);
|
|
64106
64126
|
if (textureAlias) {
|
|
64107
64127
|
this.textureAlias = textureAlias;
|
|
64108
64128
|
}
|
|
@@ -64126,7 +64146,7 @@ var ImageSprite = class _ImageSprite extends Sprite2 {
|
|
|
64126
64146
|
this.setMemory(value);
|
|
64127
64147
|
}
|
|
64128
64148
|
async setMemory(value) {
|
|
64129
|
-
await
|
|
64149
|
+
await setMemoryImageSprite(this, value);
|
|
64130
64150
|
this.reloadPosition();
|
|
64131
64151
|
}
|
|
64132
64152
|
static from(source7, skipCache) {
|
|
@@ -64263,9 +64283,11 @@ var ImageSprite = class _ImageSprite extends Sprite2 {
|
|
|
64263
64283
|
}
|
|
64264
64284
|
};
|
|
64265
64285
|
async function setMemoryImageSprite(element, memory) {
|
|
64286
|
+
memory = analizePositionsExtensionProps(memory);
|
|
64266
64287
|
return await setMemorySprite(element, memory, {
|
|
64267
64288
|
half: async () => {
|
|
64268
64289
|
"align" in memory && memory.align !== void 0 && (element.align = memory.align);
|
|
64290
|
+
"percentagePosition" in memory && memory.percentagePosition !== void 0 && (element.percentagePosition = memory.percentagePosition);
|
|
64269
64291
|
"imageLink" in memory && memory.imageLink !== void 0 && (element.textureAlias = memory.imageLink);
|
|
64270
64292
|
if ("loadIsStarted" in memory && memory.loadIsStarted) {
|
|
64271
64293
|
await element.load();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as CanvasBaseItem, a as CanvasBaseItemMemory } from '../../ContainerChild-
|
|
1
|
+
import { C as CanvasBaseItem, a as CanvasBaseItemMemory } from '../../ContainerChild-WzyxEjAc.cjs';
|
|
2
2
|
import 'pixi.js';
|
|
3
|
-
import '../../interface/canvas/TextureMemory.cjs';
|
|
4
3
|
import '../../classes/canvas/AdditionalPositions.cjs';
|
|
4
|
+
import '../../interface/canvas/TextureMemory.cjs';
|
|
5
5
|
import '../../classes/canvas/AnchorExtension.cjs';
|
|
6
6
|
import '../../types/CanvasEventNamesType.cjs';
|
|
7
7
|
import '../../classes/CanvasEvent.cjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as CanvasBaseItem, a as CanvasBaseItemMemory } from '../../ContainerChild-
|
|
1
|
+
import { C as CanvasBaseItem, a as CanvasBaseItemMemory } from '../../ContainerChild-B5yD0BI8.js';
|
|
2
2
|
import 'pixi.js';
|
|
3
|
-
import '../../interface/canvas/TextureMemory.js';
|
|
4
3
|
import '../../classes/canvas/AdditionalPositions.js';
|
|
4
|
+
import '../../interface/canvas/TextureMemory.js';
|
|
5
5
|
import '../../classes/canvas/AnchorExtension.js';
|
|
6
6
|
import '../../types/CanvasEventNamesType.js';
|
|
7
7
|
import '../../classes/CanvasEvent.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exportCanvasElement,
|
|
3
3
|
importCanvasElement
|
|
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";
|
|
@@ -57729,7 +57729,7 @@ extensions.add(soundAsset);
|
|
|
57729
57729
|
var sound = setInstance(new SoundLibrary());
|
|
57730
57730
|
|
|
57731
57731
|
// package.json
|
|
57732
|
-
var version = "0.9.
|
|
57732
|
+
var version = "0.9.7";
|
|
57733
57733
|
|
|
57734
57734
|
// src/constants.ts
|
|
57735
57735
|
var Repeat = "repeat";
|
|
@@ -58133,12 +58133,15 @@ var Container2 = class extends Container {
|
|
|
58133
58133
|
this.setMemory(value);
|
|
58134
58134
|
}
|
|
58135
58135
|
async setMemory(value) {
|
|
58136
|
+
await this.importChildren(value);
|
|
58137
|
+
return await setMemoryContainer(this, value);
|
|
58138
|
+
}
|
|
58139
|
+
async importChildren(value) {
|
|
58136
58140
|
for (let i3 = 0; i3 < value.elements.length; i3++) {
|
|
58137
58141
|
let child = value.elements[i3];
|
|
58138
58142
|
let element = await importCanvasElement(child);
|
|
58139
58143
|
this.addChild(element);
|
|
58140
58144
|
}
|
|
58141
|
-
return await setMemoryContainer(this, value);
|
|
58142
58145
|
}
|
|
58143
58146
|
};
|
|
58144
58147
|
function getMemoryContainer(element) {
|
|
@@ -58226,29 +58229,43 @@ function analizePositionsExtensionProps(props) {
|
|
|
58226
58229
|
if (!props) {
|
|
58227
58230
|
return props;
|
|
58228
58231
|
}
|
|
58229
|
-
if (props.align
|
|
58230
|
-
if (
|
|
58231
|
-
props.
|
|
58232
|
-
|
|
58233
|
-
|
|
58234
|
-
|
|
58235
|
-
props.
|
|
58232
|
+
if (typeof props.align !== "number") {
|
|
58233
|
+
if (props.xAlign != void 0) {
|
|
58234
|
+
if (props.align === void 0) {
|
|
58235
|
+
props.align = { x: props.xAlign };
|
|
58236
|
+
delete props.xAlign;
|
|
58237
|
+
} else {
|
|
58238
|
+
props.align.x = props.xAlign;
|
|
58239
|
+
delete props.xAlign;
|
|
58236
58240
|
}
|
|
58237
|
-
|
|
58238
|
-
|
|
58241
|
+
}
|
|
58242
|
+
if (props.yAlign != void 0) {
|
|
58243
|
+
if (props.align === void 0) {
|
|
58244
|
+
props.align = { y: props.yAlign };
|
|
58245
|
+
delete props.yAlign;
|
|
58246
|
+
} else {
|
|
58247
|
+
props.align.y = props.yAlign;
|
|
58248
|
+
delete props.yAlign;
|
|
58239
58249
|
}
|
|
58240
58250
|
}
|
|
58241
58251
|
}
|
|
58242
|
-
if (props.percentagePosition
|
|
58243
|
-
if (
|
|
58244
|
-
props.
|
|
58245
|
-
|
|
58246
|
-
|
|
58247
|
-
|
|
58248
|
-
props.
|
|
58252
|
+
if (typeof props.percentagePosition !== "number") {
|
|
58253
|
+
if (props.xPercentagePosition != void 0) {
|
|
58254
|
+
if (props.percentagePosition === void 0) {
|
|
58255
|
+
props.percentagePosition = { x: props.xPercentagePosition };
|
|
58256
|
+
delete props.xPercentagePosition;
|
|
58257
|
+
} else {
|
|
58258
|
+
props.percentagePosition.x = props.xPercentagePosition;
|
|
58259
|
+
delete props.xPercentagePosition;
|
|
58249
58260
|
}
|
|
58250
|
-
|
|
58251
|
-
|
|
58261
|
+
}
|
|
58262
|
+
if (props.yPercentagePosition != void 0) {
|
|
58263
|
+
if (props.percentagePosition === void 0) {
|
|
58264
|
+
props.percentagePosition = { y: props.yPercentagePosition };
|
|
58265
|
+
delete props.yPercentagePosition;
|
|
58266
|
+
} else {
|
|
58267
|
+
props.percentagePosition.y = props.yPercentagePosition;
|
|
58268
|
+
delete props.yPercentagePosition;
|
|
58252
58269
|
}
|
|
58253
58270
|
}
|
|
58254
58271
|
}
|
|
@@ -58268,10 +58285,10 @@ var ImageContainer = class extends Container2 {
|
|
|
58268
58285
|
if (options?.anchor !== void 0) {
|
|
58269
58286
|
this.anchor = options.anchor;
|
|
58270
58287
|
}
|
|
58271
|
-
if (options?.align !== void 0) {
|
|
58288
|
+
if (options && "align" in options && options?.align !== void 0) {
|
|
58272
58289
|
this.align = options.align;
|
|
58273
58290
|
}
|
|
58274
|
-
if (options?.percentagePosition !== void 0) {
|
|
58291
|
+
if (options && "percentagePosition" in options && options?.percentagePosition !== void 0) {
|
|
58275
58292
|
this.percentagePosition = options.percentagePosition;
|
|
58276
58293
|
}
|
|
58277
58294
|
}
|
|
@@ -58289,7 +58306,8 @@ var ImageContainer = class extends Container2 {
|
|
|
58289
58306
|
this.setMemory(value);
|
|
58290
58307
|
}
|
|
58291
58308
|
async setMemory(value) {
|
|
58292
|
-
await
|
|
58309
|
+
await this.importChildren(value);
|
|
58310
|
+
await setMemoryImageContainer(this, value);
|
|
58293
58311
|
this.reloadAnchor();
|
|
58294
58312
|
this.reloadPosition();
|
|
58295
58313
|
}
|
|
@@ -58463,11 +58481,13 @@ var ImageContainer = class extends Container2 {
|
|
|
58463
58481
|
}
|
|
58464
58482
|
};
|
|
58465
58483
|
async function setMemoryImageContainer(element, memory, opstions) {
|
|
58484
|
+
memory = analizePositionsExtensionProps(memory);
|
|
58466
58485
|
setMemoryContainer(element, memory, {
|
|
58467
58486
|
...opstions,
|
|
58468
58487
|
end: async () => {
|
|
58469
58488
|
"anchor" in memory && memory.anchor !== void 0 && (element.anchor = memory.anchor);
|
|
58470
58489
|
"align" in memory && memory.align !== void 0 && (element.align = memory.align);
|
|
58490
|
+
"percentagePosition" in memory && memory.percentagePosition !== void 0 && (element.percentagePosition = memory.percentagePosition);
|
|
58471
58491
|
if ("loadIsStarted" in memory && memory.loadIsStarted) {
|
|
58472
58492
|
await element.load();
|
|
58473
58493
|
}
|
|
@@ -60037,7 +60057,6 @@ var CanvasManager = class {
|
|
|
60037
60057
|
* @param data The object.
|
|
60038
60058
|
*/
|
|
60039
60059
|
async import(data) {
|
|
60040
|
-
this.clear();
|
|
60041
60060
|
try {
|
|
60042
60061
|
let tickersOnPause = data["tickersOnPause"] || {};
|
|
60043
60062
|
if (data.hasOwnProperty("elementAliasesOrder") && data.hasOwnProperty("elements")) {
|
|
@@ -60045,6 +60064,7 @@ var CanvasManager = class {
|
|
|
60045
60064
|
let elementAliasesOrder = data["elementAliasesOrder"];
|
|
60046
60065
|
let promises = elementAliasesOrder.filter((alias) => currentElements[alias]).map((alias) => importCanvasElement(currentElements[alias]));
|
|
60047
60066
|
let list = await Promise.all(promises);
|
|
60067
|
+
this.clear();
|
|
60048
60068
|
list.forEach((element, i3) => {
|
|
60049
60069
|
let alias = elementAliasesOrder[i3];
|
|
60050
60070
|
this.add(alias, element);
|
|
@@ -63442,9 +63462,8 @@ var customPositionTest = newLabel("___pixi_vn_images_custom_position_test___", [
|
|
|
63442
63462
|
- ${skullyName} will be added with the anchor set to 0.5 and align set to 0.25.`
|
|
63443
63463
|
};
|
|
63444
63464
|
canvas.removeAll();
|
|
63445
|
-
let container =
|
|
63446
|
-
container
|
|
63447
|
-
container.align = 0.5;
|
|
63465
|
+
let container = new ImageContainer({ anchor: 0.5, align: 0.5 }, [eggHeadImage, flowerTopImage]);
|
|
63466
|
+
canvas.add("container", container);
|
|
63448
63467
|
let helmlok = addImage("helmlok", helmlokImage);
|
|
63449
63468
|
helmlok.anchor = 0.5;
|
|
63450
63469
|
helmlok.xAlign = 1;
|
|
@@ -63755,6 +63774,7 @@ var ImageSprite = class _ImageSprite extends Sprite2 {
|
|
|
63755
63774
|
pixivnId = CANVAS_IMAGE_ID;
|
|
63756
63775
|
constructor(options, textureAlias) {
|
|
63757
63776
|
super(options);
|
|
63777
|
+
options = analizePositionsExtensionProps(options);
|
|
63758
63778
|
if (textureAlias) {
|
|
63759
63779
|
this.textureAlias = textureAlias;
|
|
63760
63780
|
}
|
|
@@ -63778,7 +63798,7 @@ var ImageSprite = class _ImageSprite extends Sprite2 {
|
|
|
63778
63798
|
this.setMemory(value);
|
|
63779
63799
|
}
|
|
63780
63800
|
async setMemory(value) {
|
|
63781
|
-
await
|
|
63801
|
+
await setMemoryImageSprite(this, value);
|
|
63782
63802
|
this.reloadPosition();
|
|
63783
63803
|
}
|
|
63784
63804
|
static from(source7, skipCache) {
|
|
@@ -63915,9 +63935,11 @@ var ImageSprite = class _ImageSprite extends Sprite2 {
|
|
|
63915
63935
|
}
|
|
63916
63936
|
};
|
|
63917
63937
|
async function setMemoryImageSprite(element, memory) {
|
|
63938
|
+
memory = analizePositionsExtensionProps(memory);
|
|
63918
63939
|
return await setMemorySprite(element, memory, {
|
|
63919
63940
|
half: async () => {
|
|
63920
63941
|
"align" in memory && memory.align !== void 0 && (element.align = memory.align);
|
|
63942
|
+
"percentagePosition" in memory && memory.percentagePosition !== void 0 && (element.percentagePosition = memory.percentagePosition);
|
|
63921
63943
|
"imageLink" in memory && memory.imageLink !== void 0 && (element.textureAlias = memory.imageLink);
|
|
63922
63944
|
if ("loadIsStarted" in memory && memory.loadIsStarted) {
|
|
63923
63945
|
await element.load();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { UPDATE_PRIORITY } from 'pixi.js';
|
|
2
|
-
import { C as CanvasBaseItem } from '../../ContainerChild-
|
|
2
|
+
import { C as CanvasBaseItem } from '../../ContainerChild-WzyxEjAc.cjs';
|
|
3
3
|
import { ShowWithDissolveTransitionProps, ShowWithFadeTransitionProps, MoveInOutProps, ZoomInOutProps } from '../../interface/canvas/transition-props.cjs';
|
|
4
|
-
import '../../interface/canvas/TextureMemory.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 { UPDATE_PRIORITY } from 'pixi.js';
|
|
2
|
-
import { C as CanvasBaseItem } from '../../ContainerChild-
|
|
2
|
+
import { C as CanvasBaseItem } from '../../ContainerChild-B5yD0BI8.js';
|
|
3
3
|
import { ShowWithDissolveTransitionProps, ShowWithFadeTransitionProps, MoveInOutProps, ZoomInOutProps } from '../../interface/canvas/transition-props.js';
|
|
4
|
-
import '../../interface/canvas/TextureMemory.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';
|