拓展 / PhysicsKnobs
接口: PhysicsKnobs
定义于:Simulation.ts:75
物理弹出按钮显示了抽象的物理旋钮。每个都是其自己的范围中的普通数字; Simulation setter 将它们映射到底层 d3-force 域。此外,Auto预设会讲完整的词汇——自动只会移动用户可以看到的旋钮。
属性
centering
centering:
number
定义于:Simulation.ts:88
拉向画布中心。 High 将单独的组件保留在框架内,否则它们只会相互排斥。
collisionRadius
collisionRadius:
number
定义于:Simulation.ts:81
节点间距(碰撞半径)。越高,节点之间的距离就越远。
friction
friction:
number
定义于:Simulation.ts:83
运动阻尼。越高,布局设置得越快(越平静)。
linkDistance
linkDistance:
number
定义于:Simulation.ts:79
首选边长,以 px 为单位。
repulsion
repulsion:
number
定义于:Simulation.ts:77
推开力。越高,图表越分散。
settleTime
settleTime:
number
定义于:Simulation.ts:90
布局需要多长时间才能稳定下来,以秒为单位。