fix(core): update

This commit is contained in:
2022-08-17 18:49:33 +02:00
parent b016b959cf
commit 076f8c7a91
4 changed files with 5736 additions and 1389 deletions

View File

@ -63,10 +63,22 @@ export class DeesWindowLayer extends DeesElement {
}
dispatchClicked() {
this.dispatchEvent(new CustomEvent('clicked'))
this.dispatchEvent(new CustomEvent('clicked'));
}
public toggleVisibility () {
this.visible = !this.visible;
}
public async show() {
const domtools = await this.domtoolsPromise;
await domtools.convenience.smartdelay.delayFor(0);
this.visible = true;
}
public async hide() {
const domtools = await this.domtoolsPromise;
await domtools.convenience.smartdelay.delayFor(0);
this.visible = false;
}
}