vasturiano / d3-force-3d

Force-directed graph layout in 1D, 2D or 3D using velocity Verlet integration.
https://observablehq.com/@vasturiano/multi-dimensional-d3-force-simulation
MIT License
369 stars 52 forks source link

Currently shipping ES6 syntax #5

Closed litinskii closed 5 years ago

litinskii commented 5 years ago

At the moment, d3-force-3d is shipping ES6 syntax as per here.

Because d3-force-3d isn't transpiled, this is breaking IE11 and other older browsers. The arrow function crashes build on IE 11. Changed arrow function to regular function or update rollup configs ?

vasturiano commented 5 years ago

@litinskii you are right that it's shipping ES6 syntax. d3-force-3d is a fork of d3-force and the syntax is inherited from there, so this concern should be handled upstream. There is an issue raised there which explains the motivation: https://github.com/d3/d3-force/issues/134

litinskii commented 5 years ago

@vasturiano Ah ((( Thanks for the explanation