mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-08 20:57:08 +08:00
2c4278058b
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
36 lines
1.3 KiB
TypeScript
36 lines
1.3 KiB
TypeScript
import type { EdgelessTextBlockModel } from '../blocks/edgeless-text/edgeless-text-model.js';
|
|
import type { BrushElementModel } from './brush/index.js';
|
|
import type { ConnectorElementModel } from './connector/index.js';
|
|
import type { GroupElementModel } from './group/index.js';
|
|
import type { HighlighterElementModel } from './highlighter/index.js';
|
|
import type { MindmapElementModel } from './mindmap/index.js';
|
|
import type { ShapeElementModel } from './shape/index.js';
|
|
import type { TextElementModel } from './text/index.js';
|
|
|
|
export * from './brush/index.js';
|
|
export * from './connector/index.js';
|
|
export * from './group/index.js';
|
|
export * from './highlighter/index.js';
|
|
export * from './mindmap/index.js';
|
|
export * from './shape/index.js';
|
|
export * from './text/index.js';
|
|
|
|
export type SurfaceElementModelMap = {
|
|
brush: BrushElementModel;
|
|
highlighter: HighlighterElementModel;
|
|
connector: ConnectorElementModel;
|
|
group: GroupElementModel;
|
|
mindmap: MindmapElementModel;
|
|
shape: ShapeElementModel;
|
|
text: TextElementModel;
|
|
};
|
|
|
|
export type SurfaceTextModelMap = {
|
|
text: TextElementModel;
|
|
connector: ConnectorElementModel;
|
|
shape: ShapeElementModel;
|
|
'edgeless-text': EdgelessTextBlockModel;
|
|
};
|
|
|
|
export type SurfaceTextModel = SurfaceTextModelMap[keyof SurfaceTextModelMap];
|