X-Git-Url: https://git.auder.net/?p=erdiag.git;a=blobdiff_plain;f=parser.js;h=5d61040cba5572546eb5a18103feeae47d26fc4f;hp=6caf0a9f5a3f0dfdc4f153a5d8e4ffd54dba02df;hb=b74cfe416ba9082d2fb7e6b33fd72c83d20708b3;hpb=006d95a3942660083d2c957afea5338c2de8642d diff --git a/parser.js b/parser.js index 6caf0a9..5d61040 100644 --- a/parser.js +++ b/parser.js @@ -202,7 +202,7 @@ class ErDiags mcdDot += '];\n'; if (!!this.entities[name].attributes) { - _.shuffle(this.entities[name].attributes).forEach( a => { + this.entities[name].attributes.forEach( a => { let label = (a.isKey ? '#' : '') + a.name; let attrName = name + '_' + a.name; mcdDot += '"' + attrName + '" [shape=ellipse, label="' + label + '"];\n'; @@ -226,7 +226,7 @@ class ErDiags mcdDot += '' + name + '\n'; if (!!this.entities[name].attributes) { - _.shuffle(this.entities[name].attributes).forEach( a => { + this.entities[name].attributes.forEach( a => { let label = (a.isKey ? '' : '') + a.name + (a.isKey ? '' : ''); mcdDot += '' + label + '\n'; }); @@ -266,7 +266,7 @@ class ErDiags }); if (!!a.attributes) { - _.shuffle(a.attributes).forEach( attr => { + a.attributes.forEach( attr => { let label = (attr.isKey ? '#' : '') + attr.name; mcdDot += '"' + name + '_' + attr.name + '" [shape=ellipse, label="' + label + '"];\n'; let attrName = name + '_' + attr.name;