mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-14 21:09:50 +02:00
Removed unnecessary configs and extra code
This commit is contained in:
@@ -10,6 +10,5 @@ describe('Sankey Diagram', () => {
|
|||||||
`,
|
`,
|
||||||
{}
|
{}
|
||||||
);
|
);
|
||||||
cy.get('svg');
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@@ -95,9 +95,6 @@
|
|||||||
theme: 'default',
|
theme: 'default',
|
||||||
logLevel: 3,
|
logLevel: 3,
|
||||||
securityLevel: 'loose',
|
securityLevel: 'loose',
|
||||||
flowchart: { curve: 'basis' },
|
|
||||||
gantt: { axisFormat: '%m/%d/%Y' },
|
|
||||||
sequence: { actorMargin: 50 },
|
|
||||||
sankey: {
|
sankey: {
|
||||||
title: 'Hey, this is Sankey-Beta',
|
title: 'Hey, this is Sankey-Beta',
|
||||||
width: 1200,
|
width: 1200,
|
||||||
|
@@ -3,7 +3,7 @@ import type { DiagramDetector, ExternalDiagramDefinition } from '../../diagram-a
|
|||||||
const id = 'sankey';
|
const id = 'sankey';
|
||||||
|
|
||||||
const detector: DiagramDetector = (txt) => {
|
const detector: DiagramDetector = (txt) => {
|
||||||
return txt.match(/^\s*sankey-beta/) !== null;
|
return /^\s*sankey-beta/.test(txt);
|
||||||
};
|
};
|
||||||
|
|
||||||
const loader = async () => {
|
const loader = async () => {
|
||||||
|
Reference in New Issue
Block a user