decord/beta/source/actions/DimensionActionCreators.tsx

50 lines
1.7 KiB
TypeScript
Raw Permalink Normal View History

2026-10-12 16:32:48 +00:00
// Module ID: 10677
// Function ID: 10678
// Name: DimensionActionCreators
2026-10-07 22:43:51 +00:00
// Dependencies: [584, 2]
2026-10-12 16:32:48 +00:00
// Module 10677 (DimensionActionCreators)
2026-10-07 22:43:51 +00:00
import DispatcherDefault from "Dispatcher" /* 584 */;
import size from "module_2" /* 2 */;
2026-10-01 14:13:23 +00:00
let obj = {
updateChannelDimensions(id, eventTimestamp, scrollTop, scrollHeight, offsetHeight, fn) {
2026-10-01 14:13:23 +00:00
const obj = DispatcherDefault;
const obj2 = { type: "UPDATE_CHANNEL_DIMENSIONS", channelId: id, timestamp: eventTimestamp, scrollTop, scrollHeight, offsetHeight };
obj.dispatch(obj2);
if (fn != null) {
fn();
}
},
updateChannelListScroll(guildId, scrollTop) {
let items = arg2;
if (arg2 === undefined) {
items = [];
}
2026-10-01 14:13:23 +00:00
const obj = DispatcherDefault;
const obj2 = { type: "UPDATE_CHANNEL_LIST_DIMENSIONS", guildId, scrollTop, channelIds: items };
obj.dispatch(obj2);
},
channelListScrollTo(guildId, dMFromUserId) {
2026-10-01 14:13:23 +00:00
const obj = DispatcherDefault;
const obj2 = { type: "UPDATE_CHANNEL_LIST_DIMENSIONS", guildId, scrollTo: dMFromUserId, channelIds: [] };
obj.dispatch(obj2);
},
clearChannelListScrollTo(guildId) {
2026-10-01 14:13:23 +00:00
const obj = DispatcherDefault;
const obj2 = { type: "UPDATE_CHANNEL_LIST_DIMENSIONS", guildId, scrollTo: null, channelIds: [] };
obj.dispatch(obj2);
},
clearChannelDimensions(channelId, fn) {
const result = this.updateChannelDimensions(channelId, Date.now(), null, null, null, fn);
},
updateGuildListScrollTo(scrollTop) {
2026-10-01 14:13:23 +00:00
const obj = DispatcherDefault;
const obj2 = { type: "UPDATE_GUILD_LIST_DIMENSIONS", scrollTop };
obj.dispatch(obj2);
}
};
2026-10-01 14:13:23 +00:00
let result = size.fileFinishedImporting("actions/DimensionActionCreators.tsx");
export default obj;