|
|
|
@ -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(); |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|