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:
@@ -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)
|
||||||
|
@@ -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;
|
||||||
/**
|
/**
|
||||||
|
@@ -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.
|
||||||
|
Reference in New Issue
Block a user