@embedpdf/plugin-render 3.0.0-next.13 → 3.0.0-next.15

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
@@ -1,17 +1,34 @@
1
- import { a as RenderPluginOptions, c as FullPageOptions, d as TilePaintSource, f as TilesOptions, i as RenderCapability, l as PageViewDemand, n as PaintSettings, o as RenderState, r as RenderAction, s as RenderToken, t as InvalidateScope, u as TilePaintPlan } from "./contract-CWPMd1OW.js";
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 ONE policy consumer in the client stack: the doc-bind
5
- * effect resolves the engine's advertised render
6
- * policy; `renderPage` conforms desired scales to it and collapses
7
- * same-rung asks in the raster store; the tile manager turns host-supplied
8
- * demand into a retention-safe paint plan over the SAME store. State is the
9
- * per-page ledger — raster versions (two doors: the document event stream's
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: (options?: RenderPluginOptions) => import("@embedpdf/core").PluginDef<RenderState, RenderAction, RenderCapability>;
31
+ declare const renderPlugin: (config?: RenderConfig) => import("@embedpdf/core").PluginDef<RenderState, RenderHostCapability, RenderSettings>;
15
32
  //#endregion
16
- export { type FullPageOptions, type InvalidateScope, type PageViewDemand, type PaintSettings, type RenderCapability, type RenderPluginOptions, type RenderState, RenderToken, type TilePaintPlan, type TilePaintSource, type TilesOptions, renderPlugin };
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