Public function

Signature
function useSelectionEvents(handle: TLSelectionHandle): {
  onPointerDown: import('react').PointerEventHandler<Element>
  onPointerMove: (e: React.PointerEvent) => void
  onPointerUp: import('react').PointerEventHandler<Element>
}
Parameters
NameDescription

handle

TLSelectionHandle
Returns
{
  onPointerDown: import('react').PointerEventHandler<Element>
  onPointerMove: (e: React.PointerEvent) => void
  onPointerUp: import('react').PointerEventHandler<Element>
}
References

TLSelectionHandle

Source

packages/editor/src/lib/hooks/useSelectionEvents.ts

useIsEditinguseTLStore