decord/source/actions/LayerActionCreators.tsx

24 lines
694 B
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 7193
// Function ID: 7194
2026-07-20 16:05:17 +00:00
// Name: pushLayer
2026-07-29 08:29:29 +00:00
// Dependencies: [709, 2]
2026-07-20 16:05:17 +00:00
// Exports: popAllLayers, popLayer, pushLayer
2026-08-25 06:04:03 +00:00
// Module 7193 (pushLayer)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import dispatcherDefault from "dispatcher" /* 709 */;
const result = set.fileFinishedImporting("actions/LayerActionCreators.tsx");
2026-07-20 16:05:17 +00:00
export const pushLayer = function pushLayer(component) {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-20 16:05:17 +00:00
obj = { type: "LAYER_PUSH", component };
obj.dispatch(obj);
};
export const popLayer = function popLayer() {
2026-08-24 06:08:38 +00:00
dispatcherDefault.dispatch({ type: "LAYER_POP" });
2026-07-20 16:05:17 +00:00
};
export const popAllLayers = function popAllLayers() {
2026-08-24 06:08:38 +00:00
dispatcherDefault.dispatch({ type: "LAYER_POP_ALL" });
2026-07-20 16:05:17 +00:00
};