You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: Cannot read properties of undefined (reading 'transform')
at SVGSVGElement.<anonymous> (dTree.js:52)
at Dispatch.call (dispatch.js:57)
at Gesture.emit (zoom.js:219)
at Gesture.zoom (zoom.js:207)
at SVGSVGElement.<anonymous> (zoom.js:92)
at Selection.__WEBPACK_DEFAULT_EXPORT__ [as each] (each.js:5)
at zoom.transform (zoom.js:91)
at Selection.__WEBPACK_DEFAULT_EXPORT__ [as call] (call.js:4)
at TreeBuilder.create (dTree.js:65)
at Object.init (dTree.js:445)
I'm importing d3 and lodash on my index.js
import * as d3 from 'd3';
import _ from 'lodash';
window.d3 = d3;
window._ = _;
What am I missing?
The text was updated successfully, but these errors were encountered:
If you are using the D3 v6 , just change the code of the builder.js .on('zoom', function (d) { g.attr('transform', d3.event.transform) })
to .on('zoom', function (event, d) { g.attr('transform', event.transform) })
Hi, I'm trying to integrate dTree with React and I'm facing a bug that I can't seem to find the cause.
Here is a snippet of my code:
It gives me the error:
I'm importing d3 and lodash on my index.js
What am I missing?
The text was updated successfully, but these errors were encountered: