右键菜单置灰调整
This commit is contained in:
parent
293adda0d7
commit
5890ca71c4
@ -81,6 +81,7 @@ export function destroyLineApp(): void {
|
||||
|
||||
const PhysicsOptions: MenuItemOptions = {
|
||||
name: '物理图层',
|
||||
disabled: true,
|
||||
};
|
||||
const linkOptions: MenuItemOptions = {
|
||||
name: 'Link图层',
|
||||
@ -164,6 +165,8 @@ export function initLineApp(dom: HTMLElement): GraphicApp {
|
||||
g.visible = false;
|
||||
}
|
||||
});
|
||||
linkOptions.disabled = false;
|
||||
PhysicsOptions.disabled = true;
|
||||
};
|
||||
linkOptions.handler = () => {
|
||||
alllGraphic.forEach((g) => {
|
||||
@ -173,7 +176,8 @@ export function initLineApp(dom: HTMLElement): GraphicApp {
|
||||
g.visible = false;
|
||||
}
|
||||
});
|
||||
console.log(lineApp);
|
||||
linkOptions.disabled = true;
|
||||
PhysicsOptions.disabled = false;
|
||||
};
|
||||
DefaultCanvasMenu.open(e.global);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user