Merge pull request 'outerLine 선택 시 메뉴 변경' (#629) from dev into dev-deploy
Reviewed-on: #629
This commit is contained in:
commit
7878e88d4b
@ -117,7 +117,6 @@ export function useContextMenu() {
|
||||
useEffect(() => {
|
||||
currentMenuSetting()
|
||||
}, [gridColor, currentMenu])
|
||||
|
||||
useEffect(() => {
|
||||
if (currentContextMenu?.component) addPopup(popupId, 1, currentContextMenu?.component)
|
||||
}, [currentContextMenu])
|
||||
@ -158,6 +157,39 @@ export function useContextMenu() {
|
||||
])
|
||||
}
|
||||
break
|
||||
|
||||
case 'outerLine': {
|
||||
setContextMenu([
|
||||
[
|
||||
{
|
||||
id: 'roofMaterialPlacement',
|
||||
name: getMessage('contextmenu.roof.material.placement'),
|
||||
component: <RoofAllocationSetting id={popupId} />,
|
||||
},
|
||||
|
||||
{
|
||||
id: 'roofMaterialRemoveAll',
|
||||
name: getMessage('contextmenu.roof.material.remove.all'),
|
||||
fn: () => removeAllRoofMaterial(),
|
||||
},
|
||||
{
|
||||
id: 'selectMove',
|
||||
name: getMessage('contextmenu.select.move'),
|
||||
fn: (currentMousePos) => {
|
||||
moveRoofMaterial(currentMousePos)
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'wallLineRemove',
|
||||
name: getMessage('contextmenu.wallline.remove'),
|
||||
fn: (currentMousePos) => {
|
||||
removeOuterLines(currentMousePos)
|
||||
},
|
||||
},
|
||||
],
|
||||
])
|
||||
break
|
||||
}
|
||||
case 'roof':
|
||||
if (selectedMenu === 'surface') {
|
||||
setContextMenu([
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user