Merge pull request #9518 from ryan10132/ryan10132/dagre-d3-transition

Add dagre-d3 type for transition
This commit is contained in:
Mohamed Hegazy
2016-06-20 16:13:11 -07:00
committed by GitHub
2 changed files with 5 additions and 0 deletions

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");

View File

@@ -19,6 +19,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;
}