We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
问题描述 问题1:参考 #351
support/shape.js
mousedownForMark
move
handlePointMoveProp
calcVHLine
isPointMove
// 路径 editor/canvas/edit.js if (Math.abs(offset) <= 5) { if (isPointMove) { this.setElementPosition({ width: ewidth + offset }) } else { this.setElementPosition({ left: eleft + offset }) } this.drawVLine(referX) hasVLine = true }
问题2: 元素宽高小于0时候会出现元素被拖拽平移的效果。 可以进行限制
// 路径 support/shape.js let move = moveEvent => { // ... pos.height = newHeight > 0 ? newHeight : 0 pos.width = newWidth > 0 ? newWidth : 0 pos.left = newWidth > 0 ? +left + (hasL ? disX : 0) : pos.left pos.top = newHeight > 0 ? +top + (hasT ? disY : 0) : pos.top this.handlePointMoveProp(pos) }
The text was updated successfully, but these errors were encountered:
fix:issue #360
07ae0f8
cee3673
c860890
No branches or pull requests
问题描述
问题1:参考 #351
support/shape.js
文件中的mousedownForMark
方法。内部方法move
中调用handlePointMoveProp
父级传递的 props.handlePointMove 事件。calcVHLine
事件导致抖动。走到isPointMove
逻辑,在这里会更新 pos 的值,导致渲染元素时候出现抖动。问题2: 元素宽高小于0时候会出现元素被拖拽平移的效果。
可以进行限制
The text was updated successfully, but these errors were encountered: