decord/alpha/source/actions/DimensionActionCreators.tsx

50 lines
1.7 KiB
TypeScript
Raw Permalink Normal View History

2026-10-10 08:08:14 +00:00
// Module ID: 10677
// Function ID: 10678
// Name: DimensionActionCreators
2026-10-03 08:58:59 +00:00
// Dependencies: [584, 2]
2026-07-20 16:05:17 +00:00
2026-10-10 08:08:14 +00:00
// Module 10677 (DimensionActionCreators)
2026-10-03 08:58:59 +00:00
import DispatcherDefault from "Dispatcher" /* 584 */;
import size from "module_2" /* 2 */;
2026-08-24 06:08:38 +00:00
2026-10-03 08:58:59 +00:00
let obj = {
updateChannelDimensions(id, eventTimestamp, scrollTop, scrollHeight, offsetHeight, fn) {
2026-10-03 08:58:59 +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();
2026-07-20 16:05:17 +00:00
}
},
updateChannelListScroll(guildId, scrollTop) {
let items = arg2;
if (arg2 === undefined) {
items = [];
}
2026-10-03 08:58:59 +00:00
const obj = DispatcherDefault;
const obj2 = { type: "UPDATE_CHANNEL_LIST_DIMENSIONS", guildId, scrollTop, channelIds: items };
obj.dispatch(obj2);
2026-07-20 16:05:17 +00:00
},
channelListScrollTo(guildId, dMFromUserId) {
2026-10-03 08:58:59 +00:00
const obj = DispatcherDefault;
const obj2 = { type: "UPDATE_CHANNEL_LIST_DIMENSIONS", guildId, scrollTo: dMFromUserId, channelIds: [] };
obj.dispatch(obj2);
2026-07-20 16:05:17 +00:00
},
clearChannelListScrollTo(guildId) {
2026-10-03 08:58:59 +00:00
const obj = DispatcherDefault;
const obj2 = { type: "UPDATE_CHANNEL_LIST_DIMENSIONS", guildId, scrollTo: null, channelIds: [] };
obj.dispatch(obj2);
2026-07-20 16:05:17 +00:00
},
clearChannelDimensions(channelId, fn) {
const result = this.updateChannelDimensions(channelId, Date.now(), null, null, null, fn);
2026-07-20 16:05:17 +00:00
},
updateGuildListScrollTo(scrollTop) {
2026-10-03 08:58:59 +00:00
const obj = DispatcherDefault;
const obj2 = { type: "UPDATE_GUILD_LIST_DIMENSIONS", scrollTop };
obj.dispatch(obj2);
2026-07-20 16:05:17 +00:00
}
};
2026-10-03 08:58:59 +00:00
let result = size.fileFinishedImporting("actions/DimensionActionCreators.tsx");
export default obj;