Merge branch 'main' into a11y
This commit is contained in:
@@ -170,7 +170,6 @@ const UseZoomPanHelperFlow = () => {
|
||||
onConnect={onConnect}
|
||||
onPaneClick={onPaneClick}
|
||||
fitView
|
||||
fitViewOptions={{ duration: 1200, padding: 0.2 }}
|
||||
maxZoom={Infinity}
|
||||
>
|
||||
<Panel position="top-right">
|
||||
@@ -183,7 +182,16 @@ const UseZoomPanHelperFlow = () => {
|
||||
console.log('fit view success');
|
||||
}}
|
||||
>
|
||||
fitView
|
||||
fitView default
|
||||
</button>
|
||||
<button
|
||||
onClick={async () => {
|
||||
console.log('fit view start');
|
||||
await fitView({ duration: 1200, padding: 0.3, ease: (t) => +t });
|
||||
console.log('fit view success');
|
||||
}}
|
||||
>
|
||||
fitView linear
|
||||
</button>
|
||||
<button onClick={onAddNode}>add node</button>
|
||||
<button onClick={onResetNodes}>reset nodes</button>
|
||||
|
||||
Reference in New Issue
Block a user