G6
G6 copied to clipboard
♾ A Graph Visualization Framework in JavaScript.
### G6 版本 4.x ### 问题描述 实际使用场景中,业务代码可能会调用Behaviors实例里面的方法,比如“activate-relations”,需要主动清理inactive状态,直接调用seft.throttleClearActiveState(e, seft)即可 ### 重现链接 无 ### 重现步骤 无 ### 预期行为 无 ### 平台 - 操作系统: Windows - 网页浏览器: Google Chrome - G6 版本: 4.8.23...
### 问题描述 使用activate-relations, hover节点,相关节点和线条active,但是线条的粗细不满足预期。 希望线条粗细能保持size设置的粗细。 ### 重现链接 https://g6.antv.antgroup.com/zh/examples/scatter/edge/#edge ### 重现步骤 https://g6.antv.antgroup.com/zh/examples/scatter/edge/#edge 尝试了下如修改,使线条粗细size为10,然后hover节点,节点和线变为active状态。 edges: [ { source: 'node1', target: 'node2', size: 10, }, ], defaultEdge: { type: 'line-dash', style: { //...
### 问题描述 我使用了官网图例中的节点内容可滚动的 ER 图来进行画图,现在的需求需要用户在点击节点卡片时高亮当前节点,使用AntV中的默认配置“click-select”不生效,drag-canvas和zoom-canvas都没问题但是click-select不生效。 ` modes: { default: [ "click-select", "drag-canvas", "dice-er-scroll", "zoom-canvas", ], },` ### 重现链接 https://codesandbox.io/p/sandbox/cool-einstein-wvvm2w?file=%2Findex.js%3A661%2C19 ### 重现步骤 1.modes中添加“click-select”配置项 2.点击节点 3.没有选中状态 ### 预期行为 我期望点击节点后可以和其他dagre流程图布局的示例节点一样添加上一个外边框,让用户知道当前节点被选中。 但是现在点击之后节点没有任何变化 ### 平台...
### 问题描述 在使用changeData()更新数据之后,对脑图进行删除节点,无法拖拽脑图,控制台报错如下 数据确认是没问题的;看着报错觉得是视图更新的问题,求助解答。 ### 重现链接 无 ### 重现步骤 1. ### 预期行为 期望可以正常拖拽 ### 平台 - 操作系统: [macOS, Windows, Linux, React Native ...] - 网页浏览器: [Google Chrome, Safari, Firefox] -...
### Describe the bug registerNode的getAnchorPoints方法不被触发 ### CodeSandBox https://codesandbox.io/p/sandbox/gallant-booth-rlj33t?file=%2Fsrc%2Fcomponents%2FbloodG6%2Findex.vue%3A1%2C1 ### Your Example Website or App https://rlj33t-5173.csb.app/ ### Steps to Reproduce the Bug or Issue 无 ### Expected behavior 触发getAnchorPoints,进行锚点位置的自定义 ### Screenshots...
### 问题描述 拖拽第一个没有发生偏移,为什么第二个会发生偏移呢,我两个配置都写的差不多一样的呀 ### 重现链接 [链接](https://codesandbox.io/p/devbox/3ls6wh?file=%2Fsrc%2Fviews%2FContentView2.vue%3A125%2C1&layout=%257B%2522sidebarPanel%2522%253A%2522EXPLORER%2522%252C%2522rootPanelGroup%2522%253A%257B%2522direction%2522%253A%2522horizontal%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522id%2522%253A%2522ROOT_LAYOUT%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522clq2c6aha0006356h624p6012%2522%252C%2522sizes%2522%253A%255B67.67106151285054%252C32.32893848714946%255D%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522EDITOR%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522id%2522%253A%2522clq2c6aha0002356hywvotes2%2522%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522SHELLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522id%2522%253A%2522clq2c6aha0003356hpwmfvq0x%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522DEVTOOLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522id%2522%253A%2522clq2c6aha0005356h7wnv5hvo%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%252C%2522sizes%2522%253A%255B57.58766047135467%252C42.41233952864533%255D%257D%252C%2522tabbedPanels%2522%253A%257B%2522clq2c6aha0002356hywvotes2%2522%253A%257B%2522id%2522%253A%2522clq2c6aha0002356hywvotes2%2522%252C%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522clq2cp4xc0002356h0ji89iqz%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522FILE%2522%252C%2522initialSelections%2522%253A%255B%257B%2522startLineNumber%2522%253A53%252C%2522startColumn%2522%253A7%252C%2522endLineNumber%2522%253A53%252C%2522endColumn%2522%253A7%257D%255D%252C%2522filepath%2522%253A%2522%252Fsrc%252Fcomponents%252FNodePanel.vue%2522%252C%2522state%2522%253A%2522IDLE%2522%257D%252C%257B%2522id%2522%253A%2522clq2d5syz0002356hk5lifz7t%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522FILE%2522%252C%2522initialSelections%2522%253A%255B%257B%2522startLineNumber%2522%253A125%252C%2522startColumn%2522%253A1%252C%2522endLineNumber%2522%253A125%252C%2522endColumn%2522%253A1%257D%255D%252C%2522filepath%2522%253A%2522%252Fsrc%252Fviews%252FContentView2.vue%2522%252C%2522state%2522%253A%2522IDLE%2522%257D%255D%252C%2522activeTabId%2522%253A%2522clq2d5syz0002356hk5lifz7t%2522%257D%252C%2522clq2c6aha0005356h7wnv5hvo%2522%253A%257B%2522id%2522%253A%2522clq2c6aha0005356h7wnv5hvo%2522%252C%2522activeTabId%2522%253A%2522clq2de7pe00k3356h4wc0jhr0%2522%252C%2522tabs%2522%253A%255B%257B%2522type%2522%253A%2522UNASSIGNED_PORT%2522%252C%2522port%2522%253A8080%252C%2522id%2522%253A%2522clq2de7pe00k3356h4wc0jhr0%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522path%2522%253A%2522%252F%2522%257D%255D%257D%252C%2522clq2c6aha0003356hpwmfvq0x%2522%253A%257B%2522id%2522%253A%2522clq2c6aha0003356hpwmfvq0x%2522%252C%2522activeTabId%2522%253A%2522clq2cekh500bb356hfdur408b%2522%252C%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522clq2cekh500bb356hfdur408b%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522TERMINAL%2522%252C%2522shellId%2522%253A%2522clq2cekis001gefgh57l23vjh%2522%257D%255D%257D%257D%252C%2522showDevtools%2522%253Atrue%252C%2522showShells%2522%253Atrue%252C%2522showSidebar%2522%253Atrue%252C%2522sidebarPanelSize%2522%253A15%257D) ### 重现步骤 左侧拖拽第一个不发生偏移,第二个发生偏移 ### 预期行为 可以正常进行节点坐标转换 ### 平台 - 操作系统: [macOS, Windows, Linux, React Native ...] - 网页浏览器: [Google Chrome, Safari, Firefox] - G6...
### 问题描述 用的electron-egg,绘制流程图设置背景网格,背景网格不展示,代码测试过了没问题,放到这个项目里就不行了。 ### 重现链接 应用程序没有链接 ### 重现步骤 1、下载electron-egg 2、再项目的frontend中引入g6初始化配置plugins加上grid 3、结果不展示背景网格 ### 预期行为 可以看到网格背景 ### 平台 - 操作系统: [macOS, Windows, Linux, React Native ...] window - 网页浏览器: [Google Chrome, Safari,...
### G6 版本 4.x ### 问题描述 在添加node/edge后使用fitview/fitcenter 调整到中心位置时整个layout会向右偏移(我本地环境,codesandbox显示不正常),移除node时使用又响应正常。 如下图(勾选上方sss复选框会执行添加操作,取消勾选是移除): ![PixPin_2023-12-20_15-50-01](https://github.com/antvis/G6/assets/147576452/fe8200d0-599f-4a86-8fa0-723a0f101be4) 移除fitview/fitcenter后看起来可以了。目前去掉了。 还有个问题,这些添加的node我怎么样设置可以左边的2个锚点上的节点和右边的节点互不干扰,边也不重叠? 下面是预期效果: ![PixPin_2023-12-20_18-17-38](https://github.com/antvis/G6/assets/147576452/023f359e-f25f-4f0f-95eb-4585a28d8cdb) ### 重现链接 https://codesandbox.io/p/devbox/busy-hoover-w9cnjc ### 重现步骤 点击Add node添加node, 点击Remove All移除所有刚才添加的node. ### 预期行为 fitview/fitcenter异常响应正常。 ### 平台 - 操作系统:...
### 问题描述 希望新增创建边的demo,结合自定义节点的drawAnchorShapes 创建边 ### 重现链接 无 ### 重现步骤 无 ### 预期行为 无 ### 平台 - 操作系统: [macOS, Windows, Linux, React Native ...] - 网页浏览器: [Google Chrome, Safari, Firefox] -...
### G6 版本 4.x ### 问题描述 v4.8.23版本中在node:drop 或 drop事件回调中执行graph.removeItem 报错,重现链接是在其他issuer中看到的类似问题的重现 ### 重现链接 https://codesandbox.io/p/sandbox/g6-tuo-zhuai-shan-chu-forked-5bi7eb?file=%2Findex.html%3A89%2C29 ### 重现步骤 将节点拖入另一个节点中后在触发的事件回调node:drop 或drop中执行graph.removeItem删除操作 ### 预期行为 可以正常删除被拖入的节点 ### 平台 - 操作系统: [Windows] - 网页浏览器: [Google Chrome] -...