Skip to content

Commit

Permalink
Fix BlockDiagramConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
sidharthv96 committed Feb 11, 2024
1 parent 30b180d commit a344d88
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 9 additions & 11 deletions packages/mermaid/src/config.type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ export interface MermaidConfig {
wrap?: boolean;
fontSize?: number;
}

/**
* The object containing configurations specific for packet diagrams.
*
Expand Down Expand Up @@ -185,16 +184,6 @@ export interface PacketDiagramConfig extends BaseDiagramConfig {
*/
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
* via the `definition` "BaseDiagramConfig".
Expand All @@ -209,6 +198,15 @@ export interface BaseDiagramConfig {
*/
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
*
Expand Down
2 changes: 2 additions & 0 deletions packages/mermaid/src/schemas/config.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2060,6 +2060,8 @@ $defs: # JSON Schema definition (maybe we should move these to a separate file)
unevaluatedProperties: false
properties:
padding:
type: number
minimum: 0
default: 8

FontCalculator:
Expand Down

0 comments on commit a344d88

Please sign in to comment.