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

Method setFreeDragPosition

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

* Sets the current position in pixels the draggable outside of a drop container. * @param value New position to be set.

(value: Point)

Source from the content-addressed store, hash-verified

676 * @param value New position to be set.
677 */
678 setFreeDragPosition(value: Point): this {
679 this._activeTransform = {x: 0, y: 0};
680 this._passiveTransform.x = value.x;
681 this._passiveTransform.y = value.y;
682
683 if (!this._dropContainer) {
684 this._applyRootElementTransform(value.x, value.y);
685 }
686
687 return this;
688 }
689
690 /**
691 * Sets the container into which to insert the preview element.

Callers 1

Calls 1

Tested by

no test coverage detected