mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-18 23:07:02 +08:00
refactor(editor): move frame toolbar config and components to its package (#11084)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
export * from './config';
|
||||
export * from './icons';
|
||||
export * from './senior-tool';
|
||||
export * from './shape-menu-config';
|
||||
|
||||
15
blocksuite/affine/gfx/shape/src/toolbar/senior-tool.ts
Normal file
15
blocksuite/affine/gfx/shape/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 shapeSeniorTool = SeniorToolExtension(
|
||||
'shape',
|
||||
({ block, toolbarContainer }) => {
|
||||
return {
|
||||
name: 'Shape',
|
||||
content: html`<edgeless-shape-tool-button
|
||||
.edgeless=${block}
|
||||
.toolbarContainer=${toolbarContainer}
|
||||
></edgeless-shape-tool-button>`,
|
||||
};
|
||||
}
|
||||
);
|
||||
Reference in New Issue
Block a user