decord/source/1696_updateLayoutAnimations.js

56 lines
1.5 KiB
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 1696
2026-07-24 07:16:23 +00:00
// Function ID: 18760
2026-07-20 16:05:17 +00:00
// Name: updateLayoutAnimations
2026-07-23 10:11:24 +00:00
// Dependencies: [1585, 1626]
2026-07-20 16:05:17 +00:00
// Module 1696 (updateLayoutAnimations)
2026-07-23 10:11:24 +00:00
import isJest from "isJest";
if (isJest.shouldBeUseWeb()) {
2026-07-20 16:05:17 +00:00
function updateLayoutAnimations() {
}
} else {
2026-07-23 10:11:24 +00:00
let closure_2 = (function createUpdateManager() {
2026-07-20 16:05:17 +00:00
let closure_0 = [];
let closure_1 = [];
return {
update(arg0, arg1) {
const self = this;
if (arg1) {
let arr = arr2.push(arg0);
} else {
arr = arr.push(arg0);
}
if (arr.length + arr2.length === 1) {
if (obj.isFabric()) {
self.flush();
} else {
const _setImmediate = setImmediate;
setImmediate(self.flush);
}
2026-07-23 10:11:24 +00:00
obj = arr(arr2[0]);
2026-07-20 16:05:17 +00:00
}
},
flush() {
2026-07-23 10:11:24 +00:00
const result = arr(arr2[1]).configureLayoutAnimationBatch(arr.concat(arr2));
2026-07-20 16:05:17 +00:00
arr.length = 0;
2026-07-23 10:11:24 +00:00
arr2.length = 0;
2026-07-20 16:05:17 +00:00
}
};
2026-07-23 10:11:24 +00:00
})();
2026-07-20 16:05:17 +00:00
updateLayoutAnimations = function updateLayoutAnimations(viewTag, type, arg2, sharedTransitionTag) {
const obj = { viewTag, type };
let shareableCloneRecursive;
if (arg2) {
2026-07-23 10:11:24 +00:00
shareableCloneRecursive = require(1626) /* getSensorContainer */.makeShareableCloneRecursive(arg2);
const obj2 = require(1626) /* getSensorContainer */;
2026-07-20 16:05:17 +00:00
}
obj.config = shareableCloneRecursive;
obj.sharedTransitionTag = sharedTransitionTag;
return closure_2.update(obj, arg4);
};
}
export { updateLayoutAnimations };