Add dagre-d3 type for transition

This commit is contained in:
Ryan McNamara
2016-05-31 16:40:15 -07:00
parent edb64e4a35
commit 752e1faa8d
2 changed files with 5 additions and 0 deletions
+3
View File
@@ -11,6 +11,9 @@ namespace DagreD3Tests {
predecessors["a"] = graph.predecessors("a");
successors["a"] = graph.successors("a");
graph.transition = (selection: d3.Selection<any>) => {
return d3.transition();
};
const render = new dagreD3.render();
const svg = d3.select("svg");
+2
View File
@@ -20,6 +20,8 @@ declare namespace Dagre {
height: number;
predecessors(id: string): string[];
successors(id: string): string[];
// see source of http://cpettitt.github.io/project/dagre-d3/latest/demo/interactive-demo.html
transition?(selection: d3.Selection<any>): d3.Transition<any>;
width: number;
}