Merge branch 'main' into feature/test
This commit is contained in:
commit
0be6deabec
@ -282,14 +282,14 @@ export default function Roof2() {
|
|||||||
<Button
|
<Button
|
||||||
className="m-1 p-2"
|
className="m-1 p-2"
|
||||||
color={`${mode === Mode.TEMPLATE ? 'primary' : 'default'}`}
|
color={`${mode === Mode.TEMPLATE ? 'primary' : 'default'}`}
|
||||||
onClick={() => {}}
|
onClick={() => changeMode(canvas, Mode.PATTERNA)}
|
||||||
>
|
>
|
||||||
템플릿(A 패턴)
|
템플릿(A 패턴)
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
className="m-1 p-2"
|
className="m-1 p-2"
|
||||||
color={`${mode === Mode.TEMPLATE ? 'primary' : 'default'}`}
|
color={`${mode === Mode.TEMPLATE ? 'primary' : 'default'}`}
|
||||||
onClick={applyTemplateB}
|
onClick={() => changeMode(canvas, Mode.PATTERNB)}
|
||||||
>
|
>
|
||||||
템플릿(B 패턴)
|
템플릿(B 패턴)
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@ -6,8 +6,6 @@ import {
|
|||||||
rearrangeArray,
|
rearrangeArray,
|
||||||
findTopTwoIndexesByDistance,
|
findTopTwoIndexesByDistance,
|
||||||
getDirection,
|
getDirection,
|
||||||
getOddEvenPoints,
|
|
||||||
findLongestDistancePair,
|
|
||||||
getCenterPoint,
|
getCenterPoint,
|
||||||
} from '@/util/canvas-util'
|
} from '@/util/canvas-util'
|
||||||
import { useRecoilState, useSetRecoilState } from 'recoil'
|
import { useRecoilState, useSetRecoilState } from 'recoil'
|
||||||
@ -23,6 +21,8 @@ export const Mode = {
|
|||||||
DRAW_LINE: 'drawLine', // 기준선 긋기모드
|
DRAW_LINE: 'drawLine', // 기준선 긋기모드
|
||||||
EDIT: 'edit',
|
EDIT: 'edit',
|
||||||
TEMPLATE: 'template',
|
TEMPLATE: 'template',
|
||||||
|
PATTERNA: 'patterna',
|
||||||
|
PATTERNB: 'patternb',
|
||||||
TEXTBOX: 'textbox',
|
TEXTBOX: 'textbox',
|
||||||
DRAW_RECT: 'drawRect',
|
DRAW_RECT: 'drawRect',
|
||||||
DEFAULT: 'default',
|
DEFAULT: 'default',
|
||||||
@ -55,6 +55,11 @@ export function useMode() {
|
|||||||
case 'template':
|
case 'template':
|
||||||
templateMode()
|
templateMode()
|
||||||
break
|
break
|
||||||
|
case 'patterna':
|
||||||
|
break
|
||||||
|
case 'patternb':
|
||||||
|
applyTemplateB()
|
||||||
|
break
|
||||||
case 'textbox':
|
case 'textbox':
|
||||||
textboxMode()
|
textboxMode()
|
||||||
break
|
break
|
||||||
@ -1095,6 +1100,5 @@ export function useMode() {
|
|||||||
zoom,
|
zoom,
|
||||||
togglePolygonLine,
|
togglePolygonLine,
|
||||||
handleOuterlinesTest2,
|
handleOuterlinesTest2,
|
||||||
applyTemplateB,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user