@syncfusion/react-popups
Version:
A package of Pure React popup components such as Tooltip that is used to display information or messages in separate pop-ups.
17 lines (16 loc) • 535 B
TypeScript
/**
* Provides information about a OffsetPosition.
*/
export interface OffsetPosition {
left: number;
top: number;
}
/**
* Interface for defining the position properties.
*/
export interface PositionProps {
X: string;
Y: string;
}
export declare const calculatePosition: (elementRef: HTMLElement | null, positionX: string, positionY: string, targetValues?: DOMRect) => OffsetPosition;
export declare const calculateRelativeBasedPosition: (anchor: HTMLElement | null, element: HTMLElement | null) => OffsetPosition;