G6 icon indicating copy to clipboard operation
G6 copied to clipboard

♾ A Graph Visualization Framework in JavaScript.

Results 472 G6 issues
Sort by recently updated
recently updated
newest added

### 问题描述 自定义了rect扩展而来的两种节点,single和multi,multi的高度更高。 出现了两个问题,第一个问题是nodesep设为0和nodesepfunc返回0,这两种实际导致的节点间隔不同。第二个问题是,数据中给到了size但是仍然出现节点覆盖的情况。 node数据如下: originNodes.forEach((item) => { nodes.push({ id: item.story_code, comboId: getFieldValues(item.detail?.field_values, 'parent_asset'), anchorPoints: [ [0, 0.5], [1, 0.5], ], type: item.children.length === 1 ? 'single-card' : 'multi-card', size:...

feat: 导出各个shape下的interface feat: 导出register中的renderTarget、getRealStructure、diffTarget、registerNodeReact方法 fix: 修复difftarget方法在节点数量或类型产生变化时的bug

### Describe the bug 1. 这是edge.data.type = 'line'的情况(正确) ![image](https://github.com/antvis/G6/assets/54572770/bf41de41-c51e-41c8-9b02-b0e43b8a213f) 2.这是edge.data.type = 'polyline'的情况(异常) ![image](https://github.com/antvis/G6/assets/54572770/7cb1ed78-31e6-403b-af32-84f025c5aa99) 3.附上nodes和edge的配置 ![image](https://github.com/antvis/G6/assets/54572770/5262deb7-e6e0-4566-976f-dc137a010b6c) ### Your Example Website or App 无 ### Steps to Reproduce the Bug or Issue...

### 问题描述 使用 [v5 连线demo测试](https://g6-next.antv.antgroup.com/zh/examples/item/defaultEdges/#polyline3) sourceAnchor 与 targetAnchor 是否可以正常连接。 按文档所理解, sourceAnchor 为 输入数据 或 内部数据, 在 data 传入后, 并不是按照 anchorPoint 进行的连线 ![image](https://github.com/antvis/G6/assets/21686182/3d336d60-0637-421d-a235-7ae1c071b0e7) ```ts import { Graph, Extensions, extend } from...

v5

### Describe the bug 自定义Behavior事件mouseup无法监听到鼠标中键抬起 ### Your Example Website or App https://stackblitz.com/edit/vitejs-vite-dmq49d?file=src%2FApp.vue ### Steps to Reproduce the Bug or Issue 1.创建一个自定义的Behavior 2.监听mousedown mousemove mouseup 3.log后发现mouseup的中键无法监听 ### Expected behavior 预期:在自定义Behavior的mouseup事件能监听到鼠标中键抬起 实际:无法监听到...

### Describe the bug 我在使用G6的compactBox布局创建企业关系图谱,遇到2个问题: 1、树形节点在展开的时候,当前节点和上下相邻节点之间的间距变的很大,出现的大量的空白,不知道该如何避免,我希望在节点展开的时候,上下间距不要发生变化。 ![image](https://github.com/antvis/G6/assets/12431521/bca5b616-9e36-4bd6-a974-7ecf9db6143e) 2、如何能够保证当前展开节点的连线避免和同级的其它节点重叠? ![image](https://github.com/antvis/G6/assets/12431521/4716d75d-19c8-4e9e-bac1-428b923d67fe) ### Your Example Website or App https://codesandbox.io/s/g6-forked-ltpp7y?file=/index.js ### Steps to Reproduce the Bug or Issue 1、打开实例。 2、点击高管-郑素方 ### Expected behavior 1、节点在展开的时候,上下相邻节点和当前节点间距不变。...

### 问题描述 非水平边上的标签背景错位 预期效果: 实际效果: ### 重现链接 / ### 重现步骤 / ### 预期行为 1 ### 平台 - 操作系统: [macOS, Windows, Linux, React Native ...] - 网页浏览器: [Google Chrome, Safari, Firefox]...

- 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```等状态类的样式,方便外部定制样式;...

### AntV Open Source Contribution Plan(可选/Optional) - [X] 我同意将这个 Issue 参与 OSCP 计划 / I agree to participate in the OSCP plan ### Issue 类型 / Issue Type 中级任务 /...

Claimed/已认领
AntV OSCP

### G6 版本 4.x ### 问题描述 如下图所示,自定义节点中放置了用户头像,但是在页面初始化时,部分节点的头像不显示,需要对画布做一些操作(如移动画布),头像才会显示 ![image](https://github.com/antvis/G6/assets/31002949/c9b32c65-a687-4e2e-a91a-bef0c646333c) ![image](https://github.com/antvis/G6/assets/31002949/b6e366d7-cd1a-4e0a-8b48-8518c2e1c210) **自定义节点中添加img方法** ```javascript G6.registerNode('xxxxx', { draw (cfg, group) { // ....... let img = new Image() img.src = '后端返回的img地址' group.addShape('image', { attrs:...