viaWebGL
viaWebGL copied to clipboard
ES6 (ECMAScript 2015) Javascript support
We are experiencing great difficulty running the latest OpenSeaDragonGL on Windows 7 and Visual Studio 2015 as it requires ES6 javascript. OpenSeaDragon runs fine but we would like to introduce OpenSeaDragonGL. Is there a version of OpenSeaDragonGL demo that does not depend on the new standard ES6?
Thanks, Tim
Thanks for opening the issue! I didn't realize Visual Studio doesn't support the aspects of ES6 that I used. Let me look at the source code of openseadragongl.js to see which bits rely on ES6.
Here's the relevant ES6 javascript feature used in openseadragongl.js. This is syntactic sugar.
for (var key of this.and(this.viaGL)) {
for (var key of this.and(this.defaults)) {