diff --git a/src/hooks/useContextMenu.js b/src/hooks/useContextMenu.js
index 1f6a33b0..df22287c 100644
--- a/src/hooks/useContextMenu.js
+++ b/src/hooks/useContextMenu.js
@@ -159,10 +159,6 @@ export function useContextMenu() {
}
break
case 'roof':
- case 'auxiliaryLine':
- case 'hip':
- case 'ridge':
- case 'eaveHelpLine':
if (selectedMenu === 'surface') {
setContextMenu([
[
@@ -249,6 +245,73 @@ export function useContextMenu() {
},
},
],
+ ])
+ }
+
+ break
+ case 'auxiliaryLine':
+ case 'hip':
+ case 'ridge':
+ case 'eaveHelpLine':
+ if (selectedMenu === 'surface') {
+ setContextMenu([
+ [
+ {
+ id: 'sizeEdit',
+ name: getMessage('contextmenu.size.edit'),
+ component: ,
+ },
+ {
+ id: 'rotate',
+ name: `${getMessage('contextmenu.rotate')}`,
+ fn: () => rotateSurfaceShapeBatch(),
+ },
+ {
+ id: 'roofMaterialRemove',
+ shortcut: ['d', 'D'],
+ name: `${getMessage('contextmenu.remove')}(D)`,
+ fn: () => deleteObject(),
+ },
+ {
+ id: 'roofMaterialMove',
+ shortcut: ['m', 'M'],
+ name: `${getMessage('contextmenu.move')}(M)`,
+ fn: () => moveSurfaceShapeBatch(),
+ },
+ {
+ id: 'roofMaterialCopy',
+ shortcut: ['c', 'C'],
+ name: `${getMessage('contextmenu.copy')}(C)`,
+ fn: () => copyObject(),
+ },
+ ],
+ [
+ {
+ id: 'roofMaterialEdit',
+ name: getMessage('contextmenu.roof.material.edit'),
+ component: ,
+ },
+ {
+ id: 'linePropertyEdit',
+ name: getMessage('contextmenu.line.property.edit'),
+ fn: () => {
+ if (+canvasSetting.roofSizeSet === 3) {
+ swalFire({ text: getMessage('contextmenu.line.property.edit.roof.size.3') })
+ } else {
+ addPopup(popupId, 1, )
+ }
+ },
+ // component: ,
+ },
+ {
+ id: 'flowDirectionEdit',
+ name: getMessage('contextmenu.flow.direction.edit'),
+ component: ,
+ },
+ ],
+ ])
+ } else if (selectedMenu === 'outline') {
+ setContextMenu([
[
{
id: 'sizeEdit',