@libs-ui/components-image-editor 0.2.356-41 → 0.2.356-43

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.
@@ -1,6 +1,6 @@
1
1
  import { NgTemplateOutlet } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
- import { EventEmitter, Output, Input, Component, signal, input, model, viewChild, output, inject, DestroyRef, Optional, Inject, ChangeDetectionStrategy } from '@angular/core';
3
+ import { EventEmitter, Component, Input, Output, signal, input, model, viewChild, output, inject, DestroyRef, ChangeDetectionStrategy, Optional, Inject } from '@angular/core';
4
4
  import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
5
5
  import { LibsUiComponentsButtonsButtonComponent } from '@libs-ui/components-buttons-button';
6
6
  import { LibsUiComponentsInputsValidComponent } from '@libs-ui/components-inputs-valid';
@@ -897,7 +897,6 @@ class LibsUiComponentsImageEditorComponent {
897
897
  let newHeight = newWidth / ratio;
898
898
  newHeight = Math.min(this.resizeData().height, this.containerHeight());
899
899
  newWidth = newHeight * ratio;
900
- Math.min(this.resizeData().height, this.containerHeight());
901
900
  const top = currTop + (currHeight - newHeight) / 2;
902
901
  const left = currLeft + (currWidth - newWidth) / 2;
903
902
  const movementY = currTop - top;