Skip to content

2.2.0

Compare
Choose a tag to compare
@autra autra released this 18 Dec 09:40
· 1777 commits to master since this release

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 (see MainLoop.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 and proj4 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.