Commit Graph

4810 Commits

Author SHA1 Message Date
shubham-mermaid
435790f931 Merge pull request #6798 from ZenUml/fix/zenuml-rendering
Fix: zenuml rendering
2025-07-29 09:41:00 +00:00
Alois Klink
0cc0b63e52 Merge pull request #6702 from qraqras/bug/6633_remove-unexpected-spaces-in-block-diagram
Fix: Remove unexpected spaces in Block Diagram
2025-07-29 08:29:22 +00:00
Alois Klink
b7a591b8d3 docs(block): add clarifying comment for overflow
This line is a bit confusing to me, so I thought I should clarify it!

See: 939da082b2
2025-07-29 15:45:53 +09:00
MrCoder
724197c910 chore: add missing newline at end of README.md 2025-07-27 21:25:46 +10:00
MrCoder
6180c5f2ff chore: add TypeScript declaration for ZenUml module 2025-07-27 21:12:08 +10:00
MrCoder
a9f7a94ae3 fix: remove TypeScript error suppression for ZenUml instantiation 2025-07-27 21:08:00 +10:00
MrCoder
da539c1fa1 chore: Upgrade @zenuml/core to version 3.35.2 2025-07-27 20:55:58 +10:00
MrCoder
1c269e0432 Convert mermaid-zenuml README from symlink to regular file
Changed packages/mermaid-zenuml/README.md from a symbolic link pointing to ../mermaid/src/docs/syntax/zenuml.md to a standalone README file with comprehensive documentation for the @mermaid-js/mermaid-zenuml package.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-25 07:52:32 +10:00
shubham-mermaid
020c6d66e0 Merge pull request #6744 from SpecularAura/feature/6617_per-link-style
6617: Support Per-Link Curve Styling in Flowcharts
2025-07-23 09:00:42 +00:00
SpecularAura
cd282f2245 Added Documentation for the per link styling in syntax/flowchat 2025-07-18 21:19:06 +00:00
Christian Knittl-Frank
64bf34b9ab Update MIME type IANA status
The mermaid media type has been recognized by IANA on 2023-09-18
2025-07-18 13:54:16 +01:00
Alois Klink
9faf2f9fb2 Merge pull request #6717 from mermaid-js/6633-Stacking-blocks-renders-unexpected-space
6633: Log warning for blocks exceeding column width
2025-07-18 07:31:17 +00:00
SpecularAura
04612e078a Removed directive syntax from the documentation 2025-07-17 21:12:51 +00:00
autofix-ci[bot]
37bfa2aa75 [autofix.ci] apply automated fixes 2025-07-17 14:46:30 +00:00
darshanr0107
54640ce476 resolved PR comments
on-behalf-of: @Mermaid-Chart <hello@mermaidchart.com>
2025-07-17 20:11:21 +05:30
shubham-mermaid
47b4c56b2b Merge pull request #6772 from hustcc/patch-2
chore: update to add mcp-mermaid
2025-07-17 07:28:14 +00:00
Sidharth Vinod
7ba332ad4a docs: Move changelog content 2025-07-17 12:45:03 +05:30
hustcc
7886fed8b2 chore: update to add mcp-mermaid 2025-07-17 09:36:16 +08:00
Sidharth Vinod
af3d5b6528 docs: Add README for examples 2025-07-16 20:11:38 +05:30
Sidharth Vinod
404286a90d Merge branch 'master' into develop
* master:
  Version Packages
2025-07-16 19:53:10 +05:30
Sidharth Vinod
827a9af790 chore: Add repo to examples package 2025-07-16 19:52:52 +05:30
darshanr0107
8b86d617e7 Merge branch 'develop' into 6633-Stacking-blocks-renders-unexpected-space 2025-07-16 17:29:09 +05:30
darshanr0107
cc2112c7aa fix: updated test case
on-behalf-of: @Mermaid-Chart <hello@mermaidchart.com>
2025-07-16 15:25:16 +05:30
github-actions[bot]
767754f4fb Version Packages 2025-07-16 08:25:22 +00:00
darshanr0107
ac976245ad fix: fix review comments
on-behalf-of: @Mermaid-Chart <hello@mermaidchart.com>
2025-07-16 13:11:44 +05:30
Sidharth Vinod
9e2cd1a926 Merge pull request #6738 from mermaid-js/treemap-diagram-to-use-the-new-class-based-approach
Updated code to use class based approach for treemap
2025-07-15 14:43:24 +00:00
Sidharth Vinod
abf2227faf Merge pull request #6751 from mermaid-js/6750-convert-mindmap-to-class-based-approach
6750: Change MindmapDB to class based architecture
2025-07-15 14:40:29 +00:00
Matteo
70041c806f chore: update katex to latest version due to CVE vulnerability 2025-07-15 14:59:14 +02:00
shubham-mermaid
77e2703f72 Merge branch 'develop' into treemap-diagram-to-use-the-new-class-based-approach 2025-07-15 17:41:20 +05:30
Sidharth Vinod
b11f40e8ce Merge branch 'develop' into chore/downgrade-chokidar-to-3.6.0
* develop:
  chore: Update jsdom
  Update @argos-ci/cypress to v5.0.2
  Update @argos-ci/cypress to v5.0.1
  chore: Upgrade cypress
  chore: Update @argos-ci/cypress to v5
  chore(test): Finish refactoring of jsdomit tests
  docs(tests): Documentation for `jsdomIt` tests
  test(refactor): Provide SVG selection in `jsdomIt` function
  test(refactor): Use real-ish rendering instead of heavy mocking in unit tests
2025-07-15 16:40:18 +05:30
Sidharth Vinod
1fe045e638 chore: pin chokidar version 2025-07-15 16:36:13 +05:30
shubham-mermaid
42a3c3487f Remove constructor and clear method call from TreeMapDB class
on-behalf-of: @Mermaid-Chart <hello@mermaidchart.com>
2025-07-15 13:44:26 +05:30
darshanr0107
96c21c7e54 resolve PR comments and update changeset 2025-07-15 12:19:02 +05:30
shubham-mermaid
2e2e8c4152 Added clear function in constructor on-behalf-of: @Mermaid-Chart <hello@mermaidchart.com> 2025-07-15 12:06:22 +05:30
darshanr0107
260a045da0 migrate mindmap to class based approach 2025-07-14 20:00:13 +05:30
omkarht
a28965064d chore: downgrade chokidar to 3.6.0 2025-07-14 19:34:02 +05:30
quilicicf
34e91f8b65 chore(test): Finish refactoring of jsdomit tests 2025-07-14 14:04:53 +02:00
quilicicf
627ee1f34d docs(tests): Documentation for jsdomIt tests 2025-07-14 14:04:53 +02:00
quilicicf
28840ebd84 test(refactor): Provide SVG selection in jsdomIt function 2025-07-14 14:04:53 +02:00
quilicicf
4145879003 test(refactor): Use real-ish rendering instead of heavy mocking in unit tests
* Creates a utility method `jsdomIt` that overrides `it` from `vitest` and fakes a browser environment by :
  * Creating a DOM with `jsdom` (and `canvas`)
  * Adding (for the duration of the test) that DOM's `window` and `document` on `global`
  * Monkey-patching DOM methods that require a rendering engine (`Element.getBBox` & `Element.getComputedLength`)
* Removes all d3 mocking since it can now work normally in `jsdomIt` tests
* Re-writes existing rendering tests to :
  * Use `jsdomIt`
  * Get rid of most of the involved mocking
  * Run `expect` calls on the generated SVG instead

Inspired by d3's own test code mocking : https://github.com/d3/d3-selection/blob/v3.0.0/test/jsdom.js
2025-07-14 14:04:52 +02:00
shubham-mermaid
e097b480d5 Merge branch 'develop' into treemap-diagram-to-use-the-new-class-based-approach 2025-07-14 16:12:37 +05:30
darshanr0107
966c112eb1 prevent title from overlapping with box top border in Safari 2025-07-14 14:11:06 +05:30
SpecularAura
d7a55b422b Added tests for Per Link Curve Styling 2025-07-12 19:08:42 +00:00
shubham-mermaid
12e3d31437 Addresses type incompatibility by setting the parser database to undefined, on-behalf-of: @Mermaid-Chart <hello@mermaidchart.com> 2025-07-11 16:54:56 +05:30
shubham-mermaid
ad024b01d6 Updated the function to use class method on-behalf-of: @Mermaid-Chart <hello@mermaidchart.com> 2025-07-11 15:18:41 +05:30
shubham-mermaid
c12aea588c Updated code as per suggestions on-behalf-of: @MermaidChart <hello@mermaidchart.com> 2025-07-11 15:16:49 +05:30
shubham-mermaid
9dfbf1166d Refactors treemap DB to class-based state management on-behalf-of: @MermaidChart shubham-mermaid@mermaidchart.com 2025-07-11 14:04:30 +05:30
shubham-mermaid
90707e8062 fix(parser): initialize parser.yy as TreemapDB 2025-07-10 20:25:46 +05:30
shubham-mermaid
7e23f984e6 Updated code to use class based approach 2025-07-10 20:21:27 +05:30
SpecularAura
b3a12237c0 Added per link styling
Edited flowDB.ts which already had interpolate for styling links
individually. Added the ability to modify this parameter using the
newer @ syntax using the curve property.
2025-07-10 12:55:09 +00:00