@inweb/markup 25.8.14 → 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.
@@ -652,7 +652,10 @@ export class KonvaMarkup implements IMarkup {
652
652
  for (let i = 0; i < linePoints.length; i += 2) {
653
653
  // we need getAbsoluteTransform because inside Konva position starts from {0, 0}
654
654
  // https://stackoverflow.com/a/57641487 - check answer's comments
655
- const atPoint = absoluteTransform.point({ x: linePoints[i], y: linePoints[i + 1] });
655
+ const atPoint = absoluteTransform.point({
656
+ x: linePoints[i],
657
+ y: linePoints[i + 1],
658
+ });
656
659
  const worldPoint = this._worldTransformer.screenToWorld(atPoint);
657
660
 
658
661
  worldPoints.push(worldPoint);
@@ -680,7 +683,10 @@ export class KonvaMarkup implements IMarkup {
680
683
  const textSize = 0.02;
681
684
  const textScale = this._worldTransformer.getScale();
682
685
 
683
- const position = { x: ref.x(), y: ref.y() };
686
+ const position = {
687
+ x: ref.x(),
688
+ y: ref.y(),
689
+ };
684
690
  const worldPoint = this._worldTransformer.screenToWorld(position);
685
691
 
686
692
  const shape = new KonvaText(null, ref);
@@ -752,10 +758,16 @@ export class KonvaMarkup implements IMarkup {
752
758
  // we need getAbsoluteTransform because inside Konva position starts from {0, 0}
753
759
  const absoluteTransform = ref.getAbsoluteTransform();
754
760
 
755
- const atStartPoint = absoluteTransform.point({ x: ref.points()[0], y: ref.points()[1] });
761
+ const atStartPoint = absoluteTransform.point({
762
+ x: ref.points()[0],
763
+ y: ref.points()[1],
764
+ });
756
765
  const worldStartPoint = this._worldTransformer.screenToWorld(atStartPoint);
757
766
 
758
- const atEndPoint = absoluteTransform.point({ x: ref.points()[2], y: ref.points()[3] });
767
+ const atEndPoint = absoluteTransform.point({
768
+ x: ref.points()[2],
769
+ y: ref.points()[3],
770
+ });
759
771
  const worldEndPoint = this._worldTransformer.screenToWorld(atEndPoint);
760
772
 
761
773
  const shape = new KonvaArrow(null, ref);