AliTVTeam / AliTV

Visualize whole genome alignments as linear maps
https://alitvteam.github.io/AliTV/d3/AliTV.html
MIT License
69 stars 11 forks source link

ES6 support #142

Closed iimog closed 5 years ago

iimog commented 6 years ago

AliTV.js is written in ES5 for maximum compatibility. However, more and more browsers support ES6 and transpilers like babel are available. I wrote a new function to auto-order karyos using ES6 (in the develop branch, preview at https://alitvteam.github.io/AliTV/beta/AliTV.html ). Linting fails however due to missing semicolons, etc. We need to make the decision whether we want to stay at ES5 (and re-write the order function), add a transpilation step, or fully move to ES6.

iimog commented 5 years ago

I suggest to implement new functionality in ES6 if it is more convenient. Transpilation should not be necessary for any modern browser.