@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 +3 -3
- package/dist/sdk.js.map +1 -1
- package/dist/sdk.node.js +3 -3
- package/dist/sdk.node.js.map +1 -1
- package/package.json +2 -2
package/dist/sdk.node.js
CHANGED
|
@@ -21638,7 +21638,7 @@ var WeaveRegisterManager = class {
|
|
|
21638
21638
|
|
|
21639
21639
|
//#endregion
|
|
21640
21640
|
//#region package.json
|
|
21641
|
-
var version = "1.1.
|
|
21641
|
+
var version = "1.1.1";
|
|
21642
21642
|
|
|
21643
21643
|
//#endregion
|
|
21644
21644
|
//#region src/managers/setup.ts
|
|
@@ -24290,7 +24290,7 @@ var WeaveImageNode = class extends WeaveNode {
|
|
|
24290
24290
|
}
|
|
24291
24291
|
updatePlaceholderSize(image, imagePlaceholder) {
|
|
24292
24292
|
const imageAttrs = image.getAttrs();
|
|
24293
|
-
if (!imageAttrs.
|
|
24293
|
+
if (!this.imageState[imageAttrs.id ?? ""]?.loaded) return;
|
|
24294
24294
|
if (!imageAttrs.adding && imageAttrs.cropInfo) {
|
|
24295
24295
|
const actualScale = imageAttrs.uncroppedImage.width / imageAttrs.imageInfo.width;
|
|
24296
24296
|
const cropScale = imageAttrs.cropInfo ? imageAttrs.cropInfo.scaleX : actualScale;
|
|
@@ -24307,7 +24307,7 @@ var WeaveImageNode = class extends WeaveNode {
|
|
|
24307
24307
|
const stage = this.instance.getStage();
|
|
24308
24308
|
const image = stage.findOne(`#${imageAttrs.id}`);
|
|
24309
24309
|
const internalImage = image?.findOne(`#${imageAttrs.id}-image`);
|
|
24310
|
-
if (!imageAttrs.
|
|
24310
|
+
if (!this.imageState[imageAttrs.id ?? ""]?.loaded) return;
|
|
24311
24311
|
if (image && internalImage && !imageAttrs.adding && imageAttrs.cropInfo) {
|
|
24312
24312
|
const actualScale = imageAttrs.uncroppedImage.width / imageAttrs.imageInfo.width;
|
|
24313
24313
|
const cropScale = imageAttrs.cropInfo ? imageAttrs.cropInfo.scaleX : actualScale;
|