2.2.0
2.2.0 (2017-12-15)
Breaking change
- view.addFrameRequester signature changed, you now need to specify a hook point
when registering them. The old behaviour is achieved with MAIN_LOOP_EVENTS.AFTER_CAMERA_UPDATE hook point (seeMainLoop.js
).
So for instance, you should transform the following calls:
view.addFrameRequester(myFunc)
-> view.addFrameRequester('after-camera-update', myFunc)
view.addFrameRequester(myObj)
-> view.addFrameRequester('after-camera-update', myObj.update.bind(myObj))
.
Note that we no more support object with update
function, as it does not really make sense any more with several hook points).
See MainLoop.js for the full list of available hook points.
three.js
andproj4
are now peer dependencies of the npm package. If you are not using the itowns.js bundle, you need to add them to your package.json's dependencies.