We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d7f271 commit d775412Copy full SHA for d775412
src/cdk/drag-drop/directives/config.ts
@@ -16,7 +16,12 @@ export type DragStartDelay = number | {touch: number; mouse: number};
16
export type DragAxis = 'x' | 'y';
17
18
/** Function that can be used to constrain the position of a dragged element. */
19
-export type DragConstrainPosition = (point: Point, dragRef: DragRef) => Point;
+export type DragConstrainPosition = (
20
+ userPointerPosition: Point,
21
+ dragRef: DragRef,
22
+ dimensions: DOMRect,
23
+ pickupPositionInElement: Point,
24
+) => Point;
25
26
/** Possible orientations for a drop list. */
27
export type DropListOrientation = 'horizontal' | 'vertical' | 'mixed';
0 commit comments