Replies: 1 comment 1 reply
-
应该可以自己写出来,只是实现起来比较麻烦,我能想到的办法就是监听node:resizing,然后根据变化取出来其他选中的节点,代码大致应该是这个样子的: graph.on('node:resizing', ({e, x, y, node, view}) => { 这里的主要问题是,在node:resizing的时候拿到的是鼠标的当前坐标位置,而不是变化量,所以还需要自己计算出实际变化量是多少,再根据需要去缩放其他节点。 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
同时选中几个节点的时候,是否可以做到同时缩小放大这些节点?
Beta Was this translation helpful? Give feedback.
All reactions