mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-07 16:19:38 +02:00
Fix BlockDiagramConfig
This commit is contained in:
@@ -152,7 +152,6 @@ export interface MermaidConfig {
|
|||||||
wrap?: boolean;
|
wrap?: boolean;
|
||||||
fontSize?: number;
|
fontSize?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The object containing configurations specific for packet diagrams.
|
* The object containing configurations specific for packet diagrams.
|
||||||
*
|
*
|
||||||
@@ -185,16 +184,6 @@ export interface PacketDiagramConfig extends BaseDiagramConfig {
|
|||||||
*/
|
*/
|
||||||
paddingY?: number;
|
paddingY?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* The object containing configurations specific for block diagrams.
|
|
||||||
*
|
|
||||||
* This interface was referenced by `MermaidConfig`'s JSON-Schema
|
|
||||||
* via the `definition` "BlockDiagramConfig".
|
|
||||||
*/
|
|
||||||
export interface BlockDiagramConfig extends BaseDiagramConfig {
|
|
||||||
padding?: number;
|
|
||||||
}
|
|
||||||
/**
|
/**
|
||||||
* 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".
|
||||||
@@ -209,6 +198,15 @@ export interface BaseDiagramConfig {
|
|||||||
*/
|
*/
|
||||||
useMaxWidth?: boolean;
|
useMaxWidth?: boolean;
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* The object containing configurations specific for block diagrams.
|
||||||
|
*
|
||||||
|
* This interface was referenced by `MermaidConfig`'s JSON-Schema
|
||||||
|
* via the `definition` "BlockDiagramConfig".
|
||||||
|
*/
|
||||||
|
export interface BlockDiagramConfig extends BaseDiagramConfig {
|
||||||
|
padding?: number;
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* The object containing configurations specific for c4 diagrams
|
* The object containing configurations specific for c4 diagrams
|
||||||
*
|
*
|
||||||
|
@@ -2060,6 +2060,8 @@ $defs: # JSON Schema definition (maybe we should move these to a separate file)
|
|||||||
unevaluatedProperties: false
|
unevaluatedProperties: false
|
||||||
properties:
|
properties:
|
||||||
padding:
|
padding:
|
||||||
|
type: number
|
||||||
|
minimum: 0
|
||||||
default: 8
|
default: 8
|
||||||
|
|
||||||
FontCalculator:
|
FontCalculator:
|
||||||
|
Reference in New Issue
Block a user