Skip to Content
参考类型

Viewport

GitHub上的源代码 

在内部,React Flow 维护了一个独立于页面其余部分的坐标系统。Viewport 类型告诉你你的流程当前在该系统中的显示位置以及缩放程度。

🌐 Internally, React Flow maintains a coordinate system that is independent of the rest of the page. The Viewport type tells you where in that system your flow is currently being display at and how zoomed in or out it is.

字段

🌐 Fields

NameTypeDefault
xnumber
ynumber
zoomnumber

注释

🌐 Notes

  • Transform 拥有与视口相同的属性,但它们代表不同的事物。确保不要把它们搞混,否则东西看起来会很奇怪!
Last updated on