diff --git a/src/core/bounds/bounds.utils.ts b/src/core/bounds/bounds.utils.ts index aa4e2b9a..b1723fe5 100644 --- a/src/core/bounds/bounds.utils.ts +++ b/src/core/bounds/bounds.utils.ts @@ -67,7 +67,12 @@ export const calculateBounds = ( const { centerZoomedOut } = contextInstance.setup; if (!wrapperComponent || !contentComponent) { - throw new Error("Components are not mounted"); + return { + minPositionX: 0, + maxPositionX: 0, + minPositionY: 0, + maxPositionY: 0, + } } const {