eaveHelpLines 전체삭제
This commit is contained in:
parent
299d026f63
commit
8c3f81870a
@ -355,6 +355,12 @@ export function useContextMenu() {
|
|||||||
canvas.remove(line)
|
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()
|
canvas.renderAll()
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@ -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); // 추가된 라인을 추적
|
||||||
@ -679,7 +679,7 @@ const createInnerLinesFromSkeleton = (roofId, canvas, skeleton, textMode) => {
|
|||||||
|
|
||||||
console.log('', sortRoofLines, sortWallLines, sortWallBaseLines);
|
console.log('', sortRoofLines, sortWallLines, sortWallBaseLines);
|
||||||
|
|
||||||
(sortWallLines.length === sortWallBaseLines.length > 3) &&
|
(sortWallLines.length === sortWallBaseLines.length && sortWallBaseLines.length > 3) &&
|
||||||
sortWallLines.forEach((wallLine, index) => {
|
sortWallLines.forEach((wallLine, index) => {
|
||||||
|
|
||||||
const roofLine = sortRoofLines[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], {
|
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: 'black',
|
stroke: stroke,
|
||||||
strokeWidth: 4,
|
strokeWidth: 4,
|
||||||
name: 'eaveHelpLine',
|
name: 'eaveHelpLine',
|
||||||
lineName: 'eaveHelpLine',
|
lineName: 'eaveHelpLine',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user