동,현이동 동일라인체크 변경, 상우선택시 초기화 문제 #399
@ -198,8 +198,16 @@ export function useMovementSetting(id) {
|
||||
if (type === TYPE.FLOW_LINE) {
|
||||
FLOW_LINE_REF.POINTER_INPUT_REF.current.value = ''
|
||||
FLOW_LINE_REF.FILLED_INPUT_REF.current.value = ''
|
||||
FLOW_LINE_REF.DOWN_LEFT_RADIO_REF.current.checked = true
|
||||
FLOW_LINE_REF.UP_RIGHT_RADIO_REF.current.checked = false
|
||||
|
||||
if (FLOW_LINE_REF.UP_RIGHT_RADIO_REF.current.checked || FLOW_LINE_REF.DOWN_LEFT_RADIO_REF.current.checked) {
|
||||
// If one is checked, uncheck the other
|
||||
FLOW_LINE_REF.UP_RIGHT_RADIO_REF.current.checked = !FLOW_LINE_REF.DOWN_LEFT_RADIO_REF.current.checked;
|
||||
FLOW_LINE_REF.DOWN_LEFT_RADIO_REF.current.checked = !FLOW_LINE_REF.UP_RIGHT_RADIO_REF.current.checked;
|
||||
}else{
|
||||
FLOW_LINE_REF.DOWN_LEFT_RADIO_REF.current.checked = true
|
||||
FLOW_LINE_REF.UP_RIGHT_RADIO_REF.current.checked = false
|
||||
}
|
||||
|
||||
}
|
||||
if (type === TYPE.UP_DOWN) {
|
||||
UP_DOWN_REF.POINTER_INPUT_REF.current.value = ''
|
||||
@ -348,7 +356,7 @@ export function useMovementSetting(id) {
|
||||
isGableRoof = false
|
||||
}
|
||||
const lineVector =
|
||||
target.y1 === target.y2
|
||||
Math.abs(target.y1 - target.y2) < 0.2
|
||||
? FLOW_LINE_REF.UP_RIGHT_RADIO_REF.current.checked
|
||||
? 'up'
|
||||
: 'down'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user