경사, 각도 변경 시 양방향으로 수정되도록 수정
This commit is contained in:
parent
465ed72a4c
commit
748d7f8371
@ -15,6 +15,7 @@ import QSelectBox from '@/components/common/select/QSelectBox'
|
|||||||
import { globalLocaleStore } from '@/store/localeAtom'
|
import { globalLocaleStore } from '@/store/localeAtom'
|
||||||
|
|
||||||
import { onlyNumberInputChange } from '@/util/input-utils'
|
import { onlyNumberInputChange } from '@/util/input-utils'
|
||||||
|
import { getChonByDegree, getDegreeByChon } from '@/util/canvas-util'
|
||||||
|
|
||||||
export const ROOF_MATERIAL_LAYOUT = {
|
export const ROOF_MATERIAL_LAYOUT = {
|
||||||
PARALLEL: 'P',
|
PARALLEL: 'P',
|
||||||
@ -79,14 +80,12 @@ export default function PlacementShapeSetting({ id, pos = { x: 50, y: 180 }, pla
|
|||||||
raft: '',
|
raft: '',
|
||||||
raftAuth: 'C',
|
raftAuth: 'C',
|
||||||
raftBaseCd: 'HEI_455',
|
raftBaseCd: 'HEI_455',
|
||||||
roofAngleSet: 'slope',
|
|
||||||
roofCd: '',
|
roofCd: '',
|
||||||
roofMatlCd: 'ROOF_ID_WA_53A',
|
roofMatlCd: 'ROOF_ID_WA_53A',
|
||||||
roofMatlNm: '일본기와 A',
|
roofMatlNm: '일본기와 A',
|
||||||
roofMatlNmJp: '和瓦A',
|
roofMatlNmJp: '和瓦A',
|
||||||
roofPchAuth: null,
|
roofPchAuth: null,
|
||||||
roofPchBase: null,
|
roofPchBase: null,
|
||||||
roofSizeSet: '1',
|
|
||||||
selected: true,
|
selected: true,
|
||||||
widAuth: 'R',
|
widAuth: 'R',
|
||||||
widBase: '265.000',
|
widBase: '265.000',
|
||||||
@ -288,8 +287,8 @@ export default function PlacementShapeSetting({ id, pos = { x: 50, y: 180 }, pla
|
|||||||
value={index === 0 ? currentRoof?.pitch : currentRoof?.angle}
|
value={index === 0 ? currentRoof?.pitch : currentRoof?.angle}
|
||||||
onChange={(e) =>
|
onChange={(e) =>
|
||||||
index === 0
|
index === 0
|
||||||
? setCurrentRoof({ ...currentRoof, pitch: e.target.value })
|
? setCurrentRoof({ ...currentRoof, pitch: e.target.value, angle: getDegreeByChon(e.target.value) })
|
||||||
: setCurrentRoof({ ...currentRoof, angle: e.target.value })
|
: setCurrentRoof({ ...currentRoof, pitch: getChonByDegree(e.target.value), angle: e.target.value })
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user