Skip to content

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 force-pushed the layout-with-outside-icons branch from 162cad3 to b299389 Compare December 13, 2023 00:32
@gavin-ts gavin-ts force-pushed the layout-with-outside-icons branch from b299389 to 94055a0 Compare December 13, 2023 00:48
@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 requested a review from alixander December 13, 2023 01:40
@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
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