Add checkbox handel func

This commit is contained in:
2022-03-05 11:37:35 +08:00
parent ca3a19f5b0
commit 86c840443c
8 changed files with 120 additions and 10 deletions
+8
View File
@@ -37,6 +37,14 @@ class Model extends Emitter<ModelEvent> {
*/
public objectPool: CtrlObject[] = [];
public getObjectById(id: ObjectID): CtrlObject | undefined {
for (let i = 0; i < this.objectPool.length; i++) {
if (this.objectPool[i].id === id) {
return this.objectPool[i];
}
}
}
/**
* 标签列表
*/