Named export for ol/interaction

This commit is contained in:
Frederic Junod
2017-12-17 19:02:17 +01:00
parent da67764437
commit f23590a479
17 changed files with 38 additions and 40 deletions

View File

@@ -12,7 +12,6 @@ import _ol_interaction_KeyboardZoom_ from './interaction/KeyboardZoom.js';
import _ol_interaction_MouseWheelZoom_ from './interaction/MouseWheelZoom.js';
import _ol_interaction_PinchRotate_ from './interaction/PinchRotate.js';
import _ol_interaction_PinchZoom_ from './interaction/PinchZoom.js';
var _ol_interaction_ = {};
/**
@@ -38,7 +37,7 @@ var _ol_interaction_ = {};
* interactions to be used with the ol.Map constructor's interactions option.
* @api
*/
_ol_interaction_.defaults = function(opt_options) {
export function defaults(opt_options) {
var options = opt_options ? opt_options : {};
@@ -110,5 +109,4 @@ _ol_interaction_.defaults = function(opt_options) {
return interactions;
};
export default _ol_interaction_;
}