decord/source/stores/LayerStore.tsx

47 lines
1.2 KiB
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 11718
// Function ID: 11719
2026-07-29 08:29:29 +00:00
// Name: handlePopAllLayers
// Dependencies: [589, 709, 2]
2026-07-23 10:11:24 +00:00
2026-08-05 07:35:12 +00:00
// Module 11718 (handlePopAllLayers)
2026-07-29 08:29:29 +00:00
import { Store } from "initialize";
2026-07-20 16:05:17 +00:00
function handlePopAllLayers() {
2026-07-29 08:29:29 +00:00
let closure_0 = [];
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
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"), {
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;