Compare commits
2 Commits
f08b3cef5b
...
5a64ff945a
| Author | SHA1 | Date | |
|---|---|---|---|
| 5a64ff945a | |||
| 022278a248 |
@ -1955,7 +1955,7 @@ export const usePolygon = () => {
|
|||||||
forceUpdate = true
|
forceUpdate = true
|
||||||
}
|
}
|
||||||
|
|
||||||
if (polygon.from !== 'surface') {
|
/*if (polygon.from !== 'surface') {
|
||||||
// createdRoofs들의 모든 lines를 확인해서 length값이 1이하인 차이가 있으면 통일 시킨다.
|
// createdRoofs들의 모든 lines를 확인해서 length값이 1이하인 차이가 있으면 통일 시킨다.
|
||||||
const allRoofs = canvas.getObjects().filter((obj) => obj.name === POLYGON_TYPE.ROOF)
|
const allRoofs = canvas.getObjects().filter((obj) => obj.name === POLYGON_TYPE.ROOF)
|
||||||
const allRoofLines = allRoofs.flatMap((roof) => roof.lines)
|
const allRoofLines = allRoofs.flatMap((roof) => roof.lines)
|
||||||
@ -1978,7 +1978,7 @@ export const usePolygon = () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
|
|
||||||
polygon.lines.forEach((line, index) => {
|
polygon.lines.forEach((line, index) => {
|
||||||
if (line.attributes.isCalculated && !forceUpdate) {
|
if (line.attributes.isCalculated && !forceUpdate) {
|
||||||
|
|||||||
@ -470,7 +470,9 @@ export const skeletonBuilder = (roofId, canvas, textMode) => {
|
|||||||
|
|
||||||
//마루이동
|
//마루이동
|
||||||
if (moveFlowLine !== 0 || moveUpDown !== 0) {
|
if (moveFlowLine !== 0 || moveUpDown !== 0) {
|
||||||
roofLineContactPoints = movingLineFromSkeleton(roofId, canvas)
|
const movedPoints = movingLineFromSkeleton(roofId, canvas)
|
||||||
|
roofLineContactPoints = movedPoints
|
||||||
|
changRoofLinePoints = movedPoints
|
||||||
}
|
}
|
||||||
|
|
||||||
// changRoofLinePoints 좌표를 roof.skeletonPoints에 저장 (원본 roof.points는 유지)
|
// changRoofLinePoints 좌표를 roof.skeletonPoints에 저장 (원본 roof.points는 유지)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user