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

全是负值时图形超出画布 #179

Closed
simaQ opened this issue Jul 9, 2018 · 1 comment
Closed

全是负值时图形超出画布 #179

simaQ opened this issue Jul 9, 2018 · 1 comment
Assignees
Labels

Comments

@simaQ
Copy link
Contributor

simaQ commented Jul 9, 2018

  • F2 Version:
  • Platform:
  • Mini Showcase(like screenshots):
  • CodePen Link:

image

@simaQ simaQ added the bug label Jul 9, 2018
@simaQ simaQ self-assigned this Jul 9, 2018
@simaQ
Copy link
Contributor Author

simaQ commented Jul 9, 2018

这个问题的原因是在计算矩形关键点的时候,有一个 y0,我们在代码里面逻辑判断是这样的(代码位置:https://github.com/antvis/f2/blob/master/src/geom/base.js#L541),如果 min <=0,我们的 y0 就会取值为 0(这个 0 是实际值,不是归一化后的),而 0 远在画布外,所以会出现这种现象。

@simaQ simaQ closed this as completed in 3767e38 Jul 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant