>
+ int id
+ size()
+ }
+ note for Class10 "Cool class\nI said it's very cool class!"
+ `,
+ { logLevel: 1 }
+ );
+ cy.get('svg');
+ });
});
diff --git a/cypress/integration/rendering/erDiagram.spec.js b/cypress/integration/rendering/erDiagram.spec.js
index 0f9084e7c..057b36dc1 100644
--- a/cypress/integration/rendering/erDiagram.spec.js
+++ b/cypress/integration/rendering/erDiagram.spec.js
@@ -167,7 +167,7 @@ describe('Entity Relationship Diagram', () => {
cy.get('svg');
});
- it.only('should render entities with generic and array attributes', () => {
+ it('should render entities with generic and array attributes', () => {
renderGraph(
`
erDiagram
@@ -255,4 +255,22 @@ describe('Entity Relationship Diagram', () => {
);
cy.get('svg');
});
+
+ it('should render entities with aliases', () => {
+ renderGraph(
+ `
+ erDiagram
+ T1 one or zero to one or more T2 : test
+ T2 one or many optionally to zero or one T3 : test
+ T3 zero or more to zero or many T4 : test
+ T4 many(0) to many(1) T5 : test
+ T5 many optionally to one T6 : test
+ T6 only one optionally to only one T1 : test
+ T4 0+ to 1+ T6 : test
+ T1 1 to 1 T3 : test
+ `,
+ { logLevel: 1 }
+ );
+ cy.get('svg');
+ });
});
diff --git a/cypress/platform/knsv2.html b/cypress/platform/knsv2.html
index 506ac51ae..f30f993fa 100644
--- a/cypress/platform/knsv2.html
+++ b/cypress/platform/knsv2.html
@@ -56,50 +56,40 @@
Security check
-classDiagram
- direction LR
- class Student {
- -idCard : IdCard
- }
- class IdCard{
- -id : int
- -name : string
- }
- class Bike{
- -id : int
- -name : string
- }
- Student "1" --o "1" IdCard : carries
- Student "1" --o "1" Bike : rides
+flowchart TD
+ A --> B
+ B --> C
+ A --> C
-
+
mindmap
- root
- A
- B
- C
- D
- E
- A2
- B2
- C2
- D2
- E2
- child1((Circle))
- grandchild 1
- grandchild 2
- child2(Round rectangle)
- grandchild 3
- grandchild 4
- child3[Square]
- grandchild 5
- ::icon(mdi mdi-fire)
- gc6((grand
child 6))
- ::icon(mdi mdi-fire)
- gc7((grand
grand
child 8))
+ root((mindmap))
+ Origins
+ Long history
+ ::icon(fa fa-book)
+ Popularisation
+ ::icon(fa fa-book)
+ British popular psychology author Tony Buzan
+ Research
+ ::icon(fa fa-book)
+ On effectivness
and features
+ On Automatic creation
+ Uses
+ Creative techniques
+ Strategic planning
+ Argument mapping
+ Tools
+ Pen and paper
+ Mermaid
-
- example-diagram
+
+ gantt
+ title Style today marker (vertical line should be 5px wide and half-transparent blue)
+ dateFormat YYYY-MM-DD
+ axisFormat %d
+ todayMarker stroke-width:5px,stroke:#00f,opacity:0.5
+ section Section1
+ Today: 1, -1h
@@ -113,16 +103,21 @@ mindmap
// console.error('Mermaid error: ', err);
};
mermaid.initialize({
- theme: 'forest',
+ theme: 'base',
startOnLoad: true,
logLevel: 0,
- // basePath: './packages/',
- // themeVariables: { darkMode: true },
+ flowchart: {
+ useMaxWidth: false,
+ htmlLabels: true,
+ },
+ gantt: {
+ useMaxWidth: false,
+ },
+ useMaxWidth: false,
lazyLoadedDiagrams: [
'./mermaid-mindmap-detector.esm.mjs',
'./mermaid-example-diagram-detector.esm.mjs',
],
- // lazyLoadedDiagrams: ['../../mermaid-mindmap/registry.ts'],
});
function callback() {
alert('It worked');
@@ -131,6 +126,10 @@ mindmap
console.error('In parse error:');
console.error(err);
};
+ // mermaid.test1('first_slow', 1200).then((r) => console.info(r));
+ // mermaid.test1('second_fast', 200).then((r) => console.info(r));
+ // mermaid.test1('third_fast', 200).then((r) => console.info(r));
+ // mermaid.test1('forth_slow', 1200).then((r) => console.info(r));