MCPcopy Index your code
hub / github.com/callstack/agent-device / isNodeVisible

Function isNodeVisible

src/utils/selector-node.ts:5–9  ·  view source on GitHub ↗
(node: SnapshotNode)

Source from the content-addressed store, hash-verified

3import { isFillableType } from '../snapshot/snapshot-processing.ts';
4
5export function isNodeVisible(node: SnapshotNode): boolean {
6 if (node.hittable === true) return true;
7 if (!node.rect) return false;
8 return node.rect.width > 0 && node.rect.height > 0;
9}
10
11export function isNodeEditable(node: SnapshotNode, platform: Platform | PublicPlatform): boolean {
12 return isFillableType(node.type ?? '', platform) && node.enabled !== false;

Callers 4

evaluateIsPredicateFunction · 0.90
matchesTermFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected