Removed some logging

This commit is contained in:
knsv
2014-11-22 19:06:04 +01:00
parent 20d927ce66
commit cb58aeab25
10 changed files with 13 additions and 155 deletions

View File

@@ -88,7 +88,7 @@ var addEdges = function (edges, g) {
// Add the edge to the graph
if (typeof edge.text === 'undefined') {
if(typeof edge.style === 'undefined'){
g.setEdge(edge.start, edge.end,{ arrowheadStyle: "fill: #333", arrowhead: aHead},cnt);
g.setEdge(edge.start, edge.end,{ style: "stroke: #333; stroke-width: 1.5px;fill:none", arrowheadStyle: "fill: #333", arrowhead: aHead},cnt);
}else{
g.setEdge(edge.start, edge.end, {
style: edge.style, arrowheadStyle: "fill: #333", arrowhead: aHead
@@ -99,8 +99,7 @@ var addEdges = function (edges, g) {
else {
if(typeof edge.style === 'undefined'){
console.log('Edge with Text no style: '+edge.text);
g.setEdge(edge.start, edge.end,{label: edge.text, arrowheadStyle: "fill: #33f", arrowhead: aHead},cnt);
g.setEdge(edge.start, edge.end,{style: "stroke: #333; stroke-width: 1.5px;fill:none", label: edge.text, arrowheadStyle: "fill: #333", arrowhead: aHead},cnt);
}else{
g.setEdge(edge.start, edge.end, {
@@ -151,9 +150,6 @@ var drawChart = function (text, id) {
classes.default = {id:'default'};
classes.default.styles = ['fill:#eaeaea','stroke:#666','stroke-width:1.5px'];
}
console.log(classes);
addVertices(vert, g);
addEdges(edges, g);
@@ -219,7 +215,6 @@ var drawChart = function (text, id) {
* Go through the document and find the chart definitions in there and render the charts
*/
var init = function () {
console.log('Mermaid v'+exports.version()+' starting');
var arr = document.querySelectorAll('.mermaid');
var cnt = 0;
@@ -246,7 +241,7 @@ var init = function () {
* @returns {string}
*/
exports.version = function(){
return '0.2.1';
return '0.2.2';
}
var equals = function (val, variable){