UNPKG

mdx-m3-viewer

Version:

A browser WebGL model viewer. Mainly focused on models of the games Warcraft 3 and Starcraft 2.

8 lines (7 loc) 257 B
// Returns a promise that will resolve in the next VM event loop step. // Used to force the VM to wait, allowing the DOM to update between heavy operations. function aFrame() { return new Promise((resolve) => { setTimeout(() => resolve(), 0); }); }