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

使用最新版svgjs会整体错位 #2

Closed
yjhatfdu opened this issue Apr 13, 2017 · 4 comments
Closed

使用最新版svgjs会整体错位 #2

yjhatfdu opened this issue Apr 13, 2017 · 4 comments

Comments

@yjhatfdu
Copy link
Contributor

使用最新版svgjs会整体错位,具体表现在所有的annotations会上移,每往下一行偏移越多

@grzhan
Copy link
Collaborator

grzhan commented Apr 13, 2017

今天晚上我看一下 问题已经复现,这几天会修复此问题,暂时在生产环境用旧版本的 svg.js 吧(感觉以后新版本的标注库可以移除掉这个依赖)

@yjhatfdu
Copy link
Contributor Author

很强!

@grzhan
Copy link
Collaborator

grzhan commented Apr 15, 2017

@yjhatfdu 新版本 svgjs 的位移函数 dy,其在文本元素上的行为与其他元素相比发生了不一致,似乎会少减去一个bbox.y

我不知道这是个 bug 还是个 feature,很迷。

总之我先把text.dy(value)改成text.y(text.y() + value)这样的写法了


请更新版本到0.4.32,看下问题是否被修复

@yjhatfdu
Copy link
Contributor Author

ok,可以给svgjs提issue 了吧?

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

2 participants