@drincs/pixi-vn 0.4.4 → 0.4.6
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/index.d.mts +7 -5
- package/dist/index.d.ts +7 -5
- package/dist/index.js +8 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -587,9 +587,12 @@ function setMemorySprite(element, memory) {
|
|
|
587
587
|
|
|
588
588
|
// src/classes/canvas/CanvasImage.ts
|
|
589
589
|
var CanvasImage = class _CanvasImage extends CanvasSprite {
|
|
590
|
-
constructor() {
|
|
591
|
-
super(
|
|
590
|
+
constructor(options, imageLink) {
|
|
591
|
+
super(options);
|
|
592
592
|
this.imageLink = "";
|
|
593
|
+
if (imageLink) {
|
|
594
|
+
this.imageLink = imageLink;
|
|
595
|
+
}
|
|
593
596
|
}
|
|
594
597
|
get memory() {
|
|
595
598
|
return __spreadProps(__spreadValues({}, getMemorySprite(this)), {
|
|
@@ -606,7 +609,7 @@ var CanvasImage = class _CanvasImage extends CanvasSprite {
|
|
|
606
609
|
mySprite.texture = sprite.texture;
|
|
607
610
|
return mySprite;
|
|
608
611
|
}
|
|
609
|
-
/**
|
|
612
|
+
/**
|
|
610
613
|
* Load the image from the link and set the texture of the sprite.
|
|
611
614
|
* @param image The link of the image. If it is not set, it will use the imageLink property.
|
|
612
615
|
* @returns A promise that resolves when the image is loaded.
|
|
@@ -1041,7 +1044,7 @@ function showImageWithDissolveTransition(tag, imageUrl, speed, priority) {
|
|
|
1041
1044
|
}
|
|
1042
1045
|
|
|
1043
1046
|
// src/constants.ts
|
|
1044
|
-
var PIXIVN_VERSION = "0.4.
|
|
1047
|
+
var PIXIVN_VERSION = "0.4.6";
|
|
1045
1048
|
|
|
1046
1049
|
// src/functions/SavesUtility.ts
|
|
1047
1050
|
function getSaveData() {
|
|
@@ -1289,7 +1292,7 @@ var _GameWindowManager = class _GameWindowManager {
|
|
|
1289
1292
|
_GameWindowManager.canvasWidth = width;
|
|
1290
1293
|
_GameWindowManager.canvasHeight = height;
|
|
1291
1294
|
_GameWindowManager._app = new Application();
|
|
1292
|
-
return
|
|
1295
|
+
return _GameWindowManager.app.init(__spreadValues({
|
|
1293
1296
|
resolution: window.devicePixelRatio || 1,
|
|
1294
1297
|
autoDensity: true,
|
|
1295
1298
|
width,
|