+
+
+
+
+ {!autoLoginParam && passwordReset === 1 && (
+ <>
+
+
+ ※
+ {getMessage('login.guide.text')}
+
+ {getMessage('login.guide.sub1')} {getMessage('login.guide.join.btn')}
+ {getMessage('login.guide.sub2')}
+
+ >
+ )}
+ {!autoLoginParam && passwordReset === 2 && (
+ <>
+
+
+ {getMessage('login.init_password.title')}
+ {getMessage('login.init_password.sub_title')}
{
- setUserId(e.target.value)
+ setCheckId(e.target.value)
}}
onFocus={() => setIdFocus(true)}
onBlur={() => setIdFocus(false)}
@@ -177,146 +284,58 @@ export default function Login() {
-
+
{
- setPasswordVisible(passwordVisible)
+ setCheckEmail(e.target.value)
}}
+ placeholder={getMessage('login.init_password.email.placeholder')}
onFocus={() => setSecFocus(true)}
onBlur={() => setSecFocus(false)}
/>
-
-
{
- setChkLoginId(e.target.checked)
+
+
-
-
-
-
-
-
-
-
- ※
- {getMessage('login.guide.text')}
-
- {getMessage('login.guide.sub1')} {getMessage('login.guide.join.btn')}
- {getMessage('login.guide.sub2')}
-
- >
- )}
- {!autoLoginParam && passwordReset === 2 && (
- <>
-
-
- {getMessage('login.init_password.title')}
- {getMessage('login.init_password.sub_title')}
-
-
- {
- setCheckId(e.target.value)
- }}
- onFocus={() => setIdFocus(true)}
- onBlur={() => setIdFocus(false)}
- />
- {
- setCheckId('')
- }}
- >
-
-
- {
- setCheckEmail(e.target.value)
- }}
- placeholder={getMessage('login.init_password.email.placeholder')}
- onFocus={() => setSecFocus(true)}
- onBlur={() => setSecFocus(false)}
- />
- {
- setCheckEmail('')
- }}
- >
-
-
- {
- setPasswordReset(1)
- setCheckEmail('')
- setCheckId('')
- }}
- >
- {getMessage('login.init_password.btn.back')}
-
-
- {getMessage('login.init_password.btn')}
-
-
-
-
- >
- )}
- {autoLoginParam &&
}
+ >
+ )}
+ {autoLoginParam &&
}
+
+
COPYRIGHT©2024 Hanwha Japan All Rights Reserved.
-
COPYRIGHT©2024 Hanwha Japan All Rights Reserved.
-
+ >
)
}
diff --git a/src/hooks/common/useRoof.js b/src/hooks/common/useRoof.js
index 0b5e5a6b..14407aa9 100644
--- a/src/hooks/common/useRoof.js
+++ b/src/hooks/common/useRoof.js
@@ -16,7 +16,9 @@ export function useRoof() {
.filter((polygon) => polygon.name === 'roof')
.forEach((polygon) => {
if (allocDisplay) {
- setSurfaceShapePattern(polygon, roofDisplay.column)
+ if (polygon.roofMaterial) {
+ setSurfaceShapePattern(polygon, roofDisplay.column, false, polygon.roofMaterial, true)
+ }
} else {
polygon.set('fill', null)
}
diff --git a/src/hooks/module/useTrestle.js b/src/hooks/module/useTrestle.js
index c04bb3ce..2df04fdc 100644
--- a/src/hooks/module/useTrestle.js
+++ b/src/hooks/module/useTrestle.js
@@ -5,7 +5,7 @@ import { moduleSelectionDataState } from '@/store/selectedModuleOptions'
import { getDegreeByChon } from '@/util/canvas-util'
import { v4 as uuidv4 } from 'uuid'
import { useMasterController } from '@/hooks/common/useMasterController'
-import { basicSettingState } from '@/store/settingAtom'
+import { basicSettingState, trestleDisplaySelector } from '@/store/settingAtom'
import { useSwal } from '@/hooks/useSwal'
// 회로 및 가대설정
@@ -15,6 +15,7 @@ export const useTrestle = () => {
const { getQuotationItem } = useMasterController()
const currentAngleType = useRecoilValue(currentAngleTypeSelector)
const roofSizeSet = useRecoilValue(basicSettingState).roofSizeSet
+ const isTrestleDisplay = useRecoilValue(trestleDisplaySelector)
const { swalFire } = useSwal()
const apply = () => {
try {
@@ -135,6 +136,7 @@ export const useTrestle = () => {
selectable: false,
surfaceId: surface.id,
parentId: module.id,
+ visible: isTrestleDisplay,
})
canvas.add(eaveBar)
canvas.renderAll()
@@ -165,6 +167,7 @@ export const useTrestle = () => {
selectable: false,
surfaceId: surface.id,
parentId: module.id,
+ visible: isTrestleDisplay,
})
canvas.add(halfEaveBar)
canvas.renderAll()
@@ -193,6 +196,7 @@ export const useTrestle = () => {
strokeWidth: 4,
selectable: false,
parentId: module.id,
+ visible: isTrestleDisplay,
})
canvas.add(halfEaveBar)
canvas.renderAll()
@@ -918,7 +922,7 @@ export const useTrestle = () => {
offsetX: 0,
offsetY: 0,
},
-
+ visible: isTrestleDisplay,
parentId: module.id,
surfaceId: surface.id,
supFitQty,
@@ -952,6 +956,7 @@ export const useTrestle = () => {
},
parentId: module.id,
surfaceId: surface.id,
+ visible: isTrestleDisplay,
supFitQty,
supFitIntvlPct,
rackLen,
@@ -992,6 +997,7 @@ export const useTrestle = () => {
},
parentId: module.id,
surfaceId: surface.id,
+ visible: isTrestleDisplay,
supFitQty,
supFitIntvlPct,
rackLen: rackLength,
@@ -1022,6 +1028,7 @@ export const useTrestle = () => {
surfaceId: surface.id,
strokeWidth: 4,
selectable: false,
+ visible: isTrestleDisplay,
supFitQty,
supFitIntvlPct,
rackLen,
@@ -1062,6 +1069,7 @@ export const useTrestle = () => {
},
parentId: module.id,
surfaceId: surface.id,
+ visible: isTrestleDisplay,
supFitQty,
supFitIntvlPct,
rackLen: rackLength,
@@ -1090,6 +1098,7 @@ export const useTrestle = () => {
},
parentId: module.id,
surfaceId: surface.id,
+ visible: isTrestleDisplay,
strokeWidth: 4,
selectable: false,
supFitQty,
@@ -1130,6 +1139,7 @@ export const useTrestle = () => {
},
parentId: module.id,
surfaceId: surface.id,
+ visible: isTrestleDisplay,
supFitQty,
supFitIntvlPct,
rackLen,
@@ -1158,6 +1168,7 @@ export const useTrestle = () => {
},
parentId: module.id,
surfaceId: surface.id,
+ visible: isTrestleDisplay,
strokeWidth: 4,
selectable: false,
supFitQty,
@@ -1209,6 +1220,7 @@ export const useTrestle = () => {
fill: 'green',
name: 'bracket',
parentId: rack.parentId,
+ visible: isTrestleDisplay,
surfaceId: surface.id,
width: bracketLength,
height: bracketLength,
@@ -1228,6 +1240,7 @@ export const useTrestle = () => {
fill: 'green',
name: 'bracket',
parentId: rack.parentId,
+ visible: isTrestleDisplay,
surfaceId: surface.id,
width: bracketLength,
height: bracketLength,
@@ -1246,6 +1259,7 @@ export const useTrestle = () => {
top: y2 - bracketLength / 3,
fill: 'green',
parentId: rack.parentId,
+ visible: isTrestleDisplay,
surfaceId: surface.id,
name: 'bracket',
width: bracketLength,
@@ -1266,6 +1280,7 @@ export const useTrestle = () => {
fill: 'green',
name: 'bracket',
parentId: rack.parentId,
+ visible: isTrestleDisplay,
surfaceId: surface.id,
width: bracketLength,
height: bracketLength,
@@ -1431,6 +1446,7 @@ export const useTrestle = () => {
width: 10,
height: 10,
selectable: false,
+ visible: isTrestleDisplay,
})
canvas.add(bracket)
canvas.renderAll()
diff --git a/src/hooks/option/useCanvasSetting.js b/src/hooks/option/useCanvasSetting.js
index 29287689..07f46740 100644
--- a/src/hooks/option/useCanvasSetting.js
+++ b/src/hooks/option/useCanvasSetting.js
@@ -727,7 +727,7 @@ export function useCanvasSetting() {
for (let i = 0; i < option1.length; i++) {
switch (option1[i].column) {
case 'allocDisplay': //할당 표시
- optionName = ['1']
+ optionName = []
break
case 'outlineDisplay': //외벽선 표시
optionName = ['outerLine', POLYGON_TYPE.WALL]
@@ -742,19 +742,20 @@ export function useCanvasSetting() {
optionName = ['commonText']
break
case 'circuitNumDisplay': //회로번호 표시
- optionName = ['7']
+ optionName = ['circuitNumber']
break
case 'flowDisplay': //흐름방향 표시
optionName = ['arrow', 'flowText']
break
case 'trestleDisplay': //가대 표시
- optionName = ['8']
+ optionName = ['rack', 'smartRack', 'bracket', 'eaveBar', 'halfEaveBar']
break
case 'imageDisplay': //이미지 표시
optionName = ['9']
break
case 'totalDisplay': //집계표 표시
- optionName = ['10']
+ // 작업할 필요 없음
+ optionName = []
break
}
// 표시 선택 상태(true/false)
diff --git a/src/util/qpolygon-utils.js b/src/util/qpolygon-utils.js
index 643c640d..edb8574c 100644
--- a/src/util/qpolygon-utils.js
+++ b/src/util/qpolygon-utils.js
@@ -235,6 +235,7 @@ export default function offsetPolygon(vertices, offset) {
const arcSegments = 0
const originPolygon = new QPolygon(vertices, { fontSize: 0 })
+ originPolygon.setViewLengthText(false)
if (offset > 0) {
let result = createMarginPolygon(polygon, offset, arcSegments).vertices