12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- export type AnnotationElementParameters = {
- data: Object;
- layer: HTMLDivElement;
- page: any;
- viewport: any;
- linkService: any;
- downloadManager: any;
- annotationStorage?: AnnotationStorage | undefined;
- /**
- * - Path for image resources, mainly
- * for annotation icons. Include trailing slash.
- */
- imageResourcesPath?: string | undefined;
- renderInteractiveForms: boolean;
- svgFactory: Object;
- enableScripting?: boolean | undefined;
- hasJSActions?: boolean | undefined;
- mouseState?: Object | undefined;
- };
- export type AnnotationLayerParameters = {
- viewport: any;
- div: HTMLDivElement;
- annotations: any[];
- page: any;
- linkService: any;
- downloadManager: any;
- /**
- * - Path for image resources, mainly
- * for annotation icons. Include trailing slash.
- */
- imageResourcesPath?: string | undefined;
- renderInteractiveForms: boolean;
- /**
- * - Enable embedded script execution.
- */
- enableScripting?: boolean | undefined;
- /**
- * - Some fields have JS actions.
- * The default value is `false`.
- */
- hasJSActions?: boolean | undefined;
- };
- /**
- * @typedef {Object} AnnotationLayerParameters
- * @property {PageViewport} viewport
- * @property {HTMLDivElement} div
- * @property {Array} annotations
- * @property {PDFPage} page
- * @property {IPDFLinkService} linkService
- * @property {DownloadManager} downloadManager
- * @property {string} [imageResourcesPath] - Path for image resources, mainly
- * for annotation icons. Include trailing slash.
- * @property {boolean} renderInteractiveForms
- * @property {boolean} [enableScripting] - Enable embedded script execution.
- * @property {boolean} [hasJSActions] - Some fields have JS actions.
- * The default value is `false`.
- */
- export class AnnotationLayer {
- /**
- * Render a new annotation layer with all annotation elements.
- *
- * @public
- * @param {AnnotationLayerParameters} parameters
- * @memberof AnnotationLayer
- */
- public static render(parameters: AnnotationLayerParameters): void;
- /**
- * Update the annotation elements on existing annotation layer.
- *
- * @public
- * @param {AnnotationLayerParameters} parameters
- * @memberof AnnotationLayer
- */
- public static update(parameters: AnnotationLayerParameters): void;
- }
- import { AnnotationStorage } from "./annotation_storage.js";
|