eaveHelpLines 전체삭제

This commit is contained in:
ysCha 2025-12-24 13:49:42 +09:00
parent 299d026f63
commit 8c3f81870a
2 changed files with 9 additions and 3 deletions

View File

@ -355,6 +355,12 @@ export function useContextMenu() {
canvas.remove(line)
})
//동이동현이동
const eaveHelpLines = canvas.getObjects().filter((obj) => obj.name === 'eaveHelpLine' && obj.parentId === currentObject.attributes.roofId)
eaveHelpLines.forEach((line) => {
canvas.remove(line)
})
canvas.renderAll()
},
},

View File

@ -546,7 +546,7 @@ const createInnerLinesFromSkeleton = (roofId, canvas, skeleton, textMode) => {
//visible: (!sktLine.attributes.isOuterEdge),
});
//coordinateText(skeletonLine)
coordinateText(skeletonLine)
canvas.add(skeletonLine);
skeletonLine.bringToFront();
existingLines.add(lineKey); // 추가된 라인을 추적
@ -679,7 +679,7 @@ const createInnerLinesFromSkeleton = (roofId, canvas, skeleton, textMode) => {
console.log('', sortRoofLines, sortWallLines, sortWallBaseLines);
(sortWallLines.length === sortWallBaseLines.length > 3) &&
(sortWallLines.length === sortWallBaseLines.length && sortWallBaseLines.length > 3) &&
sortWallLines.forEach((wallLine, index) => {
const roofLine = sortRoofLines[index]
@ -715,7 +715,7 @@ const createInnerLinesFromSkeleton = (roofId, canvas, skeleton, textMode) => {
const line = new QLine([p1.x, p1.y, p2.x, p2.y], {
parentId: roof.id,
fontSize: roof.fontSize,
stroke: 'black',
stroke: stroke,
strokeWidth: 4,
name: 'eaveHelpLine',
lineName: 'eaveHelpLine',