Dockview
    Preparing search index...

    Interface IDragGhostSpec

    Visual specification handed to the backend. HTML5 calls setDragImage with (element, offsetX, offsetY) and discards the element after a microtask. Pointer wraps the element in a PointerGhost that follows the cursor for the duration of the drag.

    interface IDragGhostSpec {
        dispose?: () => void;
        element: HTMLElement;
        offsetX?: number;
        offsetY?: number;
    }
    Index

    Properties

    dispose?: () => void

    Called when the backend is done with the ghost. HTML5 fires it after the drag-image snapshot is captured (next tick); pointer fires it when the follow-cursor ghost is removed at drag end. Use for custom framework renderers that need teardown.

    element: HTMLElement
    offsetX?: number

    Pixels from cursor to ghost's top-left. Default 0.

    offsetY?: number