@inditextech/weave-sdk 1.1.0 → 1.1.1

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/sdk.js CHANGED
@@ -21636,7 +21636,7 @@ var WeaveRegisterManager = class {
21636
21636
 
21637
21637
  //#endregion
21638
21638
  //#region package.json
21639
- var version = "1.1.0";
21639
+ var version = "1.1.1";
21640
21640
 
21641
21641
  //#endregion
21642
21642
  //#region src/managers/setup.ts
@@ -24271,7 +24271,7 @@ var WeaveImageNode = class extends WeaveNode {
24271
24271
  }
24272
24272
  updatePlaceholderSize(image, imagePlaceholder) {
24273
24273
  const imageAttrs = image.getAttrs();
24274
- if (!imageAttrs.loadedImage) return;
24274
+ if (!this.imageState[imageAttrs.id ?? ""]?.loaded) return;
24275
24275
  if (!imageAttrs.adding && imageAttrs.cropInfo) {
24276
24276
  const actualScale = imageAttrs.uncroppedImage.width / imageAttrs.imageInfo.width;
24277
24277
  const cropScale = imageAttrs.cropInfo ? imageAttrs.cropInfo.scaleX : actualScale;
@@ -24288,7 +24288,7 @@ var WeaveImageNode = class extends WeaveNode {
24288
24288
  const stage = this.instance.getStage();
24289
24289
  const image = stage.findOne(`#${imageAttrs.id}`);
24290
24290
  const internalImage = image?.findOne(`#${imageAttrs.id}-image`);
24291
- if (!imageAttrs.loadedImage) return;
24291
+ if (!this.imageState[imageAttrs.id ?? ""]?.loaded) return;
24292
24292
  if (image && internalImage && !imageAttrs.adding && imageAttrs.cropInfo) {
24293
24293
  const actualScale = imageAttrs.uncroppedImage.width / imageAttrs.imageInfo.width;
24294
24294
  const cropScale = imageAttrs.cropInfo ? imageAttrs.cropInfo.scaleX : actualScale;