Skip to content

Commit

Permalink
alternative strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
r0light committed Mar 10, 2024
1 parent 75d6d36 commit 3976734
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modeling/views/ModelingArea.vue
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,8 @@ function adjustVertices(graph: dia.Graph, cell: dia.Cell | dia.CellView) {
} else {
console.log("source cell currently not available for" + cell.id);
}
closestToTarget = moveOnLine(closestToTarget, cell.getTargetPoint(), PADDING_TO_SOURCE_ELEMENT);
//closestToTarget = moveOnLine(closestToTarget, cell.getTargetPoint(), PADDING_TO_SOURCE_ELEMENT);
closestToTarget = moveOnLine(closestToTarget, cell.getTargetPoint(), closestToTarget.distance(cell.getTargetPoint()) * 0.4);
// initialize vertices
cell.vertices([closestToTarget]);
Expand Down

0 comments on commit 3976734

Please sign in to comment.