controls and interactions.
This commit is contained in:
committed by
Andreas Hocevar
parent
3365576548
commit
e9a161740a
@@ -80,6 +80,13 @@ class FullScreen extends Control {
|
|||||||
target: options.target,
|
target: options.target,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/***
|
||||||
|
* @type {import("../Observable").OnSignature<import("../Observable").EventTypes|
|
||||||
|
* 'enterfullscreen'|'leavefullscreen', import("../events/Event.js").default> &
|
||||||
|
* import("../Observable").OnSignature<import("../ObjectEventType").Types, import("../Object").ObjectEvent>}
|
||||||
|
*/
|
||||||
|
this.on;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {string}
|
* @type {string}
|
||||||
|
|||||||
@@ -68,6 +68,13 @@ class MousePosition extends Control {
|
|||||||
target: options.target,
|
target: options.target,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/***
|
||||||
|
* @type {import("../Observable").OnSignature<import("../Observable").EventTypes, import("../events/Event.js").default> &
|
||||||
|
* import("../Observable").OnSignature<import("../ObjectEventType").Types|
|
||||||
|
* 'change:coordinateFormat'|'change:projection', import("../Object").ObjectEvent>}
|
||||||
|
*/
|
||||||
|
this.on;
|
||||||
|
|
||||||
this.addChangeListener(PROJECTION, this.handleProjectionChanged_);
|
this.addChangeListener(PROJECTION, this.handleProjectionChanged_);
|
||||||
|
|
||||||
if (options.coordinateFormat) {
|
if (options.coordinateFormat) {
|
||||||
|
|||||||
@@ -90,6 +90,13 @@ class ScaleLine extends Control {
|
|||||||
target: options.target,
|
target: options.target,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/***
|
||||||
|
* @type {import("../Observable").OnSignature<import("../Observable").EventTypes, import("../events/Event.js").default> &
|
||||||
|
* import("../Observable").OnSignature<import("../ObjectEventType").Types|
|
||||||
|
* 'change:units', import("../Object").ObjectEvent>}
|
||||||
|
*/
|
||||||
|
this.on;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {HTMLElement}
|
* @type {HTMLElement}
|
||||||
|
|||||||
@@ -112,6 +112,14 @@ class DragBox extends PointerInteraction {
|
|||||||
constructor(opt_options) {
|
constructor(opt_options) {
|
||||||
super();
|
super();
|
||||||
|
|
||||||
|
/***
|
||||||
|
* @type {import("../Observable").OnSignature<import("../Observable").EventTypes, import("../events/Event.js").default> &
|
||||||
|
* import("../Observable").OnSignature<import("../ObjectEventType").Types|
|
||||||
|
* 'change:active', import("../Object").ObjectEvent> &
|
||||||
|
* import("../Observable").OnSignature<'boxcancel'|'boxdrag'|'boxend', DragBoxEvent>}
|
||||||
|
*/
|
||||||
|
this.on;
|
||||||
|
|
||||||
const options = opt_options ? opt_options : {};
|
const options = opt_options ? opt_options : {};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -193,6 +193,14 @@ class Draw extends PointerInteraction {
|
|||||||
|
|
||||||
super(pointerOptions);
|
super(pointerOptions);
|
||||||
|
|
||||||
|
/***
|
||||||
|
* @type {import("../Observable").OnSignature<import("../Observable").EventTypes, import("../events/Event.js").default> &
|
||||||
|
* import("../Observable").OnSignature<import("../ObjectEventType").Types|
|
||||||
|
* 'change:active', import("../Object").ObjectEvent> &
|
||||||
|
* import("../Observable").OnSignature<'drawabort'|'drawend'|'drawstart', DrawEvent>}
|
||||||
|
*/
|
||||||
|
this.on;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
* @private
|
* @private
|
||||||
|
|||||||
@@ -92,6 +92,14 @@ class Extent extends PointerInteraction {
|
|||||||
|
|
||||||
super(/** @type {import("./Pointer.js").Options} */ (options));
|
super(/** @type {import("./Pointer.js").Options} */ (options));
|
||||||
|
|
||||||
|
/***
|
||||||
|
* @type {import("../Observable").OnSignature<import("../Observable").EventTypes, import("../events/Event.js").default> &
|
||||||
|
* import("../Observable").OnSignature<import("../ObjectEventType").Types|
|
||||||
|
* 'change:active', import("../Object").ObjectEvent> &
|
||||||
|
* import("../Observable").OnSignature<'extentchanged', ExtentEvent>}
|
||||||
|
*/
|
||||||
|
this.on;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Condition
|
* Condition
|
||||||
* @type {import("../events/condition.js").Condition}
|
* @type {import("../events/condition.js").Condition}
|
||||||
|
|||||||
@@ -36,6 +36,13 @@ class Interaction extends BaseObject {
|
|||||||
constructor(opt_options) {
|
constructor(opt_options) {
|
||||||
super();
|
super();
|
||||||
|
|
||||||
|
/***
|
||||||
|
* @type {import("../Observable").OnSignature<import("../Observable").EventTypes, import("../events/Event.js").default> &
|
||||||
|
* import("../Observable").OnSignature<import("../ObjectEventType").Types|
|
||||||
|
* 'change:active', import("../Object").ObjectEvent>}
|
||||||
|
*/
|
||||||
|
this.on;
|
||||||
|
|
||||||
if (opt_options && opt_options.handleEvent) {
|
if (opt_options && opt_options.handleEvent) {
|
||||||
this.handleEvent = opt_options.handleEvent;
|
this.handleEvent = opt_options.handleEvent;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -192,6 +192,14 @@ class Modify extends PointerInteraction {
|
|||||||
constructor(options) {
|
constructor(options) {
|
||||||
super(/** @type {import("./Pointer.js").Options} */ (options));
|
super(/** @type {import("./Pointer.js").Options} */ (options));
|
||||||
|
|
||||||
|
/***
|
||||||
|
* @type {import("../Observable").OnSignature<import("../Observable").EventTypes, import("../events/Event.js").default> &
|
||||||
|
* import("../Observable").OnSignature<import("../ObjectEventType").Types|
|
||||||
|
* 'change:active', import("../Object").ObjectEvent> &
|
||||||
|
* import("../Observable").OnSignature<'modifyend'|'modifystart', ModifyEvent>}
|
||||||
|
*/
|
||||||
|
this.on;
|
||||||
|
|
||||||
/** @private */
|
/** @private */
|
||||||
this.boundHandleFeatureChange_ = this.handleFeatureChange_.bind(this);
|
this.boundHandleFeatureChange_ = this.handleFeatureChange_.bind(this);
|
||||||
|
|
||||||
|
|||||||
@@ -156,6 +156,14 @@ class Select extends Interaction {
|
|||||||
constructor(opt_options) {
|
constructor(opt_options) {
|
||||||
super();
|
super();
|
||||||
|
|
||||||
|
/***
|
||||||
|
* @type {import("../Observable").OnSignature<import("../Observable").EventTypes, import("../events/Event.js").default> &
|
||||||
|
* import("../Observable").OnSignature<import("../ObjectEventType").Types|
|
||||||
|
* 'change:active', import("../Object").ObjectEvent> &
|
||||||
|
* import("../Observable").OnSignature<'select', SelectEvent>}
|
||||||
|
*/
|
||||||
|
this.on;
|
||||||
|
|
||||||
const options = opt_options ? opt_options : {};
|
const options = opt_options ? opt_options : {};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -126,6 +126,14 @@ class Translate extends PointerInteraction {
|
|||||||
|
|
||||||
super(/** @type {import("./Pointer.js").Options} */ (options));
|
super(/** @type {import("./Pointer.js").Options} */ (options));
|
||||||
|
|
||||||
|
/***
|
||||||
|
* @type {import("../Observable").OnSignature<import("../Observable").EventTypes, import("../events/Event.js").default> &
|
||||||
|
* import("../Observable").OnSignature<import("../ObjectEventType").Types|
|
||||||
|
* 'change:active', import("../Object").ObjectEvent> &
|
||||||
|
* import("../Observable").OnSignature<'translateend'|'translatestart'|'translating', TranslateEvent>}
|
||||||
|
*/
|
||||||
|
this.on;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The last position we translated to.
|
* The last position we translated to.
|
||||||
* @type {import("../coordinate.js").Coordinate}
|
* @type {import("../coordinate.js").Coordinate}
|
||||||
|
|||||||
Reference in New Issue
Block a user