From 821a08ea7979d341b64fe755b5bd74d4197314a0 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Fri, 21 Sep 2018 08:32:37 +0200 Subject: [PATCH] Remove extra imports in jsdoc The symbols are already imported (es6 import) --- src/ol/control/ZoomSlider.js | 2 +- src/ol/control/util.js | 2 +- src/ol/pointer/PointerEventHandler.js | 4 ++-- src/ol/source/Vector.js | 14 +++++++------- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/ol/control/ZoomSlider.js b/src/ol/control/ZoomSlider.js index 64ff50ff55..f48bca165f 100644 --- a/src/ol/control/ZoomSlider.js +++ b/src/ol/control/ZoomSlider.js @@ -133,7 +133,7 @@ class ZoomSlider extends Control { containerElement.className = className + ' ' + CLASS_UNSELECTABLE + ' ' + CLASS_CONTROL; containerElement.appendChild(thumbElement); /** - * @type {import("../pointer/PointerEventHandler.js").default} + * @type {PointerEventHandler} * @private */ this.dragger_ = new PointerEventHandler(containerElement); diff --git a/src/ol/control/util.js b/src/ol/control/util.js index 978b94fb9b..c8ea795c21 100644 --- a/src/ol/control/util.js +++ b/src/ol/control/util.js @@ -34,7 +34,7 @@ import Zoom from './Zoom.js'; * * @param {DefaultsOptions=} opt_options * Defaults options. - * @return {import("../Collection.js").default} + * @return {Collection} * Controls. * @function module:ol/control.defaults * @api diff --git a/src/ol/pointer/PointerEventHandler.js b/src/ol/pointer/PointerEventHandler.js index d665791d08..a12ca0ce88 100644 --- a/src/ol/pointer/PointerEventHandler.js +++ b/src/ol/pointer/PointerEventHandler.js @@ -366,7 +366,7 @@ class PointerEventHandler extends EventTarget { * @param {string} inType A string representing the type of event to create. * @param {Object} data Pointer event data. * @param {Event} event The event. - * @return {import("./PointerEvent.js").default} A PointerEvent of type `inType`. + * @return {PointerEvent} A PointerEvent of type `inType`. */ makeEvent(inType, data, event) { return new PointerEvent(inType, event, data); @@ -398,7 +398,7 @@ class PointerEventHandler extends EventTarget { * This proxy method is required for the legacy IE support. * @param {string} eventType The pointer event type. * @param {Event} event The event. - * @return {import("./PointerEvent.js").default} The wrapped event. + * @return {PointerEvent} The wrapped event. */ wrapMouseEvent(eventType, event) { const pointerEvent = this.makeEvent( diff --git a/src/ol/source/Vector.js b/src/ol/source/Vector.js index 97a8a168d3..96f8a3bba2 100644 --- a/src/ol/source/Vector.js +++ b/src/ol/source/Vector.js @@ -61,7 +61,7 @@ export class VectorSourceEvent extends Event { /** * @typedef {Object} Options * @property {import("./Source.js").AttributionLike} [attributions] Attributions. - * @property {Array|import("../Collection.js").default} [features] + * @property {Array|Collection} [features] * Features. If provided as {@link module:ol/Collection}, the features in the source * and the collection will stay in sync. * @property {import("../format/Feature.js").default} [format] The feature format used by the XHR @@ -215,13 +215,13 @@ class VectorSource extends Source { /** * @private - * @type {import("../structs/RBush.js").default} + * @type {RBush} */ this.featuresRtree_ = useSpatialIndex ? new RBush() : null; /** * @private - * @type {import("../structs/RBush.js").default<{extent: import("../extent.js").Extent}>} + * @type {RBush<{extent: import("../extent.js").Extent}>} */ this.loadedExtentsRtree_ = new RBush(); @@ -253,7 +253,7 @@ class VectorSource extends Source { /** * @private - * @type {import("../Collection.js").default} + * @type {Collection} */ this.featuresCollection_ = null; @@ -414,7 +414,7 @@ class VectorSource extends Source { /** - * @param {!import("../Collection.js").default} collection Collection. + * @param {!Collection} collection Collection. * @private */ bindFeaturesCollection_(collection) { @@ -607,7 +607,7 @@ class VectorSource extends Source { * Get the features collection associated with this source. Will be `null` * unless the source was configured with `useSpatialIndex` set to `false`, or * with an {@link module:ol/Collection} as `features`. - * @return {import("../Collection.js").default} The collection of features. + * @return {Collection} The collection of features. * @api */ getFeaturesCollection() { @@ -789,7 +789,7 @@ class VectorSource extends Source { /** - * @param {import("../events/Event.js").default} event Event. + * @param {Event} event Event. * @private */ handleFeatureChange_(event) {