Change target type from Element to HTMLElement

Same as the parent class type for `MousePosition` and the type returned by the
`getViewport` function.
This commit is contained in:
Frederic Junod
2018-10-23 08:54:34 +02:00
parent 0787aa3439
commit 3746ba99cf
2 changed files with 3 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ const COORDINATE_FORMAT = 'coordinateFormat';
* @property {function(import("../MapEvent.js").default)} [render] Function called when the
* control should be re-rendered. This is called in a `requestAnimationFrame`
* 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.
* @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