G6 icon indicating copy to clipboard operation
G6 copied to clipboard

♾ A Graph Visualization Framework in JavaScript.

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

### 问题描述 查看节点的x和y 和 包裹着节点的combo x和y 对应不上 ,如何获取rect combo四个角的位置,或者是如果节点是相对于combo的话 如何计算 节点的位置! ![image](https://user-images.githubusercontent.com/67719338/162383821-a5cffdc6-babe-4d5c-9d99-2efa37da032b.png) ![image](https://user-images.githubusercontent.com/67719338/162383836-899082a1-17c5-4cc1-b51f-f7e66b8f6c59.png) ### 重现链接 0 ### 重现步骤 conbo 内部包裹节点 节点的 x和y 有的不在 combo的 x和y 和x+width 或者y+height 的区间 ### 预期行为...

在4.3.4版本中我遇到了和https://github.com/antvis/G6/issues/2901# 同样的问题,fitview无法适配,必须强制指定width和height ``` const container = document.getElementById('container') const width = container!.clientWidth // 没有任何内容渲染 const height = container!.clientHeight const graph = new G6.Graph({ container:ref.current, width:700, // 直接指定 height:400, linkCenter: true, .......

### Describe the bug `G6.TreeGraph`实例的初始位置不正常,十分偏上,只有少量底部能在canvas中出现,于是不得不使用`treeGraph.moveTo`修正。 自己的[可在线运行demo](https://replit.com/@HiWayne/antv-in-react#src/App.jsx)和[官方示例](https://github.com/baizn/g6-in-react)中的`/pages/tree/index.js`均能复现。另外如果这只是feature的话,为什么不默认在(0, 0)或(50%, 50%) ? @antv/g6 复现版本: 1. 自己:v4.5.2 2. 官方:v3.8.5 node版本: 1. 自己:v12.22.6 2. 官方:v12.18.0 react版本: 1. 自己:v17.0.2 2. 官方:v16.14.0 ### Your Example Website or...

### 问题描述 如图,需要实现下图类似的效果。左边三个节点的边先聚合,然后再连接到目标节点。 ![image](https://user-images.githubusercontent.com/24784430/163530575-ae071c64-6680-4ca1-8f15-1c94efa2c437.png) 我想到的方案是:利用折线边(polyline),增加controlPoint,可以看到,上述效果 相比普通的折线边,多了A、B两个转折点。 现在的问题是,新增转折点的x坐标很好计算,取起始点、终点之间 1/4,3/4位置即可。但是y坐标需要计算,理想的位置是上图三个聚合节点的中间位置,也就是 图中的y坐标位置。这个位置依赖于 聚合节点中 起始节点 和 最后节点的位置(x,y坐标),然后看了代码之后发现 节点 和 边 是**一起渲染**的,而不是 先渲染所有的点,最后渲染所有的边。这就导致 渲染聚合节点的边时 无法拿到 其他聚合节点的位置,因此y坐标无法计算。 求教是否有其他合适的方式计算y坐标 或者 可以达到类似效果的方法。🙏🙏 ### 重现链接 无 ### 重现步骤 如问题描述...

### 问题描述 扫了两天了,都不给通过,想进去交流学习一下都不行.... ### 重现链接 https://g6.antv.vision/zh/docs/manual/introduction#g6-%E5%9B%BE%E5%8F%AF%E8%A7%86%E5%8C%96%E4%BA%A4%E6%B5%81%E7%BE%A4 ### 重现步骤 1.进入antv官网 2.在教程简介中找到钉钉群交流二维码 3.打开手机钉钉点击扫码 4.没任何反应- -,拒绝理由都无... ### 预期行为 期望加群,结果无果- - ### 平台 - 操作系统: [macOS, Windows, Linux, React Native ...] - 网页浏览器: [Google...

### Describe the bug `preventComboOverlap:true` inside of G6's layout config does not prevent combos from overlapping when combos are opened near each other. ### Your Example Website or App https://codesandbox.io/s/g6-4-6-3--preventcombooverlap--bug-ovlu74?file=/index.js...

### 问题描述 如图1初始化后撤消重做按钮高亮,但点击无效果,当第一次移动节点后按钮置灰无法操作,第二次移动后再次高亮。此时再点击功能才正常。代码是用官方示例增加了‘drag-node’与‘toolbar’ ### 重现链接 https://codesandbox.io/s/modest-cloud-42uzk5 ### 重现步骤 初始化后点击撤销/重做 移动节点 再次移动节点 ### 预期行为 期望:初始时撤销/重做按钮置灰,第一次移动后高亮可操作 实际:初始按钮高亮点击无效,第一次移动节点后置灰 ### 平台 - 操作系统: [macOS, Windows, Linux, React Native ...] - 网页浏览器: [Google Chrome, Safari,...

### Describe the bug Only import G6 from '@antv/g6', then cause the error below: ![image](https://user-images.githubusercontent.com/42203474/156505759-27416f8b-98cb-4dbf-ae7d-8f8eef808ce0.png) ### Your Example Website or App Above ### Steps to Reproduce the Bug or Issue...

### 问题描述 filterFunctions只在第一次点击图例,则开启过滤时被调用,关闭过滤时不会被调用 ### 重现链接 https://codesandbox.io/s/filter-issue-v93t5f?file=/index.js ### 重现步骤 代码第39-41行 开启过滤控制台打印111,关闭时不会打印 ### 预期行为 期望在关闭过滤时支持调用filterFunctions自定义方法 ### 平台 - 操作系统: [macOS, Windows, Linux, React Native ...] - 网页浏览器: [Google Chrome, Safari, Firefox] -...

### 问题描述 在dagre布局中,polyline连线设置controlPoints: true后,拐点controlPoints不会随着节点拖动而重新计算拐点位置,导致连线会干扰周围的节点。所以在polyline连线设置controlPoints: true后,如何在节点移动时重新计算controlPoints? ### 重现链接 https://g6.antv.vision/zh/examples/net/dagreFlow#lrDagreUL ### 重现步骤 1.在dagre布局,设置controlPoints: true,使用polyline连线 2.拖动节点,连线的拐点不会重新计算位置,导致连线会干扰其他线或节点 3.若设置controlPoints: false,连线不顺畅不自然 ### 预期行为 希望设置controlPoints: true后,在节点移动时重新计算polyline连线的controlPoints。 (在连线的afterUpdate方法中尝试使用 this.getControlPoints(cfg) 方法计算出来的controlPoints还是旧的) ### 平台 - 操作系统: macOS - 网页浏览器: Google...