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

建议:所有元素包括workspace,使用orginXY为center。以中间点作为锚点 #474

Open
momo2019 opened this issue Jul 13, 2024 · 1 comment

Comments

@momo2019
Copy link
Contributor

建议所有的元素均使用中心的为锚点。
现状

  1. workspace在resize的时候,内部元素会相对workspace移动,不好控制
  2. workspace初始中心不在标尺的0,0位置,经过来回的resize后,中心位置也一直在移动,感觉标尺失去了一部分作用。
  3. resize的dragging过程中,还在对workspace的left和top做计算处理,设置为center后不需要
    WX20240713-163731@2x

改为center后的效果

  1. workspace的中心永远在标尺的0,0
  2. resize过程中,其他元素基于画布的位置是不变的。
    WX20240713-163547@2x
@nihaojob
Copy link
Member

收到 感谢大佬反馈 我后边排期优化下

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