Skip to content

FilterTreeDragStateService

Defined in: filtering/tree/filter-tree-drag-state.service.ts:36

new FilterTreeDragStateService(): FilterTreeDragStateService

FilterTreeDragStateService

readonly activeDropZone: WritableSignal<ActiveDropZone | null>

Defined in: filtering/tree/filter-tree-drag-state.service.ts:38


readonly currentDragId: WritableSignal<string | null>

Defined in: filtering/tree/filter-tree-drag-state.service.ts:39


readonly isDragging: WritableSignal<boolean>

Defined in: filtering/tree/filter-tree-drag-state.service.ts:37

endDrag(): void

Defined in: filtering/tree/filter-tree-drag-state.service.ts:62

Called at cdkDragEnded — which fires BEFORE cdkDropListDropped. Snapshots activeDropZone before clearing so resolveDropPosition() has the correct zone at the moment of release.

void


resolveDropPosition(_dropX, _dropY, dragId, root): DropPosition | null

Defined in: filtering/tree/filter-tree-drag-state.service.ts:80

Called from onDrop() (cdkDropListDropped) to determine the DropPosition. Reads the zone snapshotted by endDrag() — the DOM has already reverted to resting layout by this point so re-walking it gives the wrong answer.

number

number

string

FilterNode

DropPosition | null


startDrag(dragId): void

Defined in: filtering/tree/filter-tree-drag-state.service.ts:52

string

void


updatePointer(x, y): void

Defined in: filtering/tree/filter-tree-drag-state.service.ts:70

Called on every cdkDragMoved — updates the highlighted zone.

number

number

void