Don't import ourselves

This commit is contained in:
Frederic Junod
2018-09-06 09:01:46 +02:00
parent ba698258c0
commit ea616e7751
73 changed files with 157 additions and 157 deletions

View File

@@ -107,7 +107,7 @@ class Collection extends BaseObject {
* Add elements to the collection. This pushes each item in the provided array
* to the end of the collection.
* @param {!Array<T>} arr Array.
* @return {import("./Collection.js").default<T>} This collection.
* @return {Collection<T>} This collection.
* @api
*/
extend(arr) {

View File

@@ -114,7 +114,7 @@ class Feature extends BaseObject {
/**
* Clone this feature. If the original feature has a geometry it
* is also cloned. The feature id is not set in the clone.
* @return {import("./Feature.js").default} The clone.
* @return {Feature} The clone.
* @api
*/
clone() {

View File

@@ -22,7 +22,7 @@ import {getHeight} from './extent.js';
* post requests or - in general - through XHR requests, where the src of the
* image element would be set to a data URI when the content is loaded.
*
* @typedef {function(import("./Image.js").default, string)} LoadFunction
* @typedef {function(ImageWrapper, string)} LoadFunction
* @api
*/

View File

@@ -8,7 +8,7 @@ import {listenOnce, unlistenByKey} from './events.js';
import EventType from './events/EventType.js';
/**
* @typedef {function(new: import("./ImageTile.js").default, import("./tilecoord.js").TileCoord,
* @typedef {function(new: ImageTile, import("./tilecoord.js").TileCoord,
* import("./TileState.js").default, string, ?string, import("./Tile.js").LoadFunction)} TileClass
* @api
*/

View File

@@ -56,7 +56,7 @@ import {create as createTransform, apply as applyTransform} from './transform.js
/**
* @typedef {function(import("./PluggableMap.js").default, ?FrameState): boolean} PostRenderFunction
* @typedef {function(PluggableMap, ?FrameState): boolean} PostRenderFunction
*/
@@ -392,7 +392,7 @@ class PluggableMap extends BaseObject {
this.controls.forEach(
/**
* @param {import("./control/Control.js").default} control Control.
* @this {import("./PluggableMap.js").default}
* @this {PluggableMap}
*/
(function(control) {
control.setMap(this);
@@ -417,7 +417,7 @@ class PluggableMap extends BaseObject {
this.interactions.forEach(
/**
* @param {import("./interaction/Interaction.js").default} interaction Interaction.
* @this {import("./PluggableMap.js").default}
* @this {PluggableMap}
*/
(function(interaction) {
interaction.setMap(this);

View File

@@ -40,7 +40,7 @@ import EventType from './events/EventType.js';
* });
* ```
*
* @typedef {function(import("./Tile.js").default, string)} LoadFunction
* @typedef {function(Tile, string)} LoadFunction
* @api
*/
@@ -101,7 +101,7 @@ class Tile extends EventTarget {
* An "interim" tile for this tile. The interim tile may be used while this
* one is loading, for "smooth" transitions when changing params/dimensions
* on the source.
* @type {import("./Tile.js").default}
* @type {Tile}
*/
this.interimTile = null;
@@ -146,7 +146,7 @@ class Tile extends EventTarget {
* Get the interim tile most suitable for rendering using the chain of interim
* tiles. This corresponds to the most recent tile that has been loaded, if no
* such tile exists, the original tile is returned.
* @return {!import("./Tile.js").default} Best tile for rendering.
* @return {!Tile} Best tile for rendering.
*/
getInterimTile() {
if (!this.interimTile) {

View File

@@ -47,7 +47,7 @@ class TileRange {
}
/**
* @param {import("./TileRange.js").default} tileRange Tile range.
* @param {TileRange} tileRange Tile range.
* @return {boolean} Contains.
*/
containsTileRange(tileRange) {
@@ -65,7 +65,7 @@ class TileRange {
}
/**
* @param {import("./TileRange.js").default} tileRange Tile range.
* @param {TileRange} tileRange Tile range.
* @return {boolean} Equals.
*/
equals(tileRange) {
@@ -74,7 +74,7 @@ class TileRange {
}
/**
* @param {import("./TileRange.js").default} tileRange Tile range.
* @param {TileRange} tileRange Tile range.
*/
extend(tileRange) {
if (tileRange.minX < this.minX) {
@@ -113,7 +113,7 @@ class TileRange {
}
/**
* @param {import("./TileRange.js").default} tileRange Tile range.
* @param {TileRange} tileRange Tile range.
* @return {boolean} Intersects.
*/
intersects(tileRange) {
@@ -130,8 +130,8 @@ class TileRange {
* @param {number} maxX Maximum X.
* @param {number} minY Minimum Y.
* @param {number} maxY Maximum Y.
* @param {import("./TileRange.js").default=} tileRange TileRange.
* @return {import("./TileRange.js").default} Tile range.
* @param {TileRange=} tileRange TileRange.
* @return {TileRange} Tile range.
*/
export function createOrUpdate(minX, maxX, minY, maxY, tileRange) {
if (tileRange !== undefined) {

View File

@@ -13,7 +13,7 @@ const DEFAULT_EXTENT = [0, 0, 4096, 4096];
/**
* @typedef {function(new: import("./VectorTile.js").default, import("./tilecoord.js").TileCoord,
* @typedef {function(new: VectorTile, import("./tilecoord.js").TileCoord,
* import("./TileState.js").default, string, ?string, import("./Tile.js").LoadFunction)} TileClass
* @api
*/

View File

@@ -316,7 +316,7 @@ class Attribution extends Control {
/**
* Update the attribution element.
* @param {import("../MapEvent.js").default} mapEvent Map event.
* @this {import("./Attribution.js").default}
* @this {Attribution}
* @api
*/
export function render(mapEvent) {

View File

@@ -246,7 +246,7 @@ class MousePosition extends Control {
/**
* Update the mouseposition element.
* @param {import("../MapEvent.js").default} mapEvent Map event.
* @this {import("./MousePosition.js").default}
* @this {MousePosition}
* @api
*/
export function render(mapEvent) {

View File

@@ -570,7 +570,7 @@ class OverviewMap extends Control {
/**
* Update the overview map element.
* @param {import("../MapEvent.js").default} mapEvent Map event.
* @this {import("./OverviewMap.js").default}
* @this {OverviewMap}
* @api
*/
export function render(mapEvent) {

View File

@@ -150,7 +150,7 @@ class Rotate extends Control {
/**
* Update the rotate control element.
* @param {import("../MapEvent.js").default} mapEvent Map event.
* @this {import("./Rotate.js").default}
* @this {Rotate}
* @api
*/
export function render(mapEvent) {

View File

@@ -283,7 +283,7 @@ class ScaleLine extends Control {
/**
* Update the scale line element.
* @param {import("../MapEvent.js").default} mapEvent Map event.
* @this {import("./ScaleLine.js").default}
* @this {ScaleLine}
* @api
*/
export function render(mapEvent) {

View File

@@ -345,7 +345,7 @@ class ZoomSlider extends Control {
/**
* Update the zoomslider element.
* @param {import("../MapEvent.js").default} mapEvent Map event.
* @this {import("./ZoomSlider.js").default}
* @this {ZoomSlider}
* @api
*/
export function render(mapEvent) {

View File

@@ -8,7 +8,7 @@ import Event from '../events/Event.js';
/**
* @typedef {EventTarget|import("./Target.js").default} EventTargetLike
* @typedef {EventTarget|Target} EventTargetLike
*/

View File

@@ -2207,7 +2207,7 @@ const DOCUMENT_NODE_FACTORY = function(value, objectStack, opt_nodeName) {
* @param {Node} node Node.
* @param {Array<import("../Feature.js").default>} features Features.
* @param {Array<*>} objectStack Object stack.
* @this {import("./KML.js").default}
* @this {KML}
*/
function writeDocument(node, features, objectStack) {
const /** @type {import("../xml.js").NodeStackItem} */ context = {node: node};
@@ -2660,7 +2660,7 @@ const EXTENDEDDATA_NODE_FACTORY = makeSimpleNodeFactory('ExtendedData');
* @param {Element} node Node.
* @param {import("../Feature.js").default} feature Feature.
* @param {Array<*>} objectStack Object stack.
* @this {import("./KML.js").default}
* @this {KML}
*/
function writePlacemark(node, feature, objectStack) {
const /** @type {import("../xml.js").NodeStackItem} */ context = {node: node};

View File

@@ -33,7 +33,7 @@ class Circle extends SimpleGeometry {
/**
* Make a complete copy of the geometry.
* @return {!import("./Circle.js").default} Clone.
* @return {!Circle} Clone.
* @override
* @api
*/
@@ -230,7 +230,7 @@ class Circle extends SimpleGeometry {
* string identifier or a {@link module:ol/proj/Projection~Projection} object.
* @param {import("../proj.js").ProjectionLike} destination The desired projection. Can be a
* string identifier or a {@link module:ol/proj/Projection~Projection} object.
* @return {import("./Circle.js").default} This geometry. Note that original geometry is
* @return {Circle} This geometry. Note that original geometry is
* modified in place.
* @function
* @api

View File

@@ -47,7 +47,7 @@ class Geometry extends BaseObject {
/**
* @protected
* @type {Object<string, import("./Geometry.js").default>}
* @type {Object<string, Geometry>}
*/
this.simplifiedGeometryCache = {};
@@ -68,7 +68,7 @@ class Geometry extends BaseObject {
/**
* Make a complete copy of the geometry.
* @abstract
* @return {!import("./Geometry.js").default} Clone.
* @return {!Geometry} Clone.
*/
clone() {}
@@ -159,7 +159,7 @@ class Geometry extends BaseObject {
* Douglas Peucker} algorithm. For polygons, a quantization-based
* simplification is used to preserve topology.
* @param {number} tolerance The tolerance distance for simplification.
* @return {import("./Geometry.js").default} A new, simplified version of the original geometry.
* @return {Geometry} A new, simplified version of the original geometry.
* @api
*/
simplify(tolerance) {
@@ -172,7 +172,7 @@ class Geometry extends BaseObject {
* See https://en.wikipedia.org/wiki/Ramer-Douglas-Peucker_algorithm.
* @abstract
* @param {number} squaredTolerance Squared tolerance.
* @return {import("./Geometry.js").default} Simplified geometry.
* @return {Geometry} Simplified geometry.
*/
getSimplifiedGeometry(squaredTolerance) {}
@@ -222,7 +222,7 @@ class Geometry extends BaseObject {
* string identifier or a {@link module:ol/proj/Projection~Projection} object.
* @param {import("../proj.js").ProjectionLike} destination The desired projection. Can be a
* string identifier or a {@link module:ol/proj/Projection~Projection} object.
* @return {import("./Geometry.js").default} This geometry. Note that original geometry is
* @return {Geometry} This geometry. Note that original geometry is
* modified in place.
* @api
*/

View File

@@ -62,7 +62,7 @@ class GeometryCollection extends Geometry {
/**
* Make a complete copy of the geometry.
* @return {!import("./GeometryCollection.js").default} Clone.
* @return {!GeometryCollection} Clone.
* @override
* @api
*/

View File

@@ -80,7 +80,7 @@ class LineString extends SimpleGeometry {
/**
* Make a complete copy of the geometry.
* @return {!import("./LineString.js").default} Clone.
* @return {!LineString} Clone.
* @override
* @api
*/

View File

@@ -51,7 +51,7 @@ class LinearRing extends SimpleGeometry {
/**
* Make a complete copy of the geometry.
* @return {!import("./LinearRing.js").default} Clone.
* @return {!LinearRing} Clone.
* @override
* @api
*/

View File

@@ -91,7 +91,7 @@ class MultiLineString extends SimpleGeometry {
/**
* Make a complete copy of the geometry.
* @return {!import("./MultiLineString.js").default} Clone.
* @return {!MultiLineString} Clone.
* @override
* @api
*/

View File

@@ -48,7 +48,7 @@ class MultiPoint extends SimpleGeometry {
/**
* Make a complete copy of the geometry.
* @return {!import("./MultiPoint.js").default} Clone.
* @return {!MultiPoint} Clone.
* @override
* @api
*/

View File

@@ -135,7 +135,7 @@ class MultiPolygon extends SimpleGeometry {
/**
* Make a complete copy of the geometry.
* @return {!import("./MultiPolygon.js").default} Clone.
* @return {!MultiPolygon} Clone.
* @override
* @api
*/

View File

@@ -26,7 +26,7 @@ class Point extends SimpleGeometry {
/**
* Make a complete copy of the geometry.
* @return {!import("./Point.js").default} Clone.
* @return {!Point} Clone.
* @override
* @api
*/

View File

@@ -111,7 +111,7 @@ class Polygon extends SimpleGeometry {
/**
* Make a complete copy of the geometry.
* @return {!import("./Polygon.js").default} Clone.
* @return {!Polygon} Clone.
* @override
* @api
*/
@@ -342,7 +342,7 @@ export default Polygon;
* polygon. Default is `32`.
* @param {number=} opt_sphereRadius Optional radius for the sphere (defaults to
* the Earth's mean radius using the WGS84 ellipsoid).
* @return {import("./Polygon.js").default} The "circular" polygon.
* @return {Polygon} The "circular" polygon.
* @api
*/
export function circular(center, radius, opt_n, opt_sphereRadius) {
@@ -360,7 +360,7 @@ export function circular(center, radius, opt_n, opt_sphereRadius) {
/**
* Create a polygon from an extent. The layout used is `XY`.
* @param {import("../extent.js").Extent} extent The extent.
* @return {import("./Polygon.js").default} The polygon.
* @return {Polygon} The polygon.
* @api
*/
export function fromExtent(extent) {
@@ -380,7 +380,7 @@ export function fromExtent(extent) {
* @param {number=} opt_sides Number of sides of the polygon. Default is 32.
* @param {number=} opt_angle Start angle for the first vertex of the polygon in
* radians. Default is 0.
* @return {import("./Polygon.js").default} Polygon geometry.
* @return {Polygon} Polygon geometry.
* @api
*/
export function fromCircle(circle, opt_sides, opt_angle) {
@@ -406,7 +406,7 @@ export function fromCircle(circle, opt_sides, opt_angle) {
/**
* Modify the coordinates of a polygon to make it a regular polygon.
* @param {import("./Polygon.js").default} polygon Polygon geometry.
* @param {Polygon} polygon Polygon geometry.
* @param {import("../coordinate.js").Coordinate} center Center of the regular polygon.
* @param {number} radius Radius of the regular polygon.
* @param {number=} opt_angle Start angle for the first vertex of the polygon in

View File

@@ -130,7 +130,7 @@ class SimpleGeometry extends Geometry {
/**
* @param {number} squaredTolerance Squared tolerance.
* @return {import("./SimpleGeometry.js").default} Simplified geometry.
* @return {SimpleGeometry} Simplified geometry.
* @protected
*/
getSimplifiedGeometryInternal(squaredTolerance) {
@@ -298,7 +298,7 @@ SimpleGeometry.prototype.containsXY = FALSE;
/**
* @param {import("./SimpleGeometry.js").default} simpleGeometry Simple geometry.
* @param {SimpleGeometry} simpleGeometry Simple geometry.
* @param {import("../transform.js").Transform} transform Transform.
* @param {Array<number>=} opt_dest Destination.
* @return {Array<number>} Transformed flat coordinates.

View File

@@ -51,7 +51,7 @@ class DoubleClickZoom extends Interaction {
* doubleclick) and eventually zooms the map.
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Map browser event.
* @return {boolean} `false` to stop event propagation.
* @this {import("./DoubleClickZoom.js").default}
* @this {DoubleClickZoom}
*/
function handleEvent(mapBrowserEvent) {
let stopEvent = false;

View File

@@ -244,7 +244,7 @@ class DragAndDrop extends Interaction {
/**
* @param {DragEvent} event Event.
* @this {import("./DragAndDrop.js").default}
* @this {DragAndDrop}
*/
function handleDrop(event) {
const files = event.dataTransfer.files;

View File

@@ -28,7 +28,7 @@ import RenderBox from '../render/Box.js';
* @property {EndCondition} [boxEndCondition] A function that takes a {@link module:ol/MapBrowserEvent~MapBrowserEvent} and two
* {@link module:ol/pixel~Pixel}s to indicate whether a `boxend` event should be fired.
* Default is `true` if the area of the box is bigger than the `minArea` option.
* @property {function(this:import("./DragBox.js").default, import("../MapBrowserEvent.js").default)} onBoxEnd Code to execute just
* @property {function(this:DragBox, import("../MapBrowserEvent.js").default)} onBoxEnd Code to execute just
* before `boxend` is fired.
*/
@@ -137,7 +137,7 @@ class DragBox extends PointerInteraction {
/**
* Function to execute just before `onboxend` is fired
* @type {function(this:import("./DragBox.js").default, import("../MapBrowserEvent.js").default)}
* @type {function(this:DragBox, import("../MapBrowserEvent.js").default)}
* @private
*/
this.onBoxEnd_ = options.onBoxEnd ? options.onBoxEnd : VOID;
@@ -181,7 +181,7 @@ class DragBox extends PointerInteraction {
* @param {import("../pixel.js").Pixel} startPixel The starting pixel of the box.
* @param {import("../pixel.js").Pixel} endPixel The end pixel of the box.
* @return {boolean} Whether or not the boxend condition should be fired.
* @this {import("./DragBox.js").default}
* @this {DragBox}
*/
function defaultBoxEndCondition(mapBrowserEvent, startPixel, endPixel) {
const width = endPixel[0] - startPixel[0];
@@ -192,7 +192,7 @@ function defaultBoxEndCondition(mapBrowserEvent, startPixel, endPixel) {
/**
* @param {import("../MapBrowserPointerEvent.js").default} mapBrowserEvent Event.
* @this {import("./DragBox.js").default}
* @this {DragBox}
*/
function handleDragEvent(mapBrowserEvent) {
if (!mouseOnly(mapBrowserEvent)) {
@@ -209,7 +209,7 @@ function handleDragEvent(mapBrowserEvent) {
/**
* @param {import("../MapBrowserPointerEvent.js").default} mapBrowserEvent Event.
* @return {boolean} Stop drag sequence?
* @this {import("./DragBox.js").default}
* @this {DragBox}
*/
function handleUpEvent(mapBrowserEvent) {
if (!mouseOnly(mapBrowserEvent)) {
@@ -230,7 +230,7 @@ function handleUpEvent(mapBrowserEvent) {
/**
* @param {import("../MapBrowserPointerEvent.js").default} mapBrowserEvent Event.
* @return {boolean} Start drag sequence?
* @this {import("./DragBox.js").default}
* @this {DragBox}
*/
function handleDownEvent(mapBrowserEvent) {
if (!mouseOnly(mapBrowserEvent)) {

View File

@@ -78,7 +78,7 @@ class DragPan extends PointerInteraction {
/**
* @param {import("../MapBrowserPointerEvent.js").default} mapBrowserEvent Event.
* @this {import("./DragPan.js").default}
* @this {DragPan}
*/
function handleDragEvent(mapBrowserEvent) {
if (!this.panning_) {
@@ -116,7 +116,7 @@ function handleDragEvent(mapBrowserEvent) {
/**
* @param {import("../MapBrowserPointerEvent.js").default} mapBrowserEvent Event.
* @return {boolean} Stop drag sequence?
* @this {import("./DragPan.js").default}
* @this {DragPan}
*/
function handleUpEvent(mapBrowserEvent) {
const map = mapBrowserEvent.map;
@@ -157,7 +157,7 @@ function handleUpEvent(mapBrowserEvent) {
/**
* @param {import("../MapBrowserPointerEvent.js").default} mapBrowserEvent Event.
* @return {boolean} Start drag sequence?
* @this {import("./DragPan.js").default}
* @this {DragPan}
*/
function handleDownEvent(mapBrowserEvent) {
if (this.targetPointers.length > 0 && this.condition_(mapBrowserEvent)) {

View File

@@ -69,7 +69,7 @@ class DragRotate extends PointerInteraction {
/**
* @param {import("../MapBrowserPointerEvent.js").default} mapBrowserEvent Event.
* @this {import("./DragRotate.js").default}
* @this {DragRotate}
*/
function handleDragEvent(mapBrowserEvent) {
if (!mouseOnly(mapBrowserEvent)) {
@@ -97,7 +97,7 @@ function handleDragEvent(mapBrowserEvent) {
/**
* @param {import("../MapBrowserPointerEvent.js").default} mapBrowserEvent Event.
* @return {boolean} Stop drag sequence?
* @this {import("./DragRotate.js").default}
* @this {DragRotate}
*/
function handleUpEvent(mapBrowserEvent) {
if (!mouseOnly(mapBrowserEvent)) {
@@ -116,7 +116,7 @@ function handleUpEvent(mapBrowserEvent) {
/**
* @param {import("../MapBrowserPointerEvent.js").default} mapBrowserEvent Event.
* @return {boolean} Start drag sequence?
* @this {import("./DragRotate.js").default}
* @this {DragRotate}
*/
function handleDownEvent(mapBrowserEvent) {
if (!mouseOnly(mapBrowserEvent)) {

View File

@@ -81,7 +81,7 @@ class DragRotateAndZoom extends PointerInteraction {
/**
* @param {import("../MapBrowserPointerEvent.js").default} mapBrowserEvent Event.
* @this {import("./DragRotateAndZoom.js").default}
* @this {DragRotateAndZoom}
*/
function handleDragEvent(mapBrowserEvent) {
if (!mouseOnly(mapBrowserEvent)) {
@@ -115,7 +115,7 @@ function handleDragEvent(mapBrowserEvent) {
/**
* @param {import("../MapBrowserPointerEvent.js").default} mapBrowserEvent Event.
* @return {boolean} Stop drag sequence?
* @this {import("./DragRotateAndZoom.js").default}
* @this {DragRotateAndZoom}
*/
function handleUpEvent(mapBrowserEvent) {
if (!mouseOnly(mapBrowserEvent)) {
@@ -136,7 +136,7 @@ function handleUpEvent(mapBrowserEvent) {
/**
* @param {import("../MapBrowserPointerEvent.js").default} mapBrowserEvent Event.
* @return {boolean} Start drag sequence?
* @this {import("./DragRotateAndZoom.js").default}
* @this {DragRotateAndZoom}
*/
function handleDownEvent(mapBrowserEvent) {
if (!mouseOnly(mapBrowserEvent)) {

View File

@@ -61,7 +61,7 @@ class DragZoom extends DragBox {
/**
* @this {import("./DragZoom.js").default}
* @this {DragZoom}
*/
function onBoxEnd() {
const map = this.getMap();

View File

@@ -823,7 +823,7 @@ function getDefaultStyleFunction() {
* draw or finish the drawing.
* @param {import("../MapBrowserEvent.js").default} event Map browser event.
* @return {boolean} `false` to stop event propagation.
* @this {import("./Draw.js").default}
* @this {Draw}
* @api
*/
export function handleEvent(event) {
@@ -875,7 +875,7 @@ export function handleEvent(event) {
/**
* @param {import("../MapBrowserPointerEvent.js").default} event Event.
* @return {boolean} Start drag sequence?
* @this {import("./Draw.js").default}
* @this {Draw}
*/
function handleDownEvent(event) {
this.shouldHandle_ = !this.freehand_;
@@ -903,7 +903,7 @@ function handleDownEvent(event) {
/**
* @param {import("../MapBrowserPointerEvent.js").default} event Event.
* @return {boolean} Stop drag sequence?
* @this {import("./Draw.js").default}
* @this {Draw}
*/
function handleUpEvent(event) {
let pass = true;

View File

@@ -87,7 +87,7 @@ class KeyboardPan extends Interaction {
* pressed).
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Map browser event.
* @return {boolean} `false` to stop event propagation.
* @this {import("./KeyboardPan.js").default}
* @this {KeyboardPan}
*/
function handleEvent(mapBrowserEvent) {
let stopEvent = false;

View File

@@ -71,7 +71,7 @@ class KeyboardZoom extends Interaction {
* key pressed was '+' or '-').
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Map browser event.
* @return {boolean} `false` to stop event propagation.
* @this {import("./KeyboardZoom.js").default}
* @this {KeyboardZoom}
*/
function handleEvent(mapBrowserEvent) {
let stopEvent = false;

View File

@@ -987,7 +987,7 @@ function compareIndexes(a, b) {
/**
* @param {import("../MapBrowserPointerEvent.js").default} evt Event.
* @return {boolean} Start drag sequence?
* @this {import("./Modify.js").default}
* @this {Modify}
*/
function handleDownEvent(evt) {
if (!this.condition_(evt)) {
@@ -1062,7 +1062,7 @@ function handleDownEvent(evt) {
/**
* @param {import("../MapBrowserPointerEvent.js").default} evt Event.
* @this {import("./Modify.js").default}
* @this {Modify}
*/
function handleDragEvent(evt) {
this.ignoreNextSingleClick_ = false;
@@ -1139,7 +1139,7 @@ function handleDragEvent(evt) {
/**
* @param {import("../MapBrowserPointerEvent.js").default} evt Event.
* @return {boolean} Stop drag sequence?
* @this {import("./Modify.js").default}
* @this {Modify}
*/
function handleUpEvent(evt) {
for (let i = this.dragSegments_.length - 1; i >= 0; --i) {
@@ -1171,7 +1171,7 @@ function handleUpEvent(evt) {
* geometry.
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Map browser event.
* @return {boolean} `false` to stop event propagation.
* @this {import("./Modify.js").default}
* @this {Modify}
*/
function handleEvent(mapBrowserEvent) {
if (!(mapBrowserEvent instanceof MapBrowserPointerEvent)) {

View File

@@ -196,7 +196,7 @@ class MouseWheelZoom extends Interaction {
* mousewheel-event) and eventually zooms the map.
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Map browser event.
* @return {boolean} Allow event propagation.
* @this {import("./MouseWheelZoom.js").default}
* @this {MouseWheelZoom}
*/
function handleEvent(mapBrowserEvent) {
if (!this.condition_(mapBrowserEvent)) {

View File

@@ -80,7 +80,7 @@ class PinchRotate extends PointerInteraction {
/**
* @param {import("../MapBrowserPointerEvent.js").default} mapBrowserEvent Event.
* @this {import("./PinchRotate.js").default}
* @this {PinchRotate}
*/
function handleDragEvent(mapBrowserEvent) {
let rotationDelta = 0.0;
@@ -131,7 +131,7 @@ function handleDragEvent(mapBrowserEvent) {
/**
* @param {import("../MapBrowserPointerEvent.js").default} mapBrowserEvent Event.
* @return {boolean} Stop drag sequence?
* @this {import("./PinchRotate.js").default}
* @this {PinchRotate}
*/
function handleUpEvent(mapBrowserEvent) {
if (this.targetPointers.length < 2) {
@@ -152,7 +152,7 @@ function handleUpEvent(mapBrowserEvent) {
/**
* @param {import("../MapBrowserPointerEvent.js").default} mapBrowserEvent Event.
* @return {boolean} Start drag sequence?
* @this {import("./PinchRotate.js").default}
* @this {PinchRotate}
*/
function handleDownEvent(mapBrowserEvent) {
if (this.targetPointers.length >= 2) {

View File

@@ -73,7 +73,7 @@ class PinchZoom extends PointerInteraction {
/**
* @param {import("../MapBrowserPointerEvent.js").default} mapBrowserEvent Event.
* @this {import("./PinchZoom.js").default}
* @this {PinchZoom}
*/
function handleDragEvent(mapBrowserEvent) {
let scaleDelta = 1.0;
@@ -126,7 +126,7 @@ function handleDragEvent(mapBrowserEvent) {
/**
* @param {import("../MapBrowserPointerEvent.js").default} mapBrowserEvent Event.
* @return {boolean} Stop drag sequence?
* @this {import("./PinchZoom.js").default}
* @this {PinchZoom}
*/
function handleUpEvent(mapBrowserEvent) {
if (this.targetPointers.length < 2) {
@@ -153,7 +153,7 @@ function handleUpEvent(mapBrowserEvent) {
/**
* @param {import("../MapBrowserPointerEvent.js").default} mapBrowserEvent Event.
* @return {boolean} Start drag sequence?
* @this {import("./PinchZoom.js").default}
* @this {PinchZoom}
*/
function handleDownEvent(mapBrowserEvent) {
if (this.targetPointers.length >= 2) {

View File

@@ -10,7 +10,7 @@ import {getValues} from '../obj.js';
/**
* @param {import("../MapBrowserPointerEvent.js").default} mapBrowserEvent Event.
* @this {import("./Pointer.js").default}
* @this {PointerInteraction}
*/
const handleDragEvent = VOID;
@@ -18,7 +18,7 @@ const handleDragEvent = VOID;
/**
* @param {import("../MapBrowserPointerEvent.js").default} mapBrowserEvent Event.
* @return {boolean} Capture dragging.
* @this {import("./Pointer.js").default}
* @this {PointerInteraction}
*/
const handleUpEvent = FALSE;
@@ -26,14 +26,14 @@ const handleUpEvent = FALSE;
/**
* @param {import("../MapBrowserPointerEvent.js").default} mapBrowserEvent Event.
* @return {boolean} Capture dragging.
* @this {import("./Pointer.js").default}
* @this {PointerInteraction}
*/
const handleDownEvent = FALSE;
/**
* @param {import("../MapBrowserPointerEvent.js").default} mapBrowserEvent Event.
* @this {import("./Pointer.js").default}
* @this {PointerInteraction}
*/
const handleMoveEvent = VOID;
@@ -203,7 +203,7 @@ function isPointerDraggingEvent(mapBrowserEvent) {
* detected.
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Map browser event.
* @return {boolean} `false` to stop event propagation.
* @this {import("./Pointer.js").default}
* @this {PointerInteraction}
* @api
*/
export function handleEvent(mapBrowserEvent) {

View File

@@ -385,7 +385,7 @@ class Select extends Interaction {
* selected state of features.
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Map browser event.
* @return {boolean} `false` to stop event propagation.
* @this {import("./Select.js").default}
* @this {Select}
*/
function handleEvent(mapBrowserEvent) {
if (!this.condition_(mapBrowserEvent)) {

View File

@@ -591,7 +591,7 @@ class Snap extends PointerInteraction {
* Handle all pointer events events.
* @param {import("../MapBrowserEvent.js").default} evt A move event.
* @return {boolean} Pass the event to other interactions.
* @this {import("./Snap.js").default}
* @this {Snap}
*/
export function handleEvent(evt) {
const result = this.snapTo(evt.pixel, evt.coordinate, evt.map);
@@ -606,7 +606,7 @@ export function handleEvent(evt) {
/**
* @param {import("../MapBrowserPointerEvent.js").default} evt Event.
* @return {boolean} Stop drag sequence?
* @this {import("./Snap.js").default}
* @this {Snap}
*/
function handleUpEvent(evt) {
const featuresToUpdate = getValues(this.pendingFeatures_);
@@ -623,7 +623,7 @@ function handleUpEvent(evt) {
* @param {SegmentData} a The first segment data.
* @param {SegmentData} b The second segment data.
* @return {number} The difference in distance.
* @this {import("./Snap.js").default}
* @this {Snap}
*/
function sortByDistance(a, b) {
const deltaA = squaredDistanceToSegment(this.pixelCoordinate_, a.segment);

View File

@@ -238,7 +238,7 @@ class Translate extends PointerInteraction {
/**
* @param {import("../MapBrowserPointerEvent.js").default} event Event.
* @return {boolean} Start drag sequence?
* @this {import("./Translate.js").default}
* @this {Translate}
*/
function handleDownEvent(event) {
this.lastFeature_ = this.featuresAtPixel_(event.pixel, event.map);
@@ -261,7 +261,7 @@ function handleDownEvent(event) {
/**
* @param {import("../MapBrowserPointerEvent.js").default} event Event.
* @return {boolean} Stop drag sequence?
* @this {import("./Translate.js").default}
* @this {Translate}
*/
function handleUpEvent(event) {
if (this.lastCoordinate_) {
@@ -282,7 +282,7 @@ function handleUpEvent(event) {
/**
* @param {import("../MapBrowserPointerEvent.js").default} event Event.
* @this {import("./Translate.js").default}
* @this {Translate}
*/
function handleDragEvent(event) {
if (this.lastCoordinate_) {
@@ -309,7 +309,7 @@ function handleDragEvent(event) {
/**
* @param {import("../MapBrowserEvent.js").default} event Event.
* @this {import("./Translate.js").default}
* @this {Translate}
*/
function handleMoveEvent(event) {
const elem = event.map.getViewport();

View File

@@ -57,7 +57,7 @@ const DEDUP_DIST = 25;
/**
* Handler for `mousedown`.
*
* @this {import("./MouseSource.js").default}
* @this {MouseSource}
* @param {MouseEvent} inEvent The in event.
*/
function mousedown(inEvent) {
@@ -76,7 +76,7 @@ function mousedown(inEvent) {
/**
* Handler for `mousemove`.
*
* @this {import("./MouseSource.js").default}
* @this {MouseSource}
* @param {MouseEvent} inEvent The in event.
*/
function mousemove(inEvent) {
@@ -89,7 +89,7 @@ function mousemove(inEvent) {
/**
* Handler for `mouseup`.
*
* @this {import("./MouseSource.js").default}
* @this {MouseSource}
* @param {MouseEvent} inEvent The in event.
*/
function mouseup(inEvent) {
@@ -107,7 +107,7 @@ function mouseup(inEvent) {
/**
* Handler for `mouseover`.
*
* @this {import("./MouseSource.js").default}
* @this {MouseSource}
* @param {MouseEvent} inEvent The in event.
*/
function mouseover(inEvent) {
@@ -120,7 +120,7 @@ function mouseover(inEvent) {
/**
* Handler for `mouseout`.
*
* @this {import("./MouseSource.js").default}
* @this {MouseSource}
* @param {MouseEvent} inEvent The in event.
*/
function mouseout(inEvent) {

View File

@@ -49,7 +49,7 @@ const POINTER_TYPES = [
/**
* Handler for `msPointerDown`.
*
* @this {import("./MsSource.js").default}
* @this {MsSource}
* @param {MSPointerEvent} inEvent The in event.
*/
function msPointerDown(inEvent) {
@@ -61,7 +61,7 @@ function msPointerDown(inEvent) {
/**
* Handler for `msPointerMove`.
*
* @this {import("./MsSource.js").default}
* @this {MsSource}
* @param {MSPointerEvent} inEvent The in event.
*/
function msPointerMove(inEvent) {
@@ -72,7 +72,7 @@ function msPointerMove(inEvent) {
/**
* Handler for `msPointerUp`.
*
* @this {import("./MsSource.js").default}
* @this {MsSource}
* @param {MSPointerEvent} inEvent The in event.
*/
function msPointerUp(inEvent) {
@@ -84,7 +84,7 @@ function msPointerUp(inEvent) {
/**
* Handler for `msPointerOut`.
*
* @this {import("./MsSource.js").default}
* @this {MsSource}
* @param {MSPointerEvent} inEvent The in event.
*/
function msPointerOut(inEvent) {
@@ -95,7 +95,7 @@ function msPointerOut(inEvent) {
/**
* Handler for `msPointerOver`.
*
* @this {import("./MsSource.js").default}
* @this {MsSource}
* @param {MSPointerEvent} inEvent The in event.
*/
function msPointerOver(inEvent) {
@@ -106,7 +106,7 @@ function msPointerOver(inEvent) {
/**
* Handler for `msPointerCancel`.
*
* @this {import("./MsSource.js").default}
* @this {MsSource}
* @param {MSPointerEvent} inEvent The in event.
*/
function msPointerCancel(inEvent) {
@@ -118,7 +118,7 @@ function msPointerCancel(inEvent) {
/**
* Handler for `msLostPointerCapture`.
*
* @this {import("./MsSource.js").default}
* @this {MsSource}
* @param {MSPointerEvent} inEvent The in event.
*/
function msLostPointerCapture(inEvent) {
@@ -129,7 +129,7 @@ function msLostPointerCapture(inEvent) {
/**
* Handler for `msGotPointerCapture`.
*
* @this {import("./MsSource.js").default}
* @this {MsSource}
* @param {MSPointerEvent} inEvent The in event.
*/
function msGotPointerCapture(inEvent) {

View File

@@ -37,7 +37,7 @@ import EventSource from '../pointer/EventSource.js';
/**
* Handler for `pointerdown`.
*
* @this {import("./NativeSource.js").default}
* @this {NativeSource}
* @param {Event} inEvent The in event.
*/
function pointerDown(inEvent) {
@@ -47,7 +47,7 @@ function pointerDown(inEvent) {
/**
* Handler for `pointermove`.
*
* @this {import("./NativeSource.js").default}
* @this {NativeSource}
* @param {Event} inEvent The in event.
*/
function pointerMove(inEvent) {
@@ -57,7 +57,7 @@ function pointerMove(inEvent) {
/**
* Handler for `pointerup`.
*
* @this {import("./NativeSource.js").default}
* @this {NativeSource}
* @param {Event} inEvent The in event.
*/
function pointerUp(inEvent) {
@@ -67,7 +67,7 @@ function pointerUp(inEvent) {
/**
* Handler for `pointerout`.
*
* @this {import("./NativeSource.js").default}
* @this {NativeSource}
* @param {Event} inEvent The in event.
*/
function pointerOut(inEvent) {
@@ -77,7 +77,7 @@ function pointerOut(inEvent) {
/**
* Handler for `pointerover`.
*
* @this {import("./NativeSource.js").default}
* @this {NativeSource}
* @param {Event} inEvent The in event.
*/
function pointerOver(inEvent) {
@@ -87,7 +87,7 @@ function pointerOver(inEvent) {
/**
* Handler for `pointercancel`.
*
* @this {import("./NativeSource.js").default}
* @this {NativeSource}
* @param {Event} inEvent The in event.
*/
function pointerCancel(inEvent) {
@@ -97,7 +97,7 @@ function pointerCancel(inEvent) {
/**
* Handler for `lostpointercapture`.
*
* @this {import("./NativeSource.js").default}
* @this {NativeSource}
* @param {Event} inEvent The in event.
*/
function lostPointerCapture(inEvent) {
@@ -107,7 +107,7 @@ function lostPointerCapture(inEvent) {
/**
* Handler for `gotpointercapture`.
*
* @this {import("./NativeSource.js").default}
* @this {NativeSource}
* @param {Event} inEvent The in event.
*/
function gotPointerCapture(inEvent) {

View File

@@ -51,7 +51,7 @@ const POINTER_TYPE = 'touch';
* Handler for `touchstart`, triggers `pointerover`,
* `pointerenter` and `pointerdown` events.
*
* @this {import("./TouchSource.js").default}
* @this {TouchSource}
* @param {TouchEvent} inEvent The in event.
*/
function touchstart(inEvent) {
@@ -65,7 +65,7 @@ function touchstart(inEvent) {
/**
* Handler for `touchmove`.
*
* @this {import("./TouchSource.js").default}
* @this {TouchSource}
* @param {TouchEvent} inEvent The in event.
*/
function touchmove(inEvent) {
@@ -76,7 +76,7 @@ function touchmove(inEvent) {
* Handler for `touchend`, triggers `pointerup`,
* `pointerout` and `pointerleave` events.
*
* @this {import("./TouchSource.js").default}
* @this {TouchSource}
* @param {TouchEvent} inEvent The event.
*/
function touchend(inEvent) {
@@ -88,7 +88,7 @@ function touchend(inEvent) {
* Handler for `touchcancel`, triggers `pointercancel`,
* `pointerout` and `pointerleave` events.
*
* @this {import("./TouchSource.js").default}
* @this {TouchSource}
* @param {TouchEvent} inEvent The in event.
*/
function touchcancel(inEvent) {

View File

@@ -20,7 +20,7 @@ const Units = {
/**
* Meters per unit lookup table.
* @const
* @type {Object<import("./Units.js").default, number>}
* @type {Object<Units, number>}
* @api
*/
export const METERS_PER_UNIT = {};

View File

@@ -185,7 +185,7 @@ class RenderFeature {
/**
* For API compatibility with {@link module:ol/Feature~Feature}, this method is useful when
* determining the geometry type in style function (see {@link #getType}).
* @return {import("./Feature.js").default} Feature.
* @return {RenderFeature} Feature.
* @api
*/
getGeometry() {
@@ -257,7 +257,7 @@ RenderFeature.prototype.getFlatCoordinates =
/**
* Get the feature for working with its geometry.
* @return {import("./Feature.js").default} Feature.
* @return {RenderFeature} Feature.
*/
RenderFeature.prototype.getSimplifiedGeometry =
RenderFeature.prototype.getGeometry;

View File

@@ -1002,7 +1002,7 @@ class CanvasReplay extends VectorContext {
/**
* @param {import("../canvas.js").FillStrokeState} state State.
* @param {function(this:import("./Replay.js").default, import("../canvas.js").FillStrokeState, (import("../../geom/Geometry.js").default|import("../Feature.js").default)):Array<*>} createFill Create fill.
* @param {function(this:CanvasReplay, import("../canvas.js").FillStrokeState, (import("../../geom/Geometry.js").default|import("../Feature.js").default)):Array<*>} createFill Create fill.
* @param {import("../../geom/Geometry.js").default|import("../Feature.js").default} geometry Geometry.
*/
updateFillStyle(state, createFill, geometry) {
@@ -1017,7 +1017,7 @@ class CanvasReplay extends VectorContext {
/**
* @param {import("../canvas.js").FillStrokeState} state State.
* @param {function(this:import("./Replay.js").default, import("../canvas.js").FillStrokeState)} applyStroke Apply stroke.
* @param {function(this:CanvasReplay, import("../canvas.js").FillStrokeState)} applyStroke Apply stroke.
*/
updateStrokeStyle(state, applyStroke) {
const strokeStyle = state.strokeStyle;

View File

@@ -206,7 +206,7 @@ CanvasImageLayerRenderer['handles'] = function(layer) {
* Create a layer renderer.
* @param {import("../Map.js").default} mapRenderer The map renderer.
* @param {import("../../layer/Layer.js").default} layer The layer to be rendererd.
* @return {import("./ImageLayer.js").default} The layer renderer.
* @return {CanvasImageLayerRenderer} The layer renderer.
*/
CanvasImageLayerRenderer['create'] = function(mapRenderer, layer) {
return new CanvasImageLayerRenderer(/** @type {import("../../layer/Image.js").default} */ (layer));

View File

@@ -370,7 +370,7 @@ CanvasTileLayerRenderer['handles'] = function(layer) {
* Create a layer renderer.
* @param {import("../Map.js").default} mapRenderer The map renderer.
* @param {import("../../layer/Layer.js").default} layer The layer to be rendererd.
* @return {import("./TileLayer.js").default} The layer renderer.
* @return {CanvasTileLayerRenderer} The layer renderer.
*/
CanvasTileLayerRenderer['create'] = function(mapRenderer, layer) {
return new CanvasTileLayerRenderer(/** @type {import("../../layer/Tile.js").default} */ (layer));

View File

@@ -339,7 +339,7 @@ class CanvasVectorLayerRenderer extends CanvasLayerRenderer {
vectorSource.loadFeatures(extent, resolution, projection);
/**
* @param {import("../../Feature.js").default} feature Feature.
* @this {import("./VectorLayer.js").default}
* @this {CanvasVectorLayerRenderer}
*/
const render = function(feature) {
let styles;
@@ -427,7 +427,7 @@ CanvasVectorLayerRenderer['handles'] = function(layer) {
* Create a layer renderer.
* @param {import("../Map.js").default} mapRenderer The map renderer.
* @param {import("../../layer/Layer.js").default} layer The layer to be rendererd.
* @return {import("./VectorLayer.js").default} The layer renderer.
* @return {CanvasVectorLayerRenderer} The layer renderer.
*/
CanvasVectorLayerRenderer['create'] = function(mapRenderer, layer) {
return new CanvasVectorLayerRenderer(/** @type {import("../../layer/Vector.js").default} */ (layer));

View File

@@ -183,7 +183,7 @@ class CanvasVectorTileLayerRenderer extends CanvasTileLayerRenderer {
/**
* @param {import("../../Feature.js").default|import("../../render/Feature.js").default} feature Feature.
* @this {import("./VectorTileLayer.js").default}
* @this {CanvasVectorTileLayerRenderer}
*/
const render = function(feature) {
let styles;
@@ -490,7 +490,7 @@ CanvasVectorTileLayerRenderer['handles'] = function(layer) {
* Create a layer renderer.
* @param {import("../Map.js").default} mapRenderer The map renderer.
* @param {import("../../layer/Layer.js").default} layer The layer to be rendererd.
* @return {import("./VectorTileLayer.js").default} The layer renderer.
* @return {CanvasVectorTileLayerRenderer} The layer renderer.
*/
CanvasVectorTileLayerRenderer['create'] = function(mapRenderer, layer) {
return new CanvasVectorTileLayerRenderer(/** @type {import("../../layer/VectorTile.js").default} */ (layer));

View File

@@ -327,7 +327,7 @@ WebGLImageLayerRenderer['handles'] = function(layer) {
* Create a layer renderer.
* @param {import("../Map.js").default} mapRenderer The map renderer.
* @param {import("../../layer/Layer.js").default} layer The layer to be rendererd.
* @return {import("./ImageLayer.js").default} The layer renderer.
* @return {WebGLImageLayerRenderer} The layer renderer.
*/
WebGLImageLayerRenderer['create'] = function(mapRenderer, layer) {
return new WebGLImageLayerRenderer(

View File

@@ -131,7 +131,7 @@ class WebGLMapRenderer extends MapRenderer {
/**
* @param {Array<*>} element Element.
* @return {number} Priority.
* @this {import("./Map.js").default}
* @this {WebGLMapRenderer}
*/
(function(element) {
const tileCenter = /** @type {import("../../coordinate.js").Coordinate} */ (element[1]);
@@ -156,7 +156,7 @@ class WebGLMapRenderer extends MapRenderer {
* @param {import("../../PluggableMap.js").default} map Map.
* @param {?import("../../PluggableMap.js").FrameState} frameState Frame state.
* @return {boolean} false.
* @this {import("./Map.js").default}
* @this {WebGLMapRenderer}
*/
this.loadNextTileTexture_ =
function(map, frameState) {

View File

@@ -399,7 +399,7 @@ WebGLTileLayerRenderer['handles'] = function(layer) {
* Create a layer renderer.
* @param {import("../Map.js").default} mapRenderer The map renderer.
* @param {import("../../layer/Layer.js").default} layer The layer to be rendererd.
* @return {import("./TileLayer.js").default} The layer renderer.
* @return {WebGLTileLayerRenderer} The layer renderer.
*/
WebGLTileLayerRenderer['create'] = function(mapRenderer, layer) {
return new WebGLTileLayerRenderer(

View File

@@ -232,7 +232,7 @@ class WebGLVectorLayerRenderer extends WebGLLayerRenderer {
vectorSource.loadFeatures(extent, resolution, projection);
/**
* @param {import("../../Feature.js").default} feature Feature.
* @this {import("./VectorLayer.js").default}
* @this {WebGLVectorLayerRenderer}
*/
const render = function(feature) {
let styles;
@@ -318,7 +318,7 @@ WebGLVectorLayerRenderer['handles'] = function(layer) {
* Create a layer renderer.
* @param {import("../Map.js").default} mapRenderer The map renderer.
* @param {import("../../layer/Layer.js").default} layer The layer to be rendererd.
* @return {import("./VectorLayer.js").default} The layer renderer.
* @return {WebGLVectorLayerRenderer} The layer renderer.
*/
WebGLVectorLayerRenderer['create'] = function(mapRenderer, layer) {
return new WebGLVectorLayerRenderer(

View File

@@ -460,7 +460,7 @@ export function optionsFromCapabilities(wmtsCap, config) {
/**
* @param {string} template Template.
* @return {import("../Tile.js").UrlFunction} Tile URL function.
* @this {import("./WMTS.js").default}
* @this {WMTS}
*/
function createFromWMTSTemplate(template) {
const requestEncoding = this.requestEncoding_;

View File

@@ -96,7 +96,7 @@ class LRUCache extends EventTarget {
/**
* @param {function(this: S, T, string, import("./LRUCache.js").default): ?} f The function
* @param {function(this: S, T, string, LRUCache): ?} f The function
* to call for every entry from the oldest to the newer. This function takes
* 3 arguments (the entry value, the entry key and the LRUCache object).
* The return value is ignored.

View File

@@ -227,7 +227,7 @@ class LinkedList {
/**
* Concatenates two lists.
* @param {import("./LinkedList.js").default} list List to merge into the current list.
* @param {LinkedList} list List to merge into the current list.
*/
concat(list) {
if (list.head_) {

View File

@@ -228,7 +228,7 @@ class RBush {
/**
* @param {import("./RBush.js").default} rbush R-Tree.
* @param {RBush} rbush R-Tree.
*/
concat(rbush) {
this.rbush_.load(rbush.rbush_.all());

View File

@@ -41,7 +41,7 @@ class CircleStyle extends RegularShape {
/**
* Clones the style. If an atlasmanager was provided to the original style it will be used in the cloned style, too.
* @return {import("./Circle.js").default} The cloned style.
* @return {CircleStyle} The cloned style.
* @override
* @api
*/

View File

@@ -41,7 +41,7 @@ class Fill {
/**
* Clones the style. The color is not cloned if it is an {@link module:ol/colorlike~ColorLike}.
* @return {import("./Fill.js").default} The cloned style.
* @return {Fill} The cloned style.
* @api
*/
clone() {

View File

@@ -202,7 +202,7 @@ class Icon extends ImageStyle {
/**
* Clones the style. The underlying Image/HTMLCanvasElement is not cloned.
* @return {import("./Icon.js").default} The cloned style.
* @return {Icon} The cloned style.
* @api
*/
clone() {

View File

@@ -247,7 +247,7 @@ class IconImage extends EventTarget {
* @param {?string} crossOrigin Cross origin.
* @param {import("../ImageState.js").default} imageState Image state.
* @param {import("../color.js").Color} color Color.
* @return {import("./IconImage.js").default} Icon image.
* @return {IconImage} Icon image.
*/
export function get(image, src, size, crossOrigin, imageState, color) {
let iconImage = iconImageCache.get(src, crossOrigin, color);

View File

@@ -164,7 +164,7 @@ class RegularShape extends ImageStyle {
/**
* Clones the style. If an atlasmanager was provided to the original style it will be used in the cloned style, too.
* @return {import("./RegularShape.js").default} The cloned style.
* @return {RegularShape} The cloned style.
* @api
*/
clone() {

View File

@@ -87,7 +87,7 @@ class Stroke {
/**
* Clones the style.
* @return {import("./Stroke.js").default} The cloned style.
* @return {Stroke} The cloned style.
* @api
*/
clone() {

View File

@@ -100,7 +100,7 @@ import Stroke from '../style/Stroke.js';
* vector layer can be styled.
*
* @typedef {function((import("../Feature.js").default|import("../render/Feature.js").default), number):
* (import("./Style.js").default|Array<import("./Style.js").default>)} StyleFunction
* (Style|Array<Style>)} StyleFunction
*/
@@ -209,7 +209,7 @@ class Style {
/**
* Clones the style.
* @return {import("./Style.js").default} The cloned style.
* @return {Style} The cloned style.
* @api
*/
clone() {
@@ -392,9 +392,9 @@ class Style {
/**
* Convert the provided object into a style function. Functions passed through
* unchanged. Arrays of import("./Style.js").default or single style objects wrapped in a
* unchanged. Arrays of Style or single style objects wrapped in a
* new style function.
* @param {StyleFunction|Array<import("./Style.js").default>|import("./Style.js").default} obj
* @param {StyleFunction|Array<Style>|Style} obj
* A style function, a single style, or an array of styles.
* @return {StyleFunction} A style function.
*/
@@ -405,7 +405,7 @@ export function toFunction(obj) {
styleFunction = obj;
} else {
/**
* @type {Array<import("./Style.js").default>}
* @type {Array<Style>}
*/
let styles;
if (Array.isArray(obj)) {
@@ -424,7 +424,7 @@ export function toFunction(obj) {
/**
* @type {Array<import("./Style.js").default>}
* @type {Array<Style>}
*/
let defaultStyles = null;
@@ -432,7 +432,7 @@ let defaultStyles = null;
/**
* @param {import("../Feature.js").default|import("../render/Feature.js").default} feature Feature.
* @param {number} resolution Resolution.
* @return {Array<import("./Style.js").default>} Style.
* @return {Array<Style>} Style.
*/
export function createDefaultStyle(feature, resolution) {
// We don't use an immediately-invoked function
@@ -466,10 +466,10 @@ export function createDefaultStyle(feature, resolution) {
/**
* Default styles for editing features.
* @return {Object<import("../geom/GeometryType.js").default, Array<import("./Style.js").default>>} Styles
* @return {Object<import("../geom/GeometryType.js").default, Array<Style>>} Styles
*/
export function createEditingStyle() {
/** @type {Object<import("../geom/GeometryType.js").default, Array<import("./Style.js").default>>} */
/** @type {Object<import("../geom/GeometryType.js").default, Array<Style>>} */
const styles = {};
const white = [255, 255, 255, 1];
const blue = [0, 153, 255, 1];

View File

@@ -164,7 +164,7 @@ class Text {
/**
* Clones the style.
* @return {import("./Text.js").default} The cloned style.
* @return {Text} The cloned style.
* @api
*/
clone() {

View File

@@ -102,7 +102,7 @@ export default WMTSTileGrid;
* ranges the server provides.
* @param {Array<Object>=} opt_matrixLimits An optional object representing
* the available matrices for tileGrid.
* @return {import("./WMTS.js").default} WMTS tileGrid instance.
* @return {WMTSTileGrid} WMTS tileGrid instance.
* @api
*/
export function createFromCapabilitiesMatrixSet(matrixSet, opt_extent, opt_matrixLimits) {