wallbaseLine이 업어지는 경우

This commit is contained in:
ysCha 2025-12-24 11:41:09 +09:00
parent f9359c6445
commit 299d026f63

View File

@ -546,7 +546,7 @@ const createInnerLinesFromSkeleton = (roofId, canvas, skeleton, textMode) => {
//visible: (!sktLine.attributes.isOuterEdge), //visible: (!sktLine.attributes.isOuterEdge),
}); });
coordinateText(skeletonLine) //coordinateText(skeletonLine)
canvas.add(skeletonLine); canvas.add(skeletonLine);
skeletonLine.bringToFront(); skeletonLine.bringToFront();
existingLines.add(lineKey); // 추가된 라인을 추적 existingLines.add(lineKey); // 추가된 라인을 추적
@ -677,8 +677,9 @@ const createInnerLinesFromSkeleton = (roofId, canvas, skeleton, textMode) => {
// 조건에 맞는 라인들만 필터링 // 조건에 맞는 라인들만 필터링
const validWallLines = [...wallLines].sort((a, b) => a.idx - b.idx).filter((wallLine, index) => wallLine.idx - 1 === index) const validWallLines = [...wallLines].sort((a, b) => a.idx - b.idx).filter((wallLine, index) => wallLine.idx - 1 === index)
console.log('', sortRoofLines, sortWallLines, sortWallBaseLines) console.log('', sortRoofLines, sortWallLines, sortWallBaseLines);
sortWallLines.length > 3 &&
(sortWallLines.length === sortWallBaseLines.length > 3) &&
sortWallLines.forEach((wallLine, index) => { sortWallLines.forEach((wallLine, index) => {
const roofLine = sortRoofLines[index] const roofLine = sortRoofLines[index]
@ -714,7 +715,7 @@ const createInnerLinesFromSkeleton = (roofId, canvas, skeleton, textMode) => {
const line = new QLine([p1.x, p1.y, p2.x, p2.y], { const line = new QLine([p1.x, p1.y, p2.x, p2.y], {
parentId: roof.id, parentId: roof.id,
fontSize: roof.fontSize, fontSize: roof.fontSize,
stroke: stroke, stroke: 'black',
strokeWidth: 4, strokeWidth: 4,
name: 'eaveHelpLine', name: 'eaveHelpLine',
lineName: 'eaveHelpLine', lineName: 'eaveHelpLine',