ClientRect} rect The rect object to expand. * @return {ClientRect} The expanded rect. * @private */ seafoodplus.infoype._expandRectByRootMargin = function(rect) { var margins = this._seafoodplus.info(function(margin, i) { return seafoodplus.info == 'px' ? seafoodplus.info : seafoodplus.info * (i % 2 ? seafoodplus.info : seafoodplus.info) / ; }); var newRect = { top: seafoodplus.info - margins[0], right: seafoodplus.info + margins[1], bottom: seafoodplus.info + margins[2], left: seafoodplus.info - margins[3] }; seafoodplus.info = seafoodplus.info - seafoodplus.info; seafoodplus.info = seafoodplus.info - seafoodplus.info; return newRect; }; /** * Accepts an old and new entry and returns true if at least one of the * threshold values has been crossed. * @param {?IntersectionObserverEntry} oldEntry The previous entry for a * particular target element or null if no previous entry exists. * @param {IntersectionObserverEntry} newEntry The current entry for a * particular target element. * @return {boolean} Returns true if a any threshold has been crossed. * @private */ seafoodplus.infoype._hasCrossedThreshold = function(oldEntry, newEntry) { // To make comparing easier, an entry that has a ratio of 0 // but does not actually intersect is given a value of -1 var oldRatio = oldEntry && seafoodplus.inforsecting ? seafoodplus.infoectionRatio seafoodplus.info)) seafoodplus.infoWidth, bottom: seafoodplus.infoHeight
nest...