@embedpdf-editor/vue3-chapter-viewer 1.0.7-beta.1 → 1.0.7-beta.3
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 +8 -0
- package/dist/index.js +3497 -2982
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -163,6 +163,10 @@ declare interface ChapterManagerCapability {
|
|
|
163
163
|
* 索引含上下 buffer(与 layout.items 范围一致),不仅是严格视口内页。
|
|
164
164
|
*/
|
|
165
165
|
setVisibleGlobalPages(visiblePageIndices: number[]): void;
|
|
166
|
+
/** 可见区内是否仍有未 open 的分段(用于滚动侧避免误跳过加载) */
|
|
167
|
+
visibleRangeNeedsSegmentLoad(visiblePageIndices: number[]): boolean;
|
|
168
|
+
/** 占位槽是否应显示章级失败(排除仍在排队/加载中的情况) */
|
|
169
|
+
shouldShowChapterLoadError(chapterId: string, segmentIndex: number): boolean;
|
|
166
170
|
/** 显式触发某章节加载(分段章节仅加载第 0 段) */
|
|
167
171
|
ensureChapterLoaded(chapterId: string): Promise<ChapterLoadStatus>;
|
|
168
172
|
/** 加载章内指定分段 PDF */
|
|
@@ -229,9 +233,13 @@ export declare class ChapterManagerPlugin extends BasePlugin<ChapterManagerPlugi
|
|
|
229
233
|
private anySegmentOpen;
|
|
230
234
|
private isSegmentDocumentOpen;
|
|
231
235
|
private resolveSegmentDocumentId;
|
|
236
|
+
private isAnySegmentWorkPending;
|
|
232
237
|
private isSegmentLoadPending;
|
|
233
238
|
private syncChapterStatusFromDocuments;
|
|
234
239
|
private lastVisibleIndicesKey;
|
|
240
|
+
visibleRangeNeedsSegmentLoad(visibleGlobalPageIndices: number[]): boolean;
|
|
241
|
+
shouldShowChapterLoadError(chapterId: string, segmentIndex: number): boolean;
|
|
242
|
+
private prepareChapterForSegmentLoad;
|
|
235
243
|
private handleVisibleChange;
|
|
236
244
|
private collectIdleChapters;
|
|
237
245
|
ensureChapterLoaded(chapterId: string): Promise<ChapterLoadStatus>;
|