jiangyu

Results 8 issues of jiangyu

我想引入最新版async-validator 但是项目中的第三方ui框架正在使用```async-validator@^1.12.2``` 两者是否能共存互不影响?

- feat: v4 plugin ```annotation```迁移到v5 - refactor: 拆分```annotation/index.ts```逻辑,将card的相关代码封装到```Card.ts```中 - improve: 重写拖拽card的事件,从```drag/drop```改为```mosemove/mouseup```,带来更好的体验和更灵活的样式定制; - feat: card的预览态增加```tabindex```,可按tab键聚焦,并支持```按回车```切换card的预览/编辑态,减少鼠标移动和点击的操作; - feat: 增加配置项```cardCfg.focusEditOnInit```,默认不开启,支持创建card时立即进入编辑态并聚焦到输入框上,可```按回车保存,按 Shift + 回车 换行```; - chore: 优化card样式,增加了```.g6-annotation-wrapper-move / .g6-annotation-wrapper-hide / .g6-annotation-wrapper-collapsed / .g6-annotation-wrapper-editable```等状态类的样式,方便外部定制样式;...

### Describe the bug 在@antv/[email protected]版本下, 拖拽、滚动或缩放画布时,node.getBBox没有变化 ![Large GIF (1124x672)](https://github.com/antvis/G6/assets/6951527/52e1a881-54ba-475f-a021-10ddaedda562) 这会导致调用getBBox的程序异常,辛苦看下。 ### Your Example Website or App https://codesandbox.io/s/test-item-bbox-lldf2l?file=/index.js ### Steps to Reproduce the Bug or Issue https://codesandbox.io/s/test-item-bbox-lldf2l?file=/index.js ### Expected behavior 我记得v4里的```node.getBBox```会随画布移动而变化,请看下v5这里实现是否有bug...

good first issue
v5

Dagre's performance will decrease when processing large amounts of data (such as 5k+ nodes/edges); With the emergence of ```webgpu```, have you considered using ```computeShader``` to rewrite the core logic of...

本人最近在阅读dagre部分的代码, 发现dagre布局计算步骤过多,像dagre内置的```nestingGraph```特性,G6也用不到,G6有```combo```特性; 性能上来看dagre也算不上优秀,像```order``` / ```position```等步骤在5k+节点时布局计算耗时较长; 是否考虑重新梳理并精简dagre逻辑,同时借助webgpu、wasm等能力提升性能?

任务 - https://github.com/antvis/G6/issues/5548 改动 - feat: 迁移v5_old behavior: scroll-canvas to v5 - chore: 增加demo和测试用例 **breakingchanges** - 删除```enableOptimize```/```optimizeZoom```,因为graph缺少隐藏node keyShape的等相关api,无法实现此功能,看后续是否需要再开发,而且通过隐藏keyShape来提升性能是否是一个好的方案; - 删除```zoomKey``` / ```zoomRatio```, 因为```zoom-canvas```基本覆盖此功能,没必要在```scroll-canvas```再次处理缩放; - 删除```scalableRange```,drag相关的功能,没必要在```scroll-canvas```内实现,不过目前```drag-canvas```也没有此功能,看后续是否追加; - 删除```allowDragOnItem```,冗余的配置项,可通过```enable```实现相同能力,故删除; - ##### Checklist...

### What problem does this feature solve? 我想使用echarts绘制关系图,例如:https://echarts.apache.org/examples/zh/editor.html?c=graph; 我想实现移动鼠标时,整个graph也跟着移动,类似Antv/G6的能力:https://g6.antv.antgroup.com/zh/examples/interaction/customBehavior/#dragCanvasTwoFingers 但是我发现roam仅支持配置true / scale / move,均无法实现此类交互,必需按住触摸板后才能移动整个graph(我是mac); 想问下能否实现无需按住,就能直接就能移动整个graph的方法那?或者能否新增一个配置项来实现类似的交互? 感觉还是蛮有用的:) ,因为持续按住按键再移动的行为,容易疲劳; ### What does the proposed API look like? // 这仅是一个想法,希望鼠标移动时,整个graph也跟着移动,而无需按住触摸板 ```roam: "wheel"```

new-feature
pending