Files
v10/dist/dev/dom/utils/pointer.d.ts

9 lines
386 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//#region src/dom/utils/pointer.d.ts
/** Convert a pointer event position to a 0100 percent along an element's rect. */
declare function getPercentFromPointerEvent(event: {
clientX: number;
clientY: number;
}, rect: DOMRect, orientation: 'horizontal' | 'vertical', isRTL: boolean): number;
//#endregion
export { getPercentFromPointerEvent };
//# sourceMappingURL=pointer.d.ts.map