Merge pull request #1032 from flxf/d3fix

d3 Fix Selection.node and update test
This commit is contained in:
basarat
2013-09-10 06:39:43 -07:00
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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
View File
@@ -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 {