diff --git a/.changeset/olive-donkeys-repeat.md b/.changeset/olive-donkeys-repeat.md new file mode 100644 index 0000000..426b69e --- /dev/null +++ b/.changeset/olive-donkeys-repeat.md @@ -0,0 +1,11 @@ +--- +'@visimer/dom': patch +--- + +Re-assert each canvas's mermaid config before it renders. + +`mermaid.initialize()` writes a module-global config, so on a page with more +than one canvas the last one to mount owned it: every other canvas rendered +with the wrong theme and layout options from its second render onwards. +`render()` now re-asserts its own config instead of trusting whatever was +initialized in the constructor. diff --git a/apps/site/index.html b/apps/site/index.html index 78ab270..1491e8e 100644 --- a/apps/site/index.html +++ b/apps/site/index.html @@ -74,7 +74,23 @@
- +Click a node to edit it. Perfect for polishing AI-generated diagrams.
+