text 와 planSize 및 actualSize가 안맞는 문제
This commit is contained in:
parent
fdaefd79e9
commit
2e4bcb98cd
@ -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)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user