diff --git a/src/util/skeleton-utils.js b/src/util/skeleton-utils.js index ab72b12b..7257ae6b 100644 --- a/src/util/skeleton-utils.js +++ b/src/util/skeleton-utils.js @@ -958,11 +958,12 @@ const createInnerLinesFromSkeleton = (roofId, canvas, skeleton, textMode) => { if(inLine){ getAddLine({ y: newPStart.y, x: newPStart.x }, { y: inLine.y2, x: inLine.x2 }, 'purple') }else { - newPStart.y = roofLine.y1; + newPStart.y = wallLine.y1; } } } + if(isStartEnd.end){ const moveDist = Big(wallLine.x1).minus(wallBaseLine.x1).abs().toNumber() const aStartY = Big(roofLine.y2).plus(moveDist).toNumber() @@ -989,7 +990,7 @@ const createInnerLinesFromSkeleton = (roofId, canvas, skeleton, textMode) => { if(inLine){ getAddLine({ y: newPEnd.y, x: newPEnd.x }, { y: inLine.y2, x: inLine.x2 }, 'purple') }else { - newPEnd.y = roofLine.y2; + newPEnd.y = wallLine.y2 } } @@ -1073,7 +1074,7 @@ const createInnerLinesFromSkeleton = (roofId, canvas, skeleton, textMode) => { if(inLine){ getAddLine({ y: newPStart.y, x: newPStart.x }, { y: inLine.y2, x: inLine.x2 }, 'purple') }else { - newPStart.y = roofLine.y2; + newPStart.y = wallLine.y1; } } @@ -1105,7 +1106,7 @@ const createInnerLinesFromSkeleton = (roofId, canvas, skeleton, textMode) => { if(inLine){ getAddLine({ y: newPEnd.y, x: newPEnd.x }, { y: inLine.y2, x: inLine.x2 }, 'purple') }else { - newPEnd.y = roofLine.y2; + newPEnd.y = wallLine.y2; } } @@ -1213,7 +1214,7 @@ const createInnerLinesFromSkeleton = (roofId, canvas, skeleton, textMode) => { if(inLine){ getAddLine({ y: newPStart.y, x: newPStart.x }, { y: inLine.y2, x: inLine.x2 }, 'purple') }else { - newPStart.x = roofLine.x1; + newPStart.x = wallLine.x1; } } @@ -1244,7 +1245,7 @@ const createInnerLinesFromSkeleton = (roofId, canvas, skeleton, textMode) => { if(inLine){ getAddLine({ y: newPEnd.y, x: newPEnd.x }, { y: inLine.y2, x: inLine.x2 }, 'purple') }else { - newPEnd.x = roofLine.x2; + newPEnd.x = wallLine.x2; } } @@ -1323,7 +1324,7 @@ const createInnerLinesFromSkeleton = (roofId, canvas, skeleton, textMode) => { if(inLine){ getAddLine({ y: newPStart.y, x: newPStart.x }, { y: inLine.y2, x: inLine.x2 }, 'purple') }else{ - newPStart.x = roofLine.x1; + newPStart.x = wallLine.x1; } } @@ -1355,7 +1356,7 @@ const createInnerLinesFromSkeleton = (roofId, canvas, skeleton, textMode) => { if(inLine){ getAddLine({ y: newPEnd.y, x: newPEnd.x }, { y: inLine.y2, x: inLine.x2 }, 'purple') }else{ - newPEnd.x = roofLine.x2; + newPEnd.x = wallLine.x2; } }