XRAutoDetectScore

Type Alias XRAutoDetectScore

XRAutoDetectScore: {
    details: {
        edgeCompareEnabled: boolean;
        matchCount: number;
        noMatchCount: number;
        rect: DOMRect | null;
        viewportEnclosure: XRAutoDetectViewportEnclosure;
    };
    nodeID: number;
    score: number;
}

The result type for XR Edge Auto Detect requests.

Type declaration

  • details: {
        edgeCompareEnabled: boolean;
        matchCount: number;
        noMatchCount: number;
        rect: DOMRect | null;
        viewportEnclosure: XRAutoDetectViewportEnclosure;
    }
    • edgeCompareEnabled: boolean

      Indicates if the requested node was in XR Edge Compare mode.

    • matchCount: number

      The number of matching edge pixels.

    • noMatchCount: number

      The number of non-matching edge pixels.

    • rect: DOMRect | null

      The requested node's screen rectangle. null if the node was not in XR Edge Compare mode.

    • viewportEnclosure: XRAutoDetectViewportEnclosure

      Indicates if the requested node's screen rectangle was visible in the current viewport when the score was calculated.

  • nodeID: number

    The node for which the result was created.

  • score: number

    The score value. A value between 0 and 1 where 1 states that all edge pixels match. The score value is calculated as matchCount / (matchCount + noMatchCount)


Did you find this page useful? Please give it a rating:
Thank you for rating this page!
Any issues or feedback?
What kind of problem would you like to report?
Please tell us more about what's wrong: