@naniteninja/profile-comparison-lib 1.0.12 → 1.0.14
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
|
@@ -529,29 +529,6 @@ declare class ProfileComparisonLibComponent implements OnInit, AfterViewInit, On
|
|
|
529
529
|
ngOnInit(): void;
|
|
530
530
|
ngAfterViewInit(): void;
|
|
531
531
|
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
532
|
/**
|
|
556
533
|
* Returns the type of dash based on similarity score:
|
|
557
534
|
* - 'high': Very similar (Short single dash, 0.5 opacity)
|
|
@@ -568,6 +545,12 @@ declare class ProfileComparisonLibComponent implements OnInit, AfterViewInit, On
|
|
|
568
545
|
private getOverlapSizeCssPx;
|
|
569
546
|
private setOverlapSizeCssPx;
|
|
570
547
|
waitForImagesAndInitDrag(): void;
|
|
548
|
+
/**
|
|
549
|
+
* Toggles .edge-at-left-border / .edge-at-right-border classes on both
|
|
550
|
+
* interactive and background frames based on their outer edge position
|
|
551
|
+
* relative to the container boundary.
|
|
552
|
+
*/
|
|
553
|
+
private updateEdgeMasks;
|
|
571
554
|
initDrag(): void;
|
|
572
555
|
onViewProfile(side: 'left' | 'right'): void;
|
|
573
556
|
onShapeClick(side: 'left' | 'right'): void;
|