mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-16 13:57:02 +08:00
@@ -81,6 +81,19 @@ export class ViewExtensionProvider<
|
||||
*/
|
||||
effect(): void {}
|
||||
|
||||
/**
|
||||
* Check if the scope is edgeless
|
||||
* @param scope - The scope to check
|
||||
* @returns True if the scope is edgeless, false otherwise
|
||||
*/
|
||||
isEdgeless = (scope: ViewScope) => {
|
||||
return (
|
||||
scope === 'edgeless' ||
|
||||
scope === 'preview-edgeless' ||
|
||||
scope === 'mobile-edgeless'
|
||||
);
|
||||
};
|
||||
|
||||
override setup(context: ViewExtensionContext, options?: Options) {
|
||||
super.setup(context, options);
|
||||
const constructer = this.constructor as typeof ViewExtensionProvider;
|
||||
|
||||
Reference in New Issue
Block a user