mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
commit
b1d137770c
@ -283,7 +283,7 @@ export const bindFunctions = function(element) {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
export const getDirection = function() {
|
export const getDirection = function() {
|
||||||
return direction;
|
return direction.trim();
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
* Retrieval function for fetching the found nodes after parsing has completed.
|
* Retrieval function for fetching the found nodes after parsing has completed.
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
"classDef" return 'CLASSDEF';
|
"classDef" return 'CLASSDEF';
|
||||||
"class" return 'CLASS';
|
"class" return 'CLASS';
|
||||||
"click" return 'CLICK';
|
"click" return 'CLICK';
|
||||||
"graph" {if(yy.lex.firstGraph()){this.begin("dir");console.log('First graph')} return 'GRAPH';}
|
"graph" {if(yy.lex.firstGraph()){this.begin("dir");} return 'GRAPH';}
|
||||||
"subgraph" return 'subgraph';
|
"subgraph" return 'subgraph';
|
||||||
"end"\b\s* return 'end';
|
"end"\b\s* return 'end';
|
||||||
<dir>\s*"LR" { this.popState(); return 'DIR'; }
|
<dir>\s*"LR" { this.popState(); return 'DIR'; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user