mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-24 17:59:39 +02:00
Merge branch 'develop' into sidv/typescript
* develop: (67 commits) fix: Tsconfig Update prettier chore: Run postbuild with prepare (formatting) prettier fix Removed warnings in the grammar oand some console logging ci: lint .jison files for any console.log() fix JSDOC @param, @returns; fixed a few minor typos in comments unmangle sentence about doc changes committed and showing up on docsify site change references from /docs to /src/docs; rework doc section in CONTRIBUTING Update after lint comments Regenerate the directive docs as I changed them chore(deps-dev): bump typescript from 4.7.4 to 4.8.2 Update duplicate copy pasted directive description chore(deps-dev): bump @types/dompurify from 2.3.3 to 2.3.4 chore(deps-dev): bump jest-environment-jsdom from 29.0.1 to 29.0.2 chore(deps-dev): bump babel-jest from 29.0.1 to 29.0.2 Lint fixes Removing requirement to add ids for nodes with a shape #3336 Merged typescript changes Merged typescript changes ...
This commit is contained in:
@@ -27,10 +27,12 @@ export interface MermaidConfig {
|
||||
er?: ErDiagramConfig;
|
||||
pie?: PieDiagramConfig;
|
||||
requirement?: RequirementDiagramConfig;
|
||||
mindmap?: MindmapDiagramConfig;
|
||||
gitGraph?: GitGraphDiagramConfig;
|
||||
c4?: C4DiagramConfig;
|
||||
dompurifyConfig?: DOMPurify.Config;
|
||||
wrap?: boolean;
|
||||
fontSize?: number;
|
||||
}
|
||||
|
||||
// TODO: More configs needs to be moved in here
|
||||
@@ -212,6 +214,12 @@ export interface RequirementDiagramConfig extends BaseDiagramConfig {
|
||||
line_height?: number;
|
||||
}
|
||||
|
||||
export interface MindmapDiagramConfig extends BaseDiagramConfig {
|
||||
useMaxWidth: boolean;
|
||||
padding: number;
|
||||
maxNodeWidth: number;
|
||||
}
|
||||
|
||||
export type PieDiagramConfig = BaseDiagramConfig;
|
||||
|
||||
export interface ErDiagramConfig extends BaseDiagramConfig {
|
||||
|
Reference in New Issue
Block a user