text 와 planSize 및 actualSize가 안맞는 문제
This commit is contained in:
parent
5105c05080
commit
466712f993
@ -1576,7 +1576,7 @@ export const usePolygon = () => {
|
||||
})
|
||||
|
||||
roofLines.forEach((line) => {
|
||||
console.log("::::::::::",line);
|
||||
//console.log("::::::::::",line);
|
||||
roof.lines.forEach((roofLine) => {
|
||||
if (
|
||||
(isSamePoint(line.startPoint, roofLine.startPoint) && isSamePoint(line.endPoint, roofLine.endPoint)) ||
|
||||
@ -1953,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)
|
||||
})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user