mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 04:48:53 +00:00
fix(editor): remove rootRect and modify layout
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user