decord/source/design/components/Layers/native/LayerContext.native.tsx

50 lines
1.4 KiB
TypeScript
Raw Normal View History

// Module ID: 7171
// Function ID: 7172
// Name: LayerContext
2026-07-29 08:29:29 +00:00
// Dependencies: [19, 2]
2026-07-20 16:05:17 +00:00
// Module 7171 (LayerContext)
import noop from "module_19" /* 19 */;
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
class LayerContextManager {
constructor() {
merged = Object.assign({ surfaceRef: null, items: null, invalidate: null });
merged[0] = { current: null };
merged[1] = [];
merged[2] = function invalidate() {
2026-07-29 08:29:29 +00:00
return null;
};
return merged;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
}
const prototype = LayerContextManager.prototype;
prototype["add"] = function add(key, component) {
2026-08-24 06:08:38 +00:00
closure_0 = key;
2026-07-29 08:29:29 +00:00
const items = this.items;
this.items = items.filter((key) => key.key !== closure_0);
const items1 = this.items;
items1.push({ key, component });
this.invalidate();
};
prototype["remove"] = function remove(arg0) {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
2026-07-29 08:29:29 +00:00
const items = this.items;
this.items = items.filter((key) => key.key !== closure_0);
this.invalidate();
};
prototype["setSurfaceRef"] = function setSurfaceRef(current) {
this.surfaceRef.current = current;
};
let merged = Object.assign({ surfaceRef: null, items: null, invalidate: null });
merged[0] = { current: null };
merged[1] = [];
merged[2] = function invalidate() {
2026-07-29 08:29:29 +00:00
return null;
};
const context = noop.createContext(merged);
const size = fn(2);
const result = size.fileFinishedImporting("design/components/Layers/native/LayerContext.native.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export { LayerContextManager };
2026-07-20 16:05:17 +00:00
export const LayerContext = context;