mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
grid support (1st iteration) (#1788)
Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
parent
b6bf011d0d
commit
baa8fb6c14
14 changed files with 343 additions and 80 deletions
|
@ -16,6 +16,7 @@ export const KEYS = {
|
|||
F_KEY_CODE: 70,
|
||||
ALT_KEY_CODE: 18,
|
||||
Z_KEY_CODE: 90,
|
||||
GRID_KEY_CODE: 222,
|
||||
G_KEY_CODE: 71,
|
||||
} as const;
|
||||
|
||||
|
@ -32,3 +33,6 @@ export const getResizeCenterPointKey = (event: MouseEvent | KeyboardEvent) =>
|
|||
|
||||
export const getResizeWithSidesSameLengthKey = (event: MouseEvent) =>
|
||||
event.shiftKey;
|
||||
|
||||
export const getRotateWithDiscreteAngleKey = (event: MouseEvent) =>
|
||||
event.shiftKey;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue