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