-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
fix(timeline): ensure consistent vertical line lengths with visible arrowheads #6616
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
base: develop
Are you sure you want to change the base?
Conversation
…rrowheads - Fixed inconsistent vertical line lengths in timeline diagrams - All vertical lines now extend to same depth regardless of event count - Added sufficient padding for clear visibility of dashed lines and arrowheads - Added comprehensive test case and demo example Fixes #6610
🦋 Changeset detectedLatest commit: ca80f71 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 project configuration. |
mermaid
@mermaid-js/mermaid-zenuml
@mermaid-js/layout-elk
@mermaid-js/parser
@mermaid-js/tiny
commit: |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #6616 +/- ##
=======================================
Coverage 3.87% 3.87%
=======================================
Files 414 414
Lines 43303 43300 -3
Branches 666 666
=======================================
Hits 1679 1679
+ Misses 41624 41621 -3
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
Description
Fixes #6610 - Timeline vertical lines now have consistent lengths with clearly visible arrowheads.
Changes
maxEventLineLength
calculation to include proper event spacingBefore/After
Before: Vertical lines had inconsistent lengths, arrowheads were barely visible

After: All vertical lines extend to same depth with clear dashed lines and full arrowheads

Testing
timeline.spec.ts
demos/timeline.html
with complex exampleResolves #6610
📏 Design Decisions
Describe the way your implementation works or what design decisions you made if applicable.
📋 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:
.