Function that can be used to constrain the position of a dragged element.
API
type DragConstrainPosition = ( userPointerPosition: Point, dragRef: DragRef, dimensions: DOMRect, pickupPositionInElement: Point, ) => Point
Function that can be used to constrain the position of a dragged element.
type DragConstrainPosition = ( userPointerPosition: Point, dragRef: DragRef, dimensions: DOMRect, pickupPositionInElement: Point, ) => Point
Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/cdk/drag-drop/DragConstrainPosition