Use per-animation function modules
Currently the animation functions share the same module, namely ol.animation. We do differently for ol.control.defaults and ol.interaction.defaults, with ol.control.defaults and ol.interaction.defaults module. This commit replaces the ol.animation module by four modules, one for each animation function. This makes things more consistent, and will make it possible to use the @exportFunction annotation for the exporting of the animation functions.
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
goog.require('ol.Map');
|
||||
goog.require('ol.RendererHints');
|
||||
goog.require('ol.View2D');
|
||||
goog.require('ol.animation');
|
||||
goog.require('ol.animation.bounce');
|
||||
goog.require('ol.animation.pan');
|
||||
goog.require('ol.animation.rotate');
|
||||
goog.require('ol.easing');
|
||||
goog.require('ol.layer.TileLayer');
|
||||
goog.require('ol.proj');
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
// FIXME works for View2D only
|
||||
|
||||
goog.provide('ol.animation');
|
||||
goog.provide('ol.animation.bounce');
|
||||
goog.provide('ol.animation.pan');
|
||||
goog.provide('ol.animation.rotate');
|
||||
goog.provide('ol.animation.zoom');
|
||||
|
||||
goog.require('ol.PreRenderFunction');
|
||||
goog.require('ol.ViewHint');
|
||||
|
||||
@@ -6,7 +6,7 @@ goog.require('goog.dom');
|
||||
goog.require('goog.dom.TagName');
|
||||
goog.require('goog.events');
|
||||
goog.require('goog.events.EventType');
|
||||
goog.require('ol.animation');
|
||||
goog.require('ol.animation.zoom');
|
||||
goog.require('ol.control.Control');
|
||||
goog.require('ol.css');
|
||||
goog.require('ol.easing');
|
||||
|
||||
@@ -15,7 +15,7 @@ goog.require('goog.fx.Dragger.EventType');
|
||||
goog.require('goog.math');
|
||||
goog.require('goog.math.Rect');
|
||||
goog.require('goog.style');
|
||||
goog.require('ol.animation');
|
||||
goog.require('ol.animation.zoom');
|
||||
goog.require('ol.control.Control');
|
||||
goog.require('ol.css');
|
||||
goog.require('ol.easing');
|
||||
|
||||
@@ -3,7 +3,9 @@
|
||||
goog.provide('ol.interaction.Interaction');
|
||||
|
||||
goog.require('ol.MapBrowserEvent');
|
||||
goog.require('ol.animation');
|
||||
goog.require('ol.animation.pan');
|
||||
goog.require('ol.animation.rotate');
|
||||
goog.require('ol.animation.zoom');
|
||||
goog.require('ol.easing');
|
||||
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ goog.provide('ol.Kinetic');
|
||||
|
||||
goog.require('ol.Coordinate');
|
||||
goog.require('ol.PreRenderFunction');
|
||||
goog.require('ol.animation');
|
||||
goog.require('ol.animation.pan');
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user