mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-21 08:19:43 +02:00
#918 Removed som logging
This commit is contained in:
@@ -38,7 +38,6 @@ const sanitize = text => {
|
|||||||
* @param classes
|
* @param classes
|
||||||
*/
|
*/
|
||||||
export const addVertex = function (_id, text, type, style, classes) {
|
export const addVertex = function (_id, text, type, style, classes) {
|
||||||
console.log('called with',_id);
|
|
||||||
let txt
|
let txt
|
||||||
let id = _id
|
let id = _id
|
||||||
if (typeof id === 'undefined') {
|
if (typeof id === 'undefined') {
|
||||||
|
@@ -29,7 +29,7 @@
|
|||||||
"BT" return 'DIR';
|
"BT" return 'DIR';
|
||||||
"TD" return 'DIR';
|
"TD" return 'DIR';
|
||||||
"BR" return 'DIR';
|
"BR" return 'DIR';
|
||||||
[0-9]+ { console.log('got NUM'); return 'NUM';}
|
[0-9]+ { return 'NUM';}
|
||||||
\# return 'BRKT';
|
\# return 'BRKT';
|
||||||
":::" return 'STYLE_SEPARATOR';
|
":::" return 'STYLE_SEPARATOR';
|
||||||
":" return 'COLON';
|
":" return 'COLON';
|
||||||
@@ -280,11 +280,11 @@ separator: NEWLINE | SEMI | EOF ;
|
|||||||
// ;
|
// ;
|
||||||
|
|
||||||
verticeStatement: verticeStatement link node { yy.addLink($1[0],$3[0],$2); $$ = $3.concat($1) }
|
verticeStatement: verticeStatement link node { yy.addLink($1[0],$3[0],$2); $$ = $3.concat($1) }
|
||||||
|node { console.log('A node', $1);$$ = $1 }
|
|node { $$ = $1 }
|
||||||
;
|
;
|
||||||
|
|
||||||
node: vertex
|
node: vertex
|
||||||
{ console.log('A vertex', $1);$$ = [$1];}
|
{ $$ = [$1];}
|
||||||
| vertex STYLE_SEPARATOR idString
|
| vertex STYLE_SEPARATOR idString
|
||||||
{$$ = [$1];yy.setClass($1,$3)}
|
{$$ = [$1];yy.setClass($1,$3)}
|
||||||
;
|
;
|
||||||
|
Reference in New Issue
Block a user