-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e1a23f1
commit 9651d0c
Showing
10 changed files
with
90 additions
and
88 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 |
---|---|---|
|
@@ -127,5 +127,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
16 changes: 8 additions & 8 deletions
16
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,13 +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: DiagramDefinition = { | ||
db: mindmapDb, | ||
renderer: mindmapRenderer, | ||
parser: mindmapParser, | ||
styles: mindmapStyles, | ||
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
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
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,3 +1,20 @@ | ||
import type * as mindmapDb from './mindmapDb.js'; | ||
import type mindmapDb from './mindmapDb.js'; | ||
|
||
export interface MindMapNode { | ||
id: number; | ||
nodeId: string; | ||
level: number; | ||
descr: string; | ||
type: number; | ||
children: MindMapNode[]; | ||
width: number; | ||
padding: number; | ||
section?: number; | ||
height?: number; | ||
class?: string; | ||
icon?: string; | ||
x?: number; | ||
y?: number; | ||
} | ||
|
||
export type MindmapDB = typeof mindmapDb; |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
diff --git a/package.json b/package.json | ||
index f2f77fa79c99382b079f4051ed51eafe8d2379c8..0bfddf55394e86f3a386eb7ab681369d410bae07 100644 | ||
--- a/package.json | ||
+++ b/package.json | ||
@@ -30,7 +30,15 @@ | ||
"engines": { | ||
"node": ">=0.10" | ||
}, | ||
+ "exports": { | ||
+ ".": { | ||
+ "import": "./dist/cytoscape.umd.js", | ||
+ "default": "./dist/cytoscape.cjs.js" | ||
+ }, | ||
+ "./*": "./*" | ||
+ }, | ||
"main": "dist/cytoscape.cjs.js", | ||
+ "module": "dist/cytoscape.umd.js", | ||
"unpkg": "dist/cytoscape.min.js", | ||
"jsdelivr": "dist/cytoscape.min.js", | ||
"scripts": { |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.