Björn Harrtell
44e04be67f
Get rid of goog.functions
2016-04-01 10:32:15 +02:00
Andreas Hocevar
3f2d79b7fe
Replace goog.events.Event/EventTarget system with our own
...
This also removes goog.events.listen, goog.events.unlisten,
goog.events.unlistenByKey and goog.events.BrowserEvent.
2016-02-03 11:19:38 +01:00
Frédéric Junod
eb395894e1
Revert "Do not render in handleDownEvent"
2016-01-19 15:26:10 +01:00
Tim Schaub
13a981c94b
Fewer blank lines
2016-01-11 22:03:23 -08:00
Andreas Hocevar
552063aeac
Do not render in handleDownEvent
2015-12-18 18:21:32 +01:00
Frederic Junod
dfbe7447c9
Test number property with !== undefined
...
Fixes #4424
2015-11-16 09:39:35 +01:00
Tim Schaub
0927c55b3c
Toward natural JavaScript syntax
2015-09-25 12:16:42 -06:00
Marc Jansen
68442578ba
Use ol.isDef when checking booleans
2015-09-25 11:35:11 -06:00
Marc Jansen
08699e2b04
Remove goog.isDef from dragrotateinteraction
2015-09-25 11:28:55 -06:00
Frederic Junod
6c33f84798
Move ol.DRAGROTATE_ANIMATION_DURATION const to a constructor option
2015-04-14 09:05:52 +02:00
Frederic Junod
65c2f7de5f
Remove unused goog.require
2015-02-05 10:56:44 +01:00
Frederic Junod
915df000ab
Use view.getRotation instead of view.getState
2015-01-26 13:39:49 +01:00
Éric Lemoine
6b46d5c76a
Make shouldStopEvent default to the identity func
2014-12-18 14:13:44 +01:00
Éric Lemoine
711ec705b7
Add handle*Event options to ol.interaction.Pointer
...
More specifically: handleDownEvent, handleDragEvent, handleMoveEvent, and handleUpEvent.
2014-12-18 14:13:44 +01:00
Tim Schaub
4cf5ab4620
Use @api annotation instead of @todo api
2014-07-05 15:41:14 -04:00
tsauerwein
b8ab6fd771
Add stable tags to interactions
2014-07-03 14:19:16 +02: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
Tim Schaub
24498fa9d0
Defines in a namespace that can be required
...
For consistency, all defines are in the ol namespace. If they are to be moved to another namespace, they need to be requireable.
2014-04-30 09:14:10 -06: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
Andreas Hocevar
c17ac0cae3
Greatly simplify and document the usage of JSDoc
...
This commit simplifies the exports.js plugin so it only relies
on the stability notes to generate the documentation, which
completely decouples it from the exportable API.
As a rule of thumb, whenever something has an 'api' annotation,
it should also have a 'stability' annotation. A more verbose
documentation of ol3 specific annotation usage is available in
the new 'apidoc/readme.md' file.
This commit also modifies all source files to implement these
usage suggestions.
2014-04-29 09:53:06 -06:00
Tim Schaub
fb497f5288
Annotations for exports
2014-04-29 09:53:05 -06:00
tsauerwein
5f75104e33
Remove DragInteraction
2014-03-14 10:16:26 +01:00
tsauerwein
50d09eba93
Adding missing default returns
2014-03-14 10:16:26 +01:00
ahocevar
05dd760287
Rename ol.interaction.PointerInteraction
2014-03-14 10:16:26 +01:00
tsauerwein
c593add6d8
base dragrotateinteraction on pointer interaction
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
318fc68159
Convert ol.MapBrowserEvent#get* methods into properties
2014-01-29 14:51:27 +01:00
Tom Payne
49369b8800
Fix use of ol.IView2D in ol.interaction.DragRotate
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
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
Tom Payne
79e0c81301
Use view2DState in ol.interaction.DragRotate
2013-06-27 12:25:50 +02:00
Tom Payne
a4e8e529c4
Make View2D-only comments more consistent
2013-06-27 12:19:15 +02:00
Frederic Junod
ae7b342ee9
Handle ol.ViewHint.INTERACTING in ol.interaction.Drag
2013-06-26 09:27:44 +02:00
Frederic Junod
a1a7e21f92
Redefine ol.Size to be Array.<number>
2013-06-01 10:22:06 +02:00
Frederic Junod
be081fd44e
Redefine ol.Pixel to be Array.<number>
2013-05-31 15:53:04 +02:00
Tom Payne
42b6ed5d2a
Remove unused variables in interactions
2013-05-28 16:01:33 +02:00
Tom Payne
d90f292c71
Initialize all properties in constructor
2013-04-23 15:31:15 +02:00
Tom Payne
003ac5536e
Configure ol.interaction.DragRotate with options
2013-04-23 15:31:15 +02:00
Éric Lemoine
dbca68650c
Move rotate from View2D to Interaction
2013-04-10 08:52:06 +02:00
Tom Payne
098bddb72f
Use goog.asserts.assertInstanceof
2013-04-08 19:03:49 +02:00
Tom Payne
4be8c991f7
Add missing Closure Library requires
2013-04-06 14:28:12 +02:00
Éric Lemoine
b884f2f25d
View2D NoConstraint methods renamed
2013-03-05 12:51:03 +01:00
Éric Lemoine
d42d88c198
Animate rotation when releasing mouse or fingers
2013-03-05 10:08:00 +01:00
Éric Lemoine
2f611529dd
Do not apply rotation constraint while rotating
...
This is on par to what the TouchRotate interaction does.
2013-03-05 10:08:00 +01:00