@naniteninja/profile-comparison-lib 1.0.9 → 1.0.11
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;
|
|
@@ -487,6 +488,10 @@ declare class ProfileComparisonLibComponent implements OnInit, AfterViewInit, On
|
|
|
487
488
|
rightProfileClicked: boolean;
|
|
488
489
|
leftShapeAnimating: boolean;
|
|
489
490
|
rightShapeAnimating: boolean;
|
|
491
|
+
similarities: number[];
|
|
492
|
+
get viewProfileLeftX(): number;
|
|
493
|
+
get viewProfileRightX(): number;
|
|
494
|
+
onResize(): void;
|
|
490
495
|
sortedA: {
|
|
491
496
|
item: string;
|
|
492
497
|
score: number;
|
|
@@ -506,6 +511,8 @@ declare class ProfileComparisonLibComponent implements OnInit, AfterViewInit, On
|
|
|
506
511
|
backendConfigured: boolean;
|
|
507
512
|
/** The resolved backend URL computed from inputs and legacy token. */
|
|
508
513
|
private resolvedBackendUrl;
|
|
514
|
+
/** Flag to prevent click animations after a drag. */
|
|
515
|
+
private wasDragging;
|
|
509
516
|
compressionConfig: IImageCompressionConfig;
|
|
510
517
|
private computeSub?;
|
|
511
518
|
/** Incremented on each fetchComparison(); used to ignore stale success/error from an older request. */
|
|
@@ -548,6 +555,13 @@ declare class ProfileComparisonLibComponent implements OnInit, AfterViewInit, On
|
|
|
548
555
|
*/
|
|
549
556
|
private regroupByCenterLabel;
|
|
550
557
|
isPlaceholder(val: unknown): boolean;
|
|
558
|
+
/**
|
|
559
|
+
* Returns the type of dash based on similarity score:
|
|
560
|
+
* - 'high': Very similar (Short single dash, 0.5 opacity)
|
|
561
|
+
* - 'medium': Almost similar (Standard 1 dash)
|
|
562
|
+
* - 'low': Very dissimilar (4 small dashes)
|
|
563
|
+
*/
|
|
564
|
+
getDashType(index: number): 'high' | 'medium' | 'low';
|
|
551
565
|
private fetchComparison;
|
|
552
566
|
private updateConfigProperties;
|
|
553
567
|
private buildConfigWithDefaults;
|