/** * 计算容器的累积 zoom 值 * 当弹出层通过 position: absolute 定位在容器内时,需要用容器的 zoom 值来修正坐标 * 因为 getBoundingClientRect() 返回的是应用 zoom 后的视口坐标, * 但 CSS 的 left/top 值会在容器的 zoom 坐标系中解释 * @param container - 容器元素,默认为 document.body * @returns 容器的累积 zoom 值 */ export declare const getRelativeZoom: (_element: HTMLElement | null, container?: HTMLElement | null) => number; export declare const getScrollPosition: (element?: HTMLElement | null) => { scrollTop: number; scrollLeft: number; }; //# sourceMappingURL=document.d.ts.map