simpo-component-library 1.7.97 → 1.7.98
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/lib/components/image-loading/image-loading.component.mjs +2 -2
- package/fesm2022/simpo-component-library.mjs +1 -1
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/package.json +1 -1
- package/simpo-component-library-1.7.98.tgz +0 -0
- package/simpo-component-library-1.7.97.tgz +0 -0
@@ -11,9 +11,9 @@ export class ImageLoadingComponent {
|
|
11
11
|
this.theme = "Theme1";
|
12
12
|
}
|
13
13
|
ngOnInit() {
|
14
|
-
this.renderer?.setStyle(this.image, "display", "none");
|
15
14
|
}
|
16
15
|
ngAfterViewInit() {
|
16
|
+
this.renderer?.setStyle(this.image, "display", "none");
|
17
17
|
if (this.hash && this.canvas && this.image) {
|
18
18
|
if (isBlurhashValid(this.hash).result) {
|
19
19
|
const pixels = decode(this.hash, 300, 300);
|
@@ -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,
|
80
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW1hZ2UtbG9hZGluZy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9zaW1wby11aS9zcmMvbGliL2NvbXBvbmVudHMvaW1hZ2UtbG9hZGluZy9pbWFnZS1sb2FkaW5nLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3NpbXBvLXVpL3NyYy9saWIvY29tcG9uZW50cy9pbWFnZS1sb2FkaW5nL2ltYWdlLWxvYWRpbmcuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLFNB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Component {
|
|
6971
6971
|
this.theme = "Theme1";
|
6972
6972
|
}
|
6973
6973
|
ngOnInit() {
|
6974
|
-
this.renderer?.setStyle(this.image, "display", "none");
|
6975
6974
|
}
|
6976
6975
|
ngAfterViewInit() {
|
6976
|
+
this.renderer?.setStyle(this.image, "display", "none");
|
6977
6977
|
if (this.hash && this.canvas && this.image) {
|
6978
6978
|
if (isBlurhashValid(this.hash).result) {
|
6979
6979
|
const pixels = decode(this.hash, 300, 300);
|