-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
feat: Add point styling for quadrant chart #5173
feat: Add point styling for quadrant chart #5173
Conversation
✅ Deploy Preview for mermaid-js ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #5173 +/- ##
==========================================
- Coverage 5.74% 5.73% -0.02%
==========================================
Files 277 277
Lines 41899 42002 +103
Branches 489 515 +26
==========================================
Hits 2407 2407
- Misses 39492 39595 +103
Flags with carried forward coverage won't be shown. Click here to find out more.
|
packages/mermaid/src/diagrams/quadrant-chart/parser/quadrant.jison
Outdated
Show resolved
Hide resolved
When adding support for styling, we should also allow the same style to be applied to multiple points easily. Flowchart uses classes to accomplish this. https://mermaid.js.org/syntax/flowchart.html#styling-and-classes |
changed it to take styles as a single string in the styling with classnames is yet to be implemented, working on it still |
there also a few places that i need your advice as for what to do
|
various fixes
|
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.
@ilyes-ced we forgot a major part, the docs.
This should be ready to go once the docs are added.
not sure if what i added is enough |
Co-authored-by: ilyes-ced <[email protected]>
@ilyes-ced the docs were added to the wrong file, so they were deleted when docs:build ran. |
@ilyes-ced, Thank you for the contribution! |
📑 Summary
addes ability to add point styling to quadrant charts
Resolves #4995
📏 Design Decisions
adds ability to add those 4 parameters
❌ the problem
it can either accept one of the 4 paramaters or accept 1,2,3 or 4 params in this specific order
it would accept one of those 4
it wouldnt accept for example
the reason
i am unfimiliar with jison so i did this to make accepting parmas optional in file
packages/mermaid/src/diagrams/quadrant-chart/parser/quadrant.jison
following this pattren to include all possible combination it would require 81 lines like this
and this is where i need advice on how to deal with this
📋 Tasks
Make sure you
MERMAID_RELEASE_VERSION
is used for all new features.develop
branch