Merge pull request 'dev' (#255) from dev into prd-deploy
Reviewed-on: #255
This commit is contained in:
commit
e5e3efef49
@ -214,13 +214,13 @@ export function useMovementSetting(id) {
|
|||||||
if (!target) return
|
if (!target) return
|
||||||
|
|
||||||
const { top: targetTop, left: targetLeft } = target
|
const { top: targetTop, left: targetLeft } = target
|
||||||
const currentX = Big(getIntersectMousePoint(e).x).round(0, Big.roundUp)
|
const currentX = Big(getIntersectMousePoint(e).x) //.round(0, Big.roundUp)
|
||||||
const currentY = Big(getIntersectMousePoint(e).y).round(0, Big.roundUp)
|
const currentY = Big(getIntersectMousePoint(e).y) //.round(0, Big.roundUp)
|
||||||
let value = ''
|
let value = ''
|
||||||
if (target.y1 === target.y2) {
|
if (target.y1 === target.y2) {
|
||||||
value = Big(targetTop).minus(currentY).times(10)
|
value = Big(targetTop).minus(currentY).times(10).round(0)
|
||||||
} else {
|
} else {
|
||||||
value = Big(targetLeft).minus(currentX).times(10).neg()
|
value = Big(targetLeft).minus(currentX).times(10).round(0).neg()
|
||||||
}
|
}
|
||||||
if (typeRef.current === TYPE.FLOW_LINE) {
|
if (typeRef.current === TYPE.FLOW_LINE) {
|
||||||
FLOW_LINE_REF.POINTER_INPUT_REF.current.value = value.toNumber()
|
FLOW_LINE_REF.POINTER_INPUT_REF.current.value = value.toNumber()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user