陈鹏飞 4 years ago
parent
commit
2a758ad03c
  1. 7
      src/app/working-area/working-area.component.ts

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

@ -188,7 +188,7 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
});
// 测试代码
this.eventManager.addGlobalEventListener('window', 'keypress', (event: any) => {
});
// setTimeout(() => {
// this.createCanvas();
@ -197,9 +197,8 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
ngAfterViewInit(): void {
this.createCanvas();
let that = this
window.onresize = function(){
that.resizeCanvas()
window.onresize = () => {
this.resizeCanvas();
};
}
/**

Loading…
Cancel
Save