Function: selectBestAnchor()
function selectBestAnchor(
anchors,
initialSelector,
minScore): AnchorScore | null;
Defined in: packages/uimatch-selector-anchors/src/matching/anchor-matcher.ts:334
Select the best anchor from a list based on initial selector Returns null if no good match found
Parameters
anchors
object[]
Array of available anchors
initialSelector
string
Initial selector provided by user
minScore
number = 0
Minimum score threshold (default: 0, meaning return best available)
Returns
AnchorScore | null
Best matching anchor or null