chore(extent): allow null #5458

This commit is contained in:
moklick
2025-08-19 15:58:26 +02:00
parent 65caf56c76
commit c451f99ab2
3 changed files with 5 additions and 10 deletions
+2 -2
View File
@@ -335,8 +335,8 @@ export const getViewportForBounds = (
export const isMacOs = () => typeof navigator !== 'undefined' && navigator?.userAgent?.indexOf('Mac') >= 0;
export function isCoordinateExtent(extent?: CoordinateExtent | 'parent'): extent is CoordinateExtent {
return extent !== undefined && extent !== 'parent';
export function isCoordinateExtent(extent?: CoordinateExtent | 'parent' | null): extent is CoordinateExtent {
return extent !== undefined && extent !== null && extent !== 'parent';
}
export function getNodeDimensions(node: {