log 제거
This commit is contained in:
parent
a428cc31e8
commit
990c0e7e29
@ -285,12 +285,6 @@ export function useMovementSetting(id) {
|
|||||||
const midY = Big(target.y1).plus(target.y2).div(2)
|
const midY = Big(target.y1).plus(target.y2).div(2)
|
||||||
const wall = canvas.getObjects().find((obj) => obj.id === target.attributes.wallId)
|
const wall = canvas.getObjects().find((obj) => obj.id === target.attributes.wallId)
|
||||||
|
|
||||||
wall.lines.forEach(line => {
|
|
||||||
|
|
||||||
console.log(classifyWallLine(wall, line))
|
|
||||||
|
|
||||||
})
|
|
||||||
|
|
||||||
let linePosition = classifyWallLine(wall, target).position;
|
let linePosition = classifyWallLine(wall, target).position;
|
||||||
|
|
||||||
if (target.y1 === target.y2) { //수평벽
|
if (target.y1 === target.y2) { //수평벽
|
||||||
@ -622,22 +616,22 @@ export function useMovementSetting(id) {
|
|||||||
.forEach((target) => {
|
.forEach((target) => {
|
||||||
const currentLine = target.line
|
const currentLine = target.line
|
||||||
|
|
||||||
console.log("linePosition::::::::::::::", linePosition)
|
//console.log("linePosition::::::::::::::", linePosition)
|
||||||
if (UP_DOWN_REF.DOWN_RADIO_REF.current.checked ){
|
if (UP_DOWN_REF.DOWN_RADIO_REF.current.checked ){
|
||||||
//position확인
|
//position확인
|
||||||
if(linePosition === 'bottom' || linePosition === 'right') {
|
if(linePosition === 'bottom' || linePosition === 'right') {
|
||||||
console.log("1value::::::::::::::", value.toString())
|
//console.log("1value::::::::::::::", value.toString())
|
||||||
value = value.neg()
|
value = value.neg()
|
||||||
|
|
||||||
}
|
}
|
||||||
}else {
|
}else {
|
||||||
if(linePosition === 'top' || linePosition === 'left') {
|
if(linePosition === 'top' || linePosition === 'left') {
|
||||||
console.log("1value::::::::::::::", value.toString())
|
//console.log("1value::::::::::::::", value.toString())
|
||||||
value = value.neg()
|
value = value.neg()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log("2value::::::::::::::", value.toString())
|
//console.log("2value::::::::::::::", value.toString())
|
||||||
const index = baseLines.findIndex((line) => line === currentLine)
|
const index = baseLines.findIndex((line) => line === currentLine)
|
||||||
const nextLine = baseLines[(index + 1) % baseLines.length]
|
const nextLine = baseLines[(index + 1) % baseLines.length]
|
||||||
const prevLine = baseLines[(index - 1 + baseLines.length) % baseLines.length]
|
const prevLine = baseLines[(index - 1 + baseLines.length) % baseLines.length]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user