변별로 설정중 한쪽흐름일 경우 한쪽흐름의 pitch로 설정
This commit is contained in:
parent
d6b4a03293
commit
789ac9f650
@ -185,9 +185,19 @@ export function useRoofShapeSetting(id) {
|
|||||||
}
|
}
|
||||||
case 4: {
|
case 4: {
|
||||||
outerLines = canvas.getObjects().filter((obj) => obj.name === 'outerLine')
|
outerLines = canvas.getObjects().filter((obj) => obj.name === 'outerLine')
|
||||||
outerLines.forEach((line) => {
|
const pitch = outerLines.find((line) => line.attributes.type === LINE_TYPE.WALLLINE.SHED)?.attributes.pitch
|
||||||
// hideLine(line)
|
// 한쪽흐름일 경우 한쪽흐름의 pitch로 설정
|
||||||
})
|
if (pitch) {
|
||||||
|
outerLines.forEach((line) => {
|
||||||
|
if (line.attributes.type === LINE_TYPE.WALLLINE.EAVES) {
|
||||||
|
line.attributes = {
|
||||||
|
...line.attributes,
|
||||||
|
pitch: pitch,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user