tsauerwein
b8ab6fd771
Add stable tags to interactions
2014-07-03 14:19:16 +02:00
Tim Schaub
47d37fabea
Rename ol.View2D to ol.View
2014-06-27 09:59:39 -04:00
Tim Schaub
b9f444a008
Rename olx.View2DState to olx.ViewState and use viewState property
2014-06-27 09:58:25 -04:00
Tim Schaub
2e88f911dd
Rename view.getView2DState() to view.getState()
2014-06-27 09:52:19 -04:00
Tim Schaub
b88d2aebc9
Remove view.getView2D() method
2014-06-27 09:52:19 -04:00
Peter Robins
41d9f0360a
Add @classdesc to classes
2014-06-09 12:10:19 -04:00
Andreas Hocevar
fbdbbfb7a7
Get rid of stability annotations and document stability with api
...
This change adds a stability value to the api annotation, with
'experimental' as default value.
enum, typedef and event annotations are never exportable, but
api annotations are needed there to make them appear in the
docs.
Nested typedefs are no longer inlined recursively, because the
resulting tables get too wide with the current template.
2014-04-29 09:53:07 -06:00
Tim Schaub
fb497f5288
Annotations for exports
2014-04-29 09:53:05 -06:00
Éric Lemoine
b5339550b7
DragPan interaction sets/unsets interacting hint
2014-03-14 10:16:27 +01:00
tsauerwein
5a358918e1
Rename interactions
...
The idea behind the naming scheme is that for example
for `DragRotate`, `Rotate` is the action and `Drag` the
gesture that issues the action.
2014-03-14 10:16:27 +01:00
tsauerwein
dc164fd496
removes now superfluous DragPanInteraction
2014-03-14 10:16:26 +01:00
Tom Payne
a8f932fa07
Rename ol.Map#requestRenderFrame to ol.Map#render
2014-02-20 16:54:20 +01:00
Tom Payne
a93e0b85df
Improve type checking in ol.interaction.DragPan
2013-12-13 18:59:24 +01:00
Tom Payne
d81c8d6f92
Fix use of ol.IView2D in ol.interaction.DragPan
2013-12-13 18:04:48 +01:00
Éric Lemoine
315c42f0a7
Use olx namespace for options types in source code
...
sed command used: find src/ol -name '*.js' -exec sed -ri 's/\{ol(\.(\w|\.)+Options\=?\})/{olx\1/' \{\} \;
2013-12-12 15:02:03 +01:00
Tim Schaub
b0362b8c0a
Only set interacting hint when modifying the view
2013-11-14 14:21:01 -07:00
Frederic Junod
a9159ecac3
Rename ol.interaction.condition to ol.events.condition
2013-10-30 12:13:44 +01:00
Paul Spencer
bada596b45
Add default stability level to docs of exported things.
2013-10-24 18:20:24 -04:00
Tom Payne
2e395e4530
Constrain center in ol.interaction.DragPan
2013-09-30 10:17:24 +02:00
Paul Spencer
d7eee91195
Add exports for interactions.
2013-09-13 11:23:05 -04:00
Éric Lemoine
ba3f97d50a
Change the interaction condition signature
2013-09-12 18:08:01 +02:00
Tim Schaub
dc76b81780
Rename addPreRenderFunction to beforeRender and remove the plural
2013-09-03 10:57:31 -06:00
Tom Payne
8565201c74
Use view2DState in ol.interaction.DragPan
2013-06-27 12:20:46 +02:00
Frederic Junod
ae7b342ee9
Handle ol.ViewHint.INTERACTING in ol.interaction.Drag
2013-06-26 09:27:44 +02:00
Tom Payne
e5d6ccd6ba
Use getView2DState instead of getResolution/getRotation in interactions
2013-06-25 12:18:31 +02:00
Frederic Junod
6adedacaf8
Only pan the map when the mouse action button is pressed
2013-06-18 16:53:03 +02:00
Frederic Junod
be081fd44e
Redefine ol.Pixel to be Array.<number>
2013-05-31 15:53:04 +02:00
Tom Payne
a36b4a0466
Configure ol.interaction.DragPan with options
2013-04-23 15:31:16 +02:00
Éric Lemoine
49bf204c13
pan interactions call requestRenderFrame on dragend
2013-04-15 10:46:55 +02:00
Tom Payne
098bddb72f
Use goog.asserts.assertInstanceof
2013-04-08 19:03:49 +02:00
Tom Payne
02196c94b5
Redefine ol.Coordinate to be Array.<number>
2013-04-05 12:30:37 +02:00
Frederic Junod
66d4c44159
Rename ol.ViewHint.PANNING to ol.ViewHint.INTERACTING
2013-03-03 10:44:58 +01:00
Frederic Junod
e4a5744e06
Remove x,y params from ol.Kinetic.begin
2013-02-18 16:43:20 +01:00
Tim Schaub
440ea038fe
Merge pull request #183 from tschaub/natural-names
...
More natural names for animations
2013-02-07 13:44:13 -08:00
Tim Schaub
a2bbdf7ccc
More natural names for animations
2013-02-06 13:43:54 -07:00
Frederic Junod
2fea469037
Change ol.Kinetic.update arguments.
...
Instead of goog.events.BrowserEvent, accept a x,y pair.
2013-02-06 12:55:15 +01:00
Tom Payne
93976a5d9f
Fix requires relating to recent commits
2013-01-30 23:47:13 +01:00
Tom Payne
b6f856f962
Remove unused goog.requires
2013-01-30 22:48:03 +01:00
Bruno Binet
79849888db
Kinetic now returns directly the pre-render function
...
instead of returning the kinetic easing function only.
(thanks @fredj)
2013-01-29 15:34:11 +01:00
Bruno Binet
2bb8a5cfd9
Stop current kinetic animation on DOWN events
2013-01-29 14:32:38 +01:00
Bruno Binet
8a9738d755
Add support for kinetic effect while dragging.
...
Only dragpan interaction is supported for now.
The kinetic effect use the maths below (thx @twpayne):
Rate of decay (number, must be negative) = α
Minimum velocity (pixels/millisecond) = v_min
Initial velocity (pixels/millisecond) = v₀
Velocity at time t (pixels/millisecond) =
α⋅t
v₀⋅ℯ
Distance travelled at time t (pixels) =
⎛ α⋅t ⎞
v₀⋅⎝ℯ - 1⎠
─────────────
α
Duration of animation (milliseconds) =
⎛v_min⎞
log⎜─────⎟
⎝ v₀ ⎠
──────────
α
Total distance travelled (pixels) =
-v₀ + v_min
───────────
α
Easing function =
⎛ α⋅duration⋅t ⎞
v₀⋅⎝ℯ - 1⎠
──────────────────────
-v₀ + v_min
2013-01-29 12:39:52 +01:00
Tom Payne
9764e76975
Move pixel/coordinate matrices into frame state, remove canRotate
2013-01-14 12:46:39 +01:00
Tom Payne
e837a74e00
Set panning hint in DragPanInteraction
2013-01-14 12:35:53 +01:00
Tom Payne
5d31a44c12
Implement view hints architecture
2013-01-14 12:35:53 +01:00
Éric Lemoine
927cffb2b7
Add view abstraction
2013-01-09 14:03:16 +01:00
Tom Payne
934c75bc8c
Use requestRenderFrame API in interactions
2013-01-03 12:23:50 +01:00
Tom Payne
e5d39724c9
Give each source file a unique name
2012-10-26 11:25:26 +02:00