Commit Graph
9 Commits
Author SHA1 Message Date
Andy Hanson 45c9246c09 Remove esModuleInterop from tsconfigs (no longer mandatory) 2018-02-14 14:55:13 -08:00
Tom Wanzek 9ecd90e9e8 refactor(*): refactor d3-scale and d3-scale-chromatic
BREAKING CHANGE:
* refactor(d3-scale) update to major version 2.0. As a breaking change all color related features are removed. schemeCategory20x features are removed without replacement. All other color features are moved to d3-scale-chromatic 1.2
* refactor(d3-scale-chromatic): update to minor version 1.2 by including refactored features dropped from  d3-scale 2.0: schemeCategory10 and color interpolators.
* fix(d3-scale) All input arguments for domain or range arrays now also permit ReadonlyArray<T> as inputs. This change allows seamless integration with the color schemes defined in d3-scale-chromatic. This change has been applied to both d3-scale 1.x and 2.x.
* chore(d3-scale-chromatic) activate strictNullChecks
* chore(d3-scale) move d3-scale 1.x into legacy folder `v1` and update tsconfig.json including path mapping for d3-scale itself to pick up legacy version in its own legacy tests
* test(d3-scale) update tests including integration test with d3-scale-chromatic
* test(d3-scale-chromatic) update tests. Including generalized assignment tests for interplators and schemes.
* chore(*) update version numbers for d3-scale and d3-scale-chromatic
2018-02-08 16:50:46 -05:00
Andy bef4d2b27d Enable "esModuleInterop" in all tsconfigs (#23354) 2018-02-05 11:01:56 -08:00
Andy 947a8fb761 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
Henrique 2c6d0a8a55 Changes based on PR comments 2017-09-06 17:52:22 -03:00
Henrique 8e11dc8f82 Adding the schemes:
schemeBrBG
schemePRGn
schemePiYG
schemePuOr
schemeRdBu
schemeRdGy
schemeRdYlBu
schemeRdYlGn
schemeSpectral

schemeBlues
schemeGreens
schemeGreys
schemeOranges
schemePurples
schemeReds

schemeBuGn
schemeBuPu
schemeGnBu
schemeOrRd
schemePuBuGn[0][0]
schemePuBu
schemePuRd
schemeRdPu
schemeYlGnBu
schemeYlGn
schemeYlOrBr
schemeYlOrRd
2017-09-06 01:34:19 -03:00
Andy 5d6c651a1a Apply stricter lint rules (#19063) 2017-08-17 14:53:41 -07:00
Tom Wanzek 8ae97451d5 D3 Modules Linting (#16536)
* [d3-collection] Linted
* Added and completed linting
* Replaced `Object` with `any` adding TODO to change to proper `object` type when publishing the definitions to use TS 2.2+

* [d3-color] Linted

* [d3-dispatch] Linted

* [d3-hsv]  Linted

* [d3-interpolate] Linted. `Object` to `any`
* Replace use of `Object` as extension basis with `any` for now. Added TODO to change it to use the `object` type, when updating the definitions to formally use TS2.2+

* [d3-path] Linted.

* [d3-polygon] Linted.

* [d3-quadtree] Linted.

* [d3-queue] Linted.

* [d3-request] Linted.

* [d3-scale-chromatic] Linted.

* [d3-time-format] Linted.

* [d3-time] Linted.

* [d3-timer] Linted.

* [d3-voronoi] Linted.

* [d3-scale] Move callable-type lint deactivation to tslint.json
* line level deactivation was ignored.
2017-05-19 07:13:46 -07:00
Andy Hanson 354cec620d Move all packages to a types directory 2017-03-24 14:27:52 -07:00