refine(sticky): reduce preset sizes and remove pan tool shortcuts
This commit is contained in:
@@ -11,11 +11,11 @@ export type StickyTextSize = 'S' | 'M' | 'L' | 'XL' | 'XXL';
|
||||
export const STICKY_SIZES: StickyTextSize[] = ['S', 'M', 'L', 'XL', 'XXL'];
|
||||
|
||||
export const STICKY_FONT_MAP: Record<StickyTextSize, number> = {
|
||||
S: 20, M: 28, L: 36, XL: 48, XXL: 60,
|
||||
S: 12, M: 14, L: 18, XL: 24, XXL: 32,
|
||||
};
|
||||
|
||||
export const STICKY_WIDTH_MAP: Record<StickyTextSize, number> = {
|
||||
S: 200, M: 260, L: 320, XL: 400, XXL: 480,
|
||||
S: 180, M: 220, L: 280, XL: 340, XXL: 420,
|
||||
};
|
||||
|
||||
/** Default preset for new sticky creation. */
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
/**
|
||||
* Tools — PixiJS version.
|
||||
*
|
||||
* SELECT/PAN are handled by the viewport (pixi-viewport) and SelectionManager.
|
||||
* PEN/TEXT/ERASER need PixiJS implementations.
|
||||
* For now, only SELECT and PAN are fully functional; PEN/TEXT/ERASER are stubs
|
||||
* that will be implemented when drawing support is added.
|
||||
* Canvas navigation is handled by the viewport (space-drag, middle-drag, etc.)
|
||||
* and SelectionManager.
|
||||
* PEN/TEXT/ERASER/STICKY are PixiJS tool modes.
|
||||
*/
|
||||
|
||||
import type { Viewport } from 'pixi-viewport';
|
||||
@@ -400,12 +399,10 @@ export function activateTool(
|
||||
|
||||
export const toolShortcuts: Record<string, ToolType> = {
|
||||
v: ToolType.SELECT,
|
||||
h: ToolType.PAN,
|
||||
p: ToolType.PEN,
|
||||
t: ToolType.TEXT,
|
||||
s: ToolType.STICKY,
|
||||
'1': ToolType.SELECT,
|
||||
'2': ToolType.PAN,
|
||||
'3': ToolType.PEN,
|
||||
'4': ToolType.TEXT,
|
||||
'5': ToolType.STICKY,
|
||||
|
||||
Reference in New Issue
Block a user