Skip to content

Commit

Permalink
Merge branch 'next' into pr/Yokozuna59/4751
Browse files Browse the repository at this point in the history
* next:
  Fix BlockDiagramConfig
  Fix docs
  • Loading branch information
sidharthv96 committed Feb 11, 2024
2 parents 00423ed + a344d88 commit 062176d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/config/setup/modules/mermaidAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ mermaid.initialize(config);

#### Defined in

[mermaidAPI.ts:623](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaidAPI.ts#L623)
[mermaidAPI.ts:622](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaidAPI.ts#L622)

## Functions

Expand Down
2 changes: 1 addition & 1 deletion packages/mermaid/src/config.type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export interface BaseDiagramConfig {
* via the `definition` "BlockDiagramConfig".
*/
export interface BlockDiagramConfig extends BaseDiagramConfig {
padding?: unknown;
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 062176d

Please sign in to comment.