feat: chapter runtime refactoring and related updates
- Refactor chapter runtime: replace window coordinator/snapshot with warmup orchestrator - Update EPUB core: parser, reading session, JS bridge, navigator layout - Update reader controller: data source, location resolution, persistence - Update chapter runtime: data cache, loader, runtime store, disk cache, warmup orchestrator - Remove deprecated navigation state machine and pagination state - Update text rendering: book cache, HTML normalizer - Update UI: text content view, dark image adjuster, text selection controller - Update settings and reader configuration - Add CODE_REVIEW.md and AUDIT_FINAL.md documentation - Update pod dependencies (remove SSAlertSwift, SnapKit) - Update podspec and pod configuration files Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
+1
-3
@@ -251,8 +251,7 @@ RDEPUBReaderController
|
||||
├─ RDEPUBPresentationRuntime // 分页状态与窗口替换
|
||||
│ ├─ applyBookPageMap()
|
||||
│ ├─ refreshBookPageMapInPlace()
|
||||
│ ├─ applyPendingFullPageMapIfNeeded()
|
||||
│ └─ RDEPUBNavigationStateMachine
|
||||
│ └─ applyPendingFullPageMapIfNeeded()
|
||||
│
|
||||
├─ RDEPUBChapterWarmupOrchestrator // 按需章节预热与边界预取
|
||||
│ ├─ prepareOnDemandChapter()
|
||||
@@ -495,7 +494,6 @@ Sources/RDReaderView/
|
||||
| **Builder** | `RDEPUBBookPageMap.Builder` 增量构建页码映射 |
|
||||
| **Strategy** | `RDEPUBTextRenderer` 协议,可替换渲染器实现 |
|
||||
| **Pipeline** | `RDEPUBTextTypesetterPipeline` 排版管线(8 个逻辑阶段,封装为 5-6 个顶层调用) |
|
||||
| **State Machine** | `RDEPUBNavigatorState` 管理阅读器状态转换 |
|
||||
| **Adapter** | `RDReaderLegacyDataSourceAdapter` 适配旧数据源协议 |
|
||||
| **三级缓存** | 内存 → 磁盘摘要 → 全书分页,逐级降级 |
|
||||
| **Token 取消** | `paginationToken` 确保过期异步任务不干扰新任务 |
|
||||
|
||||
Reference in New Issue
Block a user