@embedpdf-editor/vue3-chapter-viewer 1.0.7-beta.5 → 1.0.7-beta.7
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 +4 -3
- package/dist/index.js +1591 -1471
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
package/dist/index.d.ts
CHANGED
|
@@ -225,6 +225,7 @@ export declare class ChapterManagerPlugin extends BasePlugin<ChapterManagerPlugi
|
|
|
225
225
|
protected buildCapability(): ChapterManagerCapability;
|
|
226
226
|
destroy(): void;
|
|
227
227
|
private setManifestInternal;
|
|
228
|
+
/** manifest 就绪后仅预取 URL 列表;open PDF 由视口/首章门控驱动,避免抢并发槽 */
|
|
228
229
|
private eagerPrefetchFromManifest;
|
|
229
230
|
private findChapter;
|
|
230
231
|
private getSegmentPlanForChapter;
|
|
@@ -238,9 +239,9 @@ export declare class ChapterManagerPlugin extends BasePlugin<ChapterManagerPlugi
|
|
|
238
239
|
visibleRangeNeedsSegmentLoad(visibleGlobalPageIndices: number[]): boolean;
|
|
239
240
|
shouldShowChapterLoadError(chapterId: string, segmentIndex: number): boolean;
|
|
240
241
|
private clearVisibleSegmentBacklog;
|
|
241
|
-
/**
|
|
242
|
-
private
|
|
243
|
-
/**
|
|
242
|
+
/** 分段起始页在整本中的 globalPageIndex(用于算与视口距离) */
|
|
243
|
+
private segmentStartGlobalIndex;
|
|
244
|
+
/** 按视口距离重建队列并立即 pump */
|
|
244
245
|
private scheduleVisibleSegmentLoads;
|
|
245
246
|
private pumpVisibleSegmentBacklog;
|
|
246
247
|
private prepareChapterForSegmentLoad;
|