X-Git-Url: https://git.auder.net/?p=erdiag.git;a=blobdiff_plain;f=parser.js;h=0ab6a4321a15f59a62718d39cbfc699d17563e39;hp=2919c569e2a81c5a693043259830824b53021045;hb=6248a547ea724aaad739fdd224cbb40343f39e8b;hpb=29b03f1c8f266ecc50a7c33d74f0d783018f4353 diff --git a/parser.js b/parser.js index 2919c56..0ab6a43 100644 --- a/parser.js +++ b/parser.js @@ -9,7 +9,7 @@ class ErDiags this.tables = { }; this.mcdParsing(description); this.mldParsing(); - this.output = output || "compact"; + this.output = output || "graph"; this.image = image || "svg"; } @@ -403,7 +403,7 @@ class ErDiags mcdDot += '}'; if (this.output == "graph") //draw graph in element element.innerHTML = ""; - else //just show dot input + else //output = "text": just show dot input element.innerHTML = mcdDot.replace(//g,">"); }