refactor(nodeExtent): use global nodeExtent when parent extent is used incorrectly
This commit is contained in:
+1
-2
@@ -16,7 +16,6 @@ import {
|
||||
XYZPosition,
|
||||
FitViewOptions,
|
||||
} from '../types';
|
||||
import { infiniteExtent } from './initialState';
|
||||
|
||||
type ParentNodes = Record<string, boolean>;
|
||||
|
||||
@@ -143,7 +142,7 @@ export function createPositionChange({
|
||||
: currentExtent;
|
||||
} else {
|
||||
console.warn('Only child nodes can use parent extent');
|
||||
currentExtent = infiniteExtent;
|
||||
currentExtent = nodeExtent;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user