Skip to content

Commit 313fefe

Browse files
authored
Merge pull request #5759 from mermaid-js/develop
Release v11.0.1
2 parents a4e1479 + 17c0af1 commit 313fefe

25 files changed

+3999
-3068
lines changed

.changeset/dirty-mails-watch.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@mermaid-js/parser': minor
3+
'mermaid': patch
4+
---
5+
6+
chore: Migrate git graph to langium, use typescript for internals

.changeset/khaki-news-count.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@mermaid-js/layout-elk': patch
3+
---
4+
5+
fix: Types path

cypress/integration/rendering/flowchart-v2.spec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ describe('Flowchart v2', () => {
9999
const style = svg.attr('style');
100100
expect(style).to.match(/^max-width: [\d.]+px;$/);
101101
const maxWidthValue = parseFloat(style.match(/[\d.]+/g).join(''));
102-
expect(maxWidthValue).to.be.within(446 * 0.95 - 1, 446 * 1.05);
102+
expect(maxWidthValue).to.be.within(417 * 0.95, 417 * 1.05);
103103
});
104104
});
105105
it('8: should render a flowchart when useMaxWidth is false', () => {
@@ -118,7 +118,7 @@ describe('Flowchart v2', () => {
118118
const width = parseFloat(svg.attr('width'));
119119
// use within because the absolute value can be slightly different depending on the environment ±5%
120120
// expect(height).to.be.within(446 * 0.95, 446 * 1.05);
121-
expect(width).to.be.within(446 * 0.95 - 1, 446 * 1.05);
121+
expect(width).to.be.within(417 * 0.95, 417 * 1.05);
122122
expect(svg).to.not.have.attr('style');
123123
});
124124
});

packages/mermaid-layout-elk/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
"version": "0.1.0",
44
"description": "ELK layout engine for mermaid",
55
"module": "dist/mermaid-layout-elk.core.mjs",
6-
"types": "dist/packages/mermaid-layout-elk/src/index.d.ts",
6+
"types": "dist/layout.d.ts",
77
"type": "module",
88
"exports": {
99
".": {
1010
"import": "./dist/mermaid-layout-elk.core.mjs",
11-
"types": "./dist/packages/mermaid-layout-elk/src/index.d.ts"
11+
"types": "./dist/layout.d.ts"
1212
},
1313
"./*": "./*"
1414
},

0 commit comments

Comments
 (0)