@inditextech/weave-sdk 0.16.1 → 0.16.2

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.cjs CHANGED
@@ -17919,7 +17919,7 @@ var WeaveRegisterManager = class {
17919
17919
 
17920
17920
  //#endregion
17921
17921
  //#region package.json
17922
- var version = "0.16.1";
17922
+ var version = "0.16.2";
17923
17923
 
17924
17924
  //#endregion
17925
17925
  //#region src/managers/setup.ts
@@ -18946,9 +18946,11 @@ var WeaveTextNode = class extends WeaveNode {
18946
18946
  tr.hide();
18947
18947
  }
18948
18948
  const textPosition = textNode.absolutePosition();
18949
+ const stageContainer = stage.container();
18950
+ const stageRect = stageContainer.getBoundingClientRect();
18949
18951
  const areaPosition = {
18950
- x: stage.container().offsetLeft + textPosition.x,
18951
- y: stage.container().offsetTop + textPosition.y
18952
+ x: stageRect.x + stageContainer.offsetLeft + textPosition.x,
18953
+ y: stageRect.y + stageContainer.offsetTop + textPosition.y
18952
18954
  };
18953
18955
  this.createTextAreaDOM(textNode, areaPosition);
18954
18956
  }
package/dist/sdk.js CHANGED
@@ -17919,7 +17919,7 @@ var WeaveRegisterManager = class {
17919
17919
 
17920
17920
  //#endregion
17921
17921
  //#region package.json
17922
- var version = "0.16.1";
17922
+ var version = "0.16.2";
17923
17923
 
17924
17924
  //#endregion
17925
17925
  //#region src/managers/setup.ts
@@ -18946,9 +18946,11 @@ var WeaveTextNode = class extends WeaveNode {
18946
18946
  tr.hide();
18947
18947
  }
18948
18948
  const textPosition = textNode.absolutePosition();
18949
+ const stageContainer = stage.container();
18950
+ const stageRect = stageContainer.getBoundingClientRect();
18949
18951
  const areaPosition = {
18950
- x: stage.container().offsetLeft + textPosition.x,
18951
- y: stage.container().offsetTop + textPosition.y
18952
+ x: stageRect.x + stageContainer.offsetLeft + textPosition.x,
18953
+ y: stageRect.y + stageContainer.offsetTop + textPosition.y
18952
18954
  };
18953
18955
  this.createTextAreaDOM(textNode, areaPosition);
18954
18956
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inditextech/weave-sdk",
3
- "version": "0.16.1",
3
+ "version": "0.16.2",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Jesus Manuel Piñeiro Cid <jesusmpc@inditex.com>",
@@ -43,7 +43,7 @@
43
43
  "version:release": "npm version $RELEASE_VERSION -m \"[npm-scripts] prepare release $RELEASE_VERSION\" --tag-version-prefix \"\""
44
44
  },
45
45
  "dependencies": {
46
- "@inditextech/weave-types": "0.16.1",
46
+ "@inditextech/weave-types": "0.16.2",
47
47
  "@syncedstore/core": "0.6.0",
48
48
  "canvas": "3.1.0",
49
49
  "konva": "9.3.20",