Add Collection and Feature.

This commit is contained in:
Simon Seyock
2021-06-23 12:35:30 +02:00
committed by Andreas Hocevar
parent baf9ee6a93
commit ff42d03f31
2 changed files with 13 additions and 0 deletions

View File

@@ -71,6 +71,13 @@ class Collection extends BaseObject {
constructor(opt_array, opt_options) {
super();
/***
* @type {import("./Observable").OnSignature<import("./Observable").EventTypes, import("./events/Event.js").default> &
* import("./Observable").OnSignature<import("./ObjectEventType").Types|'change:length', import("./Object").ObjectEvent> &
* import("./Observable").OnSignature<'add'|'remove', CollectionEvent>}
*/
this.on;
const options = opt_options || {};
/**

View File

@@ -69,6 +69,12 @@ class Feature extends BaseObject {
constructor(opt_geometryOrProperties) {
super();
/***
* @type {import("./Observable").OnSignature<import("./Observable").EventTypes, import("./events/Event.js").default> &
* import("./Observable").OnSignature<import("./ObjectEventType").Types|'change:geometry', import("./Object").ObjectEvent>}
*/
this.on;
/**
* @private
* @type {number|string|undefined}