interfaces.d.ts 945 B

12345678910111213141516171819202122232425262728
  1. export interface DragndropPluginOptions {
  2. /**
  3. * How drops are checked for. The allowed values are:
  4. * - 'pointer' – the pointer must be over the dropzone (default)
  5. * - 'center' – the draggable element’s center must be over the dropzone
  6. * @see https://interactjs.io/docs/dropzone/#accept
  7. */
  8. overlap: 'pointer' | 'center';
  9. /**
  10. * Since Canvas & Document don't have `draggable` attribute,
  11. * we need to add an extra option.
  12. */
  13. isDocumentDraggable: boolean;
  14. /**
  15. * Since Canvas & Document don't have `droppable` attribute,
  16. * we need to add an extra option.
  17. */
  18. isDocumentDroppable: boolean;
  19. /**
  20. * Threshold for triggering `dragstart` event in milliseconds.
  21. */
  22. dragstartTimeThreshold: number;
  23. /**
  24. * Threshold for triggering `dragstart` event in pixels.
  25. */
  26. dragstartDistanceThreshold: number;
  27. }
  28. //# sourceMappingURL=interfaces.d.ts.map