MCPcopy Create free account
hub / github.com/ampproject/amphtml / intersectionEntryToJson

Function intersectionEntryToJson

src/core/dom/layout/intersection.js:81–89  ·  view source on GitHub ↗
(entry)

Source from the content-addressed store, hash-verified

79 * @return {JsonObject}
80 */
81export function intersectionEntryToJson(entry) {
82 return {
83 'time': entry.time,
84 'rootBounds': safeLayoutRectFromDomRect(entry.rootBounds),
85 'boundingClientRect': safeLayoutRectFromDomRect(entry.boundingClientRect),
86 'intersectionRect': safeLayoutRectFromDomRect(entry.intersectionRect),
87 'intersectionRatio': entry.intersectionRatio,
88 };
89}
90
91/**
92 * @param {?} rect

Callers 7

layoutCallbackMethod · 0.90
renderViaIframeGet_Method · 0.90
renderMethod · 0.90
renderViaIframeGet_Method · 0.90

Calls 1

Tested by

no test coverage detected