Skip to content

[Bug]: 在实例化Graph时,若在node中设置size属性,则data中的size属性不生效。 #7279

@zmbxy

Description

@zmbxy

Describe the bug / 问题描述

Image

如图所示,在new Graph创建图实例时,若node未配置size属性,此时在data中设置特定节点size,此时可以s生效。

Image

new Graph创建图实例时,node配置size属性后,此时data中的size属性不生效。

期望:size应用的优先级,应当是:data中的size设置 > Graph实例全局设置 > 默认size

Reproduction link / 复现链接

https://g6.antv.antgroup.com/examples/element/node/#circle

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

复现链接为官网中案例,如图修改增加data节点size属性,在node中设置size和取消size即可复现。

Version / 版本

Please select / 请选择

OS / 操作系统

  • macOS
  • Windows
  • Linux
  • Others / 其他

Browser / 浏览器

  • Chrome
  • Edge
  • Firefox
  • Safari (Limited support / 有限支持)
  • IE (Nonsupport / 不支持)
  • Others / 其他

Metadata

Metadata

Assignees

No one assigned

    Labels

    question 💬This issue is just a question. It will be converted into discussion automatically

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions