@shopware-ag/dive
Version:
Shopware Spatial Framework
17 lines (16 loc) • 488 B
TypeScript
import { Vector3 } from 'three/webgpu';
/**
* Event data passed to DIVEDraggable callbacks during drag operations.
*
* @module
*/
export type DraggableEvent = {
/** World position where the drag started */
dragStart: Vector3;
/** Current world position during drag */
dragCurrent: Vector3;
/** World position where the drag ended (same as dragCurrent during drag) */
dragEnd: Vector3;
/** Vector from dragStart to dragCurrent */
dragDelta: Vector3;
};