Graphite icon indicating copy to clipboard operation
Graphite copied to clipboard

Snap lines to tangents at any point of the line

Open moosama76 opened this issue 8 months ago • 3 comments

  • snap any point on line to tangents instead of snapping endpoint
  • remove fully_constrained as per 0hypercube on Discord

part of #2352

moosama76 avatar Apr 29 '25 02:04 moosama76

https://github.com/user-attachments/assets/7c7145a1-86c6-4925-89d0-a344ee471685

Keavon avatar Apr 30 '25 04:04 Keavon

Unfortunately from my testing (with a line and an ellipse), this seems really unreliable—I can barely ever get it to engage at all—and it seems to break the existing tangent snapping most of the time. Can you reproduce my results?

Keavon avatar May 20 '25 06:05 Keavon

Unfortunately from my testing (with a line and an ellipse), this seems really unreliable—I can barely ever get it to engage at all—and it seems to break the existing tangent snapping most of the time. Can you reproduce my results?

I stopped the current snapping intentionally I can revert it, The major UX problem is caused because snapping works only inside the bb of the snapped curve (so it's optimized when we implement rtree for layer snapper), I can make it work anywhere but I will have to iterate all tangent points in the document every time mouse moves

moosama76 avatar May 20 '25 08:05 moosama76