dev #609

Merged
ysCha merged 5 commits from dev into prd-deploy 2026-01-27 16:50:35 +09:00
Showing only changes of commit 2e4bcb98cd - Show all commits

View File

@ -1576,6 +1576,7 @@ export const usePolygon = () => {
}) })
roofLines.forEach((line) => { roofLines.forEach((line) => {
//console.log("::::::::::",line);
roof.lines.forEach((roofLine) => { roof.lines.forEach((roofLine) => {
if ( if (
(isSamePoint(line.startPoint, roofLine.startPoint) && isSamePoint(line.endPoint, roofLine.endPoint)) || (isSamePoint(line.startPoint, roofLine.startPoint) && isSamePoint(line.endPoint, roofLine.endPoint)) ||
@ -1952,7 +1953,16 @@ export const usePolygon = () => {
} }
} }
polygon.lines.forEach((line) => { polygon.lines.forEach((line, index) => {
//text 와 planSize 및 actualSize가 안맞는 문제
const nextText = polygon?.texts?.[index]?.text
const nextPlaneSize = Number(nextText)
if (nextText != null && nextText !== '' && Number.isFinite(nextPlaneSize) ) {
if(line.attributes.actualSize !== nextPlaneSize && line.attributes.planeSize !== nextPlaneSize) {
line.attributes.planeSize = nextPlaneSize
}
}
setActualSize(line, polygon.direction, +polygon.roofMaterial?.pitch) setActualSize(line, polygon.direction, +polygon.roofMaterial?.pitch)
}) })