@drincs/pixi-vn 0.4.5 → 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.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(...arguments);
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.5";
1047
+ var PIXIVN_VERSION = "0.4.6";
1045
1048
 
1046
1049
  // src/functions/SavesUtility.ts
1047
1050
  function getSaveData() {