Skip to content

Conversation

ai-qing-hai
Copy link
Contributor

新增 donut 甜甜圈 node 样式。

fixed: #5566

image

// 内径
  innerRadius?: number;
// 甜甜圈配置
  donuts?: Round[];
type Round = {
  /**
   * <zh/> 圆弧 id
   *
   * <en/> Id.
   */
  id: ID;
  /**
   * <zh/> 内径 [0, 1].
   *
   * <en/> Inner radius.
   */
  innerRadius?: number;
  /**
   * <zh/> 数值,用于计算比例
   *
   * <en/> Numerical value used to calculate the scale.
   */
  value?: number;
  /**
   * <zh/> 颜色
   *
   * <en/> Color.
   */
  color?: string;
  /**
   * <zh/> 其他圆弧(path)样式配置
   *
   * <en/> Other arc style configurations.
   */
  [key: string]: any;
};

@dosubot dosubot bot added size:XL labels Apr 15, 2024
@Aarebecca
Copy link
Contributor

有测试过更新节点数据时新增或者减少扇区的例子吗

@ai-qing-hai
Copy link
Contributor Author

有过测试更新节点数据时增加或者减少扇区的例子吗?

我看 base 中的 port 也没有 update 这些,还以为是自动 render 重新渲染的。就没做。

@Aarebecca Aarebecca merged commit 8959554 into v5 Apr 19, 2024
@Aarebecca Aarebecca deleted the feat-donut branch April 19, 2024 02:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate Donut Node
2 participants