Converted from http://plnkr.co/edit/kHrrvjSVTjIaiZpPdbbG?p=preview
See main.js for two ways to do it. To run:
- clone the gist into a web servable dir
npm install- open index.html (use
http://notfile://)
Note: Although scheduling is configurable in most.js, we haven't yet exposed an API for it. In this case, it's simple enough just to use requestAnimationFrame directly, since it's only being used at the render boundary.
So in Most.js, the callback to
observeis instant, unless something in the handler schedules it otherwise? (i.e. a setTimeout, etc)? If that's the case, having some global rendering scheduler would need to be handled in this manner?Thank you for your time, BTW.