-
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
元素磁吸连接点 #67
Labels
操作说明
介绍设计器如何使用
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在
svg
元素中,部分元素如直线
、bezier
等由点来描述的图形信息如果要修改图形,则需要修改点的位置。
为了方便
svg
图形的点的修改,之前版本已实现自动磁吸对齐自身或其它svg
元素的点的坐标。在实际应用中,尤其在
IoT
场景下,通常我们会用图片来展示如锅炉
、风机
、水泵
等。当我们拖动
svg
中的管道
和如水泵
连接时,不同的水泵
图片需要连接到的位置不一样,我们可以通过高亮管道
的某一个控制点使用键盘进行微调,显然这样的方式效率不高为了更方便元素间连接,现为普通元素也增加磁吸点,如下图
上图中品牌色的点则是磁吸点。
磁吸点允许自由定义或提前内置,允许管理者自由修改位置。
允许其它元素与磁吸点吸附对齐,同时对
svg
使用点
描述的图形,支持拖动svg
元素的点
时,磁吸到普通元素的磁吸点上该功能主要是便于
管道
与其它元素进行连接同时带有磁吸点的元素也支持相互吸附对齐,不但便于连接,也更便于排版对齐等操作。因为带有磁吸点的元素不仅仅依靠元素的外接矩形吸附对齐,也支持内部磁吸点的吸附对齐。
The text was updated successfully, but these errors were encountered: