XRAutoDetectScore¶
Type Alias XRAutoDetectScore
XRAutoDetectScore: {
details: {
edgeCompareEnabled: boolean;
matchCount: number;
noMatchCount: number;
rect: DOMRect | null;
viewportEnclosure: XRAutoDetectViewportEnclosure;
};
nodeID: number;
score: number;
}
details: {
edgeCompareEnabled: boolean;
matchCount: number;
noMatchCount: number;
rect: DOMRect | null;
viewportEnclosure: XRAutoDetectViewportEnclosure;
};
nodeID: number;
score: number;
}
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)
The result type for XR Edge Auto Detect requests.