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

editor 四个point和四条边框线的拖动超过画布问题 #310

Open
xixiaa opened this issue Dec 27, 2024 · 2 comments
Open

editor 四个point和四条边框线的拖动超过画布问题 #310

xixiaa opened this issue Dec 27, 2024 · 2 comments

Comments

@xixiaa
Copy link

xixiaa commented Dec 27, 2024

已设置dragBounds,拖动整体是没问题的,但是拖动四个point或者四条边框线时会超过画布,有什么解决方案吗

image

@leaferjs
Copy link
Owner

目前还不支持,后面会考虑支持一下,有网友试了给元素设置 rect.widthRange/ rect.heightRange 可以控制元素的大小范围,看看能不能解决一部分问题:

https://www.leaferjs.com/ui/plugin/in/flow/Flow.html#widthrange-irangesize

@xixiaa
Copy link
Author

xixiaa commented Dec 27, 2024

1、拖动四个point和四条边框线可以用什么事件监听拖动?
2、给元素设置 rect.widthRange/ rect.heightRange 可以控制元素的大小范围,这个方案有demo吗?
@leaferjs

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