Add subgraph title margin config options to schema.

This commit is contained in:
Matheus B
2023-11-10 21:22:31 -03:00
parent aa5d586bd6
commit b134766647
2 changed files with 23 additions and 0 deletions

View File

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

View File

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