Skip to content

feature/COMPASS-9432 Use measured heights or calculate #72

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

Merged
merged 3 commits into from
Jun 20, 2025

Conversation

paula-stacho
Copy link
Collaborator

External Links

  • 🎟️ COMPASS-9432

Description

We use node.measured.width|height (see interface BaseNode). elkjs library uses top level node.width|height. In applyLayout, we've been ignoring the measured values and expecting the top level ones, creating an unexpected inconsistency.
This is already used in the migrator, so I'm keeping the top level dimensions to avoid a breaking change.

The other change is, if the measured values will not be provided, the function will apply defaults. I see this as the preferred way, as it keeps the separation of knowledge (the client doesn't need to know about default node styles).

Notes for Reviewers

📸 Screenshots/Screencasts

Before

After

@paula-stacho paula-stacho requested a review from lchans June 19, 2025 09:37
@paula-stacho paula-stacho merged commit 70e6bee into main Jun 20, 2025
4 checks passed
@paula-stacho paula-stacho deleted the feature/COMPASS-9432-apply-layout-heights branch June 20, 2025 09:00
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