Merge pull request #8842 from fredj/element_type
Change target type from Element to HTMLElement
This commit is contained in:
@@ -27,7 +27,7 @@ const COORDINATE_FORMAT = 'coordinateFormat';
|
|||||||
* @property {function(import("../MapEvent.js").default)} [render] Function called when the
|
* @property {function(import("../MapEvent.js").default)} [render] Function called when the
|
||||||
* control should be re-rendered. This is called in a `requestAnimationFrame`
|
* control should be re-rendered. This is called in a `requestAnimationFrame`
|
||||||
* callback.
|
* callback.
|
||||||
* @property {Element|string} [target] Specify a target if you want the
|
* @property {HTMLElement|string} [target] Specify a target if you want the
|
||||||
* control to be rendered outside of the map's viewport.
|
* control to be rendered outside of the map's viewport.
|
||||||
* @property {string} [undefinedHTML=' '] Markup to show when coordinates are not
|
* @property {string} [undefinedHTML=' '] Markup to show when coordinates are not
|
||||||
* available (e.g. when the pointer leaves the map viewport). By default, the last position
|
* available (e.g. when the pointer leaves the map viewport). By default, the last position
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ import {get as getProjection} from '../proj.js';
|
|||||||
* source without removing the existing features (append only), instead of
|
* source without removing the existing features (append only), instead of
|
||||||
* providing the source option listen for the "addfeatures" event.
|
* providing the source option listen for the "addfeatures" event.
|
||||||
* @property {import("../proj.js").ProjectionLike} [projection] Target projection. By default, the map's view's projection is used.
|
* @property {import("../proj.js").ProjectionLike} [projection] Target projection. By default, the map's view's projection is used.
|
||||||
* @property {Element} [target] The element that is used as the drop target, default is the viewport element.
|
* @property {HTMLElement} [target] The element that is used as the drop target, default is the viewport element.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
@@ -127,7 +127,7 @@ class DragAndDrop extends Interaction {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {Element}
|
* @type {HTMLElement}
|
||||||
*/
|
*/
|
||||||
this.target = options.target ? options.target : null;
|
this.target = options.target ? options.target : null;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user