immersive-web / cardboard-vr-display

A JavaScript implementation of a WebVR 1.1 VRDisplay
https://immersive-web.github.io/cardboard-vr-display
Apache License 2.0
92 stars 43 forks source link

Use ES6 imports #12

Closed jsantell closed 6 years ago

jsantell commented 6 years ago

Goal of this was to do initial ES6-ification of these modules with import/export, not a full ES6-ification of everything. Wanting to use sensor polyfill for adding the Generic Sensors API (via #10), which would need a ES6 module loader anyway, so this is a good time as any.

Also removed the vestigial TouchPanner (outside of polyfill's jurisdiction), as well as a vestigial Util.race (used in webvr-polyfill, not here).

jsantell commented 6 years ago

@lincolnfrog thanks for reviewing!