constants.ts 445 B

1234567891011121314151617
  1. export const DRAGGING_THRESHOLD = 10; // 10px
  2. export const ARROW_CONFIRM_THRESHOLD = 10; // 10px
  3. export const ELEMENT_SHIFT_TRANSLATE_AMOUNT = 5;
  4. export const ELEMENT_TRANSLATE_AMOUNT = 1;
  5. export const TEXT_TO_CENTER_SNAP_THRESHOLD = 30;
  6. export const CURSOR_TYPE = {
  7. TEXT: "text",
  8. CROSSHAIR: "crosshair",
  9. GRABBING: "grabbing",
  10. POINTER: "pointer",
  11. };
  12. export const POINTER_BUTTON = {
  13. MAIN: 0,
  14. WHEEL: 1,
  15. SECONDARY: 2,
  16. TOUCH: -1,
  17. };