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 nextWall = line.nextWall
|
||||
const index = line.index + addPoint
|
||||
const direction = currentWall.direction
|
||||
const xDiff = Big(currentWall.x1).minus(Big(nextWall.x1))
|
||||
const yDiff = Big(currentWall.y1).minus(Big(nextWall.y1))
|
||||
const offsetCurrentPoint = offsetPolygon[index]
|
||||
@ -1820,12 +1821,10 @@ export function useMode() {
|
||||
x: xDiff.eq(0) ? offsetCurrentPoint.x : nextWall.x1,
|
||||
y: yDiff.eq(0) ? offsetCurrentPoint.y : nextWall.y1,
|
||||
}
|
||||
let diffOffset
|
||||
if (nextWall.index > currentWall.index) {
|
||||
diffOffset = Big(nextWall.attributes.offset).minus(Big(currentWall.attributes.offset)).abs()
|
||||
} else {
|
||||
diffOffset = Big(currentWall.attributes.offset).minus(Big(nextWall.attributes.offset))
|
||||
}
|
||||
|
||||
let diffOffset = ['top', 'right'].includes(direction)
|
||||
? Big(nextWall.attributes.offset).minus(Big(currentWall.attributes.offset))
|
||||
: Big(currentWall.attributes.offset).minus(Big(nextWall.attributes.offset))
|
||||
|
||||
const offsetPoint2 = {
|
||||
x: yDiff.eq(0) ? offsetPoint1.x : Big(offsetPoint1.x).plus(diffOffset).toNumber(),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user