All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Update to use D3 v6 and selection/transition to v2. Thanks to @Cgg.
- Add exceptions for camel to kebab case conversions for certain SVG attributes. Eg
markerWidth
andmarkerHeight
have to be camel case.
- Add
update
transition state for all attributes and animation values
- Add
call
key, with test and example
- Fix issues with empty
data
ordata
withnull
values
- Enable HTML elements to be appended
- Install
@testing-library/dom
and add tests to cover most uses cases - Add
start
key to transition object for initial transition value - Add transition object to
duration
andease
for more enter/exit animation control - Add
html
key
- Replacec
d3
withd3-selection
andd3-transition
as peerDependencies to reduce bundle sizes - Enable
render
to accept D3Selection
as selector - Enable
camelCase
keys indata
elements, eg.fillOpacity
rather than'fill-opacity'
- Enable
style
key indata
elements, callingselection.style()
behind the scenes - Enable any
on*
events, eg.onClick
,onMouseOver
- Improve
render
's way of attaching events, with a cleaner method that attaches before enter transition - Update readme
- Attempt adding
render
to D3's selection chain (not working yet)
- Add
unpkg
topackage.json
for easier use with ObservableHQ - Add
delay
element key for more transition control
- Change data element key
as
toappend
to match D3's append()
- Enable UMD build output on prepare
- Enable UMD build output
- Create
render
function
- Initial commit