@embedpdf-editor/vue3-chapter-viewer 1.0.5 → 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.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +209 -105
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
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
|
-
/**
|
|
161
|
+
/**
|
|
162
|
+
* ChapterScroll 在可见区变化时调用,用以驱动按需加载。
|
|
163
|
+
* 索引含上下 buffer(与 layout.items 范围一致),不仅是严格视口内页。
|
|
164
|
+
*/
|
|
162
165
|
setVisibleGlobalPages(visiblePageIndices: number[]): void;
|
|
163
166
|
/** 显式触发某章节加载(分段章节仅加载第 0 段) */
|
|
164
167
|
ensureChapterLoaded(chapterId: string): Promise<ChapterLoadStatus>;
|