MCPcopy Create free account
hub / github.com/QLHazyCoder/FlowPilot / isVisibleElement

Function isVisibleElement

content/gmail-mail.js:67–71  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

65}
66
67function isVisibleElement(element) {
68 if (!isDisplayed(element)) return false;
69 const rect = element.getBoundingClientRect();
70 return rect.width > 0 && rect.height > 0;
71}
72
73function normalizeMinuteTimestamp(timestamp) {
74 if (!Number.isFinite(timestamp) || timestamp <= 0) return 0;

Callers 2

collectCategoryTabsFunction · 0.70
findRefreshButtonFunction · 0.70

Calls 1

isDisplayedFunction · 0.85

Tested by

no test coverage detected