antvis/G6

v5.0 util如何使用呢 #6089

Pancake-Q posted onGitHub

Describe the bug / 问题描述

v5.0 没找到util的使用说明比如在大规模图下钻式探索的案例中的G6.Util.processParallelEdges(edges, 12.5, 'quadratic', 'custom-line')

大规模图下钻式探索

Steps to Reproduce the Bug or Issue / 重现步骤

No response

G6 Version / G6 版本

🆕 5.x

Operating System / 操作系统

macOS

Browser / 浏览器

Chrome

Additional context / 补充说明

No response


  1. 对于一般工具方法,直接从 G6 引入调用即可,以 idOf 为例
import { idOf } from '@antv/g6';

const id = idOf({ source: 'node-1', target: 'node-2' });
  1. 如果你需要使用平行边,参考案例:https://g6-next.antv.antgroup.com/examples/element/custom-edge/#parallel-edges
posted by Aarebecca 9 months ago

Fund this Issue

$0.00
Funded

Pull requests