refactor(setNodeExtent): use correct extent
This commit is contained in:
@@ -300,12 +300,12 @@ const createStore = ({
|
|||||||
|
|
||||||
adoptUserNodes(nodes, nodeLookup, parentLookup, {
|
adoptUserNodes(nodes, nodeLookup, parentLookup, {
|
||||||
nodeOrigin,
|
nodeOrigin,
|
||||||
nodeExtent,
|
nodeExtent: nextNodeExtent,
|
||||||
elevateNodesOnSelect,
|
elevateNodesOnSelect,
|
||||||
checkEquality: false,
|
checkEquality: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
set({ nodeExtent });
|
set({ nodeExtent: nextNodeExtent });
|
||||||
},
|
},
|
||||||
panBy: (delta): Promise<boolean> => {
|
panBy: (delta): Promise<boolean> => {
|
||||||
const { transform, width, height, panZoom, translateExtent } = get();
|
const { transform, width, height, panZoom, translateExtent } = get();
|
||||||
|
|||||||
Reference in New Issue
Block a user