Merge pull request #8574 from fredj/typescript_checks

Rename Extent to ExtentInteraction
This commit is contained in:
Frédéric Junod
2018-09-04 09:12:49 +02:00
committed by GitHub
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ class MousePosition extends Control {
* @private * @private
* @type {string} * @type {string}
*/ */
this.undefinedHTML_ = 'undefinedHTML' in options ? options.undefinedHTML : ' '; this.undefinedHTML_ = options.undefinedHTML !== undefined ? options.undefinedHTML : ' ';
/** /**
* @private * @private
+5 -5
View File
@@ -48,7 +48,7 @@ const ExtentEventType = {
/** /**
* @classdesc * @classdesc
* Events emitted by {@link module:ol/interaction/Extent~Extent} instances are * Events emitted by {@link module:ol/interaction/Extent~ExtentInteraction} instances are
* instances of this type. * instances of this type.
*/ */
class ExtentInteractionEvent extends Event { class ExtentInteractionEvent extends Event {
@@ -313,7 +313,7 @@ class ExtentInteraction extends PointerInteraction {
/** /**
* @param {module:ol/MapBrowserEvent} mapBrowserEvent Event. * @param {module:ol/MapBrowserEvent} mapBrowserEvent Event.
* @return {boolean} Propagate event? * @return {boolean} Propagate event?
* @this {module:ol/interaction/Extent~Extent} * @this {module:ol/interaction/Extent~ExtentInteraction}
*/ */
function handleEvent(mapBrowserEvent) { function handleEvent(mapBrowserEvent) {
if (!(mapBrowserEvent instanceof MapBrowserPointerEvent)) { if (!(mapBrowserEvent instanceof MapBrowserPointerEvent)) {
@@ -332,7 +332,7 @@ function handleEvent(mapBrowserEvent) {
/** /**
* @param {module:ol/MapBrowserPointerEvent} mapBrowserEvent Event. * @param {module:ol/MapBrowserPointerEvent} mapBrowserEvent Event.
* @return {boolean} Event handled? * @return {boolean} Event handled?
* @this {module:ol/interaction/Extent~Extent} * @this {module:ol/interaction/Extent~ExtentInteraction}
*/ */
function handleDownEvent(mapBrowserEvent) { function handleDownEvent(mapBrowserEvent) {
const pixel = mapBrowserEvent.pixel; const pixel = mapBrowserEvent.pixel;
@@ -391,7 +391,7 @@ function handleDownEvent(mapBrowserEvent) {
/** /**
* @param {module:ol/MapBrowserPointerEvent} mapBrowserEvent Event. * @param {module:ol/MapBrowserPointerEvent} mapBrowserEvent Event.
* @return {boolean} Event handled? * @return {boolean} Event handled?
* @this {module:ol/interaction/Extent~Extent} * @this {module:ol/interaction/Extent~ExtentInteraction}
*/ */
function handleDragEvent(mapBrowserEvent) { function handleDragEvent(mapBrowserEvent) {
if (this.pointerHandler_) { if (this.pointerHandler_) {
@@ -405,7 +405,7 @@ function handleDragEvent(mapBrowserEvent) {
/** /**
* @param {module:ol/MapBrowserPointerEvent} mapBrowserEvent Event. * @param {module:ol/MapBrowserPointerEvent} mapBrowserEvent Event.
* @return {boolean} Stop drag sequence? * @return {boolean} Stop drag sequence?
* @this {module:ol/interaction/Extent~Extent} * @this {module:ol/interaction/Extent~ExtentInteraction}
*/ */
function handleUpEvent(mapBrowserEvent) { function handleUpEvent(mapBrowserEvent) {
this.pointerHandler_ = null; this.pointerHandler_ = null;