-
Notifications
You must be signed in to change notification settings - Fork 209
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
fix: 修复旋转后,拖拽缩放的BUG #16
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
之前借鉴过谭大神的部分代码,但是这部分还没想好
我主要借鉴这里代码:https://github.com/woai3c/visual-drag-demo |
我可以先把 第二个commit 合进来。 修改缩放那个commit,等等再说吧 |
嗯 |
好像不能 merge 单独一个commit。。。 |
那合并再改吧 |
我用js写的,不太会改ts,合并之后你再改一下这块代码吧 |
没事,我 revert 这个commit了。 |
实现是有点麻烦,所以我简化了代码,将原来的8个方法合并。然后就容易理解了 |
这个项目也有类似的代码,我简单看了下逻辑基本是一样的 |
目前你看着乱是因为咱俩的参考系是不一样的,我的是组件外层的虚线框,你的是组件的中心,这也是我之前纠结的要不要改的原因。 |
不是乱,是错了。你可以看下这篇文章woai3c/Front-end-articles#20 |
我后边加个开关选项,让用户自己选择,缩放的目标对象。🤔 |
关注一下: woai3c/visual-drag-demo#26 |
No description provided.