ngx-kit 9.2.3 → 9.3.0

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.
@@ -93,6 +93,7 @@ declare class NgxImageEditor {
93
93
  quality: _angular_core.InputSignal<number>;
94
94
  defaultLocalization: NgxImageEditorLocalization;
95
95
  localize: _angular_core.InputSignal<NgxImageEditorLocalization>;
96
+ private readonly doc;
96
97
  saved: _angular_core.OutputEmitterRef<NgxImageEditorResult>;
97
98
  cancelled: _angular_core.OutputEmitterRef<void>;
98
99
  protected readonly loading: _angular_core.WritableSignal<boolean>;
@@ -159,7 +160,7 @@ declare function canvasToBlob(canvas: HTMLCanvasElement, type?: string, quality?
159
160
  * کراپ روون بمونه؛ خروجی نهایی (save) همیشه از روی تصویر اصلیِ کامل رندر
160
161
  * می‌شه، نه از روی این کپی.
161
162
  */
162
- declare function createWorkingCopy(img: HTMLImageElement, maxSize?: number): HTMLCanvasElement;
163
+ declare function createWorkingCopy(doc: Document, img: HTMLImageElement, maxSize?: number): HTMLCanvasElement;
163
164
  /** ابعاد جدید رو طوری حساب می‌کنه که از maxWidth/maxHeight بیشتر نشه، با حفظ نسبت تصویر */
164
165
  declare function fitWithin(width: number, height: number, maxWidth?: number, maxHeight?: number): {
165
166
  width: number;
@@ -167,7 +168,7 @@ declare function fitWithin(width: number, height: number, maxWidth?: number, max
167
168
  };
168
169
 
169
170
  /** تصویر مبدأ رو با زاویه‌ی داده‌شده روی یه canvas جدید (به اندازه‌ی bounding-box نتیجه) می‌چرخونه */
170
- declare function renderRotated(source: CanvasImageSource, width: number, height: number, degrees: number): HTMLCanvasElement;
171
+ declare function renderRotated(doc: Document, source: CanvasImageSource, width: number, height: number, degrees: number): HTMLCanvasElement;
171
172
  /**
172
173
  * کراپ + فیلترها رو روی یه canvas خروجی می‌سازه. brightness/contrast/
173
174
  * saturation/grayscale/sepia/invert همه با ctx.filter بومیِ Canvas 2D انجام
@@ -178,7 +179,7 @@ declare function renderRotated(source: CanvasImageSource, width: number, height:
178
179
  * برای واکنش‌گرا موندن حین کشیدن اسلایدرها) و خروجی نهایی (بدون محدودیت یا
179
180
  * محدودیت دلخواه کاربر).
180
181
  */
181
- declare function renderComposite(source: CanvasImageSource, sourceWidth: number, sourceHeight: number, crop: NgxCropRect, adjustments: NgxImageEditorAdjustments, maxWidth?: number, maxHeight?: number): HTMLCanvasElement;
182
+ declare function renderComposite(doc: Document, source: CanvasImageSource, sourceWidth: number, sourceHeight: number, crop: NgxCropRect, adjustments: NgxImageEditorAdjustments, maxWidth?: number, maxHeight?: number): HTMLCanvasElement;
182
183
 
183
184
  /**
184
185
  * افکت «کارتونی»: چون ctx.filter استاندارد چیزی شبیه cartoon نداره (فقط
@@ -54,6 +54,7 @@ declare class NgxImageViewer {
54
54
  private readonly stageEl;
55
55
  private readonly hostElRef;
56
56
  private readonly destroyRef;
57
+ private readonly doc;
57
58
  private pinchStartDistance;
58
59
  private pinchStartZoom;
59
60
  private stopPanDrag?;
@@ -34,6 +34,7 @@ declare class NgxInfiniteScroll implements AfterViewInit {
34
34
  private readonly zone;
35
35
  private readonly destroyRef;
36
36
  private readonly platformId;
37
+ private readonly doc;
37
38
  private readonly ready;
38
39
  private previousConfiguration?;
39
40
  private observer?;