@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
|
@@ -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";
|
|
@@ -58083,12 +58083,15 @@ var Container3 = class extends Container {
|
|
|
58083
58083
|
this.setMemory(value);
|
|
58084
58084
|
}
|
|
58085
58085
|
async setMemory(value) {
|
|
58086
|
+
await this.importChildren(value);
|
|
58087
|
+
return await setMemoryContainer(this, value);
|
|
58088
|
+
}
|
|
58089
|
+
async importChildren(value) {
|
|
58086
58090
|
for (let i3 = 0; i3 < value.elements.length; i3++) {
|
|
58087
58091
|
let child = value.elements[i3];
|
|
58088
58092
|
let element = await importCanvasElement(child);
|
|
58089
58093
|
this.addChild(element);
|
|
58090
58094
|
}
|
|
58091
|
-
return await setMemoryContainer(this, value);
|
|
58092
58095
|
}
|
|
58093
58096
|
};
|
|
58094
58097
|
function getMemoryContainer(element) {
|
|
@@ -58176,29 +58179,43 @@ function analizePositionsExtensionProps(props) {
|
|
|
58176
58179
|
if (!props) {
|
|
58177
58180
|
return props;
|
|
58178
58181
|
}
|
|
58179
|
-
if (props.align
|
|
58180
|
-
if (
|
|
58181
|
-
props.
|
|
58182
|
-
|
|
58183
|
-
|
|
58184
|
-
|
|
58185
|
-
props.
|
|
58182
|
+
if (typeof props.align !== "number") {
|
|
58183
|
+
if (props.xAlign != void 0) {
|
|
58184
|
+
if (props.align === void 0) {
|
|
58185
|
+
props.align = { x: props.xAlign };
|
|
58186
|
+
delete props.xAlign;
|
|
58187
|
+
} else {
|
|
58188
|
+
props.align.x = props.xAlign;
|
|
58189
|
+
delete props.xAlign;
|
|
58186
58190
|
}
|
|
58187
|
-
|
|
58188
|
-
|
|
58191
|
+
}
|
|
58192
|
+
if (props.yAlign != void 0) {
|
|
58193
|
+
if (props.align === void 0) {
|
|
58194
|
+
props.align = { y: props.yAlign };
|
|
58195
|
+
delete props.yAlign;
|
|
58196
|
+
} else {
|
|
58197
|
+
props.align.y = props.yAlign;
|
|
58198
|
+
delete props.yAlign;
|
|
58189
58199
|
}
|
|
58190
58200
|
}
|
|
58191
58201
|
}
|
|
58192
|
-
if (props.percentagePosition
|
|
58193
|
-
if (
|
|
58194
|
-
props.
|
|
58195
|
-
|
|
58196
|
-
|
|
58197
|
-
|
|
58198
|
-
props.
|
|
58202
|
+
if (typeof props.percentagePosition !== "number") {
|
|
58203
|
+
if (props.xPercentagePosition != void 0) {
|
|
58204
|
+
if (props.percentagePosition === void 0) {
|
|
58205
|
+
props.percentagePosition = { x: props.xPercentagePosition };
|
|
58206
|
+
delete props.xPercentagePosition;
|
|
58207
|
+
} else {
|
|
58208
|
+
props.percentagePosition.x = props.xPercentagePosition;
|
|
58209
|
+
delete props.xPercentagePosition;
|
|
58199
58210
|
}
|
|
58200
|
-
|
|
58201
|
-
|
|
58211
|
+
}
|
|
58212
|
+
if (props.yPercentagePosition != void 0) {
|
|
58213
|
+
if (props.percentagePosition === void 0) {
|
|
58214
|
+
props.percentagePosition = { y: props.yPercentagePosition };
|
|
58215
|
+
delete props.yPercentagePosition;
|
|
58216
|
+
} else {
|
|
58217
|
+
props.percentagePosition.y = props.yPercentagePosition;
|
|
58218
|
+
delete props.yPercentagePosition;
|
|
58202
58219
|
}
|
|
58203
58220
|
}
|
|
58204
58221
|
}
|
|
@@ -58218,10 +58235,10 @@ var ImageContainer = class extends Container3 {
|
|
|
58218
58235
|
if (options?.anchor !== void 0) {
|
|
58219
58236
|
this.anchor = options.anchor;
|
|
58220
58237
|
}
|
|
58221
|
-
if (options?.align !== void 0) {
|
|
58238
|
+
if (options && "align" in options && options?.align !== void 0) {
|
|
58222
58239
|
this.align = options.align;
|
|
58223
58240
|
}
|
|
58224
|
-
if (options?.percentagePosition !== void 0) {
|
|
58241
|
+
if (options && "percentagePosition" in options && options?.percentagePosition !== void 0) {
|
|
58225
58242
|
this.percentagePosition = options.percentagePosition;
|
|
58226
58243
|
}
|
|
58227
58244
|
}
|
|
@@ -58239,7 +58256,8 @@ var ImageContainer = class extends Container3 {
|
|
|
58239
58256
|
this.setMemory(value);
|
|
58240
58257
|
}
|
|
58241
58258
|
async setMemory(value) {
|
|
58242
|
-
await
|
|
58259
|
+
await this.importChildren(value);
|
|
58260
|
+
await setMemoryImageContainer(this, value);
|
|
58243
58261
|
this.reloadAnchor();
|
|
58244
58262
|
this.reloadPosition();
|
|
58245
58263
|
}
|
|
@@ -58413,11 +58431,13 @@ var ImageContainer = class extends Container3 {
|
|
|
58413
58431
|
}
|
|
58414
58432
|
};
|
|
58415
58433
|
async function setMemoryImageContainer(element, memory, opstions) {
|
|
58434
|
+
memory = analizePositionsExtensionProps(memory);
|
|
58416
58435
|
setMemoryContainer(element, memory, {
|
|
58417
58436
|
...opstions,
|
|
58418
58437
|
end: async () => {
|
|
58419
58438
|
"anchor" in memory && memory.anchor !== void 0 && (element.anchor = memory.anchor);
|
|
58420
58439
|
"align" in memory && memory.align !== void 0 && (element.align = memory.align);
|
|
58440
|
+
"percentagePosition" in memory && memory.percentagePosition !== void 0 && (element.percentagePosition = memory.percentagePosition);
|
|
58421
58441
|
if ("loadIsStarted" in memory && memory.loadIsStarted) {
|
|
58422
58442
|
await element.load();
|
|
58423
58443
|
}
|
|
@@ -60403,7 +60423,6 @@ var CanvasManager = class {
|
|
|
60403
60423
|
* @param data The object.
|
|
60404
60424
|
*/
|
|
60405
60425
|
async import(data) {
|
|
60406
|
-
this.clear();
|
|
60407
60426
|
try {
|
|
60408
60427
|
let tickersOnPause = data["tickersOnPause"] || {};
|
|
60409
60428
|
if (data.hasOwnProperty("elementAliasesOrder") && data.hasOwnProperty("elements")) {
|
|
@@ -60411,6 +60430,7 @@ var CanvasManager = class {
|
|
|
60411
60430
|
let elementAliasesOrder = data["elementAliasesOrder"];
|
|
60412
60431
|
let promises = elementAliasesOrder.filter((alias) => currentElements[alias]).map((alias) => importCanvasElement(currentElements[alias]));
|
|
60413
60432
|
let list = await Promise.all(promises);
|
|
60433
|
+
this.clear();
|
|
60414
60434
|
list.forEach((element, i3) => {
|
|
60415
60435
|
let alias = elementAliasesOrder[i3];
|
|
60416
60436
|
this.add(alias, element);
|
|
@@ -63808,9 +63828,8 @@ var customPositionTest = newLabel("___pixi_vn_images_custom_position_test___", [
|
|
|
63808
63828
|
- ${skullyName} will be added with the anchor set to 0.5 and align set to 0.25.`
|
|
63809
63829
|
};
|
|
63810
63830
|
canvas.removeAll();
|
|
63811
|
-
let container =
|
|
63812
|
-
container
|
|
63813
|
-
container.align = 0.5;
|
|
63831
|
+
let container = new ImageContainer({ anchor: 0.5, align: 0.5 }, [eggHeadImage, flowerTopImage]);
|
|
63832
|
+
canvas.add("container", container);
|
|
63814
63833
|
let helmlok = addImage("helmlok", helmlokImage);
|
|
63815
63834
|
helmlok.anchor = 0.5;
|
|
63816
63835
|
helmlok.xAlign = 1;
|
|
@@ -64121,6 +64140,7 @@ var ImageSprite = class _ImageSprite extends Sprite2 {
|
|
|
64121
64140
|
pixivnId = CANVAS_IMAGE_ID;
|
|
64122
64141
|
constructor(options, textureAlias) {
|
|
64123
64142
|
super(options);
|
|
64143
|
+
options = analizePositionsExtensionProps(options);
|
|
64124
64144
|
if (textureAlias) {
|
|
64125
64145
|
this.textureAlias = textureAlias;
|
|
64126
64146
|
}
|
|
@@ -64144,7 +64164,7 @@ var ImageSprite = class _ImageSprite extends Sprite2 {
|
|
|
64144
64164
|
this.setMemory(value);
|
|
64145
64165
|
}
|
|
64146
64166
|
async setMemory(value) {
|
|
64147
|
-
await
|
|
64167
|
+
await setMemoryImageSprite(this, value);
|
|
64148
64168
|
this.reloadPosition();
|
|
64149
64169
|
}
|
|
64150
64170
|
static from(source7, skipCache) {
|
|
@@ -64281,9 +64301,11 @@ var ImageSprite = class _ImageSprite extends Sprite2 {
|
|
|
64281
64301
|
}
|
|
64282
64302
|
};
|
|
64283
64303
|
async function setMemoryImageSprite(element, memory) {
|
|
64304
|
+
memory = analizePositionsExtensionProps(memory);
|
|
64284
64305
|
return await setMemorySprite(element, memory, {
|
|
64285
64306
|
half: async () => {
|
|
64286
64307
|
"align" in memory && memory.align !== void 0 && (element.align = memory.align);
|
|
64308
|
+
"percentagePosition" in memory && memory.percentagePosition !== void 0 && (element.percentagePosition = memory.percentagePosition);
|
|
64287
64309
|
"imageLink" in memory && memory.imageLink !== void 0 && (element.textureAlias = memory.imageLink);
|
|
64288
64310
|
if ("loadIsStarted" in memory && memory.loadIsStarted) {
|
|
64289
64311
|
await element.load();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { C as CanvasBaseItem } from '../ContainerChild-
|
|
1
|
+
import { C as CanvasBaseItem } from '../ContainerChild-WzyxEjAc.cjs';
|
|
2
2
|
import { CanvasElementAliasType } from '../types/CanvasElementAliasType.cjs';
|
|
3
3
|
import 'pixi.js';
|
|
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
|
-
import { C as CanvasBaseItem } from '../ContainerChild-
|
|
1
|
+
import { C as CanvasBaseItem } from '../ContainerChild-B5yD0BI8.js';
|
|
2
2
|
import { CanvasElementAliasType } from '../types/CanvasElementAliasType.js';
|
|
3
3
|
import 'pixi.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';
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
getCanvasElementInstanceById,
|
|
4
4
|
getCanvasElementTypeById,
|
|
5
5
|
registeredCanvasElement
|
|
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";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { C as CanvasBaseItem } from '../ContainerChild-
|
|
1
|
+
import { C as CanvasBaseItem } from '../ContainerChild-WzyxEjAc.cjs';
|
|
2
2
|
import { EventIdType } from '../types/EventIdType.cjs';
|
|
3
3
|
import CanvasEvent from '../classes/CanvasEvent.cjs';
|
|
4
4
|
import 'pixi.js';
|
|
5
|
-
import '../interface/canvas/TextureMemory.cjs';
|
|
6
5
|
import '../classes/canvas/AdditionalPositions.cjs';
|
|
6
|
+
import '../interface/canvas/TextureMemory.cjs';
|
|
7
7
|
import '../classes/canvas/AnchorExtension.cjs';
|
|
8
8
|
import '../types/CanvasEventNamesType.cjs';
|
|
9
9
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { C as CanvasBaseItem } from '../ContainerChild-
|
|
1
|
+
import { C as CanvasBaseItem } from '../ContainerChild-B5yD0BI8.js';
|
|
2
2
|
import { EventIdType } from '../types/EventIdType.js';
|
|
3
3
|
import CanvasEvent from '../classes/CanvasEvent.js';
|
|
4
4
|
import 'pixi.js';
|
|
5
|
-
import '../interface/canvas/TextureMemory.js';
|
|
6
5
|
import '../classes/canvas/AdditionalPositions.js';
|
|
6
|
+
import '../interface/canvas/TextureMemory.js';
|
|
7
7
|
import '../classes/canvas/AnchorExtension.js';
|
|
8
8
|
import '../types/CanvasEventNamesType.js';
|
|
9
9
|
|
|
@@ -57728,7 +57728,7 @@ extensions.add(soundAsset);
|
|
|
57728
57728
|
var sound = setInstance(new SoundLibrary());
|
|
57729
57729
|
|
|
57730
57730
|
// package.json
|
|
57731
|
-
var version = "0.9.
|
|
57731
|
+
var version = "0.9.7";
|
|
57732
57732
|
|
|
57733
57733
|
// src/constants.ts
|
|
57734
57734
|
var Repeat = "repeat";
|
|
@@ -57974,12 +57974,15 @@ var Container3 = class extends Container {
|
|
|
57974
57974
|
this.setMemory(value);
|
|
57975
57975
|
}
|
|
57976
57976
|
async setMemory(value) {
|
|
57977
|
+
await this.importChildren(value);
|
|
57978
|
+
return await setMemoryContainer(this, value);
|
|
57979
|
+
}
|
|
57980
|
+
async importChildren(value) {
|
|
57977
57981
|
for (let i3 = 0; i3 < value.elements.length; i3++) {
|
|
57978
57982
|
let child = value.elements[i3];
|
|
57979
57983
|
let element = await importCanvasElement(child);
|
|
57980
57984
|
this.addChild(element);
|
|
57981
57985
|
}
|
|
57982
|
-
return await setMemoryContainer(this, value);
|
|
57983
57986
|
}
|
|
57984
57987
|
};
|
|
57985
57988
|
function getMemoryContainer(element) {
|
|
@@ -58067,29 +58070,43 @@ function analizePositionsExtensionProps(props) {
|
|
|
58067
58070
|
if (!props) {
|
|
58068
58071
|
return props;
|
|
58069
58072
|
}
|
|
58070
|
-
if (props.align
|
|
58071
|
-
if (
|
|
58072
|
-
props.
|
|
58073
|
-
|
|
58074
|
-
|
|
58075
|
-
|
|
58076
|
-
props.
|
|
58073
|
+
if (typeof props.align !== "number") {
|
|
58074
|
+
if (props.xAlign != void 0) {
|
|
58075
|
+
if (props.align === void 0) {
|
|
58076
|
+
props.align = { x: props.xAlign };
|
|
58077
|
+
delete props.xAlign;
|
|
58078
|
+
} else {
|
|
58079
|
+
props.align.x = props.xAlign;
|
|
58080
|
+
delete props.xAlign;
|
|
58077
58081
|
}
|
|
58078
|
-
|
|
58079
|
-
|
|
58082
|
+
}
|
|
58083
|
+
if (props.yAlign != void 0) {
|
|
58084
|
+
if (props.align === void 0) {
|
|
58085
|
+
props.align = { y: props.yAlign };
|
|
58086
|
+
delete props.yAlign;
|
|
58087
|
+
} else {
|
|
58088
|
+
props.align.y = props.yAlign;
|
|
58089
|
+
delete props.yAlign;
|
|
58080
58090
|
}
|
|
58081
58091
|
}
|
|
58082
58092
|
}
|
|
58083
|
-
if (props.percentagePosition
|
|
58084
|
-
if (
|
|
58085
|
-
props.
|
|
58086
|
-
|
|
58087
|
-
|
|
58088
|
-
|
|
58089
|
-
props.
|
|
58093
|
+
if (typeof props.percentagePosition !== "number") {
|
|
58094
|
+
if (props.xPercentagePosition != void 0) {
|
|
58095
|
+
if (props.percentagePosition === void 0) {
|
|
58096
|
+
props.percentagePosition = { x: props.xPercentagePosition };
|
|
58097
|
+
delete props.xPercentagePosition;
|
|
58098
|
+
} else {
|
|
58099
|
+
props.percentagePosition.x = props.xPercentagePosition;
|
|
58100
|
+
delete props.xPercentagePosition;
|
|
58090
58101
|
}
|
|
58091
|
-
|
|
58092
|
-
|
|
58102
|
+
}
|
|
58103
|
+
if (props.yPercentagePosition != void 0) {
|
|
58104
|
+
if (props.percentagePosition === void 0) {
|
|
58105
|
+
props.percentagePosition = { y: props.yPercentagePosition };
|
|
58106
|
+
delete props.yPercentagePosition;
|
|
58107
|
+
} else {
|
|
58108
|
+
props.percentagePosition.y = props.yPercentagePosition;
|
|
58109
|
+
delete props.yPercentagePosition;
|
|
58093
58110
|
}
|
|
58094
58111
|
}
|
|
58095
58112
|
}
|
|
@@ -58109,10 +58126,10 @@ var ImageContainer = class extends Container3 {
|
|
|
58109
58126
|
if (options?.anchor !== void 0) {
|
|
58110
58127
|
this.anchor = options.anchor;
|
|
58111
58128
|
}
|
|
58112
|
-
if (options?.align !== void 0) {
|
|
58129
|
+
if (options && "align" in options && options?.align !== void 0) {
|
|
58113
58130
|
this.align = options.align;
|
|
58114
58131
|
}
|
|
58115
|
-
if (options?.percentagePosition !== void 0) {
|
|
58132
|
+
if (options && "percentagePosition" in options && options?.percentagePosition !== void 0) {
|
|
58116
58133
|
this.percentagePosition = options.percentagePosition;
|
|
58117
58134
|
}
|
|
58118
58135
|
}
|
|
@@ -58130,7 +58147,8 @@ var ImageContainer = class extends Container3 {
|
|
|
58130
58147
|
this.setMemory(value);
|
|
58131
58148
|
}
|
|
58132
58149
|
async setMemory(value) {
|
|
58133
|
-
await
|
|
58150
|
+
await this.importChildren(value);
|
|
58151
|
+
await setMemoryImageContainer(this, value);
|
|
58134
58152
|
this.reloadAnchor();
|
|
58135
58153
|
this.reloadPosition();
|
|
58136
58154
|
}
|
|
@@ -58304,11 +58322,13 @@ var ImageContainer = class extends Container3 {
|
|
|
58304
58322
|
}
|
|
58305
58323
|
};
|
|
58306
58324
|
async function setMemoryImageContainer(element, memory, opstions) {
|
|
58325
|
+
memory = analizePositionsExtensionProps(memory);
|
|
58307
58326
|
setMemoryContainer(element, memory, {
|
|
58308
58327
|
...opstions,
|
|
58309
58328
|
end: async () => {
|
|
58310
58329
|
"anchor" in memory && memory.anchor !== void 0 && (element.anchor = memory.anchor);
|
|
58311
58330
|
"align" in memory && memory.align !== void 0 && (element.align = memory.align);
|
|
58331
|
+
"percentagePosition" in memory && memory.percentagePosition !== void 0 && (element.percentagePosition = memory.percentagePosition);
|
|
58312
58332
|
if ("loadIsStarted" in memory && memory.loadIsStarted) {
|
|
58313
58333
|
await element.load();
|
|
58314
58334
|
}
|
|
@@ -60365,7 +60385,6 @@ var CanvasManager = class {
|
|
|
60365
60385
|
* @param data The object.
|
|
60366
60386
|
*/
|
|
60367
60387
|
async import(data) {
|
|
60368
|
-
this.clear();
|
|
60369
60388
|
try {
|
|
60370
60389
|
let tickersOnPause = data["tickersOnPause"] || {};
|
|
60371
60390
|
if (data.hasOwnProperty("elementAliasesOrder") && data.hasOwnProperty("elements")) {
|
|
@@ -60373,6 +60392,7 @@ var CanvasManager = class {
|
|
|
60373
60392
|
let elementAliasesOrder = data["elementAliasesOrder"];
|
|
60374
60393
|
let promises = elementAliasesOrder.filter((alias) => currentElements[alias]).map((alias) => importCanvasElement(currentElements[alias]));
|
|
60375
60394
|
let list = await Promise.all(promises);
|
|
60395
|
+
this.clear();
|
|
60376
60396
|
list.forEach((element, i3) => {
|
|
60377
60397
|
let alias = elementAliasesOrder[i3];
|
|
60378
60398
|
this.add(alias, element);
|
|
@@ -63792,9 +63812,8 @@ var customPositionTest = newLabel("___pixi_vn_images_custom_position_test___", [
|
|
|
63792
63812
|
- ${skullyName} will be added with the anchor set to 0.5 and align set to 0.25.`
|
|
63793
63813
|
};
|
|
63794
63814
|
canvas.removeAll();
|
|
63795
|
-
let container =
|
|
63796
|
-
container
|
|
63797
|
-
container.align = 0.5;
|
|
63815
|
+
let container = new ImageContainer({ anchor: 0.5, align: 0.5 }, [eggHeadImage, flowerTopImage]);
|
|
63816
|
+
canvas.add("container", container);
|
|
63798
63817
|
let helmlok = addImage("helmlok", helmlokImage);
|
|
63799
63818
|
helmlok.anchor = 0.5;
|
|
63800
63819
|
helmlok.xAlign = 1;
|
|
@@ -64105,6 +64124,7 @@ var ImageSprite = class _ImageSprite extends Sprite2 {
|
|
|
64105
64124
|
pixivnId = CANVAS_IMAGE_ID;
|
|
64106
64125
|
constructor(options, textureAlias) {
|
|
64107
64126
|
super(options);
|
|
64127
|
+
options = analizePositionsExtensionProps(options);
|
|
64108
64128
|
if (textureAlias) {
|
|
64109
64129
|
this.textureAlias = textureAlias;
|
|
64110
64130
|
}
|
|
@@ -64128,7 +64148,7 @@ var ImageSprite = class _ImageSprite extends Sprite2 {
|
|
|
64128
64148
|
this.setMemory(value);
|
|
64129
64149
|
}
|
|
64130
64150
|
async setMemory(value) {
|
|
64131
|
-
await
|
|
64151
|
+
await setMemoryImageSprite(this, value);
|
|
64132
64152
|
this.reloadPosition();
|
|
64133
64153
|
}
|
|
64134
64154
|
static from(source7, skipCache) {
|
|
@@ -64265,9 +64285,11 @@ var ImageSprite = class _ImageSprite extends Sprite2 {
|
|
|
64265
64285
|
}
|
|
64266
64286
|
};
|
|
64267
64287
|
async function setMemoryImageSprite(element, memory) {
|
|
64288
|
+
memory = analizePositionsExtensionProps(memory);
|
|
64268
64289
|
return await setMemorySprite(element, memory, {
|
|
64269
64290
|
half: async () => {
|
|
64270
64291
|
"align" in memory && memory.align !== void 0 && (element.align = memory.align);
|
|
64292
|
+
"percentagePosition" in memory && memory.percentagePosition !== void 0 && (element.percentagePosition = memory.percentagePosition);
|
|
64271
64293
|
"imageLink" in memory && memory.imageLink !== void 0 && (element.textureAlias = memory.imageLink);
|
|
64272
64294
|
if ("loadIsStarted" in memory && memory.loadIsStarted) {
|
|
64273
64295
|
await element.load();
|
|
@@ -3,10 +3,10 @@ export { getAllCharacters, getCharacterById, saveCharacter } from './character-d
|
|
|
3
3
|
export { default as eventDecorator } from './event-decorator.cjs';
|
|
4
4
|
export { getLabelById, newLabel, saveLabel } from './label-decorator.cjs';
|
|
5
5
|
export { default as tickerDecorator } from './ticker-decorator.cjs';
|
|
6
|
-
import '../ContainerChild-
|
|
6
|
+
import '../ContainerChild-WzyxEjAc.cjs';
|
|
7
7
|
import 'pixi.js';
|
|
8
|
-
import '../interface/canvas/TextureMemory.cjs';
|
|
9
8
|
import '../classes/canvas/AdditionalPositions.cjs';
|
|
9
|
+
import '../interface/canvas/TextureMemory.cjs';
|
|
10
10
|
import '../classes/canvas/AnchorExtension.cjs';
|
|
11
11
|
import '../types/CanvasEventNamesType.cjs';
|
|
12
12
|
import '../classes/CanvasEvent.cjs';
|
|
@@ -3,10 +3,10 @@ export { getAllCharacters, getCharacterById, saveCharacter } from './character-d
|
|
|
3
3
|
export { default as eventDecorator } from './event-decorator.js';
|
|
4
4
|
export { getLabelById, newLabel, saveLabel } from './label-decorator.js';
|
|
5
5
|
export { default as tickerDecorator } from './ticker-decorator.js';
|
|
6
|
-
import '../ContainerChild-
|
|
6
|
+
import '../ContainerChild-B5yD0BI8.js';
|
|
7
7
|
import 'pixi.js';
|
|
8
|
-
import '../interface/canvas/TextureMemory.js';
|
|
9
8
|
import '../classes/canvas/AdditionalPositions.js';
|
|
9
|
+
import '../interface/canvas/TextureMemory.js';
|
|
10
10
|
import '../classes/canvas/AnchorExtension.js';
|
|
11
11
|
import '../types/CanvasEventNamesType.js';
|
|
12
12
|
import '../classes/CanvasEvent.js';
|
package/dist/decorators/index.js
CHANGED
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
getLabelById,
|
|
4
4
|
newLabel,
|
|
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";
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
import {
|
|
33
33
|
eventDecorator
|
|
34
34
|
} from "../chunk-LEMOIFSV.js";
|
|
35
|
-
import "../chunk-
|
|
35
|
+
import "../chunk-TOG67Z7Q.js";
|
|
36
36
|
import "../chunk-WS3FY4Q6.js";
|
|
37
37
|
import "../chunk-Z3NBKYVU.js";
|
|
38
38
|
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";
|
|
@@ -58108,12 +58108,15 @@ var Container2 = class extends Container {
|
|
|
58108
58108
|
this.setMemory(value);
|
|
58109
58109
|
}
|
|
58110
58110
|
async setMemory(value) {
|
|
58111
|
+
await this.importChildren(value);
|
|
58112
|
+
return await setMemoryContainer(this, value);
|
|
58113
|
+
}
|
|
58114
|
+
async importChildren(value) {
|
|
58111
58115
|
for (let i3 = 0; i3 < value.elements.length; i3++) {
|
|
58112
58116
|
let child = value.elements[i3];
|
|
58113
58117
|
let element = await importCanvasElement(child);
|
|
58114
58118
|
this.addChild(element);
|
|
58115
58119
|
}
|
|
58116
|
-
return await setMemoryContainer(this, value);
|
|
58117
58120
|
}
|
|
58118
58121
|
};
|
|
58119
58122
|
function getMemoryContainer(element) {
|
|
@@ -58201,29 +58204,43 @@ function analizePositionsExtensionProps(props) {
|
|
|
58201
58204
|
if (!props) {
|
|
58202
58205
|
return props;
|
|
58203
58206
|
}
|
|
58204
|
-
if (props.align
|
|
58205
|
-
if (
|
|
58206
|
-
props.
|
|
58207
|
-
|
|
58208
|
-
|
|
58209
|
-
|
|
58210
|
-
props.
|
|
58207
|
+
if (typeof props.align !== "number") {
|
|
58208
|
+
if (props.xAlign != void 0) {
|
|
58209
|
+
if (props.align === void 0) {
|
|
58210
|
+
props.align = { x: props.xAlign };
|
|
58211
|
+
delete props.xAlign;
|
|
58212
|
+
} else {
|
|
58213
|
+
props.align.x = props.xAlign;
|
|
58214
|
+
delete props.xAlign;
|
|
58211
58215
|
}
|
|
58212
|
-
|
|
58213
|
-
|
|
58216
|
+
}
|
|
58217
|
+
if (props.yAlign != void 0) {
|
|
58218
|
+
if (props.align === void 0) {
|
|
58219
|
+
props.align = { y: props.yAlign };
|
|
58220
|
+
delete props.yAlign;
|
|
58221
|
+
} else {
|
|
58222
|
+
props.align.y = props.yAlign;
|
|
58223
|
+
delete props.yAlign;
|
|
58214
58224
|
}
|
|
58215
58225
|
}
|
|
58216
58226
|
}
|
|
58217
|
-
if (props.percentagePosition
|
|
58218
|
-
if (
|
|
58219
|
-
props.
|
|
58220
|
-
|
|
58221
|
-
|
|
58222
|
-
|
|
58223
|
-
props.
|
|
58227
|
+
if (typeof props.percentagePosition !== "number") {
|
|
58228
|
+
if (props.xPercentagePosition != void 0) {
|
|
58229
|
+
if (props.percentagePosition === void 0) {
|
|
58230
|
+
props.percentagePosition = { x: props.xPercentagePosition };
|
|
58231
|
+
delete props.xPercentagePosition;
|
|
58232
|
+
} else {
|
|
58233
|
+
props.percentagePosition.x = props.xPercentagePosition;
|
|
58234
|
+
delete props.xPercentagePosition;
|
|
58224
58235
|
}
|
|
58225
|
-
|
|
58226
|
-
|
|
58236
|
+
}
|
|
58237
|
+
if (props.yPercentagePosition != void 0) {
|
|
58238
|
+
if (props.percentagePosition === void 0) {
|
|
58239
|
+
props.percentagePosition = { y: props.yPercentagePosition };
|
|
58240
|
+
delete props.yPercentagePosition;
|
|
58241
|
+
} else {
|
|
58242
|
+
props.percentagePosition.y = props.yPercentagePosition;
|
|
58243
|
+
delete props.yPercentagePosition;
|
|
58227
58244
|
}
|
|
58228
58245
|
}
|
|
58229
58246
|
}
|
|
@@ -58243,10 +58260,10 @@ var ImageContainer = class extends Container2 {
|
|
|
58243
58260
|
if (options?.anchor !== void 0) {
|
|
58244
58261
|
this.anchor = options.anchor;
|
|
58245
58262
|
}
|
|
58246
|
-
if (options?.align !== void 0) {
|
|
58263
|
+
if (options && "align" in options && options?.align !== void 0) {
|
|
58247
58264
|
this.align = options.align;
|
|
58248
58265
|
}
|
|
58249
|
-
if (options?.percentagePosition !== void 0) {
|
|
58266
|
+
if (options && "percentagePosition" in options && options?.percentagePosition !== void 0) {
|
|
58250
58267
|
this.percentagePosition = options.percentagePosition;
|
|
58251
58268
|
}
|
|
58252
58269
|
}
|
|
@@ -58264,7 +58281,8 @@ var ImageContainer = class extends Container2 {
|
|
|
58264
58281
|
this.setMemory(value);
|
|
58265
58282
|
}
|
|
58266
58283
|
async setMemory(value) {
|
|
58267
|
-
await
|
|
58284
|
+
await this.importChildren(value);
|
|
58285
|
+
await setMemoryImageContainer(this, value);
|
|
58268
58286
|
this.reloadAnchor();
|
|
58269
58287
|
this.reloadPosition();
|
|
58270
58288
|
}
|
|
@@ -58438,11 +58456,13 @@ var ImageContainer = class extends Container2 {
|
|
|
58438
58456
|
}
|
|
58439
58457
|
};
|
|
58440
58458
|
async function setMemoryImageContainer(element, memory, opstions) {
|
|
58459
|
+
memory = analizePositionsExtensionProps(memory);
|
|
58441
58460
|
setMemoryContainer(element, memory, {
|
|
58442
58461
|
...opstions,
|
|
58443
58462
|
end: async () => {
|
|
58444
58463
|
"anchor" in memory && memory.anchor !== void 0 && (element.anchor = memory.anchor);
|
|
58445
58464
|
"align" in memory && memory.align !== void 0 && (element.align = memory.align);
|
|
58465
|
+
"percentagePosition" in memory && memory.percentagePosition !== void 0 && (element.percentagePosition = memory.percentagePosition);
|
|
58446
58466
|
if ("loadIsStarted" in memory && memory.loadIsStarted) {
|
|
58447
58467
|
await element.load();
|
|
58448
58468
|
}
|
|
@@ -60428,7 +60448,6 @@ var CanvasManager = class {
|
|
|
60428
60448
|
* @param data The object.
|
|
60429
60449
|
*/
|
|
60430
60450
|
async import(data) {
|
|
60431
|
-
this.clear();
|
|
60432
60451
|
try {
|
|
60433
60452
|
let tickersOnPause = data["tickersOnPause"] || {};
|
|
60434
60453
|
if (data.hasOwnProperty("elementAliasesOrder") && data.hasOwnProperty("elements")) {
|
|
@@ -60436,6 +60455,7 @@ var CanvasManager = class {
|
|
|
60436
60455
|
let elementAliasesOrder = data["elementAliasesOrder"];
|
|
60437
60456
|
let promises = elementAliasesOrder.filter((alias) => currentElements[alias]).map((alias) => importCanvasElement(currentElements[alias]));
|
|
60438
60457
|
let list = await Promise.all(promises);
|
|
60458
|
+
this.clear();
|
|
60439
60459
|
list.forEach((element, i3) => {
|
|
60440
60460
|
let alias = elementAliasesOrder[i3];
|
|
60441
60461
|
this.add(alias, element);
|
|
@@ -63833,9 +63853,8 @@ var customPositionTest = newLabel("___pixi_vn_images_custom_position_test___", [
|
|
|
63833
63853
|
- ${skullyName} will be added with the anchor set to 0.5 and align set to 0.25.`
|
|
63834
63854
|
};
|
|
63835
63855
|
canvas.removeAll();
|
|
63836
|
-
let container =
|
|
63837
|
-
container
|
|
63838
|
-
container.align = 0.5;
|
|
63856
|
+
let container = new ImageContainer({ anchor: 0.5, align: 0.5 }, [eggHeadImage, flowerTopImage]);
|
|
63857
|
+
canvas.add("container", container);
|
|
63839
63858
|
let helmlok = addImage("helmlok", helmlokImage);
|
|
63840
63859
|
helmlok.anchor = 0.5;
|
|
63841
63860
|
helmlok.xAlign = 1;
|
|
@@ -64146,6 +64165,7 @@ var ImageSprite = class _ImageSprite extends Sprite2 {
|
|
|
64146
64165
|
pixivnId = CANVAS_IMAGE_ID;
|
|
64147
64166
|
constructor(options, textureAlias) {
|
|
64148
64167
|
super(options);
|
|
64168
|
+
options = analizePositionsExtensionProps(options);
|
|
64149
64169
|
if (textureAlias) {
|
|
64150
64170
|
this.textureAlias = textureAlias;
|
|
64151
64171
|
}
|
|
@@ -64169,7 +64189,7 @@ var ImageSprite = class _ImageSprite extends Sprite2 {
|
|
|
64169
64189
|
this.setMemory(value);
|
|
64170
64190
|
}
|
|
64171
64191
|
async setMemory(value) {
|
|
64172
|
-
await
|
|
64192
|
+
await setMemoryImageSprite(this, value);
|
|
64173
64193
|
this.reloadPosition();
|
|
64174
64194
|
}
|
|
64175
64195
|
static from(source7, skipCache) {
|
|
@@ -64306,9 +64326,11 @@ var ImageSprite = class _ImageSprite extends Sprite2 {
|
|
|
64306
64326
|
}
|
|
64307
64327
|
};
|
|
64308
64328
|
async function setMemoryImageSprite(element, memory) {
|
|
64329
|
+
memory = analizePositionsExtensionProps(memory);
|
|
64309
64330
|
return await setMemorySprite(element, memory, {
|
|
64310
64331
|
half: async () => {
|
|
64311
64332
|
"align" in memory && memory.align !== void 0 && (element.align = memory.align);
|
|
64333
|
+
"percentagePosition" in memory && memory.percentagePosition !== void 0 && (element.percentagePosition = memory.percentagePosition);
|
|
64312
64334
|
"imageLink" in memory && memory.imageLink !== void 0 && (element.textureAlias = memory.imageLink);
|
|
64313
64335
|
if ("loadIsStarted" in memory && memory.loadIsStarted) {
|
|
64314
64336
|
await element.load();
|