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

fix elk layout with outside positioned labels/icons #1776

Merged
merged 14 commits into from
Dec 13, 2023

Conversation

gavin-ts
Copy link
Contributor

@gavin-ts gavin-ts commented Dec 12, 2023

Summary

Update elk layout positioning with icons and labels in outside positions.

Details

  • see allow icon for sql_table, class, code/md #1774 (comment)
  • updates elk layout adjustments for outside positioned icons/labels
  • outside labels/icons no longer merge with container padding since they may introduce overlaps with inside container labels/icons
  • will trace edge to shape's outside icon the same way it will trace to a shape's outside label

before/after

Screenshot 2023-12-12 at 4 44 43 PM Screenshot 2023-12-12 at 4 42 42 PM

tracing to outside icon

trace.to.outside.iconst.mp4

fixes odd spacing with multiple/3d

odd.multiple.spacing.mp4

e2ereport

_Users_gavinnishizawa_github_repos_d2_e2etests_out_e2e_report html

@gavin-ts gavin-ts changed the title fix layout with outside positioned icons fix elk layout with outside positioned labels/icons Dec 13, 2023
@gavin-ts gavin-ts marked this pull request as ready for review December 13, 2023 01:40
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.

👍

@gavin-ts gavin-ts merged commit 2829a6a into terrastruct:master Dec 13, 2023
3 checks passed
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.

2 participants