antvis/G6

边类型迁移 - quadratic 类型 #4576

Yanyan-Wang posted onGitHub

Issue Hunt 计划(可选)

  • 我同意将这个 Issue 参与 Issue Hunt 计划

Issue 难度

中低难度

悬赏

请在 2023 年 7 月 1 日之前完成 PR,7 月 15 日之前完成全部 CR 意见的修改。

AntV 将支付 $5 (汇率按结算当日计)

问题描述

G6 4.x 中的 quadratic 类型边 迁移到 5.0 中,注意:

重现链接

https://github.com/antvis/G6/blob/v5/packages/g6/src/stdlib/item/edge/line.ts

重现步骤

  1. clone g6 代码
git clone https://github.com/antvis/G6.git
  1. 拉取所有线上分支
git fetch
  1. 切换到 v5 分支
git checkout v5
  1. 进入 g6 包
cd packages/g6
  1. 安装依赖
npm install
  1. 启动 demo
npm run dev
  1. 实现功能、新增 demo 以测试

demo 位于 packages/g6/tests/integration

  1. 提交代码,等待 CR

  2. 根据(多次) CR 建议修改

  3. 等待合并入 v5 分支后,管理员支付奖金

预期行为

G6 4.x 中的 quadratic 类型边 迁移到 5.0 中,注意:

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]
  • G6 版本: [5.0.0-alpha]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response


请复制以下模板,填写相关信息,然后删除模板中的注释。 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.
posted by github-actions[bot] almost 2 years ago

Issue 认领 / Issue Claim

贡献者/Contributor

zqqcee

预计完成时间/Estimated Completion Date

2023-06-25

联系方式/Contact Information

例如:zqqcee@163.com

其他信息/Additional Information

posted by zqqcee almost 2 years ago

这次v5还是打算使用v4的这三个属性吗?

<img width="887" alt="image" src="https://github.com/antvis/G6/assets/55946653/2e30a60a-6148-473c-936e-7fe35b76b819">

发现类型检查并不允许我传入这三个属性

posted by zqqcee almost 2 years ago

这次v5还是打算使用v4的这三个属性吗?

<img alt="image" width="887" src="https://user-images.githubusercontent.com/55946653/245716244-2e30a60a-6148-473c-936e-7fe35b76b819.png"> 发现类型检查并不允许我传入这三个属性

如果分了cubicquadratic的话,那是不是quadratic是不是只允许用户传入一个控制点和偏移量比较好一些呢?

posted by zqqcee almost 2 years ago

这次v5还是打算使用v4的这三个属性吗? <img alt="image" width="887" src="https://user-images.githubusercontent.com/55946653/245716244-2e30a60a-6148-473c-936e-7fe35b76b819.png"> 发现类型检查并不允许我传入这三个属性

如果分了cubicquadratic的话,那是不是quadratic是不是只允许用户传入一个控制点和偏移量比较好一些呢?

是的~

posted by Yanyan-Wang almost 2 years ago

感谢 @zqqcee 完成该项功能~

posted by Yanyan-Wang almost 2 years ago

悬赏金已支付,与 https://github.com/antvis/G6/issues/4574 同一笔支付宝支付~ 此 issue 关闭~

posted by Yanyan-Wang almost 2 years ago

Fund this Issue

$0.00
Funded

Pull requests