[types-2.0] D3 Upgrade to version 4.4 (#13138)

* d3 (Update to version 4.4)
* Pin dependency for d3-geo to version 1.4
* Pin dependency for d3-zoom to version 1.1
* Update header comment version to 4.4

* d3 legacy linting
* disabled linting of legacy definitions and tests at file level.

* Remove tslint:disable from legacy tests
This commit is contained in:
Tom Wanzek
2016-12-06 12:40:56 -08:00
committed by Andy
parent 1770103b6e
commit 0d43d2334f
5 changed files with 14 additions and 8 deletions
+4 -4
View File
@@ -2708,15 +2708,15 @@ function testMultiUtcFormat() {
}
function testEnterSizeEmpty() {
var selectionSize: number,
emptyStatus: boolean;
var newNodes = d3.selectAll('.test')
.data(['1', '2', '3'])
.enter();
emptyStatus = newNodes.empty();
selectionSize = newNodes.size();
}
}
+5 -1
View File
@@ -1,8 +1,12 @@
// Type definitions for d3JS v3.5.17
// Type definitions for d3JS 3.5
// Project: http://d3js.org/
// Definitions by: Alex Ford <https://github.com/gustavderdrache>, Boris Yankov <https://github.com/borisyankov>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/* tslint:disable */
// Latest patch version of module validated against: 3.5.17
export = d3;
export as namespace d3;
+1 -1
View File
@@ -1,4 +1,4 @@
// Type definitions for D3JS d3 standard bundle v4.3
// Type definitions for D3JS d3 standard bundle 4.4
// Project: https://github.com/d3/d3
// Definitions by: Tom Wanzek <https://github.com/tomwanzek>, Alex Ford <https://github.com/gustavderdrache>, Boris Yankov <https://github.com/borisyankov>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+2
View File
@@ -3,6 +3,8 @@
// Definitions by: Alex Ford <https://github.com/gustavderdrache>, Boris Yankov <https://github.com/borisyankov>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/* tslint:disable */
import * as d3 from 'd3';
declare module 'd3' {
+2 -2
View File
@@ -12,7 +12,7 @@
"@types/d3-ease": "1.0",
"@types/d3-force": "1.0",
"@types/d3-format": "1.0",
"@types/d3-geo": "1.3",
"@types/d3-geo": "1.4",
"@types/d3-hierarchy": "1.0",
"@types/d3-interpolate": "1.1",
"@types/d3-path": "1.0",
@@ -29,6 +29,6 @@
"@types/d3-timer": "1.0",
"@types/d3-transition": "1.0",
"@types/d3-voronoi": "1.1",
"@types/d3-zoom": "1.0"
"@types/d3-zoom": "1.1"
}
}