mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-25 10:20:06 +02:00
Add subgraph title margin config options to schema.
This commit is contained in:
@@ -1411,6 +1411,14 @@ export interface FlowchartDiagramConfig extends BaseDiagramConfig {
|
|||||||
* Margin top for the text over the diagram
|
* Margin top for the text over the diagram
|
||||||
*/
|
*/
|
||||||
titleTopMargin?: number;
|
titleTopMargin?: number;
|
||||||
|
/**
|
||||||
|
* Defines a top/bottom margin for subgraph titles
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
subGraphTitleMargin?: {
|
||||||
|
top?: number;
|
||||||
|
bottom?: number;
|
||||||
|
};
|
||||||
arrowMarkerAbsolute?: boolean;
|
arrowMarkerAbsolute?: boolean;
|
||||||
/**
|
/**
|
||||||
* The amount of padding around the diagram as a whole so that embedded
|
* The amount of padding around the diagram as a whole so that embedded
|
||||||
|
@@ -1863,6 +1863,7 @@ $defs: # JSON Schema definition (maybe we should move these to a separate file)
|
|||||||
unevaluatedProperties: false
|
unevaluatedProperties: false
|
||||||
required:
|
required:
|
||||||
- titleTopMargin
|
- titleTopMargin
|
||||||
|
- subGraphTitleMargin
|
||||||
- diagramPadding
|
- diagramPadding
|
||||||
- htmlLabels
|
- htmlLabels
|
||||||
- nodeSpacing
|
- nodeSpacing
|
||||||
@@ -1875,6 +1876,20 @@ $defs: # JSON Schema definition (maybe we should move these to a separate file)
|
|||||||
titleTopMargin:
|
titleTopMargin:
|
||||||
$ref: '#/$defs/GitGraphDiagramConfig/properties/titleTopMargin'
|
$ref: '#/$defs/GitGraphDiagramConfig/properties/titleTopMargin'
|
||||||
default: 25
|
default: 25
|
||||||
|
subGraphTitleMargin:
|
||||||
|
description: |
|
||||||
|
Defines a top/bottom margin for subgraph titles
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
top:
|
||||||
|
type: integer
|
||||||
|
minimum: 0
|
||||||
|
bottom:
|
||||||
|
type: integer
|
||||||
|
minimum: 0
|
||||||
|
default:
|
||||||
|
top: 0
|
||||||
|
bottom: 0
|
||||||
arrowMarkerAbsolute:
|
arrowMarkerAbsolute:
|
||||||
type: boolean # TODO, is this actually used here (it has no default value but was in types)
|
type: boolean # TODO, is this actually used here (it has no default value but was in types)
|
||||||
diagramPadding:
|
diagramPadding:
|
||||||
|
Reference in New Issue
Block a user