mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-12 11:59:39 +02:00
Simple rendering of class diagrams
This commit is contained in:
@@ -10,7 +10,10 @@ import * as Logger from '../../logger';
|
||||
import * as dagre from 'dagre';
|
||||
var log = new Logger.Log();
|
||||
|
||||
let idCache = new Map();
|
||||
var idCache;
|
||||
if(typeof Map !== 'undefined'){
|
||||
idCache = new Map();
|
||||
}
|
||||
let classCnt = 0;
|
||||
var conf = {
|
||||
|
||||
@@ -34,7 +37,7 @@ var drawEdge = function(elem, path) {
|
||||
var lineFunction = d3.svg.line()
|
||||
.x(function(d) { return d.x; })
|
||||
.y(function(d) { return d.y; })
|
||||
.interpolate('linear');
|
||||
.interpolate('cardinal');
|
||||
|
||||
elem.append('path')
|
||||
.attr('d', lineFunction(lineData))
|
||||
|
Reference in New Issue
Block a user