-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
[Architecture/fix]: Better documentation & error handling of issues causing inconsistent rendering #6230
base: develop
Are you sure you want to change the base?
[Architecture/fix]: Better documentation & error handling of issues causing inconsistent rendering #6230
Conversation
…to 6166/different-render
🦋 Changeset detectedLatest commit: 9531cd3 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✅ Deploy Preview for mermaid-js ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
commit: |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #6230 +/- ##
==========================================
- Coverage 4.47% 4.46% -0.01%
==========================================
Files 384 384
Lines 54179 54261 +82
Branches 623 623
==========================================
Hits 2425 2425
- Misses 51754 51836 +82
Flags with carried forward coverage won't be shown. Click here to find out more.
|
📑 Summary
Handles issues that caused architecture diagrams to have non-deterministic rendering. The underlying cause was due to 1 of 2 issues:
Resolves #6024, #6166
📏 Design Decisions
Missing constraints (6024)
getRelativeConstraints()
has been updated to guarantee it handles all directions for XY edges.shiftPositionByArchitectureDirectionPair()
where the Y shift for XY edges was returning the incorrect sign. SincegetRelativeConstraints()
wasn't properly handling all XY edges in the first place, the issue never manifested itself sooner.Poorly documented limitations (6166)
An underlying limitation with the rendering engine is XY edges cannot extend more then 1 unit in the X/Y direction.
📋 Tasks
Make sure you
MERMAID_RELEASE_VERSION
is used for all new features.pnpm changeset
and following the prompts. Changesets that add features should beminor
and those that fix bugs should bepatch
. Please prefix changeset messages withfeat:
,fix:
, orchore:
.