@naniteninja/profile-comparison-lib 1.0.20 → 1.0.21

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/index.d.ts CHANGED
@@ -243,6 +243,8 @@ declare class FileConversionService {
243
243
  private static readonly FILE_EXTENSION_PNG;
244
244
  private static readonly FILE_EXTENSION_WEBP;
245
245
  urlToFile(url: string, fileName: string, mimeType: string): Observable<File>;
246
+ fetchUrlToDataUrl(url: string): Observable<string>;
247
+ private loadImageViaCanvas;
246
248
  isDataUrl(str: string): boolean;
247
249
  dataUrlToFile(dataUrl: string, fileName: string): File;
248
250
  getMimeFromFilename(fileName: string): string;
@@ -440,11 +442,14 @@ declare class ProfileComparisonLibComponent implements OnInit, AfterViewInit, On
440
442
  private static readonly TRANSFORM_RESET;
441
443
  private static readonly TRANSITION_RESET_DELAY_MS;
442
444
  config: IProfileConfig;
445
+ user1File: File | null;
446
+ user2File: File | null;
443
447
  backendMode: BackendMode;
444
448
  backendUrl: string | null;
445
449
  fadeAllEdges: boolean;
446
450
  person1Name: string;
447
451
  person2Name: string;
452
+ imageProxyPath: string;
448
453
  matrixDataChange: EventEmitter<IMatrixData>;
449
454
  rawLLMOutputChange: EventEmitter<string>;
450
455
  viewProfileClick: EventEmitter<{
@@ -548,7 +553,7 @@ declare class ProfileComparisonLibComponent implements OnInit, AfterViewInit, On
548
553
  getPerson1UniqueInterests(): string[];
549
554
  getPerson2UniqueInterests(): string[];
550
555
  getChipOffset(index: number, column: 'left' | 'center' | 'right'): number;
551
- private compressConfigImagesIfNeeded;
556
+ private compressInputImages;
552
557
  private compressImageStringToDataUrl;
553
558
  getEyeCoordinatesFromBBox(bbox: IBoundingBox): {
554
559
  leftEye: IPoint;
@@ -572,7 +577,7 @@ declare class ProfileComparisonLibComponent implements OnInit, AfterViewInit, On
572
577
  applyDefaultAlignment(): void;
573
578
  isValidFaceData(face: IBoundingBox): boolean;
574
579
  static ɵfac: i0.ɵɵFactoryDeclaration<ProfileComparisonLibComponent, [null, null, null, null, null, { optional: true; }]>;
575
- static ɵcmp: i0.ɵɵComponentDeclaration<ProfileComparisonLibComponent, "lib-profile-comparison", never, { "config": { "alias": "config"; "required": false; }; "backendMode": { "alias": "backendMode"; "required": false; }; "backendUrl": { "alias": "backendUrl"; "required": false; }; "fadeAllEdges": { "alias": "fadeAllEdges"; "required": false; }; "person1Name": { "alias": "person1Name"; "required": false; }; "person2Name": { "alias": "person2Name"; "required": false; }; }, { "matrixDataChange": "matrixDataChange"; "rawLLMOutputChange": "rawLLMOutputChange"; "viewProfileClick": "viewProfileClick"; }, never, never, false, never>;
580
+ static ɵcmp: i0.ɵɵComponentDeclaration<ProfileComparisonLibComponent, "lib-profile-comparison", never, { "config": { "alias": "config"; "required": false; }; "user1File": { "alias": "user1File"; "required": false; }; "user2File": { "alias": "user2File"; "required": false; }; "backendMode": { "alias": "backendMode"; "required": false; }; "backendUrl": { "alias": "backendUrl"; "required": false; }; "fadeAllEdges": { "alias": "fadeAllEdges"; "required": false; }; "person1Name": { "alias": "person1Name"; "required": false; }; "person2Name": { "alias": "person2Name"; "required": false; }; "imageProxyPath": { "alias": "imageProxyPath"; "required": false; }; }, { "matrixDataChange": "matrixDataChange"; "rawLLMOutputChange": "rawLLMOutputChange"; "viewProfileClick": "viewProfileClick"; }, never, never, false, never>;
576
581
  }
577
582
 
578
583
  declare class ProfileComparisonLibModule {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naniteninja/profile-comparison-lib",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.0.0",
6
6
  "@angular/core": "^20.0.0"