@naniteninja/profile-comparison-lib 1.0.13 → 1.0.15
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
|
@@ -451,6 +451,10 @@ declare class ProfileComparisonLibComponent implements OnInit, AfterViewInit, On
|
|
|
451
451
|
viewProfileClick: EventEmitter<{
|
|
452
452
|
side: "left" | "right";
|
|
453
453
|
}>;
|
|
454
|
+
/** Fires when the user drags a frame to its maximum displacement and
|
|
455
|
+
* continues pulling past the edge. The parent can use this to swipe to
|
|
456
|
+
* the next/previous prospect in its own swiper. */
|
|
457
|
+
edgeDrag: EventEmitter<"left" | "right">;
|
|
454
458
|
selectedFile: File | null;
|
|
455
459
|
firstImageData: FaceDetectionData | null;
|
|
456
460
|
secondImageData: FaceDetectionData | null;
|
|
@@ -529,29 +533,6 @@ declare class ProfileComparisonLibComponent implements OnInit, AfterViewInit, On
|
|
|
529
533
|
ngOnInit(): void;
|
|
530
534
|
ngAfterViewInit(): void;
|
|
531
535
|
ngOnChanges(changes: SimpleChanges): void;
|
|
532
|
-
/** Use for template: hide left/right item when it's a shared (center) item. Compares case-insensitively. */
|
|
533
|
-
isInCenter(interest: string): boolean;
|
|
534
|
-
/**
|
|
535
|
-
* Returns true if the value is a placeholder string consisting only of one or more dashes.
|
|
536
|
-
* Handles variations like "-", "---", "----", etc.
|
|
537
|
-
*/
|
|
538
|
-
/**
|
|
539
|
-
* Returns true if we should show a dash on the side instead of the text.
|
|
540
|
-
* This happens if:
|
|
541
|
-
* 1. The interest is a placeholder (----).
|
|
542
|
-
* 2. The interest exactly matches the center label at that index (to avoid redundancy).
|
|
543
|
-
*/
|
|
544
|
-
shouldShowDash(interest: string, index: number): boolean;
|
|
545
|
-
/**
|
|
546
|
-
* Returns true if the center label at the current index is a repeat of the one above it.
|
|
547
|
-
* This is used to "collapse" repeating categories into dashes.
|
|
548
|
-
*/
|
|
549
|
-
isCenterRedundant(index: number): boolean;
|
|
550
|
-
/**
|
|
551
|
-
* Reorders the aligned results so that items with identical center labels follow each other.
|
|
552
|
-
*/
|
|
553
|
-
private regroupByCenterLabel;
|
|
554
|
-
isPlaceholder(val: unknown): boolean;
|
|
555
536
|
/**
|
|
556
537
|
* Returns the type of dash based on similarity score:
|
|
557
538
|
* - 'high': Very similar (Short single dash, 0.5 opacity)
|
|
@@ -568,6 +549,12 @@ declare class ProfileComparisonLibComponent implements OnInit, AfterViewInit, On
|
|
|
568
549
|
private getOverlapSizeCssPx;
|
|
569
550
|
private setOverlapSizeCssPx;
|
|
570
551
|
waitForImagesAndInitDrag(): void;
|
|
552
|
+
/**
|
|
553
|
+
* Toggles .edge-at-left-border / .edge-at-right-border classes on both
|
|
554
|
+
* interactive and background frames based on their outer edge position
|
|
555
|
+
* relative to the container boundary.
|
|
556
|
+
*/
|
|
557
|
+
private updateEdgeMasks;
|
|
571
558
|
initDrag(): void;
|
|
572
559
|
onViewProfile(side: 'left' | 'right'): void;
|
|
573
560
|
onShapeClick(side: 'left' | 'right'): void;
|
|
@@ -595,7 +582,7 @@ declare class ProfileComparisonLibComponent implements OnInit, AfterViewInit, On
|
|
|
595
582
|
applyDefaultAlignment(): void;
|
|
596
583
|
isValidFaceData(face: IBoundingBox): boolean;
|
|
597
584
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProfileComparisonLibComponent, [null, null, null, null, null, { optional: true; }]>;
|
|
598
|
-
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; }; }, { "matrixDataChange": "matrixDataChange"; "rawLLMOutputChange": "rawLLMOutputChange"; "viewProfileClick": "viewProfileClick"; }, never, never, false, never>;
|
|
585
|
+
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; }; }, { "matrixDataChange": "matrixDataChange"; "rawLLMOutputChange": "rawLLMOutputChange"; "viewProfileClick": "viewProfileClick"; "edgeDrag": "edgeDrag"; }, never, never, false, never>;
|
|
599
586
|
}
|
|
600
587
|
|
|
601
588
|
declare class ProfileComparisonLibModule {
|