MCPcopy Create free account
hub / github.com/angular/components / getFreeDragPosition

Method getFreeDragPosition

src/cdk/drag-drop/drag-ref.ts:669–672  ·  view source on GitHub ↗

* Gets the current position in pixels the draggable outside of a drop container.

()

Source from the content-addressed store, hash-verified

667 * Gets the current position in pixels the draggable outside of a drop container.
668 */
669 getFreeDragPosition(): Readonly<Point> {
670 const position = this.isDragging() ? this._activeTransform : this._passiveTransform;
671 return {x: position.x, y: position.y};
672 }
673
674 /**
675 * Sets the current position in pixels the draggable outside of a drop container.

Callers

nothing calls this directly

Calls 1

isDraggingMethod · 0.95

Tested by

no test coverage detected