Compare commits
No commits in common. "de005aefe792d11c7f4c136ad086da31479e8c98" and "67ebf0b514f4f4cf4e4a8b911934d8738293d845" have entirely different histories.
de005aefe7
...
67ebf0b514
@ -2591,9 +2591,6 @@ 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
|
||||
}
|
||||
@ -2939,9 +2936,6 @@ 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
|
||||
}
|
||||
@ -3402,9 +3396,6 @@ 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
|
||||
}
|
||||
@ -3524,7 +3515,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.type === LINE_TYPE.WALLLINE.WALL ? 0 : oppLine.attributes.offset
|
||||
const oOffset = oppLine.attributes.offset
|
||||
const ridgeVector = { x: Math.sign(clamp01(cMidX - oMidX)), y: Math.sign(clamp01(cMidY - oMidY)) }
|
||||
const ridgePoint = [
|
||||
cMidX + ridgeVector.x * cOffset,
|
||||
@ -3540,9 +3531,6 @@ 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