decord/source/modules/image_upload/AttachmentImageLadderExperiment.tsx

27 lines
1.1 KiB
TypeScript
Raw Normal View History

// Module ID: 1432
// Function ID: 1433
// Name: AttachmentImageLadderExperiment
// Dependencies: [1433, 1434, 2]
2026-07-20 16:05:17 +00:00
// Exports: getAttachmentImageLadderConfig
// Module 1432 (AttachmentImageLadderExperiment)
import AttachmentImageLadder from "AttachmentImageLadder" /* 1433 */;
import ApexExperiment from "ApexExperiment" /* 1434 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
const obj = { enabled: false, maxUpscale: AttachmentImageLadder.ATTACHMENT_LADDER_MAX_UPSCALE, minSnapDownDpr: 2 };
const obj2 = { name: "2026-07-attachment-image-ladder", kind: "user", defaultConfig: obj, variations: null };
const obj3 = { 0: obj, 1: null };
const obj4 = {};
2026-08-15 05:55:55 +00:00
const merged = Object.assign(obj);
obj4.enabled = true;
obj3[1] = obj4;
obj2.variations = obj3;
const apexExperiment = ApexExperiment.createApexExperiment(obj2);
const result = size.fileFinishedImporting("modules/image_upload/AttachmentImageLadderExperiment.tsx");
2026-07-20 16:05:17 +00:00
export default apexExperiment;
export const getAttachmentImageLadderConfig = function getAttachmentImageLadderConfig(location) {
return apexExperiment.getConfig({ location: location.location });
};