planet-wars/frontend/www/bootstrap.js
ajuvercr 129c904967
Frontend/visualiser (#24)
* refactor to src folder

* add working voronoi js file with types

* some spring cleaning

* update voronoi-core.d.ts to include inner class exports

* make voronoi go really fast

* do the voronoi dance

* better handle outliers in voronoi

* make renderer use multiple layers

* resize voronoi with resize + squash all in one buffer

* actually wait for shader factories to be created + cleanup

* show more info with FPS Counter

* POWER UP
2020-04-20 15:38:11 +02:00

21 lines
No EOL
589 B
JavaScript

// A dependency graph that contains any wasm must all be imported
// asynchronously. This `bootstrap.js` file does the single async import, so
// that no one else needs to worry about it again.
// Import index.js that executes index.ts
var h = (_a, _b) => {}
export function handle(loc, e) {
h(loc, e);
}
if (typeof mergeInto !== 'undefined') mergeInto(LibraryManager.library, {
print: function() {
console.log("Hello world");
}
});
import ("./src/index.js")
.then(e => {
h = e.handle;
})
.catch(e => console.error("Error importing `index.js`:", e));