mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-31 17:19:56 +08:00
refactor(editor): edgeless mindmap toolbar config extension (#10803)
This commit is contained in:
@@ -17,6 +17,7 @@ import type {
|
||||
} from '@blocksuite/store';
|
||||
|
||||
import { DocModeProvider } from '../doc-mode-service';
|
||||
import { EditPropsStore } from '../edit-props-store';
|
||||
import { TelemetryProvider, type TelemetryService } from '../telemetry-service';
|
||||
import { ThemeProvider } from '../theme-service';
|
||||
import { ToolbarRegistryIdentifier } from './registry';
|
||||
@@ -105,6 +106,10 @@ abstract class ToolbarContextBase {
|
||||
return this.themeProvider.theme;
|
||||
}
|
||||
|
||||
get settings() {
|
||||
return this.std.get(EditPropsStore);
|
||||
}
|
||||
|
||||
get toolbarRegistry() {
|
||||
return this.std.get(ToolbarRegistryIdentifier);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user