fix(editor): remove rootRect and modify layout

This commit is contained in:
austaras
2022-07-26 17:28:19 +08:00
parent 8b5e47ed73
commit b9f46028a8
21 changed files with 138 additions and 200 deletions

View File

@@ -41,8 +41,8 @@ export abstract class BasePlugin implements Plugin {
return hooks.removeHook(...args);
},
};
this.on_render = this.on_render.bind(this);
hooks.addHook(HookType.RENDER, this.on_render, this);
this._onRender = this._onRender.bind(this);
hooks.addHook(HookType.RENDER, this._onRender, this);
}
/**
@@ -55,7 +55,7 @@ export abstract class BasePlugin implements Plugin {
/**
* will trigger multiple times
*/
protected on_render(): void {
protected _onRender(): void {
// implement in subclass
}