cnf
2025-05-10 386fa0eca75ddc88165f9b73038f2a2239e1072e
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
47
export type AnnotationStorage = import("./annotation_storage").AnnotationStorage;
export type PageViewport = import("./display_utils").PageViewport;
export type IPDFLinkService = import("../../web/interfaces").IPDFLinkService;
export type XfaLayerParameters = {
    viewport: PageViewport;
    div: HTMLDivElement;
    xfaHtml: Object;
    annotationStorage?: import("./annotation_storage").AnnotationStorage | undefined;
    linkService: IPDFLinkService;
    /**
     * - (default value is 'display').
     */
    intent?: string | undefined;
};
/**
 * @typedef {Object} XfaLayerParameters
 * @property {PageViewport} viewport
 * @property {HTMLDivElement} div
 * @property {Object} xfaHtml
 * @property {AnnotationStorage} [annotationStorage]
 * @property {IPDFLinkService} linkService
 * @property {string} [intent] - (default value is 'display').
 */
export class XfaLayer {
    static setupStorage(html: any, id: any, element: any, storage: any, intent: any): void;
    static setAttributes({ html, element, storage, intent, linkService }: {
        html: any;
        element: any;
        storage?: null | undefined;
        intent: any;
        linkService: any;
    }): void;
    /**
     * Render the XFA layer.
     *
     * @param {XfaLayerParameters} parameters
     */
    static render(parameters: XfaLayerParameters): {
        textDivs: Text[];
    };
    /**
     * Update the XFA layer.
     *
     * @param {XfaLayerParameters} parameters
     */
    static update(parameters: XfaLayerParameters): void;
}