mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-15 06:19:24 +02:00
fix(config.schema): add inheritDir to Flowchart config and regenerate types/docs
This commit is contained in:
@@ -226,12 +226,6 @@ export interface FlowchartDiagramConfig extends BaseDiagramConfig {
|
||||
* Defines a top/bottom margin for subgraph titles
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* If true, subgraphs without explicit direction will inherit the global graph direction (e.g., LR, TB, RL, BT).
|
||||
* Defaults to `false` to preserve legacy layout behavior.
|
||||
*/
|
||||
inheritDir?: boolean;
|
||||
|
||||
subGraphTitleMargin?: {
|
||||
top?: number;
|
||||
bottom?: number;
|
||||
@@ -301,12 +295,17 @@ export interface FlowchartDiagramConfig extends BaseDiagramConfig {
|
||||
*
|
||||
*/
|
||||
wrappingWidth?: number;
|
||||
/**
|
||||
* If true, subgraphs without explicit direction will inherit the global graph direction
|
||||
* (e.g., LR, TB, RL, BT). Defaults to false to preserve legacy layout behavior.
|
||||
*
|
||||
*/
|
||||
inheritDir?: boolean;
|
||||
}
|
||||
/**
|
||||
* This interface was referenced by `MermaidConfig`'s JSON-Schema
|
||||
* via the `definition` "BaseDiagramConfig".
|
||||
*/
|
||||
|
||||
export interface BaseDiagramConfig {
|
||||
useWidth?: number;
|
||||
/**
|
||||
|
@@ -2105,6 +2105,13 @@ $defs: # JSON Schema definition (maybe we should move these to a separate file)
|
||||
type: number
|
||||
default: 200
|
||||
|
||||
inheritDir:
|
||||
type: boolean
|
||||
default: false
|
||||
description: |
|
||||
If true, subgraphs without explicit direction will inherit the global graph direction
|
||||
(e.g., LR, TB, RL, BT). Defaults to false to preserve legacy layout behavior.
|
||||
|
||||
SankeyLinkColor:
|
||||
description: |
|
||||
Picks the color of the sankey diagram links, using the colors of the source and/or target of the links.
|
||||
|
Reference in New Issue
Block a user