mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-17 06:16:59 +08:00
feat(editor): brush gfx package (#11131)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
export * from './element-transform';
|
||||
export * from './indicator-overlay';
|
||||
export * from './toolbar/config';
|
||||
export * from './toolbar/senior-tool';
|
||||
export * from './utils';
|
||||
export * from './view';
|
||||
|
||||
15
blocksuite/affine/gfx/mindmap/src/toolbar/senior-tool.ts
Normal file
15
blocksuite/affine/gfx/mindmap/src/toolbar/senior-tool.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { SeniorToolExtension } from '@blocksuite/affine-widget-edgeless-toolbar';
|
||||
import { html } from 'lit';
|
||||
|
||||
export const mindMapSeniorTool = SeniorToolExtension(
|
||||
'mindMap',
|
||||
({ block, toolbarContainer }) => {
|
||||
return {
|
||||
name: 'Mind Map',
|
||||
content: html`<edgeless-mindmap-tool-button
|
||||
.edgeless=${block}
|
||||
.toolbarContainer=${toolbarContainer}
|
||||
></edgeless-mindmap-tool-button>`,
|
||||
};
|
||||
}
|
||||
);
|
||||
Reference in New Issue
Block a user