decord/source/design/components/Layers/native/LayerContext.native.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

48 lines
1.3 KiB
TypeScript

// Module ID: 7157
// Function ID: 7158
// Name: add
// Dependencies: [19, 2]
// Module 7157 (add)
import importAllResult from "noop" /* 19 */;
class LayerContextManager {
constructor() {
obj = Object.create(new.target.prototype);
obj[0] = { current: null };
obj[1] = [];
obj[2] = function invalidate() {
return null;
};
return obj;
}
}
const prototype = LayerContextManager.prototype;
prototype["add"] = function add(key, component) {
closure_0 = key;
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) {
closure_0 = arg0;
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 obj = Object.create(LayerContextManager.prototype);
obj[0] = { current: null };
obj[1] = [];
obj[2] = function invalidate() {
return null;
};
const context = importAllResult.createContext(obj);
const result = require("set").fileFinishedImporting("design/components/Layers/native/LayerContext.native.tsx");
export { LayerContextManager };
export const LayerContext = context;