Commit fc45a3c4 authored by limingzhe's avatar limingzhe

feat: Unit 增加图片遮照 图片圆角 图片切圆 视频类

parent 8a51c964
This diff is collapsed.
......@@ -108,6 +108,16 @@ export class PlayComponent implements OnInit, OnDestroy {
ngOnDestroy() {
window['curCtx'] = null;
window.cancelAnimationFrame(this.animationId);
this.cleanAudio();
}
cleanAudio() {
if (this.audioObj) {
for (const key in this.audioObj) {
this.audioObj[key].pause();
}
}
}
......@@ -141,6 +151,7 @@ export class PlayComponent implements OnInit, OnDestroy {
this.canvas.nativeElement.height = this.canvasHeight;
window['curCtx'] = this.ctx;
window['curImages'] = this.images;
}
......
......@@ -92,7 +92,8 @@
"variable-name": false,
"no-unused-expression": false,
"align": false
"align": false,
"no-string-literal": false
},
"rulesDirectory": [
"codelyzer"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment