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

@@ -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;
/**

View File

@@ -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.