오브젝트 오프셋 작업
This commit is contained in:
parent
1abfac3027
commit
e71729be41
@ -1321,6 +1321,10 @@ export function useObjectBatch({ isHidden, setIsHidden }) {
|
|||||||
|
|
||||||
// target.setCoords()
|
// target.setCoords()
|
||||||
canvas.renderAll()
|
canvas.renderAll()
|
||||||
|
|
||||||
|
const currentPoints = rectToPolygon(target)
|
||||||
|
target.points = currentPoints
|
||||||
|
|
||||||
if (target.type === 'group') reGroupObject(target)
|
if (target.type === 'group') reGroupObject(target)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1601,6 +1605,9 @@ export function useObjectBatch({ isHidden, setIsHidden }) {
|
|||||||
dormer.set({ groupPoints: currentPoints })
|
dormer.set({ groupPoints: currentPoints })
|
||||||
const newDormer = reGroupObject(dormer)
|
const newDormer = reGroupObject(dormer)
|
||||||
canvas?.setActiveObject(newDormer)
|
canvas?.setActiveObject(newDormer)
|
||||||
|
} else {
|
||||||
|
const currentPoints = rectToPolygon(dormer)
|
||||||
|
dormer.points = currentPoints
|
||||||
}
|
}
|
||||||
canvas.renderAll()
|
canvas.renderAll()
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user