Merge branch 'dev' of https://git.hanasys.jp/qcast3/qcast-front into dev_ysCha
This commit is contained in:
commit
101e086a84
@ -1809,6 +1809,7 @@ export function useMode() {
|
|||||||
const currentWall = line.currentWall
|
const currentWall = line.currentWall
|
||||||
const nextWall = line.nextWall
|
const nextWall = line.nextWall
|
||||||
const index = line.index + addPoint
|
const index = line.index + addPoint
|
||||||
|
const direction = currentWall.direction
|
||||||
const xDiff = Big(currentWall.x1).minus(Big(nextWall.x1))
|
const xDiff = Big(currentWall.x1).minus(Big(nextWall.x1))
|
||||||
const yDiff = Big(currentWall.y1).minus(Big(nextWall.y1))
|
const yDiff = Big(currentWall.y1).minus(Big(nextWall.y1))
|
||||||
const offsetCurrentPoint = offsetPolygon[index]
|
const offsetCurrentPoint = offsetPolygon[index]
|
||||||
@ -1820,12 +1821,10 @@ export function useMode() {
|
|||||||
x: xDiff.eq(0) ? offsetCurrentPoint.x : nextWall.x1,
|
x: xDiff.eq(0) ? offsetCurrentPoint.x : nextWall.x1,
|
||||||
y: yDiff.eq(0) ? offsetCurrentPoint.y : nextWall.y1,
|
y: yDiff.eq(0) ? offsetCurrentPoint.y : nextWall.y1,
|
||||||
}
|
}
|
||||||
let diffOffset
|
|
||||||
if (nextWall.index > currentWall.index) {
|
let diffOffset = ['top', 'right'].includes(direction)
|
||||||
diffOffset = Big(nextWall.attributes.offset).minus(Big(currentWall.attributes.offset)).abs()
|
? Big(nextWall.attributes.offset).minus(Big(currentWall.attributes.offset))
|
||||||
} else {
|
: Big(currentWall.attributes.offset).minus(Big(nextWall.attributes.offset))
|
||||||
diffOffset = Big(currentWall.attributes.offset).minus(Big(nextWall.attributes.offset))
|
|
||||||
}
|
|
||||||
|
|
||||||
const offsetPoint2 = {
|
const offsetPoint2 = {
|
||||||
x: yDiff.eq(0) ? offsetPoint1.x : Big(offsetPoint1.x).plus(diffOffset).toNumber(),
|
x: yDiff.eq(0) ? offsetPoint1.x : Big(offsetPoint1.x).plus(diffOffset).toNumber(),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user