@embedpdf/plugin-render 3.0.0-next.14 → 3.0.0-next.16
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/contract/host.cjs +18 -0
- package/dist/contract/host.cjs.map +1 -0
- package/dist/contract/host.d.cts +3 -0
- package/dist/contract/host.d.ts +3 -0
- package/dist/contract/host.js +16 -0
- package/dist/contract/host.js.map +1 -0
- package/dist/contract-CGcu-84H.cjs +124 -0
- package/dist/contract-CGcu-84H.cjs.map +1 -0
- package/dist/contract-Dy5TiQDy.js +95 -0
- package/dist/contract-Dy5TiQDy.js.map +1 -0
- package/dist/contract-uc5nOice.d.cts +279 -0
- package/dist/contract-uc5nOice.d.ts +279 -0
- package/dist/contract.cjs +3 -1
- package/dist/contract.d.cts +2 -2
- package/dist/contract.d.ts +2 -2
- package/dist/contract.js +2 -2
- package/dist/host-contract-CTOQn0Xz.d.cts +127 -0
- package/dist/host-contract-CsjZjWjb.d.ts +127 -0
- package/dist/index.cjs +869 -493
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +29 -12
- package/dist/index.d.ts +29 -12
- package/dist/index.js +866 -492
- package/dist/index.js.map +1 -1
- package/package.json +7 -3
- package/dist/contract-Bvlo2Ukp.cjs +0 -11
- package/dist/contract-Bvlo2Ukp.cjs.map +0 -1
- package/dist/contract-BvwW7rrm.js +0 -7
- package/dist/contract-BvwW7rrm.js.map +0 -1
- package/dist/contract-CWPMd1OW.d.cts +0 -332
- package/dist/contract-CWPMd1OW.d.ts +0 -332
package/dist/index.d.ts
CHANGED
|
@@ -1,17 +1,34 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { _ as PageViewDemand, a as PageRender, b as TilesOptions, c as RenderConfig, d as RenderPageOptions, f as RenderPagesOptions, g as FullPageOptions, h as RenderToken, i as PageLayerOptions, l as RenderFormat, m as RenderThumbnailOptions, n as InvalidateScope, o as RENDER_DEFAULTS, p as RenderSettings, r as PageImage, s as RenderCapability, t as InvalidateOptions, u as RenderInvalidatedEvent, x as samePageViewDemand } from "./contract-uc5nOice.js";
|
|
2
|
+
import { c as RenderHostCapability } from "./host-contract-CsjZjWjb.js";
|
|
3
|
+
import { PageObjectNumber } from "@embedpdf/core";
|
|
4
|
+
//#region src/model.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Per-page versions of what a page picture can draw: the page content, its
|
|
7
|
+
* annotations and its form fields. Fed by the document event stream and by
|
|
8
|
+
* the `invalidate` verb: a confirmed pixel-changing fact, own or remote,
|
|
9
|
+
* bumps the touched pages, and anything holding a rendered bitmap refetches.
|
|
10
|
+
* A picture's version is the sum of the parts it draws, and is part of every
|
|
11
|
+
* raster and tile key.
|
|
12
|
+
*/
|
|
13
|
+
interface RenderState {
|
|
14
|
+
/** Content versions, bumped by content facts (redaction, flatten). */
|
|
15
|
+
readonly contentEpochs: Readonly<Record<PageObjectNumber, number>>;
|
|
16
|
+
/** Annotation versions, bumped by annotation facts (widgets excepted). */
|
|
17
|
+
readonly annotationEpochs: Readonly<Record<PageObjectNumber, number>>;
|
|
18
|
+
/** Form field versions, bumped by form facts: a fill, a widget's move or look, a signing. */
|
|
19
|
+
readonly fieldEpochs: Readonly<Record<PageObjectNumber, number>>;
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
2
22
|
//#region src/render.plugin.d.ts
|
|
3
23
|
/**
|
|
4
|
-
* Document-scoped. The
|
|
5
|
-
*
|
|
6
|
-
* policy
|
|
7
|
-
* same-
|
|
8
|
-
* demand into a retention-safe paint plan over the
|
|
9
|
-
* per-page
|
|
10
|
-
* built-in map and the `invalidate` verb), the policy latch, and the tile
|
|
11
|
-
* wake-up counter. Layers key on `renderSourceKey`/`tilePlan` and refetch
|
|
12
|
-
* exactly when those change.
|
|
24
|
+
* Document-scoped page rasters. The only render-policy consumer in the
|
|
25
|
+
* client stack: the kernel materializes the engine's advertised render
|
|
26
|
+
* policy on the document, the controller conforms desired scales to it and
|
|
27
|
+
* collapses same-key asks in its raster store, and the tile manager turns
|
|
28
|
+
* host-supplied demand into a retention-safe paint plan over the same store.
|
|
29
|
+
* State is the per-page raster-version ledger.
|
|
13
30
|
*/
|
|
14
|
-
declare const renderPlugin: (
|
|
31
|
+
declare const renderPlugin: (config?: RenderConfig) => import("@embedpdf/core").PluginDef<RenderState, RenderHostCapability, RenderSettings>;
|
|
15
32
|
//#endregion
|
|
16
|
-
export { type FullPageOptions,
|
|
33
|
+
export { type FullPageOptions, InvalidateOptions, InvalidateScope, PageImage, PageLayerOptions, PageRender, type PageViewDemand, type PageViewDemand as ViewDemandInput, RENDER_DEFAULTS, RenderCapability, RenderConfig, RenderFormat, RenderInvalidatedEvent, RenderPageOptions, RenderPagesOptions, RenderSettings, RenderThumbnailOptions, RenderToken, type TilesOptions, renderPlugin, samePageViewDemand };
|
|
17
34
|
//# sourceMappingURL=index.d.ts.map
|