030954badb
* shift locking 22.5 degree and move to constants #1171 * review SHIFT_LOCKING_ANGLE
19 lines
493 B
TypeScript
19 lines
493 B
TypeScript
export const DRAGGING_THRESHOLD = 10; // 10px
|
|
export const ARROW_CONFIRM_THRESHOLD = 10; // 10px
|
|
export const ELEMENT_SHIFT_TRANSLATE_AMOUNT = 5;
|
|
export const ELEMENT_TRANSLATE_AMOUNT = 1;
|
|
export const TEXT_TO_CENTER_SNAP_THRESHOLD = 30;
|
|
export const SHIFT_LOCKING_ANGLE = Math.PI / 8;
|
|
export const CURSOR_TYPE = {
|
|
TEXT: "text",
|
|
CROSSHAIR: "crosshair",
|
|
GRABBING: "grabbing",
|
|
POINTER: "pointer",
|
|
};
|
|
export const POINTER_BUTTON = {
|
|
MAIN: 0,
|
|
WHEEL: 1,
|
|
SECONDARY: 2,
|
|
TOUCH: -1,
|
|
};
|