@naniteninja/profile-comparison-lib 1.0.20 → 1.0.22
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<{
|
|
@@ -481,6 +486,8 @@ declare class ProfileComparisonLibComponent implements OnInit, AfterViewInit, On
|
|
|
481
486
|
person3Interests: string[];
|
|
482
487
|
user1Image: string;
|
|
483
488
|
user2Image: string;
|
|
489
|
+
get user1ImageSrc(): string;
|
|
490
|
+
get user2ImageSrc(): string;
|
|
484
491
|
private baseConfig;
|
|
485
492
|
displayPerson1Interests: string[];
|
|
486
493
|
displayPerson2Interests: string[];
|
|
@@ -548,7 +555,7 @@ declare class ProfileComparisonLibComponent implements OnInit, AfterViewInit, On
|
|
|
548
555
|
getPerson1UniqueInterests(): string[];
|
|
549
556
|
getPerson2UniqueInterests(): string[];
|
|
550
557
|
getChipOffset(index: number, column: 'left' | 'center' | 'right'): number;
|
|
551
|
-
private
|
|
558
|
+
private compressInputImages;
|
|
552
559
|
private compressImageStringToDataUrl;
|
|
553
560
|
getEyeCoordinatesFromBBox(bbox: IBoundingBox): {
|
|
554
561
|
leftEye: IPoint;
|
|
@@ -572,7 +579,7 @@ declare class ProfileComparisonLibComponent implements OnInit, AfterViewInit, On
|
|
|
572
579
|
applyDefaultAlignment(): void;
|
|
573
580
|
isValidFaceData(face: IBoundingBox): boolean;
|
|
574
581
|
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>;
|
|
582
|
+
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
583
|
}
|
|
577
584
|
|
|
578
585
|
declare class ProfileComparisonLibModule {
|