diff --git a/src/util/skeleton-utils.js b/src/util/skeleton-utils.js index 80763cfa..cfd498d8 100644 --- a/src/util/skeleton-utils.js +++ b/src/util/skeleton-utils.js @@ -958,7 +958,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.y1; + newPStart.y = wallLine.y1; } } @@ -991,7 +991,8 @@ 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 } } @@ -1075,7 +1076,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; } } @@ -1107,7 +1108,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; } } @@ -1215,7 +1216,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; } } @@ -1246,7 +1247,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; } } @@ -1325,7 +1326,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; } } @@ -1357,7 +1358,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; } }