decord/stable/source/actions/LayerActionCreators.tsx

26 lines
769 B
TypeScript
Raw Permalink Normal View History

2026-10-06 22:12:49 +00:00
// Module ID: 7010
// Function ID: 7011
// Name: LayerActionCreators
2026-10-06 22:12:49 +00:00
// Dependencies: [585, 2]
// Exports: popAllLayers, popLayer, pushLayer
2026-10-06 22:12:49 +00:00
// Module 7010 (LayerActionCreators)
import DispatcherDefault from "Dispatcher" /* 585 */;
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("actions/LayerActionCreators.tsx");
export const pushLayer = function pushLayer(component) {
2026-10-06 22:12:49 +00:00
const obj = DispatcherDefault;
const obj2 = { type: "LAYER_PUSH", component };
obj.dispatch(obj2);
};
export const popLayer = function popLayer() {
2026-10-06 22:12:49 +00:00
const obj = DispatcherDefault;
obj.dispatch({ type: "LAYER_POP" });
};
export const popAllLayers = function popAllLayers() {
2026-10-06 22:12:49 +00:00
const obj = DispatcherDefault;
obj.dispatch({ type: "LAYER_POP_ALL" });
};