Merge remote-tracking branch 'origin/master'

# Conflicts:
#	dist/mermaid.js
This commit is contained in:
knsv
2016-03-12 11:24:22 +01:00
17 changed files with 6732 additions and 4219 deletions

View File

@@ -44,7 +44,7 @@
"sequenceDiagram" return 'SD';
"," return ',';
";" return 'NL';
[^\->:\n,;]+ return 'ACTOR';
[^\->:\n,;]+ { yytext = yytext.trim(); return 'ACTOR'; }
"->>" return 'SOLID_ARROW';
"-->>" return 'DOTTED_ARROW';
"->" return 'SOLID_OPEN_ARROW';
@@ -64,7 +64,9 @@
%% /* language grammar */
start
: SD document { yy.apply($2);return $2; }
: SPACE start
| NL start
| SD document { yy.apply($2);return $2; }
;
document

View File

@@ -151,8 +151,8 @@ exports.drawLoop = function(elem,bounds,labelText, conf){
txt.text = labelText;
txt.x = bounds.startx;
txt.y = bounds.starty;
txt.labelMargin = 1.5 * conf.boxMargin;
txt.class = 'labelText';
txt.labelMargin = 1.5 * 10; // This is the small box that says "loop"
txt.class = 'labelText'; // Its size & position are fixed.
txt.fill = 'white';
exports.drawLabel(g,txt);