-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
Enable CSS-like linear gradient fills for flowchart nodes #5913
Open
enourbakhsh
wants to merge
24
commits into
mermaid-js:develop
Choose a base branch
from
enourbakhsh:feature/2907_add-linear-gradient-style
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+2,946
−7
Open
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
7a827f9
Add rendering utility for linear gradient style
enourbakhsh 4cd08d4
Extend lexical grammar to parse linear-gradient fill syntax in flowch…
enourbakhsh 799a216
Enable linear-gradient fills for flowchart nodes in rendering logic
enourbakhsh 5b12ba9
Optimize regex for handling gradient style lookups
enourbakhsh e2fd462
Refactor gradient creator following in-depth testing
enourbakhsh da4c27d
Add rigorous tests for linear gradient style rendering
enourbakhsh 4cddeb7
Set display to none for temporary element and improve comment re styl…
enourbakhsh 7fc4bb8
Fix handling of out-of-bounds coordinates
enourbakhsh 3c5c881
Expand linear-gradient to work with both style and classDef
enourbakhsh 789dd07
Support solid background layers beneath gradients
enourbakhsh a6eb35b
Allow custom transition stops; preserve fill sequence; fix operation …
enourbakhsh 17dc351
Fix transition hint error handling
enourbakhsh 74b6c19
Add graceful handling for invalid transition stops
enourbakhsh c47e9e3
Improve language used for simple fill style
enourbakhsh 853cc1c
Add documentation
enourbakhsh ac3298a
Import expect from vitest and resolve TypeScript error in gradient un…
enourbakhsh 17919dd
Fix fill style application to pass cypress ci tests; do regex search …
enourbakhsh 842f756
Prevent unwanted multilayer fill by removing duplicate class
enourbakhsh ab9b38a
Use regex to filter out 'none' from fill styles; improve docs
enourbakhsh 70b4d89
Replace tangent with encasing for correct mathematical terminology in…
enourbakhsh b7a6cbd
Apply important flag to inline fills to fix priority issues
enourbakhsh b31c08c
Add changeset
enourbakhsh 098159a
Expand on the changeset summary
enourbakhsh 5f46a0f
Improve documentation and add version placeholder
enourbakhsh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
'mermaid': minor | ||
--- | ||
|
||
feat: Add support for multi-layer linear gradient fills in flowcharts | ||
|
||
- Implements CSS-like syntax for defining `linear-gradient()` fills in flowchart nodes. | ||
- Ensures dynamic adaptation of gradient lines to various node shapes. | ||
- Introduces a reusable gradient utility for broader diagram support in the future. | ||
|
||
pr: 5913 |
This file contains 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.