simpo-component-library 1.6.122 → 1.6.124

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,7 +11,7 @@ export class ImageLoadingComponent {
11
11
  this.theme = "Theme1";
12
12
  }
13
13
  ngOnInit() {
14
- this.renderer.setStyle(this.image, "display", "none");
14
+ this.renderer?.setStyle(this.image, "display", "none");
15
15
  }
16
16
  ngAfterViewInit() {
17
17
  if (this.hash && this.canvas && this.image) {
@@ -27,8 +27,8 @@ export class ImageLoadingComponent {
27
27
  this.image.nativeElement.addEventListener("load", () => this.onImageLoad());
28
28
  }
29
29
  else {
30
- this.renderer.setStyle(this.canvas?.nativeElement, 'display', 'none');
31
- this.renderer.setStyle(this.image?.nativeElement, 'display', 'block');
30
+ this.renderer?.setStyle(this.canvas?.nativeElement, 'display', 'none');
31
+ this.renderer?.setStyle(this.image?.nativeElement, 'display', 'block');
32
32
  }
33
33
  }
34
34
  ngOnDestroy() {
@@ -37,8 +37,8 @@ export class ImageLoadingComponent {
37
37
  }
38
38
  }
39
39
  onImageLoad() {
40
- this.renderer.setStyle(this.canvas?.nativeElement, 'display', 'none');
41
- this.renderer.setStyle(this.image?.nativeElement, 'display', 'block');
40
+ this.renderer?.setStyle(this.canvas?.nativeElement, 'display', 'none');
41
+ this.renderer?.setStyle(this.image?.nativeElement, 'display', 'block');
42
42
  }
43
43
  togglePreviewImage(product, idx) {
44
44
  if (!product)
@@ -77,4 +77,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.4", ngImpor
77
77
  type: ViewChild,
78
78
  args: ["canvas"]
79
79
  }] } });
80
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW1hZ2UtbG9hZGluZy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9zaW1wby11aS9zcmMvbGliL2NvbXBvbmVudHMvaW1hZ2UtbG9hZGluZy9pbWFnZ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