Dominic Ming

Results 11 comments of Dominic Ming

Hi, I'm also interested in 'useGraphin' hook. Features such as isReady, APIs and etc. are so effective. But in my opinion, it should be done with fewer side effects for...

@cliffordfajardo I came up with an id sample here and just extend the component, hope can help you in someway. https://codesandbox.io/s/hookedgraphin-6bbsr?file=/App.tsx

I agree that deprecate class component will embrace more features of React 18, but for now, it might not be done in this version, considering that some of the users...

- register 和 unregister 是原来G6原有的概念,所以应该可以拆除 - 关于 g-webgpu 的话,可以考虑维护 layout 和 layout-gpu两个包,按需引用 - 因为是个break change,不如直接来维护成 1.0.0

![image](https://user-images.githubusercontent.com/15213473/123933516-09bb8100-d9c5-11eb-9f46-efa7aace888b.png) 这一块为这个节点拖拽的有效区域,请问是希望那里可以拖动节点呢

这个是g6-react-node的bug,因为只挂载了node级别的监听……所以shape不在node边缘的监听不到……

polyline在edge如果有controlPoints的情况下不会自己计算controlPoints 而dagre布局直接在算的时候就把controlPoints算进去了,所以解决方案应该是在布局的时候不采用dagre给的定点,controlPoints: false然后根据自己需要重写一下polyline 这里有一段我自己用的 ```js G6.registerEdge( 'logic-line', { getPath(points: IPoint[]): (string | number)[][] { const startPoint = points[0]; const endPoint = points[1]; const deltaY = endPoint.y - startPoint.y; return [...

需要单独去重新布局,不过现在dagre并不支持指定位置布局,我们开发一下试试,或者单独把路径算法抽出来

参考一下https://g6.antv.vision/zh/examples/interaction/customBehavior

因为自动布局 next已经失效,请使用flex布局实现, zIndex在g中的渲染会通过group.sort才生效,所以目前只能按照渲染顺序进行排序