components/frontend/src/hooks/boundingbox.js
Function useBoundingBox
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const useBoundingBox = () => {
const ref = useRef()
const [boundingBox, setBoundingBox] = useState({})
// As we don't know how long animations after a resize or full screen event take,
// we schedule several timeouts to recalculate the bounding box: