* fix: seg sync for data without FOR * test commit to trigger deploy re-run * test commit to trigger deploy re-run * Revert "test commit to trigger deploy re-run" This reverts commit 42c532c6f404798e39e3d137fff7c1e7569956ad. * chore: comments updated * review commnets --------- Co-authored-by: Bill Wallace <wayfarer3130@gmail.com>
19 lines
822 B
TypeScript
19 lines
822 B
TypeScript
/**
|
|
* Checks whether two viewports share at least one common display set.
|
|
*
|
|
* This method checks to see if the source and target share a display set.
|
|
* It performs an O(n * m) comparison between the display sets of each viewport.
|
|
* Since each viewport typically contains only a small number of display sets (≤ 5),
|
|
* the computational cost is negligible.
|
|
*
|
|
* @param sourceDisplaySetUIDs - Array of displaySetInstanceUID from the source viewport.
|
|
* @param targetDisplaySetUIDs - Array of displaySetInstanceUID from the target viewport.
|
|
* @returns true if at least one display set is common; false otherwise.
|
|
*/
|
|
export function isAnyDisplaySetCommon(
|
|
sourceDisplaySetUIDs: string[],
|
|
targetDisplaySetUIDs: string[]
|
|
): boolean {
|
|
return sourceDisplaySetUIDs.some(uid => targetDisplaySetUIDs.includes(uid));
|
|
}
|