@naniteninja/profile-comparison-lib 1.0.10 → 1.0.12
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
|
@@ -206,6 +206,7 @@ interface IComparisonPayload {
|
|
|
206
206
|
alignedPerson1Interests: string[];
|
|
207
207
|
alignedPerson2Interests: string[];
|
|
208
208
|
centerItem: string[];
|
|
209
|
+
similarities: number[];
|
|
209
210
|
matrixData: IMatrixData | null;
|
|
210
211
|
rawLLMOutput?: string;
|
|
211
212
|
debug?: any;
|
|
@@ -410,7 +411,6 @@ declare class ProfileComparisonLibComponent implements OnInit, AfterViewInit, On
|
|
|
410
411
|
private imageCompressionService;
|
|
411
412
|
private cdr;
|
|
412
413
|
private getVerboseLogging?;
|
|
413
|
-
private static readonly DEFAULT_OBJECT_POSITION;
|
|
414
414
|
private static readonly DEFAULT_EYE_ALIGNMENT_BIAS_PX;
|
|
415
415
|
private static readonly DEFAULT_IMAGE_FORMAT;
|
|
416
416
|
private static readonly DEFAULT_IMAGE_QUALITY_START;
|
|
@@ -431,8 +431,8 @@ declare class ProfileComparisonLibComponent implements OnInit, AfterViewInit, On
|
|
|
431
431
|
private static readonly DEFAULT_PROFILE_IMAGE_NAME;
|
|
432
432
|
private static readonly SHAPE_BG_HEIGHT;
|
|
433
433
|
private static readonly SHAPE_BG_OBJECT_FIT;
|
|
434
|
-
private static readonly
|
|
435
|
-
private static readonly
|
|
434
|
+
private static readonly SHAPE_BG1_BACK_POSITION;
|
|
435
|
+
private static readonly SHAPE_BG2_BACK_POSITION;
|
|
436
436
|
private static readonly DRAG_MIN_WIDTH;
|
|
437
437
|
private static readonly DRAG_MAX_WIDTH;
|
|
438
438
|
private static readonly MAX_DRAG_DISTANCE;
|
|
@@ -458,8 +458,6 @@ declare class ProfileComparisonLibComponent implements OnInit, AfterViewInit, On
|
|
|
458
458
|
user2Transform: string;
|
|
459
459
|
alignmentCalculated: boolean;
|
|
460
460
|
isAligning: boolean;
|
|
461
|
-
/** Set when backend returns an error (e.g. 503 API keys not configured). */
|
|
462
|
-
backendError: string | null;
|
|
463
461
|
user1ObjectPosition: string;
|
|
464
462
|
user2ObjectPosition: string;
|
|
465
463
|
private user1NaturalWidth;
|
|
@@ -487,6 +485,7 @@ declare class ProfileComparisonLibComponent implements OnInit, AfterViewInit, On
|
|
|
487
485
|
rightProfileClicked: boolean;
|
|
488
486
|
leftShapeAnimating: boolean;
|
|
489
487
|
rightShapeAnimating: boolean;
|
|
488
|
+
similarities: number[];
|
|
490
489
|
get viewProfileLeftX(): number;
|
|
491
490
|
get viewProfileRightX(): number;
|
|
492
491
|
onResize(): void;
|
|
@@ -509,6 +508,8 @@ declare class ProfileComparisonLibComponent implements OnInit, AfterViewInit, On
|
|
|
509
508
|
backendConfigured: boolean;
|
|
510
509
|
/** The resolved backend URL computed from inputs and legacy token. */
|
|
511
510
|
private resolvedBackendUrl;
|
|
511
|
+
/** Flag to prevent click animations after a drag. */
|
|
512
|
+
private wasDragging;
|
|
512
513
|
compressionConfig: IImageCompressionConfig;
|
|
513
514
|
private computeSub?;
|
|
514
515
|
/** Incremented on each fetchComparison(); used to ignore stale success/error from an older request. */
|
|
@@ -551,6 +552,13 @@ declare class ProfileComparisonLibComponent implements OnInit, AfterViewInit, On
|
|
|
551
552
|
*/
|
|
552
553
|
private regroupByCenterLabel;
|
|
553
554
|
isPlaceholder(val: unknown): boolean;
|
|
555
|
+
/**
|
|
556
|
+
* Returns the type of dash based on similarity score:
|
|
557
|
+
* - 'high': Very similar (Short single dash, 0.5 opacity)
|
|
558
|
+
* - 'medium': Almost similar (Standard 1 dash)
|
|
559
|
+
* - 'low': Very dissimilar (4 small dashes)
|
|
560
|
+
*/
|
|
561
|
+
getDashType(index: number): 'high' | 'medium' | 'low';
|
|
554
562
|
private fetchComparison;
|
|
555
563
|
private updateConfigProperties;
|
|
556
564
|
private buildConfigWithDefaults;
|