mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-17 06:16:59 +08:00
feat(editor): add highlighter (#10573)
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
This commit is contained in:
@@ -13,7 +13,7 @@ export enum LineWidth {
|
||||
Twelve = 12,
|
||||
}
|
||||
|
||||
export const LINE_WIDTHS = [
|
||||
export const BRUSH_LINE_WIDTHS = [
|
||||
LineWidth.Two,
|
||||
LineWidth.Four,
|
||||
LineWidth.Six,
|
||||
@@ -22,6 +22,10 @@ export const LINE_WIDTHS = [
|
||||
LineWidth.Twelve,
|
||||
];
|
||||
|
||||
export const HIGHLIGHTER_LINE_WIDTHS = [10, 14, 18, 22, 26, 30];
|
||||
|
||||
export const DEFAULT_HIGHLIGHTER_LINE_WIDTH = 22;
|
||||
|
||||
/**
|
||||
* Use `DefaultTheme.StrokeColorShortMap` instead.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user