확장2
This commit is contained in:
parent
cbf7e9119c
commit
aaa38048a4
@ -632,7 +632,7 @@ const createInnerLinesFromSkeleton = (roofId, canvas, skeleton, textMode) => {
|
|||||||
canvas.renderAll();
|
canvas.renderAll();
|
||||||
});
|
});
|
||||||
|
|
||||||
if(roof.moveUpDown??0 > 0) {
|
if((roof.moveUpDown??0 > 0) ) {
|
||||||
|
|
||||||
// 같은 라인이 없으므로 새 다각형 라인 생성
|
// 같은 라인이 없으므로 새 다각형 라인 생성
|
||||||
//라인 편집
|
//라인 편집
|
||||||
@ -848,7 +848,7 @@ if(roof.moveUpDown??0 > 0) {
|
|||||||
|
|
||||||
|
|
||||||
//두 포인트가 변경된 라인인
|
//두 포인트가 변경된 라인인
|
||||||
if (fullyMoved) {
|
if (fullyMoved && (roof.moveDirect === 'in')) {
|
||||||
//반시계방향향
|
//반시계방향향
|
||||||
console.log("moveFully:::::::::::::", wallBaseLine, newPStart, newPEnd)
|
console.log("moveFully:::::::::::::", wallBaseLine, newPStart, newPEnd)
|
||||||
if (getOrientation(roofLine) === 'vertical') {
|
if (getOrientation(roofLine) === 'vertical') {
|
||||||
@ -943,7 +943,7 @@ if(roof.moveUpDown??0 > 0) {
|
|||||||
getAddLine(newPStart, newPEnd, 'red')
|
getAddLine(newPStart, newPEnd, 'red')
|
||||||
|
|
||||||
|
|
||||||
} else if (movedStart) { //end 변경경
|
} else if (movedStart && (roof.moveDirect === 'in')) { //end 변경경
|
||||||
|
|
||||||
|
|
||||||
if (getOrientation(roofLine) === 'vertical') { //green 수직
|
if (getOrientation(roofLine) === 'vertical') { //green 수직
|
||||||
@ -1053,7 +1053,7 @@ if(roof.moveUpDown??0 > 0) {
|
|||||||
//movedLines.push({ index, newPStart, newPEnd })
|
//movedLines.push({ index, newPStart, newPEnd })
|
||||||
console.log("moveStart:::::::::::::", origin, newPStart, newPEnd)
|
console.log("moveStart:::::::::::::", origin, newPStart, newPEnd)
|
||||||
|
|
||||||
} else if (movedEnd) { //start변경
|
} else if (movedEnd && (roof.moveDirect === 'in')) { //start변경
|
||||||
|
|
||||||
//반시계방향 오렌지
|
//반시계방향 오렌지
|
||||||
|
|
||||||
@ -1181,10 +1181,8 @@ if(roof.moveUpDown??0 > 0) {
|
|||||||
// console.log("updateLines:::::", updateLines)
|
// console.log("updateLines:::::", updateLines)
|
||||||
|
|
||||||
}
|
}
|
||||||
// --- 사용 예시 ---
|
|
||||||
// const polygons = findConnectedLines(movedLines, innerLines, canvas, roofId, roof);
|
|
||||||
// console.log("polygon", polygons);
|
|
||||||
// canvas.renderAll
|
|
||||||
if (findPoints.length > 0) {
|
if (findPoints.length > 0) {
|
||||||
// 모든 점에 대해 라인 업데이트를 누적
|
// 모든 점에 대해 라인 업데이트를 누적
|
||||||
return findPoints.reduce((lines, point) => {
|
return findPoints.reduce((lines, point) => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user