@embedpdf-editor/vue3-chapter-viewer 1.0.7-beta.3 → 1.0.7-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +4620 -4932
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
|
@@ -217,7 +217,9 @@ export declare class ChapterManagerPlugin extends BasePlugin<ChapterManagerPlugi
|
|
|
217
217
|
private readonly pendingChapterUrlsPromises;
|
|
218
218
|
private unloadTimer;
|
|
219
219
|
private documentManagerUnsubs;
|
|
220
|
-
|
|
220
|
+
/** 可见区驱动的分段加载 backlog(限制并发 open,避免仅缓存 URL 却不请求 PDF) */
|
|
221
|
+
private visibleSegmentBacklog;
|
|
222
|
+
private activeVisibleSegmentLoads;
|
|
221
223
|
/** 视口内下一段预取,优先级 = 视口距离 + 该值 */
|
|
222
224
|
private readonly SEG_PRIO_PREFETCH_NEXT;
|
|
223
225
|
/** 相邻章仅预取第 0 段 */
|
|
@@ -239,6 +241,10 @@ export declare class ChapterManagerPlugin extends BasePlugin<ChapterManagerPlugi
|
|
|
239
241
|
private lastVisibleIndicesKey;
|
|
240
242
|
visibleRangeNeedsSegmentLoad(visibleGlobalPageIndices: number[]): boolean;
|
|
241
243
|
shouldShowChapterLoadError(chapterId: string, segmentIndex: number): boolean;
|
|
244
|
+
private clearVisibleSegmentBacklog;
|
|
245
|
+
/** 按优先级排队并立即 pump,确保在 loadChapterUrls 缓存后会 open PDF */
|
|
246
|
+
private scheduleVisibleSegmentLoads;
|
|
247
|
+
private pumpVisibleSegmentBacklog;
|
|
242
248
|
private prepareChapterForSegmentLoad;
|
|
243
249
|
private handleVisibleChange;
|
|
244
250
|
private collectIdleChapters;
|