Simple rendering of class diagrams

This commit is contained in:
knsv
2015-10-30 11:34:24 +01:00
parent eec89e0442
commit 068b7ce6a9
11 changed files with 4732 additions and 932 deletions

View File

@@ -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))