Commit Graph

27 Commits

Author SHA1 Message Date
Marc Jansen
a34e627b75 Remove dangling space in license header. 2013-02-07 10:33:20 +01:00
Tim Schaub
bbc73a21d8 Update copyright date 2013-01-07 22:01:16 -05:00
ahocevar
9759902dac Fixing API; addressing @mpriour's doc comment
Previously, minFrameRate could not be set as option with the start method.
The tests failed to catch this flaw. Now both the start method and the
tests are fixed.
2012-12-21 21:24:04 +01:00
ahocevar
f0f1ea0867 Skip frames when minimum frame rate is not reached
The new minFrameRate option is used to make sure that an animation does not
run longer than the time calculated from that frame rate. Time is made up
by skipping frames, i.e. skipping execution of the eachStep callback.
2012-12-17 14:54:08 +01:00
Éric Lemoine
e0b93c2e45 The OpenLayers code is published under the 2-clause BSD license 2012-03-30 08:33:55 +02:00
Éric Lemoine
650df2a8f1 change copyright header in every OpenLayers js file 2012-03-29 22:14:56 +02:00
Xavier Mamano
bfb379f349 Fix some problems in the documentation. 2012-03-05 11:43:09 +01:00
Éric Lemoine
9a116b21b9 Revert "protect for in loops with hasOwnProperty"
This reverts commit e3cc96dbfb.
2012-03-03 22:35:39 +01:00
Bart van den Eijnden
e3cc96dbfb protect for in loops with hasOwnProperty 2012-02-29 18:43:55 +01:00
Éric Lemoine
5444fbcfc8 make the Google Closure compiler happier, no functional change 2012-02-28 09:08:13 +01:00
tschaub
e2834e04e6 Merge branch 'master' into animation 2012-01-03 10:28:40 -07:00
tschaub
3556af9cb2 Moving animation methods out of Util.js.
Animation methods get their own module, giving methods more sensible names:

 * `OpenLayers.Animation.requestFrame` (was `OpenLayers.Util.requestAnimationFrame`)
 * `OpenLayers.Animation.start` (was `OpenLayers.Util.startAnimation`)
 * `OpenLayers.Animation.stop` (was `OpenLayers.Util.stopAnimation`)
2012-01-03 09:43:50 -07:00
tschaub
b844a3b11b Happy New Year!
Updating copyright to 2012.
2012-01-03 09:01:10 -07:00
Tim Schaub
e363bdb782 Rename to startAnimation for symmetry. 2012-01-02 21:52:31 -07:00
Tim Schaub
c151b04257 Use requestAnimationFrame for tweening.
Instead of using an arbitrary interval for tweening, we let the device decide the best animation frame rate.  Where requestAnimationFrame is not available, this will default to 60 fps.
2012-01-02 20:52:46 -07:00
fredj
6e9a3e4c13 don't translate error message and replace console log with exception 2011-09-20 15:21:16 +02:00
Tim Schaub
b9b7a68b19 Declaring dependencies in the source. Comments only commit.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11007 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-05 17:42:45 +00:00
Tim Schaub
ad54169479 Happy New Year.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10995 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-03 15:39:40 +00:00
crschmidt
f0d474e50b Change license text to point to "OpenLayers contributors", referencing
authors.txt file. In reality, MetaCarta does not own copyright to these files,
they merely have a right to distribute them under the license terms agreed to
by the contributors. At this point, there is no longer any reference to
MetaCarta as a copyright holder in the OpenLayers project, only to its
individual contributors via the authors.txt file.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@10706 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-09-01 03:06:31 +00:00
Frédéric Junod
e6de46b9d3 call stop instead of duplicate the code. r=elemoine (closes #2675)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10392 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-14 06:13:35 +00:00
crschmidt
2f367f6b8c OpenLayers.Console is used throughout the code, but not added as a dependancy.
Add @requires statements to pull it in everywhere it is needed. Since Console
is so small -- 634 bytes -- this should have a limited impact on anyone with a
custom build profile. (Closes #1549)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8948 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-05 13:07:42 +00:00
euzuro
136a37bf2f replacing tabs with spaces. no functional diffs here.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6673 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-29 00:38:47 +00:00
pgiraud
fde0715f4e add the Quad easing methods for Tween
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6415 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-29 07:31:56 +00:00
crschmidt
c92527fae5 Improve calls to movestart/moveend so that they happen at the start/end of
moves. This includes fixing pantween to set playing to false after it is
done, and fixing the map to store its dragging state again so we can use
it to figure out when a move has started.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6398 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-28 19:47:38 +00:00
Tim Schaub
1b57ea3069 Invoking the trivial change clause, I'm adding a semicolon. (see #1392)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6388 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-27 19:05:28 +00:00
pgiraud
ffecbe0594 add a new 'playing' property to the Tween class so that a call to stop doesn't do anything if animation is already finished, r=ahocevar,crschmidt (Closes #1392)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6387 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-27 13:57:13 +00:00
pgiraud
f6fe7d48d3 adds tween and easing classes (with algorithms from Robert Penner) to handle animation
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6097 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-08 13:09:58 +00:00