UNPKG

703 BTypeScriptView Raw
1import type { Placement } from "../enums";
2import type { Modifier, Rect, Offsets } from "../types";
3export declare type OffsetsFunction = (arg0: {
4 popper: Rect;
5 reference: Rect;
6 placement: Placement;
7}) => [number | null | undefined, number | null | undefined];
8declare type Offset = OffsetsFunction | [number | null | undefined, number | null | undefined];
9export declare type Options = {
10 offset: Offset;
11};
12export declare function distanceAndSkiddingToXY(placement: Placement, rects: {
13 popper: Rect;
14 reference: Rect;
15}, offset: Offset): Offsets;
16export declare type OffsetModifier = Modifier<"offset", Options>;
17declare const _default: OffsetModifier;
18export default _default;