-
-
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.
* develop: Bump version chore: Fix type in 'getLineFunctionsWithOffset' Update cypress/platform/marker_unique_id.html refactor: Add getLineFunctionsWithOffset function refactor: Move EdgeData to types fix: PointStart marker refX Added cypress test chore(deps): update all patch dependencies refactor: Fix typings in utils.ts Give markers unique id's per graph chore: Add @internal to createCSSStyles chore: Bump version refactor: Remove unused variables fix: #4818 support `getClasses` in external diagrams.
- Loading branch information
Showing
31 changed files
with
621 additions
and
407 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 |
---|---|---|
|
@@ -22,6 +22,7 @@ | |
"brkt", | ||
"brolin", | ||
"brotli", | ||
"catmull", | ||
"città", | ||
"classdef", | ||
"codedoc", | ||
|
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,10 @@ | ||
import { urlSnapshotTest } from '../../helpers/util.ts'; | ||
|
||
describe('Marker Unique IDs Per Diagram', () => { | ||
it('should render a blue arrow tip in second digram', () => { | ||
urlSnapshotTest('http://localhost:9000/marker_unique_id.html', { | ||
logLevel: 1, | ||
flowchart: { htmlLabels: false }, | ||
}); | ||
}); | ||
}); |
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,52 @@ | ||
<html> | ||
<head> </head> | ||
<body> | ||
<h1>Example</h1> | ||
<pre class="mermaid"> | ||
%%{init:{"theme":"base", "themeVariables": {"lineColor":"red"}}}%% | ||
flowchart LR | ||
subgraph red | ||
A --> B | ||
end | ||
</pre> | ||
<pre class="mermaid"> | ||
%%{init:{"theme":"base", "themeVariables": {"lineColor":"blue"}}}%% | ||
flowchart LR | ||
subgraph black | ||
A --> B | ||
end | ||
</pre> | ||
<pre class="mermaid"> | ||
--- | ||
config: | ||
theme: base | ||
themeVariables: | ||
lineColor: yellow | ||
--- | ||
flowchart LR | ||
subgraph red | ||
A --> B | ||
end | ||
</pre> | ||
<pre class="mermaid"> | ||
--- | ||
config: | ||
theme: base | ||
themeVariables: | ||
lineColor: green | ||
--- | ||
flowchart LR | ||
subgraph black | ||
A --> B | ||
end | ||
</pre> | ||
<script type="module"> | ||
import mermaid from './mermaid.esm.mjs'; | ||
mermaid.initialize({ startOnLoad: true, logLevel: 0 }); | ||
|
||
if (window.Cypress) { | ||
window.rendered = true; | ||
} | ||
</script> | ||
</body> | ||
</html> |
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
"version": "10.2.4", | ||
"description": "Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.", | ||
"type": "module", | ||
"packageManager": "[email protected].1", | ||
"packageManager": "[email protected].5", | ||
"keywords": [ | ||
"diagram", | ||
"markdown", | ||
|
@@ -20,6 +20,7 @@ | |
"build:mermaid": "pnpm build:esbuild --mermaid", | ||
"build:viz": "pnpm build:esbuild --visualize", | ||
"build:types": "tsc -p ./packages/parser/tsconfig.json --emitDeclarationOnly && tsc -p ./packages/mermaid/tsconfig.json --emitDeclarationOnly && tsc -p ./packages/mermaid-zenuml/tsconfig.json --emitDeclarationOnly && tsc -p ./packages/mermaid-example-diagram/tsconfig.json --emitDeclarationOnly", | ||
"build:types:watch": "tsc -p ./packages/mermaid/tsconfig.json --emitDeclarationOnly --watch", | ||
"dev": "ts-node-esm --transpileOnly .esbuild/server.ts", | ||
"dev:vite": "ts-node-esm --transpileOnly .vite/server.ts", | ||
"dev:coverage": "pnpm coverage:cypress:clean && VITE_COVERAGE=true pnpm dev:vite", | ||
|
Oops, something went wrong.