-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.d.ts
46 lines (41 loc) · 1.28 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/// <reference types="svelte" />
/// <reference types="pdfmake" />
import { TDocumentDefinitions } from 'pdfmake/interfaces'
import { SvelteComponent } from 'svelte'
export interface PdfmakeHtmlRendererProps {
/**
* The pdfmake document definition
*/
document: TDocumentDefinitions
/**
* Whether or not to display a shadow around the page.
*
* Defaults to `true`
*/
pageShadow?: boolean
/**
* Rendering / sizing mode
*
* - `shrinkToFit` _(default)_: Shrinks the document to fit in its container,
* but does not grow larger than the document's natural size
* - `zoomToFit`: Shrinks or grows the document to fit in its container
* - `natural`: Renders the document in its exact natural size
* - `fluid`: Ignores the document's `pageSize` and uses the space available in the container
*
* When the `document` definition does not specify a `pageSize` property,
* the standard size `'A4'` is assumed.
*/
mode?: 'shrinkToFit' | 'zoomToFit' | 'natural' | 'fluid'
}
/**
* pdfmake HTML renderer component.
*
* See https://svelte.dev/docs/client-side-component-api
* about how to use Svelte components.
*/
export class PdfmakeHtmlRenderer extends SvelteComponent<
PdfmakeHtmlRendererProps,
{},
{}
> {}
export default PdfmakeHtmlRenderer