There was an issue with overriding the subgraphs with the main graphs direction which this commit fixes. It only overrides `rankdir` on the `setGraph` function so that the subgraph preserves it's `rankdir`. There is likely a better way of doing this by modifying the initialization of subgraph configuration to match the main graph when it comes to other elements in the JSON object which composes the graph label.
As we modify the codebase this added line can be deprecated once we add more modular control to subgraphs such as allowing custom spacing or configurations for them. As `rankdir` is the only thing one can set with the `direction` keyword that is the only variable being overwritten for now.
* 'develop' of github.com:mermaid-js/mermaid:
Revert "fix: render the participants in same order as they are created"
Revert "Feature/4935 subgraph title margin config option"
Update integrations-community.md (Add Codemia to the list of productivity tools using Mermaid.)
* 'master' of github.com:mermaid-js/mermaid:
add inadvertent tracking removal
update announcement bar
* 'release/10.7.0' of github.com:mermaid-js/mermaid:
* 'develop' of github.com:mermaid-js/mermaid:
chore: Minor cleanup of imperativeState
fix: replace functional approaches with oop
chore: fix autogen docs
chore(sequence): Update packages/mermaid/src/docs/syntax/sequenceDiagram.md
chore(sequence): update doc for actors/participant creation/deletion fix
chore: remove unused e2e tests file
chore: add e2e test that shows db cleanup problem
chore: add e2e test that shows db cleanup problem
fix: add imperativeState and replace sequenceDb global variables with it
* master:
add jetbrains blog post
additional updates
update latest news pages
fix addl broken link
fix link
build: use `tsx` instead of `ts-node-esm`
verbiage updates
feat: Track outbound links in plausible
update getting started page
add blog post
chore: Update promo link
docs: Holiday promo v2
Update packages/mermaid/src/docs/.vitepress/components/TopBar.vue
update announcements page
update announcement bar verbiage
* develop: (200 commits)
chore(deps): update all minor dependencies
adds corresponding change in docs/ecosystem
Adds Unison programming language to community integrations list
Fixed parser/tests
Update docs
Update classDiagram.md
Update classDiagram.md
Update docs
Update packages/mermaid/src/diagrams/class/classDb.ts
Update packages/mermaid/src/docs/syntax/classDiagram.md
Update packages/mermaid/src/diagrams/class/classDb.ts
chore(deps): update all minor dependencies
Update generics docs
Update docs
Address potential undefined
refactor: Move maxEdges out of flowchart config.
refactor: Move maxEdges out of flowchart config.
chore: Add maxEdges to secure list
Update docs
Update NiceGuy.io links in integrations-community.md
...
This commit resolves the issues with subgraph configuration, specifically for nodeSpacing and rankSpacing. This commit additionally adds an example graph to the `flowchart.html` to demonstrate this resolution. This commit resolves#3258