@embedpdf-editor/vue3-chapter-viewer 1.0.4 → 1.0.6

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.d.ts CHANGED
@@ -158,7 +158,10 @@ declare interface ChapterManagerCapability {
158
158
  setManifest(manifest: ChapterManifest, strategy?: OverlapOwnerStrategy): void;
159
159
  getManifest(): ChapterManifest;
160
160
  getVirtualPageMap(): VirtualPageMap;
161
- /** ChapterScrollPlugin 在可见页位变化时调用,用以驱动按需加载 */
161
+ /**
162
+ * ChapterScroll 在可见区变化时调用,用以驱动按需加载。
163
+ * 索引含上下 buffer(与 layout.items 范围一致),不仅是严格视口内页。
164
+ */
162
165
  setVisibleGlobalPages(visiblePageIndices: number[]): void;
163
166
  /** 显式触发某章节加载(分段章节仅加载第 0 段) */
164
167
  ensureChapterLoaded(chapterId: string): Promise<ChapterLoadStatus>;
@@ -170,6 +173,8 @@ declare interface ChapterManagerCapability {
170
173
  resolvePageDocument(chapterId: string, localPageIndex: number): ChapterPageDocumentRef | null;
171
174
  getSegmentPlan(chapterId: string): ChapterSegmentPlan | null;
172
175
  isSegmentLoaded(chapterId: string, segmentIndex: number): boolean;
176
+ isSegmentLoadPending(chapterId: string, segmentIndex: number): boolean;
177
+ getChapterErrorMessage(chapterId: string): string | undefined;
173
178
  /** 状态查询 */
174
179
  getChapterStatus(chapterId: string): ChapterLoadStatus;
175
180
  getChapter(chapterId: string): ChapterDescriptor | null;
@@ -198,6 +203,7 @@ export declare class ChapterManagerPlugin extends BasePlugin<ChapterManagerPlugi
198
203
  private overlapStrategy;
199
204
  private virtualPageMap;
200
205
  private readonly chapterStatus;
206
+ private readonly chapterErrorMessages;
201
207
  private readonly chapterLastUsed;
202
208
  private readonly passwordAttempts;
203
209
  private readonly pendingChapterLoadPromises;
@@ -216,6 +222,8 @@ export declare class ChapterManagerPlugin extends BasePlugin<ChapterManagerPlugi
216
222
  private findChapter;
217
223
  private getSegmentPlanForChapter;
218
224
  private isSegmentDocumentOpen;
225
+ private resolveSegmentDocumentId;
226
+ private isSegmentLoadPending;
219
227
  private syncChapterStatusFromDocuments;
220
228
  private handleVisibleChange;
221
229
  private collectIdleChapters;