survey-pdf 1.9.71 → 1.9.74

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "survey-pdf",
3
- "version": "1.9.71",
3
+ "version": "1.9.74",
4
4
  "description": "survey.pdf.js is a SurveyJS PDF Library. It is a easy way to export SurveyJS surveys to PDF. It uses JSON for survey metadata.",
5
5
  "keywords": [
6
6
  "Survey",
@@ -26,6 +26,6 @@
26
26
  "typings": "survey.pdf.d.ts",
27
27
  "dependencies": {
28
28
  "jspdf": "^2.3.0",
29
- "survey-core": "1.9.71"
29
+ "survey-core": "1.9.74"
30
30
  }
31
31
  }
package/survey.pdf.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- /*Type definitions for SurveyJS PDF library v1.9.71
1
+ /*Type definitions for SurveyJS PDF library v1.9.74
2
2
  Copyright (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
3
3
  Definitions by: Devsoft Baltic OÜ <https://github.com/surveyjs/>
4
4
  */
@@ -25,7 +25,7 @@ import { PanelModel } from 'survey-core';
25
25
  import { QuestionMatrixModel, MatrixRowModel } from 'survey-core';
26
26
  import { QuestionMatrixDropdownModelBase } from 'survey-core';
27
27
  import { QuestionMultipleTextModel } from 'survey-core';
28
- import { Event } from 'survey-core';
28
+ import { EventBase } from 'survey-core';
29
29
  import { PageModel } from 'survey-core';
30
30
 
31
31
  /**
@@ -46,34 +46,34 @@ export declare class SurveyPDF extends SurveyModel {
46
46
  * @param survey SurveyPDF object that fires the event
47
47
  * @param canvas DrawCanvas object that you may use it to draw text and images in the page header
48
48
  */
49
- onRenderHeader: EventAsync<(survey: SurveyPDF, canvas: DrawCanvas) => any, any>;
49
+ onRenderHeader: EventAsync<SurveyPDF, DrawCanvas>;
50
50
  /**
51
51
  * The event in fired for every rendered page
52
52
  * @param survey SurveyPDF object that fires the event
53
53
  * @param canvas DrawCanvas object that you may use it to draw text and images in the page footer
54
54
  */
55
- onRenderFooter: EventAsync<(survey: SurveyPDF, canvas: DrawCanvas) => any, any>;
55
+ onRenderFooter: EventAsync<SurveyPDF, DrawCanvas>;
56
56
  /**
57
57
  * The event in fired for every rendered question
58
58
  * @param survey SurveyPDF object that fires the event
59
59
  * @param options AdornersOptions object that have options to custom render the question
60
60
  */
61
- onRenderQuestion: EventAsync<(survey: SurveyPDF, options: AdornersOptions) => any, any>;
61
+ onRenderQuestion: EventAsync<SurveyPDF, AdornersOptions>;
62
62
  /**
63
63
  * The event in fired for every rendered panel
64
64
  * @param survey SurveyPDF object that fires the event
65
65
  * @param options AdornersPanelOptions object that have options to custom render the panel
66
66
  */
67
- onRenderPanel: EventAsync<(survey: SurveyPDF, options: AdornersPanelOptions) => any, any>;
67
+ onRenderPanel: EventAsync<SurveyPDF, AdornersPanelOptions>;
68
68
  /**
69
69
  * The event in fired for every rendered page
70
70
  * @param survey SurveyPDF object that fires the event
71
71
  * @param options AdornersPageOptions object that have options to custom render the page
72
72
  */
73
- onRenderPage: EventAsync<(survey: SurveyPDF, options: AdornersPageOptions) => any, any>;
74
- onRenderCheckItemAcroform: EventAsync<(survey: SurveyPDF, options: any) => any, any>;
75
- onRenderRadioGroupWrapAcroform: EventAsync<(survey: SurveyPDF, options: any) => any, any>;
76
- onRenderRadioItemAcroform: EventAsync<(survey: SurveyPDF, options: any) => any, any>;
73
+ onRenderPage: EventAsync<SurveyPDF, AdornersPageOptions>;
74
+ onRenderCheckItemAcroform: EventAsync<SurveyPDF, any>;
75
+ onRenderRadioGroupWrapAcroform: EventAsync<SurveyPDF, any>;
76
+ onRenderRadioItemAcroform: EventAsync<SurveyPDF, any>;
77
77
  getUpdatedCheckItemAcroformOptions(options: any): void;
78
78
  getUpdatedRadioGroupWrapOptions(options: any): void;
79
79
  getUpdatedRadioItemAcroformOptions(options: any): void;
@@ -647,9 +647,9 @@ export declare class PagePacker {
647
647
  static pack(flats: IPdfBrick[][], controller: DocController): IPdfBrick[][];
648
648
  }
649
649
 
650
- export declare class EventAsync<T extends Function, Options> extends Event<T, Options> {
651
- unshift(func: T): void;
652
- fire(sender: any, options: Options): Promise<void>;
650
+ export declare class EventAsync<Sender, Options> extends EventBase<Sender, Options> {
651
+ unshift(func: (sender: Sender, options: Options) => any): void;
652
+ fire(sender: Sender, options: Options): Promise<void>;
653
653
  }
654
654
  export declare class EventHandler {
655
655
  static process_header_events(survey: SurveyPDF, controller: DocController, packs: IPdfBrick[][]): Promise<void>;
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS PDF library v1.9.71
2
+ * surveyjs - SurveyJS PDF library v1.9.74
3
3
  * Copyright (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS PDF library v1.9.71
2
+ * surveyjs - SurveyJS PDF library v1.9.74
3
3
  * Copyright (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */