antvis/G6

[v5]beta.28版本 graph实例画布时,不配置```width```和```height```,会报错 #5465

zzjjbbaa posted onGitHub

Describe the bug

image

image

Your Example Website or App

Steps to Reproduce the Bug or Issue

Expected behavior

不传width和height时,可以根据container的css配置来设定画布宽高

Screenshots or Videos

wu

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [e.g. 91.1]

Additional context

No response


v5 最新代码已经支持这个了,增加了 autoResize 配置,提供的就是这个功能,等三月底发布版本。

posted by hustcc about 1 year ago

Fund this Issue

$0.00
Funded

Pull requests