@eagami/ui 5.64.0 → 5.64.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/fesm2022/eagami-ui.mjs
CHANGED
|
@@ -7893,6 +7893,7 @@ var AvatarEditorComponent = class AvatarEditorComponent {
|
|
|
7893
7893
|
"ea-avatar-editor--has-image": this.hasImage(),
|
|
7894
7894
|
"ea-avatar-editor--drag-over": this.isDragOver()
|
|
7895
7895
|
}), ...ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []);
|
|
7896
|
+
destroyRef = inject(DestroyRef);
|
|
7896
7897
|
injector = inject(Injector);
|
|
7897
7898
|
boundWheel = (e) => this.onWheel(e);
|
|
7898
7899
|
constructor() {
|
|
@@ -8254,6 +8255,7 @@ var AvatarEditorComponent = class AvatarEditorComponent {
|
|
|
8254
8255
|
reader.readAsDataURL(file);
|
|
8255
8256
|
}
|
|
8256
8257
|
scheduleDrawAfterRender() {
|
|
8258
|
+
if (this.destroyRef.destroyed) return;
|
|
8257
8259
|
if (this.canvasEl()) {
|
|
8258
8260
|
this.drawLoadedImage();
|
|
8259
8261
|
return;
|