mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge pull request #1032 from flxf/d3fix
d3 Fix Selection.node and update test
This commit is contained in:
+1
-1
@@ -1960,7 +1960,7 @@ function healthAndWealth() {
|
||||
.text(function (d) { return d.name; } );
|
||||
|
||||
// Add an overlay for the year label.
|
||||
var box = label.node().getBBox();
|
||||
var box = (<SVGTextElement>label.node()).getBBox();
|
||||
|
||||
var overlay = svg.append("rect")
|
||||
.attr("class", "overlay")
|
||||
|
||||
Vendored
+2
-2
@@ -740,7 +740,7 @@ declare module D3 {
|
||||
*/
|
||||
sort<T>(comparator?: (a: T, b: T) => number): Selection;
|
||||
order: () => Selection;
|
||||
node: () => HTMLElement;
|
||||
node: () => Element;
|
||||
}
|
||||
|
||||
export interface EnterSelection {
|
||||
@@ -748,7 +748,7 @@ declare module D3 {
|
||||
insert: (name: string, before: string) => Selection;
|
||||
select: (selector: string) => Selection;
|
||||
empty: () => boolean;
|
||||
node: () => HTMLElement;
|
||||
node: () => Element;
|
||||
}
|
||||
|
||||
export interface UpdateSelection extends Selection {
|
||||
|
||||
Reference in New Issue
Block a user