@node-projects/web-component-designer 0.1.351 → 0.1.352

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.
@@ -865,7 +865,7 @@ export function straightenLine(p1, p2, stepDeg = 45) {
865
865
  const dy = p2.y - p1.y;
866
866
  const length = Math.sqrt(dx * dx + dy * dy);
867
867
  const newX = p1.x + Math.cos(rad) * length;
868
- const newY = p1.y + Math.sin(rad) * length;
868
+ const newY = p1.y - Math.sin(rad) * length;
869
869
  return { x: newX, y: newY };
870
870
  }
871
871
  export function calculateNormLegth(p1, p2) {