Skip to Content

SnapGrid

GitHub 上的源代码 

¥Source on GitHub 

SnapGrid 类型定义了窗格上用于捕捉节点的网格大小。它与 snapToGrid 属性结合使用,以启用网格捕捉功能。

¥The SnapGrid type defines the grid size for snapping nodes on the pane. It is used in conjunction with the snapToGrid prop to enable grid snapping functionality.

type SnapGrid = [number, number];
Last updated on