Comments (2)
Why do you want to scale the container? If you want to adjust the viewport, you should use setViewport
.
from react-flow.
Thanks for your reply!
I have a special situation where the position of the ReactFlow layout is pre-calculated, and it is aligned with other components (ReactFlow's sibling component). The setViewport
can only adjust the flow's viewport, but I want both the flow component and the other components to be adjusted together. So I used transform: scale()
to achieve it.
from react-flow.
Related Issues (20)
- Detaching a node from its parent on drag start produces unexpected positions. (v11 only) HOT 1
- Node gets unselected immediately after selecting. HOT 1
- React flow fails when execute inside a Microfrontend with Module federation
- getEdges return connections, not edges HOT 3
- applyNodeChanges doesn't work with immer HOT 2
- onMouseDown event is not triggered HOT 1
- Marker and node do not touch HOT 1
- Updatable edges: granular control over whether EdgeAnchor appears HOT 2
- `Controls` are just a white rectangle when using `colorMode="dark"` before rendering correctly HOT 2
- Keycode of delete still working when reactFlow is blur HOT 10
- Accessibility: support aria-pressed attributes HOT 1
- Regression Bug: onNodeMouseEnter and onNodeMouseLeave fire more than once since 11.10.0, but was okay in 11.9.4 HOT 2
- Multiple parent nodes for one child node. HOT 1
- Include 'deletable' property with EdgeProps and NodeProps HOT 1
- export `useVisibleNodeIds` HOT 1
- useOnSelectionChange on change must be memoized now HOT 1
- Node Drag behaviour affected by chrome developer console - d3.Force layout HOT 2
- [React Flow]: Handle: No node id found. Make sure to only use a Handle inside a custom Node.
- [React Flow]: Handle: No node id found. Make sure to only use a Handle inside a custom Node. HOT 1
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 react-flow.