Olivier Guyot
433bccd207
Linting and fixes for unit tests
2019-02-22 15:01:30 +01:00
Olivier Guyot
a6f65df8c4
View / add a resolveConstraints method to end interactions
...
This will help making sure that the view will come back to a "rested" state
once the interactions are over.
Interactions no longer need to handle the animation back to a rested state,
they simply call `endInteraction` with the desired duration and direction.
2019-02-22 15:01:30 +01:00
Olivier Guyot
1f379a06a4
View / add support for viewport extent constraint
...
This introduces a breaking change:
The `extent` view option now constrains the whole viewport and not just the
view center.
The option `constrainOnlyCenter` was added to keep the previous behaviour.
Constraining the whole viewport and not only the view center means
that the center and resolution constraints must be applied with a knowledge of
the viewport size.
2019-02-22 15:01:30 +01:00
jahow
e52fab636c
View / apply constraints automatically based on hints
...
All constraints can now function differently if they are applied during
interaction or animation.
2019-02-22 15:01:30 +01:00
Tim Schaub
ccfacc5ee6
Transformed types
...
Using the [ts.js codemod](https://gist.github.com/tschaub/1ea498c9d1e5268cf36d212b3949be4e ):
jscodeshift --transform ts.js src
2018-09-05 08:05:29 -06:00
Andreas Hocevar
95d6251dbb
Get rid of olx.js and typedef.js typedefs for ol
2018-03-08 18:57:24 +01:00
Björn Harrtell
208ca098f2
Refactor constraints static methods to module functions
2018-02-14 19:00:23 +01:00
Tim Schaub
1cdb6a66f0
Imports cased like the filename
2017-12-12 06:53:17 -07:00
Marc Jansen
7d6929c710
Manual adjustment of indentation
2017-06-20 10:41:03 +02:00
Marc Jansen
d0ef05977b
Autofix indentation issues (eslint --fix)
2017-06-19 11:58:00 +02:00
Peter Robins
535e8f5e35
Move top-level typedefs to typedefs.js
...
With one exception, those directly in the `ol` namespace can be moved without problem.
Some left-over goog.requires are also removed.
2016-05-11 17:18:05 +00:00
Marc Jansen
47a7b03e0e
Remove use of toDegrees/toRadians util functions
...
Instead of goog.math.toRadians and goog.math.toDegrees, we now use
our own implementations of these basic conversion functions.
2015-10-12 21:16:03 +02:00
Tim Schaub
7659e47e07
Inline simple goog.isDef() checks
2015-09-27 10:18:44 -06:00
Tom Payne
0a5ab24a0c
Add ol.RotationConstraint.disable
2014-01-27 14:49:08 +01:00
Tom Payne
5ff2fcacb8
Snap rotation when within 5 degrees instead of 0.1 radians
2014-01-27 14:39:40 +01:00
Tom Payne
fe9fee1609
Improve type checking in ol.RotationConstraint
2013-04-30 22:00:22 +02:00
Éric Lemoine
1776d80cb9
Add a snapToZero rotation constraint
2013-03-05 10:08:00 +01:00
Éric Lemoine
79166dc1d6
Constraint objects moved to ol namespace from ol.interaction namespace
2012-09-27 00:10:54 +02:00