Rename _ol_interaction_DragRotate_ to DragRotate
This commit is contained in:
@@ -5,7 +5,7 @@ import _ol_Collection_ from './Collection.js';
|
|||||||
import _ol_Kinetic_ from './Kinetic.js';
|
import _ol_Kinetic_ from './Kinetic.js';
|
||||||
import DoubleClickZoom from './interaction/DoubleClickZoom.js';
|
import DoubleClickZoom from './interaction/DoubleClickZoom.js';
|
||||||
import DragPan from './interaction/DragPan.js';
|
import DragPan from './interaction/DragPan.js';
|
||||||
import _ol_interaction_DragRotate_ from './interaction/DragRotate.js';
|
import DragRotate from './interaction/DragRotate.js';
|
||||||
import _ol_interaction_DragZoom_ from './interaction/DragZoom.js';
|
import _ol_interaction_DragZoom_ from './interaction/DragZoom.js';
|
||||||
import _ol_interaction_KeyboardPan_ from './interaction/KeyboardPan.js';
|
import _ol_interaction_KeyboardPan_ from './interaction/KeyboardPan.js';
|
||||||
import _ol_interaction_KeyboardZoom_ from './interaction/KeyboardZoom.js';
|
import _ol_interaction_KeyboardZoom_ from './interaction/KeyboardZoom.js';
|
||||||
@@ -49,7 +49,7 @@ _ol_interaction_.defaults = function(opt_options) {
|
|||||||
var altShiftDragRotate = options.altShiftDragRotate !== undefined ?
|
var altShiftDragRotate = options.altShiftDragRotate !== undefined ?
|
||||||
options.altShiftDragRotate : true;
|
options.altShiftDragRotate : true;
|
||||||
if (altShiftDragRotate) {
|
if (altShiftDragRotate) {
|
||||||
interactions.push(new _ol_interaction_DragRotate_());
|
interactions.push(new DragRotate());
|
||||||
}
|
}
|
||||||
|
|
||||||
var doubleClickZoom = options.doubleClickZoom !== undefined ?
|
var doubleClickZoom = options.doubleClickZoom !== undefined ?
|
||||||
|
|||||||
@@ -22,14 +22,14 @@ import _ol_interaction_Pointer_ from '../interaction/Pointer.js';
|
|||||||
* @param {olx.interaction.DragRotateOptions=} opt_options Options.
|
* @param {olx.interaction.DragRotateOptions=} opt_options Options.
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
var _ol_interaction_DragRotate_ = function(opt_options) {
|
var DragRotate = function(opt_options) {
|
||||||
|
|
||||||
var options = opt_options ? opt_options : {};
|
var options = opt_options ? opt_options : {};
|
||||||
|
|
||||||
_ol_interaction_Pointer_.call(this, {
|
_ol_interaction_Pointer_.call(this, {
|
||||||
handleDownEvent: _ol_interaction_DragRotate_.handleDownEvent_,
|
handleDownEvent: DragRotate.handleDownEvent_,
|
||||||
handleDragEvent: _ol_interaction_DragRotate_.handleDragEvent_,
|
handleDragEvent: DragRotate.handleDragEvent_,
|
||||||
handleUpEvent: _ol_interaction_DragRotate_.handleUpEvent_
|
handleUpEvent: DragRotate.handleUpEvent_
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -52,7 +52,7 @@ var _ol_interaction_DragRotate_ = function(opt_options) {
|
|||||||
this.duration_ = options.duration !== undefined ? options.duration : 250;
|
this.duration_ = options.duration !== undefined ? options.duration : 250;
|
||||||
};
|
};
|
||||||
|
|
||||||
inherits(_ol_interaction_DragRotate_, _ol_interaction_Pointer_);
|
inherits(DragRotate, _ol_interaction_Pointer_);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -60,7 +60,7 @@ inherits(_ol_interaction_DragRotate_, _ol_interaction_Pointer_);
|
|||||||
* @this {ol.interaction.DragRotate}
|
* @this {ol.interaction.DragRotate}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
_ol_interaction_DragRotate_.handleDragEvent_ = function(mapBrowserEvent) {
|
DragRotate.handleDragEvent_ = function(mapBrowserEvent) {
|
||||||
if (!_ol_events_condition_.mouseOnly(mapBrowserEvent)) {
|
if (!_ol_events_condition_.mouseOnly(mapBrowserEvent)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -90,7 +90,7 @@ _ol_interaction_DragRotate_.handleDragEvent_ = function(mapBrowserEvent) {
|
|||||||
* @this {ol.interaction.DragRotate}
|
* @this {ol.interaction.DragRotate}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
_ol_interaction_DragRotate_.handleUpEvent_ = function(mapBrowserEvent) {
|
DragRotate.handleUpEvent_ = function(mapBrowserEvent) {
|
||||||
if (!_ol_events_condition_.mouseOnly(mapBrowserEvent)) {
|
if (!_ol_events_condition_.mouseOnly(mapBrowserEvent)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -111,7 +111,7 @@ _ol_interaction_DragRotate_.handleUpEvent_ = function(mapBrowserEvent) {
|
|||||||
* @this {ol.interaction.DragRotate}
|
* @this {ol.interaction.DragRotate}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
_ol_interaction_DragRotate_.handleDownEvent_ = function(mapBrowserEvent) {
|
DragRotate.handleDownEvent_ = function(mapBrowserEvent) {
|
||||||
if (!_ol_events_condition_.mouseOnly(mapBrowserEvent)) {
|
if (!_ol_events_condition_.mouseOnly(mapBrowserEvent)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -131,5 +131,5 @@ _ol_interaction_DragRotate_.handleDownEvent_ = function(mapBrowserEvent) {
|
|||||||
/**
|
/**
|
||||||
* @inheritDoc
|
* @inheritDoc
|
||||||
*/
|
*/
|
||||||
_ol_interaction_DragRotate_.prototype.shouldStopEvent = FALSE;
|
DragRotate.prototype.shouldStopEvent = FALSE;
|
||||||
export default _ol_interaction_DragRotate_;
|
export default DragRotate;
|
||||||
|
|||||||
Reference in New Issue
Block a user