feature/ysCha #23
@ -10,6 +10,7 @@ import { useSwal } from '@/hooks/useSwal'
|
||||
import { useContext } from 'react'
|
||||
import { QcastContext } from '@/app/QcastProvider'
|
||||
import { useCircuitTrestle } from '@/hooks/useCirCuitTrestle'
|
||||
import { useMessage } from '@/hooks/useMessage'
|
||||
|
||||
// 모듈간 같은 행, 열의 마진이 10 이하인 경우는 같은 행, 열로 간주
|
||||
const MODULE_MARGIN = 10
|
||||
@ -26,6 +27,7 @@ export const useTrestle = () => {
|
||||
|
||||
const { getSelectedPcsItemList } = useCircuitTrestle()
|
||||
const { resetCircuits } = useCircuitTrestle()
|
||||
const { getMessage } = useMessage()
|
||||
|
||||
const apply = () => {
|
||||
const notAllocationModules = canvas.getObjects().filter((obj) => obj.name === POLYGON_TYPE.MODULE && !obj.circuit)
|
||||
@ -131,9 +133,9 @@ export const useTrestle = () => {
|
||||
surface.isChidory = isChidory
|
||||
|
||||
if (plvrYn === 'N' && isChidory) {
|
||||
swalFire({ text: '치조불가공법입니다.', icon: 'error' })
|
||||
swalFire({ text: getMessage('chidory.can.not.install'), icon: 'error' })
|
||||
clear()
|
||||
throw new Error('치조불가공법입니다.')
|
||||
throw new Error(getMessage('chidory.can.not.install'))
|
||||
}
|
||||
|
||||
surface.set({ isChidory: isChidory })
|
||||
|
||||
@ -128,7 +128,7 @@
|
||||
"modal.module.basic.setting.pitch.module.row.margin": "上下間隔",
|
||||
"modal.module.basic.setting.pitch.module.column.amount": "列数",
|
||||
"modal.module.basic.setting.pitch.module.column.margin": "左右間隔",
|
||||
"modal.module.basic.setting.prev": "移転",
|
||||
"modal.module.basic.setting.prev": "前に戻る",
|
||||
"modal.module.basic.setting.passivity.placement": "手動配置",
|
||||
"modal.module.basic.setting.auto.placement": "設定値に自動配置",
|
||||
"plan.menu.module.circuit.setting.circuit.trestle.setting": "回路設定",
|
||||
@ -1040,5 +1040,6 @@
|
||||
"modal.placement.initial.setting.plan.drawing.only.number": "(※数字は[半角]入力のみ可能です。)",
|
||||
"wall.line.not.found": "外壁がありません",
|
||||
"roof.line.not.found": "屋根形状がありません",
|
||||
"roof.material.can.not.delete": "割り当てられた配置面があります。"
|
||||
"roof.material.can.not.delete": "割り当てられた配置面があります。",
|
||||
"chidory.can.not.install" : "千鳥配置できない工法です。"
|
||||
}
|
||||
|
||||
@ -1040,5 +1040,6 @@
|
||||
"modal.placement.initial.setting.plan.drawing.only.number": "(※ 숫자는 [반각]입력만 가능합니다.)",
|
||||
"wall.line.not.found": "외벽선이 없습니다.",
|
||||
"roof.line.not.found": "지붕형상이 없습니다.",
|
||||
"roof.material.can.not.delete": "할당된 배치면이 있습니다."
|
||||
"roof.material.can.not.delete": "할당된 배치면이 있습니다.",
|
||||
"chidory.can.not.install" : "치조 불가 공법입니다."
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user