MCPcopy Create free account
hub / github.com/callstack/agent-device / hasHiddenContentAtEdge

Function hasHiddenContentAtEdge

src/utils/scroll-edge-state.ts:248–257  ·  view source on GitHub ↗
(
  node: SnapshotNode,
  hint: HiddenContentHint | undefined,
  edge: ScrollEdge,
)

Source from the content-addressed store, hash-verified

246}
247
248function hasHiddenContentAtEdge(
249 node: SnapshotNode,
250 hint: HiddenContentHint | undefined,
251 edge: ScrollEdge,
252): boolean {
253 if (edge === 'bottom') {
254 return node.hiddenContentBelow === true || hint?.hiddenContentBelow === true;
255 }
256 return node.hiddenContentAbove === true || hint?.hiddenContentAbove === true;
257}
258
259function buildScrollContainerScope(node: SnapshotNode): string | undefined {
260 return [node.identifier, node.label, node.value]

Callers 2

analyzeScrollEdgeStateFunction · 0.85
selectScrollContainerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…