mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-21 03:03:15 +08:00
Closes: [BS-2909](https://linear.app/affine-design/issue/BS-2909/新增highlighter) ### What's Changed! Currently the highlighter tool is very similar to brush, but for the future, it's a standalone module. * Added `Highlighter` element model * Added `Highlighter` tool * Added `Highlighter` entry to the global toolbar
16 lines
462 B
TypeScript
16 lines
462 B
TypeScript
import { SeniorToolExtension } from '@blocksuite/affine-widget-edgeless-toolbar';
|
|
import { html } from 'lit';
|
|
|
|
export const penSeniorTool = SeniorToolExtension('pen', ({ block }) => {
|
|
return {
|
|
name: 'Pen',
|
|
content: html`<div class="pen-and-eraser">
|
|
<edgeless-pen-tool-button .edgeless=${block}></edgeless-pen-tool-button>
|
|
|
|
<edgeless-eraser-tool-button
|
|
.edgeless=${block}
|
|
></edgeless-eraser-tool-button>
|
|
</div> `,
|
|
};
|
|
});
|