xyflow / react-flow-docs

⚠️ This repo contains old versions of the React Flow website. The new repo is located at:
https://github.com/xyflow/web
MIT License
48 stars 596 forks source link

fix: middle point miscalculation when zoom changes #126

Closed spaceymonk closed 1 year ago

spaceymonk commented 1 year ago

After altering the zoom, width of the node should be also updated according to the current zoom value.

This is required because the width (and height) of the node will be changed after zoom-out, ie. it will be 50px wide instead of 150px on the screen, to be correctly projected.

Maybe a comment or info bubble can also be added to document.

Original: Edit damp-microservice-95s3g4

Pull request: Edit dazzling-mayer-m59sjw

netlify[bot] commented 1 year ago

Deploy Preview for react-flow ready!

Name Link
Latest commit ff7da4564d8b22c527b5aab054274ee429d96ff5
Latest deploy log https://app.netlify.com/sites/react-flow/deploys/649878882796320008ad65d7
Deploy Preview https://deploy-preview-126--react-flow.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

chrtze commented 1 year ago

We have a new docs site: https://github.com/xyflow/web. If this issue persists, please reopen in the new repo. Thank you!