Commit Graph
27 Commits
Author SHA1 Message Date
Mac CarterandClaude Opus 4.6 (prompted with care by @M-a-c) 700a6925c0 feat: add hierarchicalNamespaces config option for compact rendering
When set to false, only user-declared namespaces render as flat boxes
using their full qualified name; auto-created intermediate ancestors
are elided and their children moved to the nearest explicit ancestor.
Defaults to true (existing nested behavior).

Adds explicit field to NamespaceNode, updates both v2 and v3
renderers, demos, docs, unit tests, and Cypress E2E snapshots.

Co-Authored-By: Claude Opus 4.6 (prompted with care by @M-a-c)
2026-04-17 13:39:40 -05:00
Mac CarterandClaude Opus 4.6 (prompted with care by @M-a-c) e002c7af6b feat: support custom labels on namespaces
Add square bracket label syntax for namespaces, matching the existing
class label pattern: namespace Auth["Authentication Service"] { }
The label replaces the displayed name while the id is used internally.

Closes #6018

Co-Authored-By: Claude Opus 4.6 (prompted with care by @M-a-c)
2026-04-11 00:15:32 -05:00
Mac CarterandClaude Opus 4.6 (prompted with care by @M-a-c) 6335421783 feat: add nested namespace support for class diagrams
Restore and properly implement nested namespaces, which regressed
between 11.3.0 and 11.4.x. Both dot notation (namespace A.B.C) and
syntactic nesting (namespace A { namespace B {} }) now create
hierarchical namespace clusters in the rendered diagram.

Closes #3384, #4618, #5487, #6085

Co-Authored-By: Claude Opus 4.6 (prompted with care by @M-a-c)
2026-04-10 23:23:19 -05:00
kairi003 3f46c94ab2 Merge branch 'develop' into tmp/feature/4706_allow_notes_in_namespace 2025-10-26 02:39:38 +09:00
Josh Soref c81f63b462 spelling: id
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2025-04-17 17:38:54 -04:00
kairi003 25c43fa439 add: horizontal rules to demos/classchart.html 2024-11-10 02:34:31 +09:00
kairi003 4ee1fe2ca4 Merge branch 'master' into feature/4706_allow_notes_in_namespace 2024-11-10 01:52:46 +09:00
René Lombard 1d8f524913 Manually updated the classchart 2024-09-12 12:40:19 +02:00
René Lombard cf45a35971 Updated the code to include nested namespaces for class diagrams 2024-09-09 17:20:25 +02:00
kairi003 58fd5ddbaf Add: demo for notes in namespace on classDialog 2024-09-03 15:22:41 +09:00
Sidharth Vinod 16f1dccd22 chore: Prettier 2024-03-23 15:24:18 +05:30
Justin Greywolf 6ed0c9bc36 update tests 2023-08-15 10:02:31 -07:00
Justin Greywolf e29d2b29a9 apply suggesitons 2023-07-03 09:40:25 -07:00
Justin Greywolf 6abf0f1d19 Merge branch 'develop' into UpdateClassMemberHandling 2023-06-29 08:55:37 -07:00
Tom PERRILLAT-COLLOMB 61e5dbeaa6 fix(class): keep members in namespace classes 2023-06-25 00:15:35 +02:00
Justin Greywolf 164605b442 update classes to handle , in generic 2023-06-12 11:31:29 -07:00
Sidharth Vinod 735aceb37a Fix E2E Tests 2023-02-19 14:03:11 +05:30
Sidharth Vinod 2c88c6b526 Merge pull request #3921 from tomperr/fix/3795_class_tilde_visibility
fix(generic): fix generic type detection
2022-12-24 00:33:39 +05:30
Tom PERRILLAT-COLLOMB df42f96b5a docs(classDiagram): add nested generic type example in docs 2022-12-22 11:17:44 +01:00
Tom PERRILLAT-COLLOMB 5705515483 fix(generic): fix generic type regex
instead of looking for single tildes, we are now looking for pairs, which avoid bugs when there is an odd number of tildes
2022-12-16 22:17:39 +00:00
Alois Klink 4cc3b17d36 docs(demos): fix indentation of YAML front-matter
Mermaid diagrams that have YAML front-matter can now be indented in
HTML code, see commit:
5cfa9196 (fix: support parsing indented mmd YAML from HTML, 2022-11-27)

Some diagrams previously had a mix of tabs/spaces for indentation.
In order for `dedent` to work, these diagrams had to be converted to
using a consistent indentation.
2022-11-27 18:29:28 +00:00
Mason Malone a11ab3d5ea Disallow leading whitespace before delimiter 2022-11-19 12:52:49 -08:00
Mason Malone 70f024735b Add title support using YAML frontmatter 2022-11-18 20:42:54 -08:00
Ashley Engelund (weedySeaDragon @ github) fdb81be0a0 update demo diagrams to have lang, hr tags, src = mermaid.js where needed. 2022-10-02 13:51:25 -07:00
Ashley Engelund (weedySeaDragon @ github) 7ed3c21a6d move charts to their pages; index page just a list to them 2022-09-26 18:16:36 -07:00
Sidharth Vinod 91478caf5b fix #3407 Replace div with pre and format 2022-09-05 00:48:36 +05:30
Cory Gwin bfca242958 feat(:accessibility): Add accessibility fields to class chart 2022-04-07 13:56:23 +00:00