케라바 벽취합 조합에서의 버그 처리.
This commit is contained in:
parent
013fd963b3
commit
fd024cf30b
@ -2591,6 +2591,9 @@ export const drawRoofByAttribute = (roofId, canvas, textMode) => {
|
||||
case LINE_TYPE.WALLLINE.JERKINHEAD:
|
||||
offset = oppLine.attributes.width / 2
|
||||
break
|
||||
case LINE_TYPE.WALLLINE.WALL:
|
||||
offset = 0
|
||||
break
|
||||
default:
|
||||
break
|
||||
}
|
||||
@ -2936,6 +2939,9 @@ export const drawRoofByAttribute = (roofId, canvas, textMode) => {
|
||||
case LINE_TYPE.WALLLINE.JERKINHEAD:
|
||||
offset = oppLine.attributes.width / 2
|
||||
break
|
||||
case LINE_TYPE.WALLLINE.WALL:
|
||||
offset = 0
|
||||
break
|
||||
default:
|
||||
break
|
||||
}
|
||||
@ -3396,6 +3402,9 @@ export const drawRoofByAttribute = (roofId, canvas, textMode) => {
|
||||
case LINE_TYPE.WALLLINE.JERKINHEAD:
|
||||
offset = oppLine.attributes.width / 2
|
||||
break
|
||||
case LINE_TYPE.WALLLINE.WALL:
|
||||
offset = 0
|
||||
break
|
||||
default:
|
||||
break
|
||||
}
|
||||
@ -3515,7 +3524,7 @@ export const drawRoofByAttribute = (roofId, canvas, textMode) => {
|
||||
const oMidX = (oppLine.x1 + oppLine.x2) / 2
|
||||
const oMidY = (oppLine.y1 + oppLine.y2) / 2
|
||||
const cOffset = currentLine.attributes.offset
|
||||
const oOffset = oppLine.attributes.offset
|
||||
const oOffset = oppLine.attributes.type === LINE_TYPE.WALLLINE.WALL ? 0 : oppLine.attributes.offset
|
||||
const ridgeVector = { x: Math.sign(clamp01(cMidX - oMidX)), y: Math.sign(clamp01(cMidY - oMidY)) }
|
||||
const ridgePoint = [
|
||||
cMidX + ridgeVector.x * cOffset,
|
||||
@ -3531,6 +3540,9 @@ export const drawRoofByAttribute = (roofId, canvas, textMode) => {
|
||||
case LINE_TYPE.WALLLINE.JERKINHEAD:
|
||||
offset = oppLine.attributes.width / 2
|
||||
break
|
||||
case LINE_TYPE.WALLLINE.WALL:
|
||||
offset = 0
|
||||
break
|
||||
default:
|
||||
break
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user