decord/source/stores/LayerStore.tsx
2026-08-05 07:35:12 +00:00

46 lines
1.2 KiB
TypeScript

// Module ID: 11718
// Function ID: 11719
// Name: handlePopAllLayers
// Dependencies: [589, 709, 2]
// Module 11718 (handlePopAllLayers)
import { Store } from "initialize";
function handlePopAllLayers() {
let closure_0 = [];
}
let closure_0 = [];
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";
const layerStore = new LayerStore(require("dispatcher"), {
LAYER_PUSH: function handleAddLayer(component) {
component = component.component;
if (items.indexOf(component) >= 0) {
return false;
} else {
items = [];
items[HermesBuiltin.arraySpread(items, 0)] = component;
}
},
LAYER_POP: function handleRemoveLayer() {
if (0 === arr.length) {
return false;
} else {
arr = arr.slice(0, -1);
}
},
LAYER_POP_ALL: handlePopAllLayers,
LOGOUT: handlePopAllLayers,
NOTIFICATION_CLICK: handlePopAllLayers
});
const result = require("set").fileFinishedImporting("stores/LayerStore.tsx");
export default layerStore;