-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #603 from OpenGeoscience/refactor-interactor-actions
Refactor how actions are specified and detected.
- Loading branch information
Showing
6 changed files
with
614 additions
and
222 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
////////////////////////////////////////////////////////////////////////////// | ||
/** | ||
* Common object containing all action types that are provided by the GeoJS | ||
* API. | ||
*/ | ||
////////////////////////////////////////////////////////////////////////////// | ||
var geo_action = { | ||
momentum: 'geo_action_momentum', | ||
pan: 'geo_action_pan', | ||
rotate: 'geo_action_rotate', | ||
select: 'geo_action_select', | ||
unzoomselect: 'geo_action_unzoomselect', | ||
zoom: 'geo_action_zoom', | ||
zoomselect: 'geo_action_zoomselect' | ||
}; | ||
|
||
module.exports = geo_action; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.