@inweb/markup 25.8.15 → 25.8.16

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/markup.js CHANGED
@@ -12885,7 +12885,10 @@
12885
12885
  for (let i = 0; i < linePoints.length; i += 2) {
12886
12886
  // we need getAbsoluteTransform because inside Konva position starts from {0, 0}
12887
12887
  // https://stackoverflow.com/a/57641487 - check answer's comments
12888
- const atPoint = absoluteTransform.point({ x: linePoints[i], y: linePoints[i + 1] });
12888
+ const atPoint = absoluteTransform.point({
12889
+ x: linePoints[i],
12890
+ y: linePoints[i + 1],
12891
+ });
12889
12892
  const worldPoint = this._worldTransformer.screenToWorld(atPoint);
12890
12893
  worldPoints.push(worldPoint);
12891
12894
  }
@@ -12906,7 +12909,10 @@
12906
12909
  this.konvaLayerFind("Text").forEach((ref) => {
12907
12910
  const textSize = 0.02;
12908
12911
  const textScale = this._worldTransformer.getScale();
12909
- const position = { x: ref.x(), y: ref.y() };
12912
+ const position = {
12913
+ x: ref.x(),
12914
+ y: ref.y(),
12915
+ };
12910
12916
  const worldPoint = this._worldTransformer.screenToWorld(position);
12911
12917
  const shape = new KonvaText(null, ref);
12912
12918
  const text = {
@@ -12962,9 +12968,15 @@
12962
12968
  this.konvaLayerFind("Arrow").forEach((ref) => {
12963
12969
  // we need getAbsoluteTransform because inside Konva position starts from {0, 0}
12964
12970
  const absoluteTransform = ref.getAbsoluteTransform();
12965
- const atStartPoint = absoluteTransform.point({ x: ref.points()[0], y: ref.points()[1] });
12971
+ const atStartPoint = absoluteTransform.point({
12972
+ x: ref.points()[0],
12973
+ y: ref.points()[1],
12974
+ });
12966
12975
  const worldStartPoint = this._worldTransformer.screenToWorld(atStartPoint);
12967
- const atEndPoint = absoluteTransform.point({ x: ref.points()[2], y: ref.points()[3] });
12976
+ const atEndPoint = absoluteTransform.point({
12977
+ x: ref.points()[2],
12978
+ y: ref.points()[3],
12979
+ });
12968
12980
  const worldEndPoint = this._worldTransformer.screenToWorld(atEndPoint);
12969
12981
  const shape = new KonvaArrow(null, ref);
12970
12982
  const arrow = {