mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-19 15:30:03 +02:00
Removed some logging
This commit is contained in:
11
src/main.js
11
src/main.js
@@ -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){
|
||||
|
Reference in New Issue
Block a user