Use imports for enum types
This commit is contained in:
@@ -21,7 +21,7 @@ import {outerHeight, outerWidth, removeChildren, removeNode} from './dom.js';
|
||||
* shifts the overlay down.
|
||||
* @property {import("./coordinate.js").Coordinate} [position] The overlay position
|
||||
* in map projection.
|
||||
* @property {OverlayPositioning} [positioning='top-left'] Defines how
|
||||
* @property {import("./OverlayPositioning.js").default} [positioning='top-left'] Defines how
|
||||
* the overlay is actually positioned with respect to its `position` property.
|
||||
* Possible values are `'bottom-left'`, `'bottom-center'`, `'bottom-right'`,
|
||||
* `'center-left'`, `'center-center'`, `'center-right'`, `'top-left'`,
|
||||
@@ -204,7 +204,7 @@ class Overlay extends BaseObject {
|
||||
|
||||
this.setPositioning(
|
||||
options.positioning !== undefined
|
||||
? /** @type {OverlayPositioning} */ (options.positioning)
|
||||
? /** @type {import("./OverlayPositioning.js").default} */ (options.positioning)
|
||||
: OverlayPositioning.TOP_LEFT
|
||||
);
|
||||
|
||||
@@ -270,13 +270,13 @@ class Overlay extends BaseObject {
|
||||
|
||||
/**
|
||||
* Get the current positioning of this overlay.
|
||||
* @return {OverlayPositioning} How the overlay is positioned
|
||||
* @return {import("./OverlayPositioning.js").default} How the overlay is positioned
|
||||
* relative to its point on the map.
|
||||
* @observable
|
||||
* @api
|
||||
*/
|
||||
getPositioning() {
|
||||
return /** @type {OverlayPositioning} */ (this.get(Property.POSITIONING));
|
||||
return /** @type {import("./OverlayPositioning.js").default} */ (this.get(Property.POSITIONING));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -481,7 +481,7 @@ class Overlay extends BaseObject {
|
||||
|
||||
/**
|
||||
* Set the positioning for this overlay.
|
||||
* @param {OverlayPositioning} positioning how the overlay is
|
||||
* @param {import("./OverlayPositioning.js").default} positioning how the overlay is
|
||||
* positioned relative to its point on the map.
|
||||
* @observable
|
||||
* @api
|
||||
|
||||
Reference in New Issue
Block a user