FilterTreeDragStateService
Defined in: filtering/tree/filter-tree-drag-state.service.ts:36
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new FilterTreeDragStateService():
FilterTreeDragStateService
Returns
Section titled “Returns”FilterTreeDragStateService
Properties
Section titled “Properties”activeDropZone
Section titled “activeDropZone”
readonlyactiveDropZone:WritableSignal<ActiveDropZone|null>
Defined in: filtering/tree/filter-tree-drag-state.service.ts:38
currentDragId
Section titled “currentDragId”
readonlycurrentDragId:WritableSignal<string|null>
Defined in: filtering/tree/filter-tree-drag-state.service.ts:39
isDragging
Section titled “isDragging”
readonlyisDragging:WritableSignal<boolean>
Defined in: filtering/tree/filter-tree-drag-state.service.ts:37
Methods
Section titled “Methods”endDrag()
Section titled “endDrag()”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.
Returns
Section titled “Returns”void
resolveDropPosition()
Section titled “resolveDropPosition()”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.
Parameters
Section titled “Parameters”_dropX
Section titled “_dropX”number
_dropY
Section titled “_dropY”number
dragId
Section titled “dragId”string
Returns
Section titled “Returns”DropPosition | null
startDrag()
Section titled “startDrag()”startDrag(
dragId):void
Defined in: filtering/tree/filter-tree-drag-state.service.ts:52
Parameters
Section titled “Parameters”dragId
Section titled “dragId”string
Returns
Section titled “Returns”void
updatePointer()
Section titled “updatePointer()”updatePointer(
x,y):void
Defined in: filtering/tree/filter-tree-drag-state.service.ts:70
Called on every cdkDragMoved — updates the highlighted zone.
Parameters
Section titled “Parameters”number
number
Returns
Section titled “Returns”void