Releases: tomwanzek/d3-v4-definitelytyped
v2.0.0
v2.0.0-rc.2
The definitions are now considered to be functionally complete for all modules comprising the D3 standard bundle, including definitions for the standard bundle itself.
Also included are the following additional optional scope modules:
- d3-selection-multi
- d3-hsv
Thanks to @Ledragon, @gustavderdrache and @arrayjam for your contributions!!!
🎉
The only limitation is related to the missing d3
global when individual modules are used as D3 vanilla scripts. This is related to the open and tracked TypeScript issue pertaining to merging into the same global identifier from different UMD module definitions.
v1.23.0
Enhancements to the following:
- d3-selection:
Local
interface now has template parameter for datum type andSelection.property(...)
can acceptLocal
as first argument - d3-shape:
SeriesPoint
interface enhanced to enforce mandatory first and second element for coordinate array. - d3-voronoi:
VoronoiPoint
is now an interface which enforces mandatory first and second element for coordinate array.VoronoiPointPair
is now and interface which enforces mandatory first and second element for point array.
v1.22.0
v1.21.0
Change to BaseType
used for Selection
and Transition
to include Window
(d3-selection and by implication d3-transition).
Note that, for selections/transitions of Window
or EnterElement
not all methods on the Selection
and Transition
interfaces are meaningful.
v1.20.0
Improvements:
- d3-axis: The
scale()
getter in theAxis
interface is now templated to allow casting the return value fromAxisScale
to a more specific known scale type - d3-force: The
force(...)
getter in theSimulation
interface is now templated to allow casting the return value fromForce
to a more specific known force type
Bug-fix:
- d3-force:
initialize(...)
method ofForce
interface is optional.
v1.19.0
Added completed modules with tests for:
- d3-selection-multi
- d3-hsv
(Note that these are not standard D3 bundle modules.)
Bug fixes:
- d3-brush return type of
.move(...)
, and - d3-force return type of
.tick(...)
.
Generalizations:
- permit arguments which can be coerced to
number
as argument when invoking aScaleSequential
scale, and - generalize d3-color and d3-interpolate to accommodate color space object additions like the one in d3-hsv
v1.18.0
Changes to d3-axis to address dependency-decoupling from TimeInterval
interface defined in d3-time:
- Added
AxisTimeInterval
as a minimally viable contract to pass a time interval intoAxis.ticks(...)
orAxis.tickArguments(...)
- Adapted
AxisScale
interface to work withAxisTimeInterval
- Improved signatures for
Axis.ticks(...)
orAxis.tickArguments(...)