This commit is contained in:
18
node_modules/@juggle/resize-observer/lib/utils/process.js
generated
vendored
Normal file
18
node_modules/@juggle/resize-observer/lib/utils/process.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
import { hasActiveObservations } from '../algorithms/hasActiveObservations';
|
||||
import { hasSkippedObservations } from '../algorithms/hasSkippedObservations';
|
||||
import { deliverResizeLoopError } from '../algorithms/deliverResizeLoopError';
|
||||
import { broadcastActiveObservations } from '../algorithms/broadcastActiveObservations';
|
||||
import { gatherActiveObservationsAtDepth } from '../algorithms/gatherActiveObservationsAtDepth';
|
||||
var process = function () {
|
||||
var depth = 0;
|
||||
gatherActiveObservationsAtDepth(depth);
|
||||
while (hasActiveObservations()) {
|
||||
depth = broadcastActiveObservations();
|
||||
gatherActiveObservationsAtDepth(depth);
|
||||
}
|
||||
if (hasSkippedObservations()) {
|
||||
deliverResizeLoopError();
|
||||
}
|
||||
return depth > 0;
|
||||
};
|
||||
export { process };
|
||||
Reference in New Issue
Block a user