Compare commits
No commits in common. "ea179e3ab53acfeeead34a9fc4135d8312186aa3" and "6dc12f33147a8fbbf63607d009365220d2dd360e" have entirely different histories.
ea179e3ab5
...
6dc12f3314
@ -198,17 +198,9 @@ export function useMovementSetting(id) {
|
|||||||
if (type === TYPE.FLOW_LINE) {
|
if (type === TYPE.FLOW_LINE) {
|
||||||
FLOW_LINE_REF.POINTER_INPUT_REF.current.value = ''
|
FLOW_LINE_REF.POINTER_INPUT_REF.current.value = ''
|
||||||
FLOW_LINE_REF.FILLED_INPUT_REF.current.value = ''
|
FLOW_LINE_REF.FILLED_INPUT_REF.current.value = ''
|
||||||
|
|
||||||
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.DOWN_LEFT_RADIO_REF.current.checked = true
|
||||||
FLOW_LINE_REF.UP_RIGHT_RADIO_REF.current.checked = false
|
FLOW_LINE_REF.UP_RIGHT_RADIO_REF.current.checked = false
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
if (type === TYPE.UP_DOWN) {
|
if (type === TYPE.UP_DOWN) {
|
||||||
UP_DOWN_REF.POINTER_INPUT_REF.current.value = ''
|
UP_DOWN_REF.POINTER_INPUT_REF.current.value = ''
|
||||||
UP_DOWN_REF.FILLED_INPUT_REF.current.value = ''
|
UP_DOWN_REF.FILLED_INPUT_REF.current.value = ''
|
||||||
@ -356,7 +348,7 @@ export function useMovementSetting(id) {
|
|||||||
isGableRoof = false
|
isGableRoof = false
|
||||||
}
|
}
|
||||||
const lineVector =
|
const lineVector =
|
||||||
Math.abs(target.y1 - target.y2) < 0.2
|
target.y1 === target.y2
|
||||||
? FLOW_LINE_REF.UP_RIGHT_RADIO_REF.current.checked
|
? FLOW_LINE_REF.UP_RIGHT_RADIO_REF.current.checked
|
||||||
? 'up'
|
? 'up'
|
||||||
: 'down'
|
: 'down'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user