Comments (5)
I've just run into this issue where I need to call fitview
after the map has initialized - currently I'm having to use a timeout which is a tad nasty and also means I have to hide the map until fitview
has been called.
from xyflow.
You should be able to call fitView
inside the onLoad
callback https://github.com/wbkd/react-flow/blob/master/example/src/Stress/index.js#L40
from xyflow.
Hi @moklick
I am - still need to set a timeout of about 500ms within the onLoad
callback for the fitView
to work.
from xyflow.
Do you get an error or has the fitView
call no effect? Could you provide an example?
from xyflow.
Iām closing this issue because it has been inactive for a few months.
from xyflow.
Related Issues (20)
- [Svelte Flow]: Unable to change edge type HOT 1
- zoomOnPinch not working when preventScrolling is false HOT 2
- useOnSelectionChange returns an empty nodes array HOT 5
- [SvelteFlow] Bad performance in svelte-5 HOT 1
- `onbeforedelete` should give back `event` HOT 2
- [Docs] Add Bun
- Node creation by click and draw / drag HOT 5
- [SvelteFlow] Node internals not updating dynamic handles correctly HOT 1
- Copy & Paste issue HOT 2
- Warning: Each child in a list should have a unique "key" prop. HOT 2
- Support key combinations for selection, pan and zoom HOT 1
- `Handle` is supposed to accept `isValidConnection` prop but it is not supported HOT 1
- `Minimap` cannot be interacted with on a touch device HOT 7
- onDrag node param has previous position with grid and snapToGrip enabled HOT 4
- Unable to render all the nodes and edges HOT 1
- updateNodeData does not run consistently in 12.0.0-next.12, next.13, next.14 HOT 5
- 90% GPU utilization for animated edges HOT 2
- Edges not rendering with production build. HOT 5
- Get relative node position on Edge Drop for new node with parentNode HOT 1
- It is not possible to call 'layout' with 'useNodesInitialized()' and controlled flow HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xyflow.