-
Notifications
You must be signed in to change notification settings - Fork 229
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
拖动对齐 #42
Labels
操作说明
介绍设计器如何使用
Comments
Open
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
添加到设计区中的元素,在拖动时,会和非拖动元素自动对齐,示意图如下
其中
平铺图片
是正在拖动中的元素,当元素的顶、中间、底边以及左、中间、右边与另外元素的关键边靠近时,会自动吸附对齐。吸附阈值目前设定为
8px
,越小越容易脱离吸附,越大越不容易脱离吸附。组合元素及多选元素
优先鼠标下的元素参与拖动对齐(可配置为全部移动元素为拖动对齐),仅非移动元素才能成为吸附对齐对象
容器元素
容器及子元素如果不参与移动,则所有子元素也可以成为对齐吸附对象。
网格与吸附网格
设计区
设计区及容器的格子(小设计区)也支持拖动对齐
alt键
在拖动过程中,如果按下alt键,则可以临时停用吸附对齐。如果通过设计区配置为默认拖动不对齐,在拖动过程中,如果按下alt键,则可以临时启用吸附对齐
The text was updated successfully, but these errors were encountered: