@muraldevkit/ui-toolkit 4.37.0 → 4.37.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -9,3 +9,11 @@ import { TooltipPlacement, Position } from './constants';
|
|
|
9
9
|
* @returns {Position} An object with `left` and `top` coordinates for the element (keys sorted alphabetically).
|
|
10
10
|
*/
|
|
11
11
|
export declare const calculatePosition: (alignment: TooltipPlacement, offset: number, elementRect: DOMRect, triggerRect?: DOMRect) => Position;
|
|
12
|
+
/**
|
|
13
|
+
* Determines if the position of an element has changed significantly.
|
|
14
|
+
*
|
|
15
|
+
* @param prev - The previous bounding rectangle of the element.
|
|
16
|
+
* @param next - The current bounding rectangle of the element.
|
|
17
|
+
* @returns {boolean} True if the position has changed by more than 0.5 pixels, false otherwise.
|
|
18
|
+
*/
|
|
19
|
+
export declare const positionChanged: (prev: DOMRect, next: DOMRect) => boolean;
|