mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
* Removed logging
This commit is contained in:
parent
2af4a1f9f8
commit
33973354ed
10
dist/mermaid.full.js
vendored
10
dist/mermaid.full.js
vendored
@ -14190,18 +14190,14 @@ exports.draw = function (text, id,isDot) {
|
||||
|
||||
|
||||
setTimeout(function(){
|
||||
console.log('Fixing titles');
|
||||
var i = 0;
|
||||
subGraphs.forEach(function(subG){
|
||||
console.log('Setting id '+id);
|
||||
|
||||
|
||||
var clusterRects = document.querySelectorAll('#' + id + ' .clusters rect');
|
||||
var clusters = document.querySelectorAll('#' + id + ' .cluster');
|
||||
|
||||
|
||||
if(subG.title !== 'undefined'){
|
||||
console.log(clusterRects[i]);
|
||||
var xPos = clusterRects[i].x.baseVal.value;
|
||||
var yPos = clusterRects[i].y.baseVal.value;
|
||||
var width = clusterRects[i].width.baseVal.value;
|
||||
@ -14213,10 +14209,6 @@ exports.draw = function (text, id,isDot) {
|
||||
te.attr('stroke','none');
|
||||
te.attr('id', id+'Text');
|
||||
te.style('text-anchor', 'middle');
|
||||
console.log('Title '+subG.title);
|
||||
console.log('i',i);
|
||||
console.log('x'+xPos+width/2);
|
||||
console.log('y'+xPos);
|
||||
te.text(subG.title);
|
||||
}
|
||||
i = i + 1;
|
||||
@ -17601,7 +17593,6 @@ var init = function (sequenceConfig) {
|
||||
|
||||
switch(graphType){
|
||||
case 'graph':
|
||||
console.log('Detetcting flow');
|
||||
classes = flowRenderer.getClasses(txt, false);
|
||||
flowRenderer.draw(txt, id, false);
|
||||
utils.cloneCssStyles(element.firstChild, classes);
|
||||
@ -17618,7 +17609,6 @@ var init = function (sequenceConfig) {
|
||||
utils.cloneCssStyles(element.firstChild, []);
|
||||
break;
|
||||
case 'info':
|
||||
console.log('Detetcting info');
|
||||
info.draw(txt,id,exports.version());
|
||||
utils.cloneCssStyles(element.firstChild, []);
|
||||
break;
|
||||
|
4
dist/mermaid.full.min.js
vendored
4
dist/mermaid.full.min.js
vendored
File diff suppressed because one or more lines are too long
10
dist/mermaid.slim.js
vendored
10
dist/mermaid.slim.js
vendored
@ -14158,18 +14158,14 @@ exports.draw = function (text, id,isDot) {
|
||||
|
||||
|
||||
setTimeout(function(){
|
||||
console.log('Fixing titles');
|
||||
var i = 0;
|
||||
subGraphs.forEach(function(subG){
|
||||
console.log('Setting id '+id);
|
||||
|
||||
|
||||
var clusterRects = document.querySelectorAll('#' + id + ' .clusters rect');
|
||||
var clusters = document.querySelectorAll('#' + id + ' .cluster');
|
||||
|
||||
|
||||
if(subG.title !== 'undefined'){
|
||||
console.log(clusterRects[i]);
|
||||
var xPos = clusterRects[i].x.baseVal.value;
|
||||
var yPos = clusterRects[i].y.baseVal.value;
|
||||
var width = clusterRects[i].width.baseVal.value;
|
||||
@ -14181,10 +14177,6 @@ exports.draw = function (text, id,isDot) {
|
||||
te.attr('stroke','none');
|
||||
te.attr('id', id+'Text');
|
||||
te.style('text-anchor', 'middle');
|
||||
console.log('Title '+subG.title);
|
||||
console.log('i',i);
|
||||
console.log('x'+xPos+width/2);
|
||||
console.log('y'+xPos);
|
||||
te.text(subG.title);
|
||||
}
|
||||
i = i + 1;
|
||||
@ -17569,7 +17561,6 @@ var init = function (sequenceConfig) {
|
||||
|
||||
switch(graphType){
|
||||
case 'graph':
|
||||
console.log('Detetcting flow');
|
||||
classes = flowRenderer.getClasses(txt, false);
|
||||
flowRenderer.draw(txt, id, false);
|
||||
utils.cloneCssStyles(element.firstChild, classes);
|
||||
@ -17586,7 +17577,6 @@ var init = function (sequenceConfig) {
|
||||
utils.cloneCssStyles(element.firstChild, []);
|
||||
break;
|
||||
case 'info':
|
||||
console.log('Detetcting info');
|
||||
info.draw(txt,id,exports.version());
|
||||
utils.cloneCssStyles(element.firstChild, []);
|
||||
break;
|
||||
|
4
dist/mermaid.slim.min.js
vendored
4
dist/mermaid.slim.min.js
vendored
File diff suppressed because one or more lines are too long
@ -170,7 +170,7 @@
|
||||
|
||||
</div>
|
||||
|
||||
<div class="mermaid2">
|
||||
<div class="mermaid">
|
||||
graph LR;
|
||||
A[Start]-->B{a = '1,2'}
|
||||
B-->|True|C[test = 1]
|
||||
@ -190,6 +190,7 @@ graph LR;
|
||||
L-->M[Any Action];
|
||||
M-->N[Any Other Action];
|
||||
N-->Z;
|
||||
linkStyle 11 stroke-width:2px,fill:none,stroke:red;
|
||||
|
||||
</div>
|
||||
<h1>Dot syntax (experimental)</h1>
|
||||
|
Loading…
x
Reference in New Issue
Block a user