mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-07-16 11:23:10 +02:00
Print with embed (#5109)
This commit is contained in:
@@ -49,6 +49,10 @@ export interface SearchAPIWrapper {
|
||||
goToResult: (index: number) => void;
|
||||
}
|
||||
|
||||
export interface PrintAPIWrapper {
|
||||
print: () => void;
|
||||
}
|
||||
|
||||
export interface ThumbnailAPIWrapper {
|
||||
renderThumb: (pageIndex: number, scale: number) => {
|
||||
toPromise: () => Promise<Blob>;
|
||||
@@ -132,6 +136,7 @@ export interface BridgeStateMap {
|
||||
thumbnail: unknown;
|
||||
export: ExportState;
|
||||
bookmark: BookmarkState;
|
||||
print: unknown;
|
||||
}
|
||||
|
||||
export interface BridgeApiMap {
|
||||
@@ -145,6 +150,7 @@ export interface BridgeApiMap {
|
||||
thumbnail: ThumbnailAPIWrapper;
|
||||
export: ExportAPIWrapper;
|
||||
bookmark: BookmarkAPIWrapper;
|
||||
print: PrintAPIWrapper;
|
||||
}
|
||||
|
||||
export type BridgeKey = keyof BridgeStateMap;
|
||||
@@ -164,6 +170,7 @@ export const createBridgeRegistry = (): ViewerBridgeRegistry => ({
|
||||
thumbnail: null,
|
||||
export: null,
|
||||
bookmark: null,
|
||||
print: null,
|
||||
});
|
||||
|
||||
export function registerBridge<K extends BridgeKey>(
|
||||
|
||||
Reference in New Issue
Block a user