- //console.log(mcdDot);
- ErDiags.AjaxGet(mcdDot, graphSvg => {
- this.mcdGraph = graphSvg;
- element.innerHTML = graphSvg;
- });
+ if (this.callDot)
+ {
+ // Draw graph in element
+ ErDiags.AjaxGet(mcdDot, graphSvg => {
+ this.mcdGraph = graphSvg;
+ element.innerHTML = graphSvg;
+ });
+ }
+ else //just show dot input
+ element.innerHTML = mcdDot.replace(/</g,"<").replace(/>/g,">");