MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / openButtonCandidateNormalizedPoints

Function openButtonCandidateNormalizedPoints

scripts/integration/cli.mjs:1557–1566  ·  view source on GitHub ↗
(snapshot)

Source from the content-addressed store, hash-verified

1555}
1556
1557function openButtonCandidateNormalizedPoints(snapshot) {
1558 const point = openButtonPoint(snapshot);
1559 const bounds = rootBounds(snapshot);
1560 if (!point || !bounds || bounds.width <= 0 || bounds.height <= 0) {
1561 return [];
1562 }
1563 const x = point.x / bounds.width;
1564 const y = point.y / bounds.height;
1565 return candidateNormalizedTransforms(x, y);
1566}
1567
1568function candidateNormalizedTransforms(x, y) {
1569 return uniqueUnitPoints([

Callers 1

openUrlPromptActionsFunction · 0.85

Calls 3

openButtonPointFunction · 0.85
rootBoundsFunction · 0.85

Tested by

no test coverage detected