@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
|
@@ -57725,7 +57725,7 @@ extensions.add(soundAsset);
|
|
|
57725
57725
|
var sound = setInstance(new SoundLibrary());
|
|
57726
57726
|
|
|
57727
57727
|
// package.json
|
|
57728
|
-
var version = "0.9.
|
|
57728
|
+
var version = "0.9.7";
|
|
57729
57729
|
|
|
57730
57730
|
// src/constants.ts
|
|
57731
57731
|
var Repeat = "repeat";
|
|
@@ -58050,12 +58050,15 @@ var Container2 = class extends Container {
|
|
|
58050
58050
|
this.setMemory(value);
|
|
58051
58051
|
}
|
|
58052
58052
|
async setMemory(value) {
|
|
58053
|
+
await this.importChildren(value);
|
|
58054
|
+
return await setMemoryContainer(this, value);
|
|
58055
|
+
}
|
|
58056
|
+
async importChildren(value) {
|
|
58053
58057
|
for (let i3 = 0; i3 < value.elements.length; i3++) {
|
|
58054
58058
|
let child = value.elements[i3];
|
|
58055
58059
|
let element = await importCanvasElement(child);
|
|
58056
58060
|
this.addChild(element);
|
|
58057
58061
|
}
|
|
58058
|
-
return await setMemoryContainer(this, value);
|
|
58059
58062
|
}
|
|
58060
58063
|
};
|
|
58061
58064
|
function getMemoryContainer(element) {
|
|
@@ -58143,29 +58146,43 @@ function analizePositionsExtensionProps(props) {
|
|
|
58143
58146
|
if (!props) {
|
|
58144
58147
|
return props;
|
|
58145
58148
|
}
|
|
58146
|
-
if (props.align
|
|
58147
|
-
if (
|
|
58148
|
-
props.
|
|
58149
|
-
|
|
58150
|
-
|
|
58151
|
-
|
|
58152
|
-
props.
|
|
58149
|
+
if (typeof props.align !== "number") {
|
|
58150
|
+
if (props.xAlign != void 0) {
|
|
58151
|
+
if (props.align === void 0) {
|
|
58152
|
+
props.align = { x: props.xAlign };
|
|
58153
|
+
delete props.xAlign;
|
|
58154
|
+
} else {
|
|
58155
|
+
props.align.x = props.xAlign;
|
|
58156
|
+
delete props.xAlign;
|
|
58153
58157
|
}
|
|
58154
|
-
|
|
58155
|
-
|
|
58158
|
+
}
|
|
58159
|
+
if (props.yAlign != void 0) {
|
|
58160
|
+
if (props.align === void 0) {
|
|
58161
|
+
props.align = { y: props.yAlign };
|
|
58162
|
+
delete props.yAlign;
|
|
58163
|
+
} else {
|
|
58164
|
+
props.align.y = props.yAlign;
|
|
58165
|
+
delete props.yAlign;
|
|
58156
58166
|
}
|
|
58157
58167
|
}
|
|
58158
58168
|
}
|
|
58159
|
-
if (props.percentagePosition
|
|
58160
|
-
if (
|
|
58161
|
-
props.
|
|
58162
|
-
|
|
58163
|
-
|
|
58164
|
-
|
|
58165
|
-
props.
|
|
58169
|
+
if (typeof props.percentagePosition !== "number") {
|
|
58170
|
+
if (props.xPercentagePosition != void 0) {
|
|
58171
|
+
if (props.percentagePosition === void 0) {
|
|
58172
|
+
props.percentagePosition = { x: props.xPercentagePosition };
|
|
58173
|
+
delete props.xPercentagePosition;
|
|
58174
|
+
} else {
|
|
58175
|
+
props.percentagePosition.x = props.xPercentagePosition;
|
|
58176
|
+
delete props.xPercentagePosition;
|
|
58166
58177
|
}
|
|
58167
|
-
|
|
58168
|
-
|
|
58178
|
+
}
|
|
58179
|
+
if (props.yPercentagePosition != void 0) {
|
|
58180
|
+
if (props.percentagePosition === void 0) {
|
|
58181
|
+
props.percentagePosition = { y: props.yPercentagePosition };
|
|
58182
|
+
delete props.yPercentagePosition;
|
|
58183
|
+
} else {
|
|
58184
|
+
props.percentagePosition.y = props.yPercentagePosition;
|
|
58185
|
+
delete props.yPercentagePosition;
|
|
58169
58186
|
}
|
|
58170
58187
|
}
|
|
58171
58188
|
}
|
|
@@ -58185,10 +58202,10 @@ var ImageContainer = class extends Container2 {
|
|
|
58185
58202
|
if (options?.anchor !== void 0) {
|
|
58186
58203
|
this.anchor = options.anchor;
|
|
58187
58204
|
}
|
|
58188
|
-
if (options?.align !== void 0) {
|
|
58205
|
+
if (options && "align" in options && options?.align !== void 0) {
|
|
58189
58206
|
this.align = options.align;
|
|
58190
58207
|
}
|
|
58191
|
-
if (options?.percentagePosition !== void 0) {
|
|
58208
|
+
if (options && "percentagePosition" in options && options?.percentagePosition !== void 0) {
|
|
58192
58209
|
this.percentagePosition = options.percentagePosition;
|
|
58193
58210
|
}
|
|
58194
58211
|
}
|
|
@@ -58206,7 +58223,8 @@ var ImageContainer = class extends Container2 {
|
|
|
58206
58223
|
this.setMemory(value);
|
|
58207
58224
|
}
|
|
58208
58225
|
async setMemory(value) {
|
|
58209
|
-
await
|
|
58226
|
+
await this.importChildren(value);
|
|
58227
|
+
await setMemoryImageContainer(this, value);
|
|
58210
58228
|
this.reloadAnchor();
|
|
58211
58229
|
this.reloadPosition();
|
|
58212
58230
|
}
|
|
@@ -58380,11 +58398,13 @@ var ImageContainer = class extends Container2 {
|
|
|
58380
58398
|
}
|
|
58381
58399
|
};
|
|
58382
58400
|
async function setMemoryImageContainer(element, memory, opstions) {
|
|
58401
|
+
memory = analizePositionsExtensionProps(memory);
|
|
58383
58402
|
setMemoryContainer(element, memory, {
|
|
58384
58403
|
...opstions,
|
|
58385
58404
|
end: async () => {
|
|
58386
58405
|
"anchor" in memory && memory.anchor !== void 0 && (element.anchor = memory.anchor);
|
|
58387
58406
|
"align" in memory && memory.align !== void 0 && (element.align = memory.align);
|
|
58407
|
+
"percentagePosition" in memory && memory.percentagePosition !== void 0 && (element.percentagePosition = memory.percentagePosition);
|
|
58388
58408
|
if ("loadIsStarted" in memory && memory.loadIsStarted) {
|
|
58389
58409
|
await element.load();
|
|
58390
58410
|
}
|
|
@@ -59808,7 +59828,6 @@ var CanvasManager = class {
|
|
|
59808
59828
|
* @param data The object.
|
|
59809
59829
|
*/
|
|
59810
59830
|
async import(data) {
|
|
59811
|
-
this.clear();
|
|
59812
59831
|
try {
|
|
59813
59832
|
let tickersOnPause = data["tickersOnPause"] || {};
|
|
59814
59833
|
if (data.hasOwnProperty("elementAliasesOrder") && data.hasOwnProperty("elements")) {
|
|
@@ -59816,6 +59835,7 @@ var CanvasManager = class {
|
|
|
59816
59835
|
let elementAliasesOrder = data["elementAliasesOrder"];
|
|
59817
59836
|
let promises = elementAliasesOrder.filter((alias) => currentElements[alias]).map((alias) => importCanvasElement(currentElements[alias]));
|
|
59818
59837
|
let list = await Promise.all(promises);
|
|
59838
|
+
this.clear();
|
|
59819
59839
|
list.forEach((element, i3) => {
|
|
59820
59840
|
let alias = elementAliasesOrder[i3];
|
|
59821
59841
|
this.add(alias, element);
|
|
@@ -64097,9 +64117,8 @@ var customPositionTest = newLabel("___pixi_vn_images_custom_position_test___", [
|
|
|
64097
64117
|
- ${skullyName} will be added with the anchor set to 0.5 and align set to 0.25.`
|
|
64098
64118
|
};
|
|
64099
64119
|
canvas.removeAll();
|
|
64100
|
-
let container =
|
|
64101
|
-
container
|
|
64102
|
-
container.align = 0.5;
|
|
64120
|
+
let container = new ImageContainer({ anchor: 0.5, align: 0.5 }, [eggHeadImage, flowerTopImage]);
|
|
64121
|
+
canvas.add("container", container);
|
|
64103
64122
|
let helmlok = addImage("helmlok", helmlokImage);
|
|
64104
64123
|
helmlok.anchor = 0.5;
|
|
64105
64124
|
helmlok.xAlign = 1;
|
|
@@ -64410,6 +64429,7 @@ var ImageSprite = class _ImageSprite extends Sprite2 {
|
|
|
64410
64429
|
pixivnId = CANVAS_IMAGE_ID;
|
|
64411
64430
|
constructor(options, textureAlias) {
|
|
64412
64431
|
super(options);
|
|
64432
|
+
options = analizePositionsExtensionProps(options);
|
|
64413
64433
|
if (textureAlias) {
|
|
64414
64434
|
this.textureAlias = textureAlias;
|
|
64415
64435
|
}
|
|
@@ -64433,7 +64453,7 @@ var ImageSprite = class _ImageSprite extends Sprite2 {
|
|
|
64433
64453
|
this.setMemory(value);
|
|
64434
64454
|
}
|
|
64435
64455
|
async setMemory(value) {
|
|
64436
|
-
await
|
|
64456
|
+
await setMemoryImageSprite(this, value);
|
|
64437
64457
|
this.reloadPosition();
|
|
64438
64458
|
}
|
|
64439
64459
|
static from(source7, skipCache) {
|
|
@@ -64570,9 +64590,11 @@ var ImageSprite = class _ImageSprite extends Sprite2 {
|
|
|
64570
64590
|
}
|
|
64571
64591
|
};
|
|
64572
64592
|
async function setMemoryImageSprite(element, memory) {
|
|
64593
|
+
memory = analizePositionsExtensionProps(memory);
|
|
64573
64594
|
return await setMemorySprite(element, memory, {
|
|
64574
64595
|
half: async () => {
|
|
64575
64596
|
"align" in memory && memory.align !== void 0 && (element.align = memory.align);
|
|
64597
|
+
"percentagePosition" in memory && memory.percentagePosition !== void 0 && (element.percentagePosition = memory.percentagePosition);
|
|
64576
64598
|
"imageLink" in memory && memory.imageLink !== void 0 && (element.textureAlias = memory.imageLink);
|
|
64577
64599
|
if ("loadIsStarted" in memory && memory.loadIsStarted) {
|
|
64578
64600
|
await element.load();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'pixi.js';
|
|
2
|
-
export { I as default, k as setMemoryImageSprite } from '../../ContainerChild-
|
|
2
|
+
export { I as default, k as setMemoryImageSprite } from '../../ContainerChild-WzyxEjAc.cjs';
|
|
3
3
|
import './AdditionalPositions.cjs';
|
|
4
4
|
import '../../interface/canvas/TextureMemory.cjs';
|
|
5
5
|
import './AnchorExtension.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'pixi.js';
|
|
2
|
-
export { I as default, k as setMemoryImageSprite } from '../../ContainerChild-
|
|
2
|
+
export { I as default, k as setMemoryImageSprite } from '../../ContainerChild-B5yD0BI8.js';
|
|
3
3
|
import './AdditionalPositions.js';
|
|
4
4
|
import '../../interface/canvas/TextureMemory.js';
|
|
5
5
|
import './AnchorExtension.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ImageSprite,
|
|
3
3
|
setMemoryImageSprite
|
|
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";
|
|
@@ -57720,7 +57720,7 @@ extensions.add(soundAsset);
|
|
|
57720
57720
|
var sound = setInstance(new SoundLibrary());
|
|
57721
57721
|
|
|
57722
57722
|
// package.json
|
|
57723
|
-
var version = "0.9.
|
|
57723
|
+
var version = "0.9.7";
|
|
57724
57724
|
|
|
57725
57725
|
// src/constants.ts
|
|
57726
57726
|
var Repeat = "repeat";
|
|
@@ -57942,12 +57942,15 @@ var Container2 = class extends Container {
|
|
|
57942
57942
|
this.setMemory(value);
|
|
57943
57943
|
}
|
|
57944
57944
|
async setMemory(value) {
|
|
57945
|
+
await this.importChildren(value);
|
|
57946
|
+
return await setMemoryContainer(this, value);
|
|
57947
|
+
}
|
|
57948
|
+
async importChildren(value) {
|
|
57945
57949
|
for (let i3 = 0; i3 < value.elements.length; i3++) {
|
|
57946
57950
|
let child = value.elements[i3];
|
|
57947
57951
|
let element = await importCanvasElement(child);
|
|
57948
57952
|
this.addChild(element);
|
|
57949
57953
|
}
|
|
57950
|
-
return await setMemoryContainer(this, value);
|
|
57951
57954
|
}
|
|
57952
57955
|
};
|
|
57953
57956
|
function getMemoryContainer(element) {
|
|
@@ -58035,29 +58038,43 @@ function analizePositionsExtensionProps(props) {
|
|
|
58035
58038
|
if (!props) {
|
|
58036
58039
|
return props;
|
|
58037
58040
|
}
|
|
58038
|
-
if (props.align
|
|
58039
|
-
if (
|
|
58040
|
-
props.
|
|
58041
|
-
|
|
58042
|
-
|
|
58043
|
-
|
|
58044
|
-
props.
|
|
58041
|
+
if (typeof props.align !== "number") {
|
|
58042
|
+
if (props.xAlign != void 0) {
|
|
58043
|
+
if (props.align === void 0) {
|
|
58044
|
+
props.align = { x: props.xAlign };
|
|
58045
|
+
delete props.xAlign;
|
|
58046
|
+
} else {
|
|
58047
|
+
props.align.x = props.xAlign;
|
|
58048
|
+
delete props.xAlign;
|
|
58045
58049
|
}
|
|
58046
|
-
|
|
58047
|
-
|
|
58050
|
+
}
|
|
58051
|
+
if (props.yAlign != void 0) {
|
|
58052
|
+
if (props.align === void 0) {
|
|
58053
|
+
props.align = { y: props.yAlign };
|
|
58054
|
+
delete props.yAlign;
|
|
58055
|
+
} else {
|
|
58056
|
+
props.align.y = props.yAlign;
|
|
58057
|
+
delete props.yAlign;
|
|
58048
58058
|
}
|
|
58049
58059
|
}
|
|
58050
58060
|
}
|
|
58051
|
-
if (props.percentagePosition
|
|
58052
|
-
if (
|
|
58053
|
-
props.
|
|
58054
|
-
|
|
58055
|
-
|
|
58056
|
-
|
|
58057
|
-
props.
|
|
58061
|
+
if (typeof props.percentagePosition !== "number") {
|
|
58062
|
+
if (props.xPercentagePosition != void 0) {
|
|
58063
|
+
if (props.percentagePosition === void 0) {
|
|
58064
|
+
props.percentagePosition = { x: props.xPercentagePosition };
|
|
58065
|
+
delete props.xPercentagePosition;
|
|
58066
|
+
} else {
|
|
58067
|
+
props.percentagePosition.x = props.xPercentagePosition;
|
|
58068
|
+
delete props.xPercentagePosition;
|
|
58058
58069
|
}
|
|
58059
|
-
|
|
58060
|
-
|
|
58070
|
+
}
|
|
58071
|
+
if (props.yPercentagePosition != void 0) {
|
|
58072
|
+
if (props.percentagePosition === void 0) {
|
|
58073
|
+
props.percentagePosition = { y: props.yPercentagePosition };
|
|
58074
|
+
delete props.yPercentagePosition;
|
|
58075
|
+
} else {
|
|
58076
|
+
props.percentagePosition.y = props.yPercentagePosition;
|
|
58077
|
+
delete props.yPercentagePosition;
|
|
58061
58078
|
}
|
|
58062
58079
|
}
|
|
58063
58080
|
}
|
|
@@ -58077,10 +58094,10 @@ var ImageContainer = class extends Container2 {
|
|
|
58077
58094
|
if (options?.anchor !== void 0) {
|
|
58078
58095
|
this.anchor = options.anchor;
|
|
58079
58096
|
}
|
|
58080
|
-
if (options?.align !== void 0) {
|
|
58097
|
+
if (options && "align" in options && options?.align !== void 0) {
|
|
58081
58098
|
this.align = options.align;
|
|
58082
58099
|
}
|
|
58083
|
-
if (options?.percentagePosition !== void 0) {
|
|
58100
|
+
if (options && "percentagePosition" in options && options?.percentagePosition !== void 0) {
|
|
58084
58101
|
this.percentagePosition = options.percentagePosition;
|
|
58085
58102
|
}
|
|
58086
58103
|
}
|
|
@@ -58098,7 +58115,8 @@ var ImageContainer = class extends Container2 {
|
|
|
58098
58115
|
this.setMemory(value);
|
|
58099
58116
|
}
|
|
58100
58117
|
async setMemory(value) {
|
|
58101
|
-
await
|
|
58118
|
+
await this.importChildren(value);
|
|
58119
|
+
await setMemoryImageContainer(this, value);
|
|
58102
58120
|
this.reloadAnchor();
|
|
58103
58121
|
this.reloadPosition();
|
|
58104
58122
|
}
|
|
@@ -58272,11 +58290,13 @@ var ImageContainer = class extends Container2 {
|
|
|
58272
58290
|
}
|
|
58273
58291
|
};
|
|
58274
58292
|
async function setMemoryImageContainer(element, memory, opstions) {
|
|
58293
|
+
memory = analizePositionsExtensionProps(memory);
|
|
58275
58294
|
setMemoryContainer(element, memory, {
|
|
58276
58295
|
...opstions,
|
|
58277
58296
|
end: async () => {
|
|
58278
58297
|
"anchor" in memory && memory.anchor !== void 0 && (element.anchor = memory.anchor);
|
|
58279
58298
|
"align" in memory && memory.align !== void 0 && (element.align = memory.align);
|
|
58299
|
+
"percentagePosition" in memory && memory.percentagePosition !== void 0 && (element.percentagePosition = memory.percentagePosition);
|
|
58280
58300
|
if ("loadIsStarted" in memory && memory.loadIsStarted) {
|
|
58281
58301
|
await element.load();
|
|
58282
58302
|
}
|
|
@@ -59607,7 +59627,6 @@ var CanvasManager = class {
|
|
|
59607
59627
|
* @param data The object.
|
|
59608
59628
|
*/
|
|
59609
59629
|
async import(data) {
|
|
59610
|
-
this.clear();
|
|
59611
59630
|
try {
|
|
59612
59631
|
let tickersOnPause = data["tickersOnPause"] || {};
|
|
59613
59632
|
if (data.hasOwnProperty("elementAliasesOrder") && data.hasOwnProperty("elements")) {
|
|
@@ -59615,6 +59634,7 @@ var CanvasManager = class {
|
|
|
59615
59634
|
let elementAliasesOrder = data["elementAliasesOrder"];
|
|
59616
59635
|
let promises = elementAliasesOrder.filter((alias) => currentElements[alias]).map((alias) => importCanvasElement(currentElements[alias]));
|
|
59617
59636
|
let list = await Promise.all(promises);
|
|
59637
|
+
this.clear();
|
|
59618
59638
|
list.forEach((element, i3) => {
|
|
59619
59639
|
let alias = elementAliasesOrder[i3];
|
|
59620
59640
|
this.add(alias, element);
|
|
@@ -63145,9 +63165,8 @@ var customPositionTest = newLabel("___pixi_vn_images_custom_position_test___", [
|
|
|
63145
63165
|
- ${skullyName} will be added with the anchor set to 0.5 and align set to 0.25.`
|
|
63146
63166
|
};
|
|
63147
63167
|
canvas.removeAll();
|
|
63148
|
-
let container =
|
|
63149
|
-
container
|
|
63150
|
-
container.align = 0.5;
|
|
63168
|
+
let container = new ImageContainer({ anchor: 0.5, align: 0.5 }, [eggHeadImage, flowerTopImage]);
|
|
63169
|
+
canvas.add("container", container);
|
|
63151
63170
|
let helmlok = addImage("helmlok", helmlokImage);
|
|
63152
63171
|
helmlok.anchor = 0.5;
|
|
63153
63172
|
helmlok.xAlign = 1;
|
|
@@ -63458,6 +63477,7 @@ var ImageSprite = class _ImageSprite extends Sprite2 {
|
|
|
63458
63477
|
pixivnId = CANVAS_IMAGE_ID;
|
|
63459
63478
|
constructor(options, textureAlias) {
|
|
63460
63479
|
super(options);
|
|
63480
|
+
options = analizePositionsExtensionProps(options);
|
|
63461
63481
|
if (textureAlias) {
|
|
63462
63482
|
this.textureAlias = textureAlias;
|
|
63463
63483
|
}
|
|
@@ -63481,7 +63501,7 @@ var ImageSprite = class _ImageSprite extends Sprite2 {
|
|
|
63481
63501
|
this.setMemory(value);
|
|
63482
63502
|
}
|
|
63483
63503
|
async setMemory(value) {
|
|
63484
|
-
await
|
|
63504
|
+
await setMemoryImageSprite(this, value);
|
|
63485
63505
|
this.reloadPosition();
|
|
63486
63506
|
}
|
|
63487
63507
|
static from(source7, skipCache) {
|
|
@@ -63618,9 +63638,11 @@ var ImageSprite = class _ImageSprite extends Sprite2 {
|
|
|
63618
63638
|
}
|
|
63619
63639
|
};
|
|
63620
63640
|
async function setMemoryImageSprite(element, memory) {
|
|
63641
|
+
memory = analizePositionsExtensionProps(memory);
|
|
63621
63642
|
return await setMemorySprite(element, memory, {
|
|
63622
63643
|
half: async () => {
|
|
63623
63644
|
"align" in memory && memory.align !== void 0 && (element.align = memory.align);
|
|
63645
|
+
"percentagePosition" in memory && memory.percentagePosition !== void 0 && (element.percentagePosition = memory.percentagePosition);
|
|
63624
63646
|
"imageLink" in memory && memory.imageLink !== void 0 && (element.textureAlias = memory.imageLink);
|
|
63625
63647
|
if ("loadIsStarted" in memory && memory.loadIsStarted) {
|
|
63626
63648
|
await element.load();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import 'pixi.js';
|
|
2
|
-
export { S as default, j as getMemorySprite, s as setMemorySprite } from '../../ContainerChild-
|
|
2
|
+
export { S as default, j as getMemorySprite, s as setMemorySprite } from '../../ContainerChild-WzyxEjAc.cjs';
|
|
3
3
|
import '../../types/CanvasEventNamesType.cjs';
|
|
4
4
|
import '../CanvasEvent.cjs';
|
|
5
|
-
import '../../interface/canvas/TextureMemory.cjs';
|
|
6
5
|
import './AdditionalPositions.cjs';
|
|
6
|
+
import '../../interface/canvas/TextureMemory.cjs';
|
|
7
7
|
import './AnchorExtension.cjs';
|
|
8
8
|
import '../../types/EventIdType.cjs';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import 'pixi.js';
|
|
2
|
-
export { S as default, j as getMemorySprite, s as setMemorySprite } from '../../ContainerChild-
|
|
2
|
+
export { S as default, j as getMemorySprite, s as setMemorySprite } from '../../ContainerChild-B5yD0BI8.js';
|
|
3
3
|
import '../../types/CanvasEventNamesType.js';
|
|
4
4
|
import '../CanvasEvent.js';
|
|
5
|
-
import '../../interface/canvas/TextureMemory.js';
|
|
6
5
|
import './AdditionalPositions.js';
|
|
6
|
+
import '../../interface/canvas/TextureMemory.js';
|
|
7
7
|
import './AnchorExtension.js';
|
|
8
8
|
import '../../types/EventIdType.js';
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
Sprite,
|
|
3
3
|
getMemorySprite,
|
|
4
4
|
setMemorySprite
|
|
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";
|
|
@@ -57720,7 +57720,7 @@ extensions.add(soundAsset);
|
|
|
57720
57720
|
var sound = setInstance(new SoundLibrary());
|
|
57721
57721
|
|
|
57722
57722
|
// package.json
|
|
57723
|
-
var version = "0.9.
|
|
57723
|
+
var version = "0.9.7";
|
|
57724
57724
|
|
|
57725
57725
|
// src/constants.ts
|
|
57726
57726
|
var Repeat = "repeat";
|
|
@@ -58060,12 +58060,15 @@ var Container2 = class extends Container {
|
|
|
58060
58060
|
this.setMemory(value);
|
|
58061
58061
|
}
|
|
58062
58062
|
async setMemory(value) {
|
|
58063
|
+
await this.importChildren(value);
|
|
58064
|
+
return await setMemoryContainer(this, value);
|
|
58065
|
+
}
|
|
58066
|
+
async importChildren(value) {
|
|
58063
58067
|
for (let i3 = 0; i3 < value.elements.length; i3++) {
|
|
58064
58068
|
let child = value.elements[i3];
|
|
58065
58069
|
let element = await importCanvasElement(child);
|
|
58066
58070
|
this.addChild(element);
|
|
58067
58071
|
}
|
|
58068
|
-
return await setMemoryContainer(this, value);
|
|
58069
58072
|
}
|
|
58070
58073
|
};
|
|
58071
58074
|
function getMemoryContainer(element) {
|
|
@@ -58153,29 +58156,43 @@ function analizePositionsExtensionProps(props) {
|
|
|
58153
58156
|
if (!props) {
|
|
58154
58157
|
return props;
|
|
58155
58158
|
}
|
|
58156
|
-
if (props.align
|
|
58157
|
-
if (
|
|
58158
|
-
props.
|
|
58159
|
-
|
|
58160
|
-
|
|
58161
|
-
|
|
58162
|
-
props.
|
|
58159
|
+
if (typeof props.align !== "number") {
|
|
58160
|
+
if (props.xAlign != void 0) {
|
|
58161
|
+
if (props.align === void 0) {
|
|
58162
|
+
props.align = { x: props.xAlign };
|
|
58163
|
+
delete props.xAlign;
|
|
58164
|
+
} else {
|
|
58165
|
+
props.align.x = props.xAlign;
|
|
58166
|
+
delete props.xAlign;
|
|
58163
58167
|
}
|
|
58164
|
-
|
|
58165
|
-
|
|
58168
|
+
}
|
|
58169
|
+
if (props.yAlign != void 0) {
|
|
58170
|
+
if (props.align === void 0) {
|
|
58171
|
+
props.align = { y: props.yAlign };
|
|
58172
|
+
delete props.yAlign;
|
|
58173
|
+
} else {
|
|
58174
|
+
props.align.y = props.yAlign;
|
|
58175
|
+
delete props.yAlign;
|
|
58166
58176
|
}
|
|
58167
58177
|
}
|
|
58168
58178
|
}
|
|
58169
|
-
if (props.percentagePosition
|
|
58170
|
-
if (
|
|
58171
|
-
props.
|
|
58172
|
-
|
|
58173
|
-
|
|
58174
|
-
|
|
58175
|
-
props.
|
|
58179
|
+
if (typeof props.percentagePosition !== "number") {
|
|
58180
|
+
if (props.xPercentagePosition != void 0) {
|
|
58181
|
+
if (props.percentagePosition === void 0) {
|
|
58182
|
+
props.percentagePosition = { x: props.xPercentagePosition };
|
|
58183
|
+
delete props.xPercentagePosition;
|
|
58184
|
+
} else {
|
|
58185
|
+
props.percentagePosition.x = props.xPercentagePosition;
|
|
58186
|
+
delete props.xPercentagePosition;
|
|
58176
58187
|
}
|
|
58177
|
-
|
|
58178
|
-
|
|
58188
|
+
}
|
|
58189
|
+
if (props.yPercentagePosition != void 0) {
|
|
58190
|
+
if (props.percentagePosition === void 0) {
|
|
58191
|
+
props.percentagePosition = { y: props.yPercentagePosition };
|
|
58192
|
+
delete props.yPercentagePosition;
|
|
58193
|
+
} else {
|
|
58194
|
+
props.percentagePosition.y = props.yPercentagePosition;
|
|
58195
|
+
delete props.yPercentagePosition;
|
|
58179
58196
|
}
|
|
58180
58197
|
}
|
|
58181
58198
|
}
|
|
@@ -58195,10 +58212,10 @@ var ImageContainer = class extends Container2 {
|
|
|
58195
58212
|
if (options?.anchor !== void 0) {
|
|
58196
58213
|
this.anchor = options.anchor;
|
|
58197
58214
|
}
|
|
58198
|
-
if (options?.align !== void 0) {
|
|
58215
|
+
if (options && "align" in options && options?.align !== void 0) {
|
|
58199
58216
|
this.align = options.align;
|
|
58200
58217
|
}
|
|
58201
|
-
if (options?.percentagePosition !== void 0) {
|
|
58218
|
+
if (options && "percentagePosition" in options && options?.percentagePosition !== void 0) {
|
|
58202
58219
|
this.percentagePosition = options.percentagePosition;
|
|
58203
58220
|
}
|
|
58204
58221
|
}
|
|
@@ -58216,7 +58233,8 @@ var ImageContainer = class extends Container2 {
|
|
|
58216
58233
|
this.setMemory(value);
|
|
58217
58234
|
}
|
|
58218
58235
|
async setMemory(value) {
|
|
58219
|
-
await
|
|
58236
|
+
await this.importChildren(value);
|
|
58237
|
+
await setMemoryImageContainer(this, value);
|
|
58220
58238
|
this.reloadAnchor();
|
|
58221
58239
|
this.reloadPosition();
|
|
58222
58240
|
}
|
|
@@ -58390,11 +58408,13 @@ var ImageContainer = class extends Container2 {
|
|
|
58390
58408
|
}
|
|
58391
58409
|
};
|
|
58392
58410
|
async function setMemoryImageContainer(element, memory, opstions) {
|
|
58411
|
+
memory = analizePositionsExtensionProps(memory);
|
|
58393
58412
|
setMemoryContainer(element, memory, {
|
|
58394
58413
|
...opstions,
|
|
58395
58414
|
end: async () => {
|
|
58396
58415
|
"anchor" in memory && memory.anchor !== void 0 && (element.anchor = memory.anchor);
|
|
58397
58416
|
"align" in memory && memory.align !== void 0 && (element.align = memory.align);
|
|
58417
|
+
"percentagePosition" in memory && memory.percentagePosition !== void 0 && (element.percentagePosition = memory.percentagePosition);
|
|
58398
58418
|
if ("loadIsStarted" in memory && memory.loadIsStarted) {
|
|
58399
58419
|
await element.load();
|
|
58400
58420
|
}
|
|
@@ -60270,7 +60290,6 @@ var CanvasManager = class {
|
|
|
60270
60290
|
* @param data The object.
|
|
60271
60291
|
*/
|
|
60272
60292
|
async import(data) {
|
|
60273
|
-
this.clear();
|
|
60274
60293
|
try {
|
|
60275
60294
|
let tickersOnPause = data["tickersOnPause"] || {};
|
|
60276
60295
|
if (data.hasOwnProperty("elementAliasesOrder") && data.hasOwnProperty("elements")) {
|
|
@@ -60278,6 +60297,7 @@ var CanvasManager = class {
|
|
|
60278
60297
|
let elementAliasesOrder = data["elementAliasesOrder"];
|
|
60279
60298
|
let promises = elementAliasesOrder.filter((alias) => currentElements[alias]).map((alias) => importCanvasElement(currentElements[alias]));
|
|
60280
60299
|
let list = await Promise.all(promises);
|
|
60300
|
+
this.clear();
|
|
60281
60301
|
list.forEach((element, i3) => {
|
|
60282
60302
|
let alias = elementAliasesOrder[i3];
|
|
60283
60303
|
this.add(alias, element);
|
|
@@ -63675,9 +63695,8 @@ var customPositionTest = newLabel("___pixi_vn_images_custom_position_test___", [
|
|
|
63675
63695
|
- ${skullyName} will be added with the anchor set to 0.5 and align set to 0.25.`
|
|
63676
63696
|
};
|
|
63677
63697
|
canvas.removeAll();
|
|
63678
|
-
let container =
|
|
63679
|
-
container
|
|
63680
|
-
container.align = 0.5;
|
|
63698
|
+
let container = new ImageContainer({ anchor: 0.5, align: 0.5 }, [eggHeadImage, flowerTopImage]);
|
|
63699
|
+
canvas.add("container", container);
|
|
63681
63700
|
let helmlok = addImage("helmlok", helmlokImage);
|
|
63682
63701
|
helmlok.anchor = 0.5;
|
|
63683
63702
|
helmlok.xAlign = 1;
|
|
@@ -63988,6 +64007,7 @@ var ImageSprite = class _ImageSprite extends Sprite2 {
|
|
|
63988
64007
|
pixivnId = CANVAS_IMAGE_ID;
|
|
63989
64008
|
constructor(options, textureAlias) {
|
|
63990
64009
|
super(options);
|
|
64010
|
+
options = analizePositionsExtensionProps(options);
|
|
63991
64011
|
if (textureAlias) {
|
|
63992
64012
|
this.textureAlias = textureAlias;
|
|
63993
64013
|
}
|
|
@@ -64011,7 +64031,7 @@ var ImageSprite = class _ImageSprite extends Sprite2 {
|
|
|
64011
64031
|
this.setMemory(value);
|
|
64012
64032
|
}
|
|
64013
64033
|
async setMemory(value) {
|
|
64014
|
-
await
|
|
64034
|
+
await setMemoryImageSprite(this, value);
|
|
64015
64035
|
this.reloadPosition();
|
|
64016
64036
|
}
|
|
64017
64037
|
static from(source7, skipCache) {
|
|
@@ -64148,9 +64168,11 @@ var ImageSprite = class _ImageSprite extends Sprite2 {
|
|
|
64148
64168
|
}
|
|
64149
64169
|
};
|
|
64150
64170
|
async function setMemoryImageSprite(element, memory) {
|
|
64171
|
+
memory = analizePositionsExtensionProps(memory);
|
|
64151
64172
|
return await setMemorySprite(element, memory, {
|
|
64152
64173
|
half: async () => {
|
|
64153
64174
|
"align" in memory && memory.align !== void 0 && (element.align = memory.align);
|
|
64175
|
+
"percentagePosition" in memory && memory.percentagePosition !== void 0 && (element.percentagePosition = memory.percentagePosition);
|
|
64154
64176
|
"imageLink" in memory && memory.imageLink !== void 0 && (element.textureAlias = memory.imageLink);
|
|
64155
64177
|
if ("loadIsStarted" in memory && memory.loadIsStarted) {
|
|
64156
64178
|
await element.load();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Text as Text$1, TextOptions, ContainerEvents, ContainerChild, EventEmitter } from 'pixi.js';
|
|
2
|
-
import { C as CanvasBaseItem, T as TextMemory } from '../../ContainerChild-
|
|
2
|
+
import { C as CanvasBaseItem, T as TextMemory } from '../../ContainerChild-WzyxEjAc.cjs';
|
|
3
3
|
import CanvasEventNamesType from '../../types/CanvasEventNamesType.cjs';
|
|
4
4
|
import CanvasEvent from '../CanvasEvent.cjs';
|
|
5
|
-
import '../../interface/canvas/TextureMemory.cjs';
|
|
6
5
|
import './AdditionalPositions.cjs';
|
|
6
|
+
import '../../interface/canvas/TextureMemory.cjs';
|
|
7
7
|
import './AnchorExtension.cjs';
|
|
8
8
|
import '../../types/EventIdType.cjs';
|
|
9
9
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Text as Text$1, TextOptions, ContainerEvents, ContainerChild, EventEmitter } from 'pixi.js';
|
|
2
|
-
import { C as CanvasBaseItem, T as TextMemory } from '../../ContainerChild-
|
|
2
|
+
import { C as CanvasBaseItem, T as TextMemory } from '../../ContainerChild-B5yD0BI8.js';
|
|
3
3
|
import CanvasEventNamesType from '../../types/CanvasEventNamesType.js';
|
|
4
4
|
import CanvasEvent from '../CanvasEvent.js';
|
|
5
|
-
import '../../interface/canvas/TextureMemory.js';
|
|
6
5
|
import './AdditionalPositions.js';
|
|
6
|
+
import '../../interface/canvas/TextureMemory.js';
|
|
7
7
|
import './AnchorExtension.js';
|
|
8
8
|
import '../../types/EventIdType.js';
|
|
9
9
|
|