UNPKG

svelte-motion

Version:

Svelte animation library based on the React library framer-motion.

16 lines (15 loc) 633 B
/** based on framer-motion@4.1.17, Copyright (c) 2018 Framer B.V. */ import { TransformPoint2D, AxisBox2D } from "../../../types/geometry"; /** * Measure and return the element bounding box. * * We convert the box into an AxisBox2D to make it easier to work with each axis * individually and programmatically. * * This function optionally accepts a transformPagePoint function which allows us to compensate * for, for instance, measuring the element within a scaled plane like a Framer devivce preview component. */ export declare function getBoundingBox(element: Element, transformPagePoint?: TransformPoint2D): AxisBox2D;