MCPcopy Create free account

hub / github.com/SeanFeng91/worldhistoryviz / functions

Functions255 in github.com/SeanFeng91/worldhistoryviz

MethodfilterByYear
(items, year, options = {})
js/map-utils.js:954
FunctionfilterEventsByCategory
(events, category)
js/data-loader.js:295
MethodfilterEventsByTimeRange
* 过滤指定时间范围内的事件 * @param {Array} events - 事件数组 * @param {number} year - 目标年份 * @param {number} range - 范围(正负年数) * @returns {Array}
js/map-utils.js:366
MethodfindClosestMapYear
(year)
js/map-core.js:239
MethodfocusOnLocation
(map, lat, lng, zoomLevel = 12)
js/map-utils.js:972
MethodformatYear
* 格式化年份显示 * @param {number} year - 年份 * @returns {string} 格式化后的年份字符串
js/map-utils.js:868
MethodformatYear
(year)
js/map-features.js:152
MethodgetAreaStyle
(category)
js/map-styles.js:357
MethodgetMarkerStyle
(category)
js/map-styles.js:305
FunctiongetMigrationsForYear
(year)
js/data-loader.js:222
MethodgetPathStyle
(category)
js/map-styles.js:333
MethodgetRandomColor
()
js/map-styles.js:231
FunctiongetRelatedEvents
(events, eventId)
js/data-loader.js:273
MethodgetTimelineAreaInfo
* 获取时间轴区域的边界信息 * 提供给地图和其他组件使用,以协调交互
js/timeline-manager.js:733
MethodhandleDragEnd
(e)
js/timeline-manager.js:1725
MethodhandleDragMove
(e)
js/timeline-manager.js:1677
MethodhandleViewEventDetails
* 处理查看事件详情 * @param {string} eventId - 事件ID
js/app.js:660
MethodhandleYearChanged
* 处理年份变化事件 * @param {number} year - 新的年份
js/app.js:645
MethodhighlightEventsForYear
* 高亮指定年份的事件 * @param {number} year - 年份
js/events-manager.js:572
MethodinitEventsManager
* 初始化事件管理器
js/app.js:401
Methodinitialize
()
js/map-events.js:12
Methodinitialize
()
js/map-core.js:31
Methodinitialize
()
js/map-migrations.js:9
Methodinitialize
* 初始化时间轴 * @param {Object} mapInstance - 地图实例,用于协调时间轴区域和地图交互
js/timeline-manager.js:142
Methodinitialize
()
js/map-features.js:12
MethodisEventRelevantToYear
* 判断事件是否与当前年份相关 * @param {Object} event - 事件对象 * @param {number} currentYear - 当前年份 * @returns {boolean} 事件是否与当前年份相关
js/map-utils.js:708
MethodisInTimelineContainer
(e)
js/timeline-manager.js:569
MethodisMigrationRelevantToYear
* 检查迁徙是否与当前年份相关 * @param {Object} migration - 迁徙路线对象 * @param {number} currentYear - 当前年份 * @returns {boolean} 迁徙路线是否与当前年份相关
js/map-utils.js:779
MethodisSliderElement
(element)
js/timeline-manager.js:555
FunctionloadCategories
()
js/data-loader.js:351
MethodmigrationToGeoJSON
* 将迁徙路线转换为GeoJSON LineString * @param {Object} migration - 迁徙路线对象 * @param {number} progress - 完成百分比(0-1) * @returns {Object} GeoJSON L
js/map-utils.js:405
MethodsetCategory
* 设置当前类别过滤器 * @param {string} category - 类别名称
js/events-manager.js:96
MethodsetEventSelectedCallback
* 设置事件选择回调 * @param {Function} callback - 回调函数
js/events-manager.js:88
MethodsetFilterCategory
(category)
js/map-events.js:75
MethodsetPlaySpeed
* 设置播放速度 * @param {number} speed - 播放速度
js/timeline-manager.js:1598
MethodshowLoader
* 显示加载指示器 * @param {string} message - 加载信息
js/app.js:537
MethodsimpleHash
(str)
js/map-utils.js:925
FunctionsortEventsByImportance
(events, descending = true)
js/data-loader.js:314
FunctionsortEventsByYear
(events, ascending = true)
js/data-loader.js:333
MethodstopEvents
(e)
js/timeline-manager.js:585
MethodstyleByCategory
* 按类别为GeoJSON特征着色 * @param {Object} feature - GeoJSON特征 * @returns {Object} 样式对象
js/map-utils.js:503
MethodtoggleAgriculture
(isActive)
js/map-core.js:501
MethodtoggleDiseases
(isActive)
js/map-core.js:497
MethodtoggleEvents
(isActive)
js/map-core.js:477
MethodtoggleMigrations
(isActive)
js/map-core.js:481
MethodtoggleMigrations
(isVisible)
js/map-migrations.js:374
MethodtoggleMigrations
* 切换迁移路径显示 * @param {boolean} visible - 是否显示
js/app.js:866
MethodtoggleSidebar
* 切换侧边栏显示状态
js/app.js:670
MethodtoggleSpecies
(isActive)
js/map-core.js:489
MethodtoggleTechnologies
(isActive)
js/map-core.js:485
MethodtoggleWars
(isActive)
js/map-core.js:493
MethoduniqueArray
(array, key)
js/map-utils.js:935
MethodupdateToYear
(year, migrationsData)
js/map-migrations.js:14
MethodupdateToYear
(year)
js/map-features.js:16
MethodyearToMapFilename
(year)
js/map-core.js:245
← previous201–255 of 255, ranked by callers