- getRectFromDom(rect: undefined | null | Pick<DOMRect, "y" | "width" | "height" | "x">, heightAdjust?: number): undefined | {
height: string;
left: string;
top: string;
width: string;
}
-
Parameters
-
rect: undefined | null | Pick<DOMRect, "y" | "width" | "height" | "x">
-
heightAdjust: number = 4
Returns undefined | {
height: string;
left: string;
top: string;
width: string;
}