mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-30 02:01:46 +00:00
Add dagre-d3 type for transition
This commit is contained in:
@@ -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");
|
||||
|
||||
Vendored
+2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user