@d3fc/d3fc-element
Advanced tools
Comparing version 6.1.1 to 6.1.2
@@ -6,2 +6,13 @@ # Change Log | ||
## [6.1.2](https://github.com/d3fc/d3fc/compare/@d3fc/d3fc-element@6.1.1...@d3fc/d3fc-element@6.1.2) (2020-09-23) | ||
### Bug Fixes | ||
* d3v6 removal of d3.event ([6c14c8e](https://github.com/d3fc/d3fc/commit/6c14c8e)) | ||
## [6.1.1](https://github.com/d3fc/d3fc/compare/@d3fc/d3fc-element@6.1.0...@d3fc/d3fc-element@6.1.1) (2020-09-07) | ||
@@ -8,0 +19,0 @@ |
{ | ||
"name": "@d3fc/d3fc-element", | ||
"version": "6.1.1", | ||
"version": "6.1.2", | ||
"description": "Custom HTML elements that make it easier to create responsive visualisations that integrate easily with other UI frameworks (e.g. React, Angular)", | ||
@@ -25,3 +25,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "5b479d30c3370ccb6cf0edfd7544d4c76044180d" | ||
"gitHead": "a7f1db4d1fd44f696c7ead067284851953c18e6c" | ||
} |
@@ -45,8 +45,8 @@ # d3fc-element | ||
const xAxisContainer = d3.select('#x-axis') | ||
.on('measure', () => { | ||
const { width } = d3.event.detail; | ||
.on('measure', (event) => { | ||
const { width } = event.detail; | ||
xScale.range([0, width]); | ||
}) | ||
.on('draw', (d, i, nodes) => { | ||
d3.select(nodes[i]) | ||
.on('draw', (event) => { | ||
d3.select(event.currentTarget) | ||
.select('svg') | ||
@@ -53,0 +53,0 @@ .call(xAxis); |
63896