topology icon indicating copy to clipboard operation
topology copied to clipboard

子节点缩放后拖拽位置会偏移,子节点缩放系数会变大

Open dargon5210 opened this issue 3 years ago • 2 comments

const that = this; if (this.children && this.children.length) { for (const item of this.children) { item.scale(scale, center); item.calcRectInParent(that) } }

我在源码中这样修改后,子节点会和父节点一起动了,缩放后移动,也不会出现偏移,也不会出现子节点缩放比例不对的情况,希望作者尽快修复此bug,我怕我的处理方式不够友好,没有提交代码。

dargon5210 avatar Jun 02 '21 02:06 dargon5210

拖拽子节点大小控制点,改变子节点大小的场景下?这个情况已修复

Alsmile avatar Jun 22 '21 07:06 Alsmile

可能我描述的不准确, 当一个节点添加子节点后,拖入到画布,缩放,移动节点,子节点位置会偏移,成缩放倍数的偏移

dargon5210 avatar Jun 22 '21 07:06 dargon5210