From 4d09c31d34a0dc6f149da08d2957cb955a15691e Mon Sep 17 00:00:00 2001 From: lmz <limingzhe@iplayabc.com> Date: Tue, 12 Nov 2019 09:30:37 +0800 Subject: [PATCH] add upload-image-width-preview --- .../custom-hot-zone.component.ts | 16 ++++++++-------- src/assets/20-9.png | Bin 12954 -> 0 bytes 2 files changed, 8 insertions(+), 8 deletions(-) delete mode 100644 src/assets/20-9.png diff --git a/src/app/common/custom-hot-zone/custom-hot-zone.component.ts b/src/app/common/custom-hot-zone/custom-hot-zone.component.ts index 3e09856..809b755 100644 --- a/src/app/common/custom-hot-zone/custom-hot-zone.component.ts +++ b/src/app/common/custom-hot-zone/custom-hot-zone.component.ts @@ -44,7 +44,7 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges { @ViewChild('canvas') canvas: ElementRef; @ViewChild('wrap') wrap: ElementRef; - @HostListener('window:resize', ['$event']) + // @HostListener('window:resize', ['$event']) canvasWidth = 1280; canvasHeight = 720; @@ -68,7 +68,7 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges { images = new Map(); animationId: any; - winResizeEventStream = new Subject(); + // winResizeEventStream = new Subject(); canvasLeft; canvasTop; @@ -95,7 +95,7 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges { onResize(event) { - this.winResizeEventStream.next(); + // this.winResizeEventStream.next(); } @@ -655,11 +655,11 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges { initListener() { - this.winResizeEventStream - .pipe(debounceTime(500)) - .subscribe(data => { - this.renderAfterResize(); - }); + // this.winResizeEventStream + // .pipe(debounceTime(500)) + // .subscribe(data => { + // this.renderAfterResize(); + // }); if (this.IsPC()) { diff --git a/src/assets/20-9.png b/src/assets/20-9.png deleted file mode 100644 index fbbaa1d94af461c0908228a5b44176b3ebeb2a78..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 12954 zcmeI(I|{;35QX8nK7s^O3LysELU08duEg7f5VL@|1{+HsShx!tEwcu}QV?+q+F00Y z=XD$MSLeWV!+hmzvo!JCz!eeCjCC&3w6!*9IW}(HbH|37<w-2nC47qX3!{g{T)nPK zJCW1wGwD4x+4Q(jb*Jq|C50t$2`E4T3Q&Lo6rcbFC_n)UP=Epypa2CZKmiI+fC3bt z00k&O0SZun0u-PC1t>rP3Q&Lo6rcbFC_n)UP=Epy{F{Pz;5Y7~_R(SednqxaR9A7i F`U1KiI0OIy -- 2.21.0