antvis/G6

image节点设置fill,会覆盖父容器shape #4451

ChenKun1997 posted onGitHub

Describe the bug

image节点设置fill,会覆盖父容器shape样式

Your Example Website or App

https://g6.antv.antgroup.com/examples/tree/customItemTree#customEdgeTree

Steps to Reproduce the Bug or Issue

  1. 在146行 group.addShape('image', { 下面的attrs里面加上fill: 'red',效果如图: image

Expected behavior

希望如果image节点设置了fill属性,G6内部可以把fill属性omit掉

Screenshots or Videos

image

image

Platform

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

Additional context

No response


This issue has been closed because it has been outdate for a long time. Please open a new issue if you still need help.

这个 issue 已经被关闭,因为 它已经过期很久了。 如果你仍然需要帮助,请创建一个新的 issue。

posted by github-actions[bot] 10 months ago

Fund this Issue

$0.00
Funded

Pull requests