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 |
|