forked from mermaid-js/mermaid
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request mermaid-js#5247 from mermaid-js/sidv/mindmapToTs
Convert Mindmap to TS
- Loading branch information
Showing
15 changed files
with
289 additions
and
347 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,7 @@ | |
"codedoc", | ||
"codemia", | ||
"colour", | ||
"colours", | ||
"commitlint", | ||
"cpettitt", | ||
"customizability", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -124,5 +124,10 @@ | |
}, | ||
"nyc": { | ||
"report-dir": "coverage/cypress" | ||
}, | ||
"pnpm": { | ||
"patchedDependencies": { | ||
"[email protected]": "patches/[email protected]" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 10 additions & 9 deletions
19
packages/mermaid/src/diagrams/mindmap/mindmap-definition.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
// @ts-ignore: JISON doesn't support types | ||
import mindmapParser from './parser/mindmap.jison'; | ||
import * as mindmapDb from './mindmapDb.js'; | ||
import mindmapRenderer from './mindmapRenderer.js'; | ||
import mindmapStyles from './styles.js'; | ||
import parser from './parser/mindmap.jison'; | ||
import db from './mindmapDb.js'; | ||
import renderer from './mindmapRenderer.js'; | ||
import styles from './styles.js'; | ||
import type { DiagramDefinition } from '../../diagram-api/types.js'; | ||
|
||
export const diagram = { | ||
db: mindmapDb, | ||
renderer: mindmapRenderer, | ||
parser: mindmapParser, | ||
styles: mindmapStyles, | ||
export const diagram: DiagramDefinition = { | ||
db, | ||
renderer, | ||
parser, | ||
styles, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.