Slide 99
Slide 99 text
ʹప͢Δ
componentDidMount() {
const treeArea = d3Select.select('#' + this.state.rootTag)
const zoom = d3Zoom.zoom(treeArea)
.scaleExtent([1 / 10, 100])
.on('zoom', this.zoomed)
const zoomArea = d3Select
.select('#' + this.state.zoomAreaTag)
.call(zoom)
// Move to initial location
zoomArea.call(zoom.transform,
d3Zoom.zoomIdentity.translate(
this.props.initialPosition.x, this.props.initialPosition.y))
}
ζʔϜϨϕϧͷܭࢉ