남, 북 이상 수정

This commit is contained in:
hyojun.choi 2024-10-04 16:52:29 +09:00
parent 16686de3d0
commit 63d6103858

View File

@ -194,8 +194,8 @@ export function useRoofShapeSetting() {
outerLines = canvas.getObjects().filter((obj) => obj.name === 'outerLine')
outerLines.forEach((line) => {
setWestAndEastRoof(line)
if (line.direction === 'left') {
setSouthAndNorthRoof(line)
if (line.direction === 'right') {
line.attributes = {
offset: eavesOffset / 10,
pitch: pitch,
@ -203,14 +203,13 @@ export function useRoofShapeSetting() {
}
}
if (line.direction === 'right') {
if (line.direction === 'left') {
line.attributes = {
offset: shedWidth / 10,
pitch: pitch,
type: LINE_TYPE.WALLLINE.SHED,
}
}
hideLine(line)
})
break
@ -220,8 +219,9 @@ export function useRoofShapeSetting() {
outerLines = canvas.getObjects().filter((obj) => obj.name === 'outerLine')
outerLines.forEach((line) => {
setWestAndEastRoof(line)
if (line.direction === 'right') {
setSouthAndNorthRoof(line)
if (line.direction === 'left') {
line.attributes = {
offset: eavesOffset / 10,
pitch: pitch,
@ -229,7 +229,7 @@ export function useRoofShapeSetting() {
}
}
if (line.direction === 'left') {
if (line.direction === 'right') {
line.attributes = {
offset: shedWidth / 10,
pitch: pitch,