decord/alpha/source/actions/LayerActionCreators.tsx

26 lines
769 B
TypeScript
Raw Normal View History

2026-10-12 06:59:38 +00:00
// Module ID: 7307
// Function ID: 7308
// Name: LayerActionCreators
2026-10-03 08:58:59 +00:00
// Dependencies: [584, 2]
2026-07-20 16:05:17 +00:00
// Exports: popAllLayers, popLayer, pushLayer
2026-10-12 06:59:38 +00:00
// Module 7307 (LayerActionCreators)
2026-10-03 08:58:59 +00:00
import DispatcherDefault from "Dispatcher" /* 584 */;
import size from "module_2" /* 2 */;
2026-08-24 06:08:38 +00:00
const result = size.fileFinishedImporting("actions/LayerActionCreators.tsx");
2026-07-20 16:05:17 +00:00
export const pushLayer = function pushLayer(component) {
2026-10-03 08:58:59 +00:00
const obj = DispatcherDefault;
const obj2 = { type: "LAYER_PUSH", component };
obj.dispatch(obj2);
2026-07-20 16:05:17 +00:00
};
export const popLayer = function popLayer() {
2026-10-03 08:58:59 +00:00
const obj = DispatcherDefault;
obj.dispatch({ type: "LAYER_POP" });
2026-07-20 16:05:17 +00:00
};
export const popAllLayers = function popAllLayers() {
2026-10-03 08:58:59 +00:00
const obj = DispatcherDefault;
obj.dispatch({ type: "LAYER_POP_ALL" });
2026-07-20 16:05:17 +00:00
};