Resolve conflict

This commit is contained in:
yoosangwook 2024-06-27 12:31:28 +09:00
parent 9ece414dc8
commit 6289bcbd0f

View File

@ -367,16 +367,11 @@ export function useMode() {
// 새로운 다각형 객체를 캔버스에 추가합니다. // 새로운 다각형 객체를 캔버스에 추가합니다.
canvas.add(polygon) canvas.add(polygon)
<<<<<<< Updated upstream
console.log(polygon.getPoints())
polygon.fillCell()
=======
// 캔버스를 다시 그립니다. // 캔버스를 다시 그립니다.
if(!otherLines) { if(!otherLines) {
polygon.fillCell()
canvas.renderAll() canvas.renderAll()
} }
>>>>>>> Stashed changes
} }
/** /**
@ -389,7 +384,6 @@ export function useMode() {
historyLines.current = [] historyLines.current = []
} }
<<<<<<< Updated upstream
const zoomIn = () => { const zoomIn = () => {
canvas?.setZoom(canvas.getZoom() + 0.1) canvas?.setZoom(canvas.getZoom() + 0.1)
setZoom(Math.round(zoom + 10)) setZoom(Math.round(zoom + 10))
@ -400,16 +394,6 @@ export function useMode() {
setZoom(Math.ceil(zoom - 10)) setZoom(Math.ceil(zoom - 10))
} }
return {
mode,
changeMode,
setCanvas,
handleClear,
zoomIn,
zoomOut,
zoom,
}
=======
const handleOuterlines = () => { const handleOuterlines = () => {
const newOuterlines = [] const newOuterlines = []
for(let i = 0; i < historyLines.current.length; i++) { for(let i = 0; i < historyLines.current.length; i++) {
@ -491,6 +475,13 @@ export function useMode() {
makePolygon(newOuterlines) makePolygon(newOuterlines)
} }
return { mode, changeMode, setCanvas, handleClear } return {
>>>>>>> Stashed changes mode,
changeMode,
setCanvas,
handleClear,
zoomIn,
zoomOut,
zoom,
}
} }