@triiiceratops/plugin-pdf-export 1.0.0-rc.1
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/LICENSE +21 -0
- package/dist/catalog.d.ts +15 -0
- package/dist/contextKey.d.ts +18 -0
- package/dist/exportPdf.d.ts +124 -0
- package/dist/icons.d.ts +9 -0
- package/dist/iife.d.ts +26 -0
- package/dist/iife.js +160 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.js +4111 -0
- package/dist/plugin.d.ts +31 -0
- package/dist/reportError.d.ts +15 -0
- package/dist/styles.d.ts +16 -0
- package/dist/types.d.ts +28 -0
- package/package.json +71 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@triiiceratops/plugin-pdf-export` — ESM entry.
|
|
3
|
+
*
|
|
4
|
+
* Import the plugin factory and activate it explicitly on a viewer. The
|
|
5
|
+
* factory-with-config API is preserved from the RC core subpath:
|
|
6
|
+
*
|
|
7
|
+
* ```ts
|
|
8
|
+
* import {
|
|
9
|
+
* PdfExportPlugin,
|
|
10
|
+
* createPdfExportPlugin,
|
|
11
|
+
* } from '@triiiceratops/plugin-pdf-export';
|
|
12
|
+
*
|
|
13
|
+
* // Preconfigured:
|
|
14
|
+
* // Svelte: <TriiiceratopsViewer plugins={[PdfExportPlugin]} />
|
|
15
|
+
* // WC: viewer.plugins = [PdfExportPlugin];
|
|
16
|
+
*
|
|
17
|
+
* // With consumer config (cover sheet, filename provider, OCR overlays, …):
|
|
18
|
+
* const plugin = createPdfExportPlugin({ coverSheet: { fields: [...] } });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export { createPdfExportPlugin, PdfExportPlugin } from './plugin';
|
|
22
|
+
export type { PdfExportConfig, PdfExportSelection, PdfExportSelectionChangeHandler, } from './types';
|
|
23
|
+
export type { PdfCanvasOcrOverlayProvider, PdfCoverSheetConfig, PdfCoverSheetField, PdfExportFilenameProvider, PdfExportFilenameProviderContext, PdfExportOcrProviderContext, PdfImageLoader, PdfImageLoaderParams, PdfImageRequestConfig, PdfOcrPlacementMode, PdfOcrSizingMode, PdfOcrVisibilityMode, PdfTextOverlay, } from './exportPdf';
|
|
24
|
+
export { buildCoverSheetFields, buildImageRequestInit, buildPdfFilename, extractOcrTextOverlays, exportCanvasRangeAsPdf, normalizeCanvasRange, } from './exportPdf';
|