Closed Yanyan-Wang closed 1 year ago
请复制以下模板,填写相关信息,然后删除模板中的注释。 Please copy the following template, fill in the relevant information, and then delete the comments in the template.
## Issue 认领 / Issue Claim
**贡献者/Contributor**
> 例如:张三, 李四
> For example: John Smith, Sarah Johnson
**预计完成时间/Estimated Completion Date**
> 例如:2023-06-06
> For example: May 30, 2023
**联系方式/Contact Information**
> 例如:contact@email.com
> For example: contact@email.com
**其他信息/Additional Information**
> 例如:这个 issue 比预期的要复杂,我希望能获得更多的奖励
> For example: This issue is more complex than expected, and I hope to receive more reward.
贡献者/Contributor
zqqcee
预计完成时间/Estimated Completion Date
2023-08-15
联系方式/Contact Information
例如:zqqcee@163.com
其他信息/Additional Information
无
感谢 @zqqcee ,已合并:https://github.com/antvis/G6/pull/4817 支付宝转账~
Issue Hunt 计划(可选)
Issue 难度
低难度
悬赏
请在 2023 年 8 月 30 日之前完成 PR,8 月 15 日之前完成全部 CR 意见的修改。
AntV 将支付 $7 (汇率按结算当日计)
问题描述
将 G6 4.x 中的 star 类型节点 迁移到 5.0 中,注意:
5.0 中的图形定义、缓存、插入方式有所不同,参考 5.0 circle 的实现:https://github.com/antvis/G6/blob/v5/packages/g6/src/stdlib/item/node/circle.ts
参考下面设计稿,调整 star 样式:
亮色:
image 暗色:
image 继承 circle;
类似 circle,支持文本、文本背景、多徽标、icon、其他图形;
类似 circle,支持状态样式响应、动画、主题等。
重现链接
https://github.com/antvis/G6/blob/v5/packages/g6/src/stdlib/item/node/circle.ts
重现步骤
demo 位于 packages/g6/tests/integration
提交代码,等待 CR
根据(多次) CR 建议修改
等待合并入 v5 分支后,管理员支付奖金
预期行为
将 G6 4.x 中的 star 类型节点 迁移到 5.0 中,注意:
5.0 中的图形定义、缓存、插入方式有所不同,参考 5.0 circle 的实现:https://github.com/antvis/G6/blob/v5/packages/g6/src/stdlib/item/node/circle.ts;
根据设计稿调整样式(见上图);
继承 BaseNode;
类似 circle-node,支持文本、文本背景、多徽标、icon、其他图形;
类似 circle-node,支持状态样式响应、动画、主题等。
平台
屏幕截图或视频(可选)
No response
补充说明(可选)
No response