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