Comparing version
@@ -99,2 +99,7 @@ /** | ||
nodePlacementStrategy?: 'SIMPLE' | 'NETWORK_SIMPLEX' | 'LINEAR_SEGMENTS' | 'BRANDES_KOEPF'; | ||
/** | ||
* This strategy decides how to find cycles in the graph and deciding which edges need adjustment to break loops. | ||
* | ||
*/ | ||
cycleBreakingStrategy?: 'GREEDY' | 'DEPTH_FIRST' | 'INTERACTIVE' | 'MODEL_ORDER' | 'GREEDY_MODEL_ORDER'; | ||
}; | ||
@@ -182,2 +187,3 @@ darkMode?: boolean; | ||
requirement?: RequirementDiagramConfig; | ||
architecture?: ArchitectureDiagramConfig; | ||
mindmap?: MindmapDiagramConfig; | ||
@@ -994,2 +1000,13 @@ gitGraph?: GitGraphDiagramConfig; | ||
/** | ||
* The object containing configurations specific for architecture diagrams | ||
* | ||
* This interface was referenced by `MermaidConfig`'s JSON-Schema | ||
* via the `definition` "ArchitectureDiagramConfig". | ||
*/ | ||
export interface ArchitectureDiagramConfig extends BaseDiagramConfig { | ||
padding?: number; | ||
iconSize?: number; | ||
fontSize?: number; | ||
} | ||
/** | ||
* The object containing configurations specific for mindmap diagrams | ||
@@ -996,0 +1013,0 @@ * |
@@ -0,1 +1,6 @@ | ||
/** | ||
* Web page integration module for the mermaid framework. It uses the mermaidAPI for mermaid | ||
* functionality and to render the diagrams to svg code! | ||
*/ | ||
import { registerIconPacks } from '$root/rendering-util/icons.js'; | ||
import type { MermaidConfig } from './config.type.js'; | ||
@@ -168,4 +173,5 @@ import { detectType } from './diagram-api/detectType.js'; | ||
detectType: typeof detectType; | ||
registerIconPacks: typeof registerIconPacks; | ||
} | ||
declare const mermaid: Mermaid; | ||
export default mermaid; |
@@ -1,4 +0,4 @@ | ||
import { Diagram } from './Diagram.js'; | ||
import type { MermaidConfig } from './config.type.js'; | ||
import type { DiagramMetadata, DiagramStyleClassDef } from './diagram-api/types.js'; | ||
import { Diagram } from './Diagram.js'; | ||
import type { D3Element, ParseOptions, ParseResult, RenderResult } from './types.js'; | ||
@@ -5,0 +5,0 @@ /** |
@@ -130,2 +130,7 @@ export function getThemeVariables(userOverrides: any): Theme; | ||
pieOpacity: any; | ||
archEdgeColor: any; | ||
archEdgeArrowColor: any; | ||
archEdgeWidth: any; | ||
archGroupBorderColor: any; | ||
archGroupBorderWidth: any; | ||
quadrant1Fill: any; | ||
@@ -132,0 +137,0 @@ quadrant2Fill: any; |
@@ -70,2 +70,7 @@ export function getThemeVariables(userOverrides: any): Theme; | ||
personBkg: string; | ||
archEdgeColor: string; | ||
archEdgeArrowColor: string; | ||
archEdgeWidth: string; | ||
archGroupBorderColor: any; | ||
archGroupBorderWidth: string; | ||
labelColor: string; | ||
@@ -72,0 +77,0 @@ errorBkgColor: string; |
@@ -68,2 +68,7 @@ export function getThemeVariables(userOverrides: any): Theme; | ||
personBkg: string; | ||
archEdgeColor: string; | ||
archEdgeArrowColor: string; | ||
archEdgeWidth: string; | ||
archGroupBorderColor: any; | ||
archGroupBorderWidth: string; | ||
labelColor: string; | ||
@@ -70,0 +75,0 @@ errorBkgColor: string; |
@@ -67,2 +67,7 @@ export function getThemeVariables(userOverrides: any): Theme; | ||
personBkg: string; | ||
archEdgeColor: string; | ||
archEdgeArrowColor: string; | ||
archEdgeWidth: string; | ||
archGroupBorderColor: any; | ||
archGroupBorderWidth: string; | ||
labelColor: string; | ||
@@ -69,0 +74,0 @@ errorBkgColor: string; |
@@ -72,2 +72,7 @@ export function getThemeVariables(userOverrides: any): Theme; | ||
personBkg: string; | ||
archEdgeColor: string; | ||
archEdgeArrowColor: string; | ||
archEdgeWidth: string; | ||
archGroupBorderColor: any; | ||
archGroupBorderWidth: string; | ||
labelColor: string; | ||
@@ -74,0 +79,0 @@ errorBkgColor: string; |
{ | ||
"name": "mermaid", | ||
"version": "11.0.2", | ||
"version": "11.1.0", | ||
"description": "Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.", | ||
@@ -52,4 +52,6 @@ "type": "module", | ||
"@braintree/sanitize-url": "^7.0.1", | ||
"@iconify/utils": "^2.1.32", | ||
"cytoscape": "^3.29.2", | ||
"cytoscape-cose-bilkent": "^4.1.0", | ||
"cytoscape-fcose": "^2.2.0", | ||
"d3": "^7.9.0", | ||
@@ -68,7 +70,9 @@ "d3-sankey": "^0.12.3", | ||
"uuid": "^9.0.1", | ||
"@mermaid-js/parser": "^0.2.0" | ||
"@mermaid-js/parser": "^0.3.0" | ||
}, | ||
"devDependencies": { | ||
"@adobe/jsonschema2md": "^8.0.0", | ||
"@iconify/types": "^2.0.0", | ||
"@types/cytoscape": "^3.21.4", | ||
"@types/cytoscape-fcose": "^2.2.4", | ||
"@types/d3": "^7.4.3", | ||
@@ -75,0 +79,0 @@ "@types/d3-sankey": "^0.12.4", |
@@ -38,3 +38,4 @@ <p align="center"> | ||
[](https://twitter.com/mermaidjs_) | ||
[](https://argos-ci.com) | ||
[](https://argos-ci.com?utm_source=mermaid&utm_campaign=oss) | ||
[](https://securityscorecards.dev/viewer/?uri=github.com/mermaid-js/mermaid) | ||
@@ -86,2 +87,6 @@ <img src="./img/header.png" alt="" /> | ||
Our PR Visual Regression Testing is powered by [Argos](https://argos-ci.com/?utm_source=mermaid&utm_campaign=oss) with their generous Open Source plan. It makes the process of reviewing PRs with visual changes a breeze. | ||
[](https://argos-ci.com?utm_source=mermaid&utm_campaign=oss) | ||
In our release process we rely heavily on visual regression tests using [applitools](https://applitools.com/). Applitools is a great service which has been easy to use and integrate with our tests. | ||
@@ -88,0 +93,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 5 instances in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 5 instances in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
60186277
7.65%647
5.55%213218
6.53%443
1.14%19
11.76%43
4.88%21
90.91%7
40%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
Updated