@fieldnotes/core 0.40.3 → 0.40.4

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/index.cjs CHANGED
@@ -670,7 +670,7 @@ function getBendFromPoint(from, to, dragPoint) {
670
670
  if (len === 0) return 0;
671
671
  const perpX = -dy / len;
672
672
  const perpY = dx / len;
673
- return (dragPoint.x - midX) * perpX + (dragPoint.y - midY) * perpY;
673
+ return 2 * ((dragPoint.x - midX) * perpX + (dragPoint.y - midY) * perpY);
674
674
  }
675
675
  function getArrowTangentAngle(from, to, bend, t) {
676
676
  const cp = getArrowControlPoint(from, to, bend);
@@ -9776,7 +9776,7 @@ var LaserTool = class {
9776
9776
  };
9777
9777
 
9778
9778
  // src/index.ts
9779
- var VERSION = "0.40.3";
9779
+ var VERSION = "0.40.4";
9780
9780
  // Annotate the CommonJS export names for ESM import in node:
9781
9781
  0 && (module.exports = {
9782
9782
  ArrowTool,