decord/source/stores/LayerStore.tsx

49 lines
1.3 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 12033
// Function ID: 12034
2026-07-29 08:29:29 +00:00
// Name: handlePopAllLayers
// Dependencies: [589, 709, 2]
2026-07-23 10:11:24 +00:00
2026-08-25 06:04:03 +00:00
// Module 12033 (handlePopAllLayers)
2026-08-24 06:08:38 +00:00
import initializeDefault from "initialize" /* 589 */;
import dispatcherDefault from "dispatcher" /* 709 */;
2026-07-20 16:05:17 +00:00
function handlePopAllLayers() {
2026-08-24 06:08:38 +00:00
closure_0 = [];
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
let closure_0 = [];
2026-08-24 06:08:38 +00:00
const Store = initializeDefault.Store;
2026-07-29 08:29:29 +00:00
class LayerStore extends Store {
}
const prototype = LayerStore.prototype;
prototype["hasLayers"] = function hasLayers() {
return arr.length > 0;
};
prototype["getLayers"] = function getLayers() {
return closure_0;
};
LayerStore.displayName = "LayerStore";
2026-08-24 06:08:38 +00:00
const layerStore = new LayerStore(dispatcherDefault, {
2026-07-20 16:05:17 +00:00
LAYER_PUSH: function handleAddLayer(component) {
component = component.component;
2026-07-23 10:11:24 +00:00
if (items.indexOf(component) >= 0) {
2026-07-20 16:05:17 +00:00
return false;
} else {
2026-07-23 10:11:24 +00:00
items = [];
2026-07-29 08:29:29 +00:00
items[HermesBuiltin.arraySpread(items, 0)] = component;
2026-07-20 16:05:17 +00:00
}
},
LAYER_POP: function handleRemoveLayer() {
if (0 === arr.length) {
return false;
} else {
2026-07-23 10:11:24 +00:00
arr = arr.slice(0, -1);
2026-07-20 16:05:17 +00:00
}
},
LAYER_POP_ALL: handlePopAllLayers,
LOGOUT: handlePopAllLayers,
NOTIFICATION_CLICK: handlePopAllLayers
});
2026-07-29 08:29:29 +00:00
const result = require("set").fileFinishedImporting("stores/LayerStore.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default layerStore;