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

Method reset

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

Resets a standalone drag item to its initial position.

()

Source from the content-addressed store, hash-verified

581
582 /** Resets a standalone drag item to its initial position. */
583 reset(): void {
584 this._rootElement.style.transform = this._initialTransform || '';
585 this._activeTransform = {x: 0, y: 0};
586 this._passiveTransform = {x: 0, y: 0};
587 }
588
589 /** Resets drag item to end of boundary element. */
590 resetToBoundary(): void {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected