-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow user to modify the default snap point for snapped edges.
It can be done by setting anchor and offset, as per https://docs.google.com/document/d/1qlJe14hcgZSFz8wIJVAFbKTxEPYlG1IP-k4VSIbFur0/edit?resourcekey=0-6HRr6318X_-zM8HgjPDrZQ&tab=t.0#heading=h.c0uts5ftkk58 Z-index issue has not been solved, as it is more complex than anticipated: - edge should render over both nodes it is connected to - edge should render below any potential third node it might intersect with - it is easily possible to show example where there is no correct ordering Solution to this exists where edge would be rendered 3 times: - first once as currently - then twice over both end nodes, within the scope of bounding box of that node and with overflow disabled But that would further decrease the performance of the component + this is not a trivial change PiperOrigin-RevId: 712891596
- Loading branch information
1 parent
49144e5
commit 20a6ca9
Showing
5 changed files
with
158 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+21.6 KB
...p/scuba_goldens/directed_acyclic_graph/chrome-linux/graph_with_edge_offsets.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters