邵佳豪 4 years ago
parent
commit
3226a52e6a
  1. 26
      src/app/working-area/working-area.component.ts

26
src/app/working-area/working-area.component.ts

@ -88,15 +88,15 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
}
});
// 测试代码
this.eventManager.addGlobalEventListener('window', 'keypress', (event: any) => {
if (event.keyCode === 97) {
this.copy();
}
if (event.keyCode === 115) {
this.paste('1', '2', '3');
}
});
// // 测试代码
// this.eventManager.addGlobalEventListener('window', 'keypress', (event: any) => {
// if (event.keyCode === 97) {
// this.copy();
// }
// if (event.keyCode === 115) {
// this.paste('1', '2', '3');
// }
// });
}
ngAfterViewInit(): void {
@ -256,6 +256,14 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
}
});
}
/**
*
* @param id ID
* @param b /
*/
public setIconVisible(id: string, b: boolean) {
this.backgroundImage.getChildByName(id).visible = b;
}
/**
*
*/

Loading…
Cancel
Save