Moved size constants to a reasonable spot...

This commit is contained in:
Kent Keirsey
2025-06-30 10:14:21 -04:00
committed by psychedelicious
parent 5db62f8643
commit f0a4de245d
2 changed files with 18 additions and 13 deletions

View File

@@ -13,10 +13,6 @@ const getIsCollapsed = (
return panel.width <= (collapsedSize ?? panel.minimumWidth);
};
// More realistic limits based on typical browser memory constraints
const MAX_CANVAS_DIMENSION = 8192; // 8K resolution
const MAX_CANVAS_AREA = 8192 * 8192; // ~64MP max
export const useCollapsibleGridviewPanel = (
api: GridviewApi | null,
panelId: string,