Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

position tooltip/link icons on shape #1466

Merged
merged 9 commits into from
Jul 4, 2023

Conversation

gavin-ts
Copy link
Contributor

@gavin-ts gavin-ts commented Jul 3, 2023

Summary

Update renderer to position tooltip/link icons on the shape's border.

Details

before/after

_Users_gavinnishizawa_github_repos_d2_e2etests_out_e2e_report html (6)

@gavin-ts gavin-ts changed the title position tooltip/link on shape position tooltip/link icons on shape Jul 3, 2023
@gavin-ts gavin-ts marked this pull request as ready for review July 3, 2023 23:26
@gavin-ts gavin-ts requested a review from a team July 3, 2023 23:26
Copy link
Collaborator

@alixander alixander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. the position for package particularly is weird. the algorithm should be changed to be "top right corner" for package, hexagon, and step shapes.
  2. i think having the "both" icons be on two different axes to be very weird. we should find the placement for one, and then place the other one to the right of it. even if it floats, there's no ambiguity.

Screen Shot 2023-07-03 at 5 53 19 PM

@gavin-ts
Copy link
Contributor Author

gavin-ts commented Jul 4, 2023

  1. the position for package particularly is weird. the algorithm should be changed to be "top right corner" for package, hexagon, and step shapes.
  2. i think having the "both" icons be on two different axes to be very weird. we should find the placement for one, and then place the other one to the right of it. even if it floats, there's no ambiguity.

updated (again):

_Users_gavinnishizawa_github_repos_d2_e2etests_testdata_stable_all_shapes_link_dagre_sketch exp svg (2)

@gavin-ts gavin-ts requested a review from alixander July 4, 2023 01:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tooltip/link icons for some shapes appear floating
2 participants