survey-pdf 1.9.34 → 1.9.37

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.34",
3
+ "version": "1.9.37",
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",
package/survey.pdf.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- /*Type definitions for SurveyJS PDF library v1.9.34
1
+ /*Type definitions for SurveyJS PDF library v1.9.37
2
2
  Copyright (c) 2015-2022 Devsoft Baltic OÜ - http://surveyjs.io/
3
3
  Definitions by: Devsoft Baltic OÜ <https://github.com/surveyjs/>
4
4
  */
5
5
  // Dependencies for this module:
6
6
  // ../../../../survey-core
7
7
 
8
- import { SurveyModel, Event } from 'survey-core';
8
+ import { SurveyModel } from 'survey-core';
9
9
  import { IQuestion, Question, QuestionRatingModel, QuestionFileModel, LocalizableString } from 'survey-core';
10
10
  import { QuestionBooleanModel } from 'survey-core';
11
11
  import { ItemValue, QuestionCheckboxModel } from 'survey-core';
@@ -25,6 +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
29
  import { PageModel } from 'survey-core';
29
30
 
30
31
  /**
@@ -45,13 +46,13 @@ export declare class SurveyPDF extends SurveyModel {
45
46
  * @param survey SurveyPDF object that fires the event
46
47
  * @param canvas DrawCanvas object that you may use it to draw text and images in the page header
47
48
  */
48
- onRenderHeader: Event<(survey: SurveyPDF, canvas: DrawCanvas) => any, any>;
49
+ onRenderHeader: EventAsync<(survey: SurveyPDF, canvas: DrawCanvas) => any, any>;
49
50
  /**
50
51
  * The event in fired for every rendered page
51
52
  * @param survey SurveyPDF object that fires the event
52
53
  * @param canvas DrawCanvas object that you may use it to draw text and images in the page footer
53
54
  */
54
- onRenderFooter: Event<(survey: SurveyPDF, canvas: DrawCanvas) => any, any>;
55
+ onRenderFooter: EventAsync<(survey: SurveyPDF, canvas: DrawCanvas) => any, any>;
55
56
  /**
56
57
  * The event in fired for every rendered question
57
58
  * @param survey SurveyPDF object that fires the event
@@ -637,7 +638,7 @@ export declare class EventAsync<T extends Function, Options> extends Event<T, Op
637
638
  fire(sender: any, options: Options): Promise<void>;
638
639
  }
639
640
  export declare class EventHandler {
640
- static process_header_events(survey: SurveyPDF, controller: DocController, packs: IPdfBrick[][]): void;
641
+ static process_header_events(survey: SurveyPDF, controller: DocController, packs: IPdfBrick[][]): Promise<void>;
641
642
  }
642
643
 
643
644
  /**
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS PDF library v1.9.34
2
+ * surveyjs - SurveyJS PDF library v1.9.37
3
3
  * Copyright (c) 2015-2022 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.34
2
+ * surveyjs - SurveyJS PDF library v1.9.37
3
3
  * Copyright (c) 2015-2022 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */