Merge pull request #8686 from fredj/import
Remove extra imports in jsdoc
This commit is contained in:
@@ -133,7 +133,7 @@ class ZoomSlider extends Control {
|
|||||||
containerElement.className = className + ' ' + CLASS_UNSELECTABLE + ' ' + CLASS_CONTROL;
|
containerElement.className = className + ' ' + CLASS_UNSELECTABLE + ' ' + CLASS_CONTROL;
|
||||||
containerElement.appendChild(thumbElement);
|
containerElement.appendChild(thumbElement);
|
||||||
/**
|
/**
|
||||||
* @type {import("../pointer/PointerEventHandler.js").default}
|
* @type {PointerEventHandler}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
this.dragger_ = new PointerEventHandler(containerElement);
|
this.dragger_ = new PointerEventHandler(containerElement);
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ import Zoom from './Zoom.js';
|
|||||||
*
|
*
|
||||||
* @param {DefaultsOptions=} opt_options
|
* @param {DefaultsOptions=} opt_options
|
||||||
* Defaults options.
|
* Defaults options.
|
||||||
* @return {import("../Collection.js").default<import("./Control.js").default>}
|
* @return {Collection<import("./Control.js").default>}
|
||||||
* Controls.
|
* Controls.
|
||||||
* @function module:ol/control.defaults
|
* @function module:ol/control.defaults
|
||||||
* @api
|
* @api
|
||||||
|
|||||||
@@ -366,7 +366,7 @@ class PointerEventHandler extends EventTarget {
|
|||||||
* @param {string} inType A string representing the type of event to create.
|
* @param {string} inType A string representing the type of event to create.
|
||||||
* @param {Object} data Pointer event data.
|
* @param {Object} data Pointer event data.
|
||||||
* @param {Event} event The event.
|
* @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) {
|
makeEvent(inType, data, event) {
|
||||||
return new PointerEvent(inType, event, data);
|
return new PointerEvent(inType, event, data);
|
||||||
@@ -398,7 +398,7 @@ class PointerEventHandler extends EventTarget {
|
|||||||
* This proxy method is required for the legacy IE support.
|
* This proxy method is required for the legacy IE support.
|
||||||
* @param {string} eventType The pointer event type.
|
* @param {string} eventType The pointer event type.
|
||||||
* @param {Event} event The event.
|
* @param {Event} event The event.
|
||||||
* @return {import("./PointerEvent.js").default} The wrapped event.
|
* @return {PointerEvent} The wrapped event.
|
||||||
*/
|
*/
|
||||||
wrapMouseEvent(eventType, event) {
|
wrapMouseEvent(eventType, event) {
|
||||||
const pointerEvent = this.makeEvent(
|
const pointerEvent = this.makeEvent(
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ export class VectorSourceEvent extends Event {
|
|||||||
/**
|
/**
|
||||||
* @typedef {Object} Options
|
* @typedef {Object} Options
|
||||||
* @property {import("./Source.js").AttributionLike} [attributions] Attributions.
|
* @property {import("./Source.js").AttributionLike} [attributions] Attributions.
|
||||||
* @property {Array<import("../Feature.js").default>|import("../Collection.js").default<import("../Feature.js").default>} [features]
|
* @property {Array<import("../Feature.js").default>|Collection<import("../Feature.js").default>} [features]
|
||||||
* Features. If provided as {@link module:ol/Collection}, the features in the source
|
* Features. If provided as {@link module:ol/Collection}, the features in the source
|
||||||
* and the collection will stay in sync.
|
* and the collection will stay in sync.
|
||||||
* @property {import("../format/Feature.js").default} [format] The feature format used by the XHR
|
* @property {import("../format/Feature.js").default} [format] The feature format used by the XHR
|
||||||
@@ -215,13 +215,13 @@ class VectorSource extends Source {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {import("../structs/RBush.js").default<import("../Feature.js").default>}
|
* @type {RBush<import("../Feature.js").default>}
|
||||||
*/
|
*/
|
||||||
this.featuresRtree_ = useSpatialIndex ? new RBush() : null;
|
this.featuresRtree_ = useSpatialIndex ? new RBush() : null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {import("../structs/RBush.js").default<{extent: import("../extent.js").Extent}>}
|
* @type {RBush<{extent: import("../extent.js").Extent}>}
|
||||||
*/
|
*/
|
||||||
this.loadedExtentsRtree_ = new RBush();
|
this.loadedExtentsRtree_ = new RBush();
|
||||||
|
|
||||||
@@ -253,7 +253,7 @@ class VectorSource extends Source {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {import("../Collection.js").default<import("../Feature.js").default>}
|
* @type {Collection<import("../Feature.js").default>}
|
||||||
*/
|
*/
|
||||||
this.featuresCollection_ = null;
|
this.featuresCollection_ = null;
|
||||||
|
|
||||||
@@ -414,7 +414,7 @@ class VectorSource extends Source {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {!import("../Collection.js").default<import("../Feature.js").default>} collection Collection.
|
* @param {!Collection<import("../Feature.js").default>} collection Collection.
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
bindFeaturesCollection_(collection) {
|
bindFeaturesCollection_(collection) {
|
||||||
@@ -618,7 +618,7 @@ class VectorSource extends Source {
|
|||||||
* Get the features collection associated with this source. Will be `null`
|
* Get the features collection associated with this source. Will be `null`
|
||||||
* unless the source was configured with `useSpatialIndex` set to `false`, or
|
* unless the source was configured with `useSpatialIndex` set to `false`, or
|
||||||
* with an {@link module:ol/Collection} as `features`.
|
* with an {@link module:ol/Collection} as `features`.
|
||||||
* @return {import("../Collection.js").default<import("../Feature.js").default>} The collection of features.
|
* @return {Collection<import("../Feature.js").default>} The collection of features.
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
getFeaturesCollection() {
|
getFeaturesCollection() {
|
||||||
@@ -800,7 +800,7 @@ class VectorSource extends Source {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {import("../events/Event.js").default} event Event.
|
* @param {Event} event Event.
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
handleFeatureChange_(event) {
|
handleFeatureChange_(event) {
|
||||||
|
|||||||
Reference in New Issue
Block a user