roof.moveFlowLine 수정, log 제거
This commit is contained in:
parent
82698a5d03
commit
0ad18e4f15
@ -102,7 +102,7 @@ export function useMovementSetting(id) {
|
|||||||
|
|
||||||
/** outerLines 속성처리*/
|
/** outerLines 속성처리*/
|
||||||
const outerLines = canvas.getObjects().filter((obj) => obj.name === 'outerLine')
|
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()
|
canvas.renderAll()
|
||||||
}, [type])
|
}, [type])
|
||||||
|
|
||||||
@ -329,7 +329,9 @@ export function useMovementSetting(id) {
|
|||||||
const roof = canvas.getObjects().find((obj) => obj.id === roofId)
|
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
|
const moveUpDown = typeRef.current === TYPE.UP_DOWN ? UP_DOWN_REF.POINTER_INPUT_REF.current.value : 0
|
||||||
roof.moveFlowLine = parseInt(moveFlowLine, 10) || 0;
|
roof.moveFlowLine = parseInt(moveFlowLine, 10) || 0;
|
||||||
roof.moveUpDown = parseInt(moveUpDown, 10) || 0;
|
roof.moveUpDown = parseInt(moveUpDown, 10) || 0;
|
||||||
|
|||||||
@ -123,7 +123,7 @@ export function useContextMenu() {
|
|||||||
}, [currentContextMenu])
|
}, [currentContextMenu])
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
console.log('currentObject', currentObject)
|
//console.log('currentObject', currentObject)
|
||||||
if (currentObject?.name) {
|
if (currentObject?.name) {
|
||||||
switch (currentObject.name) {
|
switch (currentObject.name) {
|
||||||
case 'triangleDormer':
|
case 'triangleDormer':
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user