antvis/G6

[v5]求助Graph实例的类型怎么定义 #5491

zzjjbbaa posted onGitHub

问题描述

image 如图所示,怎么定义接收new ExtGraph()生成的对象类型呢?

重现链接

重现步骤

预期行为

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]
  • G6 版本: [4.5.1 ... ]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response


最新的 v5 已经去掉了 extend 方法,直接使用 G6 export 出来的 Graph 即可,类型定义也直接用 Graph。

posted by hustcc about 1 year ago

最新的 v5 已经去掉了 extend 方法,直接使用 G6 export 出来的 Graph 即可,类型定义也直接用 Graph。

期待,3月的新版本好久来一版哦

posted by zzjjbbaa about 1 year ago

https://github.com/antvis/G6/pull/5546 已经发布一个 beta 版本,近期会大量做一些小的体验和 bugfix。

posted by hustcc about 1 year ago

Fund this Issue

$0.00
Funded

Pull requests