feat(editor): surface ref extension (#11902)

Closes: BS-3203
This commit is contained in:
Saul-Mirone
2025-04-23 01:16:07 +00:00
parent 020c1a7598
commit e57222b89a
19 changed files with 96 additions and 92 deletions

View File

@@ -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;