dev #402
@ -102,7 +102,7 @@ export function useMovementSetting(id) {
|
||||
|
||||
/** outerLines 속성처리*/
|
||||
const outerLines = canvas.getObjects().filter((obj) => obj.name === 'outerLine')
|
||||
outerLines.forEach((line) => line.set({ visible: false }))
|
||||
outerLines.forEach((line) => line.set({ visible: true }))
|
||||
canvas.renderAll()
|
||||
}, [type])
|
||||
|
||||
@ -329,7 +329,9 @@ export function useMovementSetting(id) {
|
||||
const roof = canvas.getObjects().find((obj) => obj.id === roofId)
|
||||
|
||||
// 현이동, 동이동 추가
|
||||
const moveFlowLine = typeRef.current === TYPE.FLOW_LINE ? FLOW_LINE_REF.POINTER_INPUT_REF.current.value : 0
|
||||
let pointValue = FLOW_LINE_REF.POINTER_INPUT_REF.current.value;
|
||||
let filledValue = FLOW_LINE_REF.FILLED_INPUT_REF.current.value;
|
||||
const moveFlowLine = typeRef.current === TYPE.FLOW_LINE ? (pointValue===''?filledValue:pointValue) : 0
|
||||
const moveUpDown = typeRef.current === TYPE.UP_DOWN ? UP_DOWN_REF.POINTER_INPUT_REF.current.value : 0
|
||||
roof.moveFlowLine = parseInt(moveFlowLine, 10) || 0;
|
||||
roof.moveUpDown = parseInt(moveUpDown, 10) || 0;
|
||||
|
||||
@ -123,7 +123,7 @@ export function useContextMenu() {
|
||||
}, [currentContextMenu])
|
||||
|
||||
useEffect(() => {
|
||||
console.log('currentObject', currentObject)
|
||||
//console.log('currentObject', currentObject)
|
||||
if (currentObject?.name) {
|
||||
switch (currentObject.name) {
|
||||
case 'triangleDormer':
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user