Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

自定义shape的path中包含三次贝塞尔曲线时,切换动画报错 #3213

Closed
1 task
gongtiexin opened this issue Jan 18, 2021 · 1 comment
Closed
1 task
Assignees

Comments

@gongtiexin
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

Edit on CodeSandbox

Steps to reproduce

点击任意legend报错,因为我用了'C',而饼图更新动画中没有考虑'C'的情况

Environment Info
g2 4.1.7
System -
Browser -

需求是自定义一个圆角的饼环图,画圆角时采用'A'或者'C'

'A'在切换的时候动画会有问题

'C'在切换的时候由于下面代码报错

function getArcStartPoint(path: PathCommand) {
let startPoint;
if (path[0] === 'M' || path[0] === 'L') {
startPoint = [path[1], path[2]];
} else if (path[0] === 'a' || path[0] === 'A') {
// path[0] === 'c' || path[0] === 'C'
startPoint = [path[path.length - 2], path[path.length - 1]];
}
return startPoint;
}
希望在这个函数中兼容'C','c'

@hustcc
Copy link
Member

hustcc commented Mar 17, 2021

@yujs 确认一下是否合并之后,这个修复了,如果修复了,关闭掉这个 issue 吧。

@hustcc hustcc closed this as completed Aug 22, 2023
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

No branches or pull requests

3 participants