fix(graph): remove translateExtent limit for unlimited panning
STORY: Users couldn't pan to see nodes at the bottom of large graphs. The translateExtent was limiting the viewport to a fixed area. FIX: Removed translateExtent entirely to allow unlimited panning in all directions. Users can now explore the full graph regardless of size. CLOSES: bb-ui2.21 (fitView/panning fix)
This commit is contained in:
parent
083e710388
commit
976fd0c361
1 changed files with 1 additions and 4 deletions
|
|
@ -273,10 +273,7 @@ function WorkflowGraphInner({
|
|||
fitViewOptions={{ padding: 0.3 }}
|
||||
minZoom={0.3}
|
||||
maxZoom={1.5}
|
||||
translateExtent={[
|
||||
[-500, -500],
|
||||
[3000, 2500],
|
||||
]}
|
||||
// translateExtent removed for unlimited panning
|
||||
nodes={flowModel.nodes}
|
||||
edges={flowModel.edges}
|
||||
nodeTypes={nodeTypes}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue