survey-pdf 1.9.19 → 1.9.22

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.19",
3
+ "version": "1.9.22",
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,4 +1,4 @@
1
- /*Type definitions for SurveyJS PDF library v1.9.19
1
+ /*Type definitions for SurveyJS PDF library v1.9.22
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
  */
@@ -173,6 +173,7 @@ export declare class SurveyHelper {
173
173
  static getLocString(text: LocalizableString): string;
174
174
  static getDropdownQuestionValue(question: Question): string;
175
175
  static getContentQuestion(question: Question): Question;
176
+ static getContentQuestionType(question: Question): string;
176
177
  static getRatingMinWidth(controller: DocController): number;
177
178
  static getRatingItemText(question: QuestionRatingModel, index: number, locText: LocalizableString): LocalizableString;
178
179
  static getPageAvailableWidth(controller: DocController): number;
@@ -343,6 +344,13 @@ export declare class FlatCheckbox extends FlatSelectBase {
343
344
  generateFlatItem(rect: IRect, item: ItemValue, index: number): IPdfBrick;
344
345
  }
345
346
 
347
+ export declare class FlatCustomModel extends FlatQuestion {
348
+ protected survey: SurveyPDF;
349
+ protected controller: DocController;
350
+ constructor(survey: SurveyPDF, question: IQuestion, controller: DocController);
351
+ generateFlatsContent(point: IPoint): Promise<IPdfBrick[]>;
352
+ }
353
+
346
354
  export declare class FlatComment extends FlatQuestion {
347
355
  protected survey: SurveyPDF;
348
356
  protected controller: DocController;
@@ -463,9 +471,9 @@ export declare class FlatTextbox extends FlatQuestion {
463
471
  }
464
472
 
465
473
  export declare class FlatSurvey {
466
- static readonly QUES_GAP_VERT_SCALE: number;
467
- static readonly PANEL_CONT_GAP_SCALE: number;
468
- static readonly PANEL_DESC_GAP_SCALE: number;
474
+ static QUES_GAP_VERT_SCALE: number;
475
+ static PANEL_CONT_GAP_SCALE: number;
476
+ static PANEL_DESC_GAP_SCALE: number;
469
477
  static generateFlatsPanel(survey: SurveyPDF, controller: DocController, panel: PanelModel, point: IPoint): Promise<IPdfBrick[]>;
470
478
  static generateFlats(survey: SurveyPDF, controller: DocController): Promise<IPdfBrick[][]>;
471
479
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS PDF library v1.9.19
2
+ * surveyjs - SurveyJS PDF library v1.9.22
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.19
2
+ * surveyjs - SurveyJS PDF library v1.9.22
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
  */