feat(flowchart): Add highlight and drag node interaction#7318
Open
vicaya wants to merge 4 commits intomermaid-js:developfrom
Open
feat(flowchart): Add highlight and drag node interaction#7318vicaya wants to merge 4 commits intomermaid-js:developfrom
vicaya wants to merge 4 commits intomermaid-js:developfrom
Conversation
🦋 Changeset detectedLatest commit: cf07a49 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-js/examples
mermaid
@mermaid-js/layout-elk
@mermaid-js/layout-tidy-tree
@mermaid-js/mermaid-zenuml
@mermaid-js/parser
@mermaid-js/tiny
commit: |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #7318 +/- ##
==========================================
- Coverage 3.52% 3.50% -0.02%
==========================================
Files 509 509
Lines 49790 50037 +247
Branches 785 785
==========================================
Hits 1754 1754
- Misses 48036 48283 +247
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 ↗︎
|
Draft
4 tasks
Author
|
/retest |
a205e2e to
59c680d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📑 Summary
Adds interactive features to flowchart diagrams: click-to-highlight nodes and connected edges with drop shadows, and drag-to-rearrange node positions with edges following the dragged node.
Resolves #5883
Configuration Options
flowchart.enableInteraction(boolean, default: true) - Enables/disables interactive featuresInteractions
Implementation Details
filter: drop-shadow()for highlighting (no inline styles).edgePaths) and newer rendering (.edges) pathsclickDistance(3)to distinguish clicks from dragsDemo & Testing
demos/flowchart.htmlfor testing against dark backgroundscypress/integration/rendering/flowchart-interaction.spec.ts📋 Tasks
Make sure you
MERMAID_RELEASE_VERSIONis used for all new features.pnpm changesetand following the prompts. Changesets that add features should beminorand those that fix bugs should bepatch. Please prefix changeset messages withfeat:,fix:, orchore:.