chore(extent): allow null #5458
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user