fix(config.schema): add inheritDir to Flowchart config and regenerate types/docs

This commit is contained in:
nour kouider
2025-04-09 11:31:40 +01:00
parent 8c9b38ed90
commit 463eb07979
3 changed files with 14 additions and 8 deletions

View File

@@ -12,4 +12,4 @@
> `const` **configKeys**: `Set`<`string`> > `const` **configKeys**: `Set`<`string`>
Defined in: [packages/mermaid/src/defaultConfig.ts:279](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/defaultConfig.ts#L279) Defined in: [packages/mermaid/src/defaultConfig.ts:278](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/defaultConfig.ts#L278)

View File

@@ -226,12 +226,6 @@ export interface FlowchartDiagramConfig extends BaseDiagramConfig {
* Defines a top/bottom margin for subgraph titles * 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?: { subGraphTitleMargin?: {
top?: number; top?: number;
bottom?: number; bottom?: number;
@@ -301,12 +295,17 @@ export interface FlowchartDiagramConfig extends BaseDiagramConfig {
* *
*/ */
wrappingWidth?: number; 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 * This interface was referenced by `MermaidConfig`'s JSON-Schema
* via the `definition` "BaseDiagramConfig". * via the `definition` "BaseDiagramConfig".
*/ */
export interface BaseDiagramConfig { export interface BaseDiagramConfig {
useWidth?: number; useWidth?: number;
/** /**

View File

@@ -2105,6 +2105,13 @@ $defs: # JSON Schema definition (maybe we should move these to a separate file)
type: number type: number
default: 200 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: SankeyLinkColor:
description: | description: |
Picks the color of the sankey diagram links, using the colors of the source and/or target of the links. Picks the color of the sankey diagram links, using the colors of the source and/or target of the links.