antvis/G6

item.update无法更新type #5308

HogoZhang posted onGitHub

G6 Version

4.x

Describe the bug

`const model = { id: 'node', type: 'rect', label: 'node', style: { fill: 'red', }, };

item.update(model); item.refresh(); ` 原来的圆形节点未变成矩形

Your Example Website or App

Steps to Reproduce the Bug or Issue

Expected behavior

Screenshots or Videos

No response

Platform

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

Additional context

No response


Hi @HogoZhang, Please star this repo if you find it useful! Thanks :star:! 你好 @HogoZhang。如果该仓库对你有用,可以 star 一下,感谢你的 :star:!

posted by github-actions[bot] over 1 year ago

hi @HogoZhang, welcome!

posted by github-actions[bot] over 1 year ago

已解决,4.8.23版本有此问题,降版本后正常

posted by HogoZhang over 1 year ago

Fund this Issue

$0.00
Funded

Pull requests