Compare commits
No commits in common. "7878e88d4b1d7af1fede594fe563c714b7ec8d3a" and "e833cd7fbc6a6c60249e516fb328e00018e08436" have entirely different histories.
7878e88d4b
...
e833cd7fbc
@ -117,6 +117,7 @@ export function useContextMenu() {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
currentMenuSetting()
|
currentMenuSetting()
|
||||||
}, [gridColor, currentMenu])
|
}, [gridColor, currentMenu])
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (currentContextMenu?.component) addPopup(popupId, 1, currentContextMenu?.component)
|
if (currentContextMenu?.component) addPopup(popupId, 1, currentContextMenu?.component)
|
||||||
}, [currentContextMenu])
|
}, [currentContextMenu])
|
||||||
@ -157,39 +158,6 @@ export function useContextMenu() {
|
|||||||
])
|
])
|
||||||
}
|
}
|
||||||
break
|
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':
|
case 'roof':
|
||||||
if (selectedMenu === 'surface') {
|
if (selectedMenu === 'surface') {
|
||||||
setContextMenu([
|
setContextMenu([
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user