d3 / d3-force

Force-directed graph layout using velocity Verlet integration.
https://d3js.org/d3-force
ISC License
1.82k stars 377 forks source link

This line breaks ie supports even if there is babel #181

Closed AtahanAltiparmak closed 4 years ago

AtahanAltiparmak commented 4 years ago

https://github.com/d3/d3-force/blob/8c4d113979291aa21a9639263c43aa494a191a94/src/link.js#L55

AtahanAltiparmak commented 4 years ago

This line of code should be like below

nodeById = new Map(nodes.map(function(d, i) {
    return [id(d, i, nodes), d];
 })),
mbostock commented 4 years ago

Please find another forum to request help with Babel.

Fil commented 4 years ago

There is a working example at https://github.com/Fil/d3-template Live version https://d3-template.fil.vercel.app/ Tested both with es-check es5 dist/*js and with browserstack against IE9.

AtahanAltiparmak commented 4 years ago

There is a working example at https://github.com/Fil/d3-template Live version https://d3-template.fil.vercel.app/ Tested both with es-check es5 dist/*js and with browserstack against IE9.

Thank you @Fil . We are developing quasar spa vue application in our company. This library is used in Amcharts as a dependency. By the way, I solved my problem with the quasar.conf.js like below

build: { transpileDependencies: [ '@amcharts', ], ... }