(entry)
| 79 | * @return {JsonObject} |
| 80 | */ |
| 81 | export 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 |
no test coverage detected