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

Function cloneEntryForCrossOrigin

src/utils/intersection-observer-3p-host.js:187–195  ·  view source on GitHub ↗
(entry)

Source from the content-addressed store, hash-verified

185 * @return {!IntersectionObserverEntry}
186 */
187export function cloneEntryForCrossOrigin(entry) {
188 return /** @type {!IntersectionObserverEntry} */ ({
189 'time': entry.time,
190 'rootBounds': entry.rootBounds,
191 'boundingClientRect': entry.boundingClientRect,
192 'intersectionRect': entry.intersectionRect,
193 'intersectionRatio': entry.intersectionRatio,
194 });
195}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected