JoV5
JoV5
react-router
我有在尝试自定义behavior,但是不知道怎么去让他重新计算布局 在d3-force中,我看在drag-element-force中是让simulation 在onDragStart时 getLayoutProperty(layout, 'simulation').alphaTarget(0.3).restart(); 在onDragEnd时 getLayoutProperty(layout, 'simulation').alphaTarget(0); 来重新布局 在force中怎么触发呢,执行这个async execute(graph: Graph, options?: ForceLayoutOptions) 么,还有force布局还支持fx/fy么, v4版本的时候好像参考了官网的例子实现的 v5不知道怎么去支持 我参考了drage-element-force写自定义的behavior的效果好像不对,一个是节点没有跟随拖动位置,另一个布局好像是有重新计算但没怎么动(可能是之因为节点拖动?),而且好像布局也不会结束 [drag-element-force.txt](https://github.com/user-attachments/files/21541280/drag-element-force.txt)