survey-pdf 1.8.78 → 1.9.2

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.8.78",
3
+ "version": "1.9.2",
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.8.78
1
+ /*Type definitions for SurveyJS PDF library v1.9.2
2
2
  Copyright (c) 2015-2021 Devsoft Baltic OÜ - http://surveyjs.io/
3
3
  Definitions by: Devsoft Baltic OÜ <https://github.com/surveyjs/>
4
4
  */
@@ -83,37 +83,38 @@ export declare class SurveyPDF extends SurveyModel {
83
83
  }
84
84
 
85
85
  export declare class SurveyHelper {
86
- static readonly EPSILON: number;
87
- static readonly TITLE_SURVEY_FONT_SIZE_SCALE: number;
88
- static readonly TITLE_PANEL_FONT_SIZE_SCALE: number;
89
- static readonly DESCRIPTION_FONT_SIZE_SCALE: number;
90
- static readonly OTHER_ROWS_COUNT: number;
91
- static readonly RATING_MIN_WIDTH: number;
92
- static readonly RATING_MIN_HEIGHT: number;
93
- static readonly RATING_COLUMN_WIDTH: number;
94
- static readonly MATRIX_COLUMN_WIDTH: number;
95
- static readonly IMAGEPICKER_COUNT: number;
96
- static readonly IMAGEPICKER_RATIO: number;
97
- static readonly MULTIPLETEXT_TEXT_PERS: number;
98
- static readonly HTML_TAIL_TEXT_SCALE: number;
99
- static readonly SELECT_ITEM_FLAT_SCALE: number;
100
- static readonly GAP_BETWEEN_ROWS: number;
101
- static readonly GAP_BETWEEN_COLUMNS: number;
102
- static readonly GAP_BETWEEN_ITEM_TEXT: number;
103
- static readonly FORM_BORDER_VISIBLE: boolean;
104
- static readonly BORDER_SCALE: number;
105
- static readonly VISIBLE_BORDER_SCALE: number;
106
- static readonly UNVISIBLE_BORDER_SCALE: number;
107
- static readonly RADIUS_SCALE: number;
108
- static readonly TITLE_FONT_SCALE: number;
109
- static readonly VALUE_READONLY_PADDING_SCALE: number;
110
- static readonly HTML_TO_IMAGE_QUALITY: number;
111
- static readonly FORM_BORDER_COLOR: string;
112
- static readonly TEXT_COLOR: string;
113
- static readonly BACKGROUND_COLOR: string;
114
- static readonly TITLE_LOCATION_MATRIX: string;
115
- static readonly STANDARD_FONT: string;
116
- static readonly CUSTOM_FONT_ENCODING: string;
86
+ static EPSILON: number;
87
+ static TITLE_SURVEY_FONT_SIZE_SCALE: number;
88
+ static TITLE_PAGE_FONT_SIZE_SCALE: number;
89
+ static TITLE_PANEL_FONT_SIZE_SCALE: number;
90
+ static DESCRIPTION_FONT_SIZE_SCALE: number;
91
+ static OTHER_ROWS_COUNT: number;
92
+ static RATING_MIN_WIDTH: number;
93
+ static RATING_MIN_HEIGHT: number;
94
+ static RATING_COLUMN_WIDTH: number;
95
+ static MATRIX_COLUMN_WIDTH: number;
96
+ static IMAGEPICKER_COUNT: number;
97
+ static IMAGEPICKER_RATIO: number;
98
+ static MULTIPLETEXT_TEXT_PERS: number;
99
+ static HTML_TAIL_TEXT_SCALE: number;
100
+ static SELECT_ITEM_FLAT_SCALE: number;
101
+ static GAP_BETWEEN_ROWS: number;
102
+ static GAP_BETWEEN_COLUMNS: number;
103
+ static GAP_BETWEEN_ITEM_TEXT: number;
104
+ static FORM_BORDER_VISIBLE: boolean;
105
+ static BORDER_SCALE: number;
106
+ static VISIBLE_BORDER_SCALE: number;
107
+ static UNVISIBLE_BORDER_SCALE: number;
108
+ static RADIUS_SCALE: number;
109
+ static TITLE_FONT_SCALE: number;
110
+ static VALUE_READONLY_PADDING_SCALE: number;
111
+ static HTML_TO_IMAGE_QUALITY: number;
112
+ static FORM_BORDER_COLOR: string;
113
+ static TEXT_COLOR: string;
114
+ static BACKGROUND_COLOR: string;
115
+ static TITLE_LOCATION_MATRIX: string;
116
+ static STANDARD_FONT: string;
117
+ static CUSTOM_FONT_ENCODING: string;
117
118
  static parseWidth(width: string, maxWidth: number, columnsCount?: number): number;
118
119
  static pxToPt(value: number | string): number;
119
120
  static mergeRects(...rects: IRect[]): IRect;
@@ -148,11 +149,12 @@ export declare class SurveyHelper {
148
149
  static createBoldTextFlat(point: IPoint, question: Question, controller: DocController, text: string | LocalizableString): Promise<IPdfBrick>;
149
150
  static createTitleFlat(point: IPoint, question: Question, controller: DocController): Promise<IPdfBrick>;
150
151
  static createTitleSurveyFlat(point: IPoint, controller: DocController, text: string | LocalizableString): Promise<IPdfBrick>;
151
- static createTitlePanelFlat(point: IPoint, controller: DocController, text: string | LocalizableString): Promise<IPdfBrick>;
152
+ static createTitlePanelFlat(point: IPoint, controller: DocController, text: string | LocalizableString, isPage?: boolean): Promise<IPdfBrick>;
152
153
  static createDescFlat(point: IPoint, question: IQuestion, controller: DocController, text: string | LocalizableString): Promise<IPdfBrick>;
153
154
  static getReadonlyRenderAs(question: Question, controller: DocController): 'auto' | 'text' | 'acroform';
154
155
  static createCommentFlat(point: IPoint, question: Question, controller: DocController, rows: number, isQuestion: boolean, index?: number): Promise<IPdfBrick>;
155
156
  static getQuestionOrCommentValue(question: Question, isQuestion?: boolean): string;
157
+ static getQuestionOrCommentDisplayValue(question: Question, isQuestion?: boolean): string;
156
158
  static inBrowser: boolean;
157
159
  static createImageFlat(point: IPoint, question: IQuestion, controller: DocController, imagelink: string, width: number, height: number): IPdfBrick;
158
160
  static canPreviewImage(question: QuestionFileModel, item: {
@@ -711,6 +713,12 @@ export declare class DropdownBrick extends PdfBrick {
711
713
  renderReadOnly(): Promise<void>;
712
714
  }
713
715
 
716
+ export declare class EmptyBrick extends PdfBrick {
717
+ protected controller: DocController;
718
+ constructor(rect: IRect, controller?: DocController, isBorderVisible?: boolean);
719
+ renderInteractive(): Promise<void>;
720
+ }
721
+
714
722
  export declare class HTMLBrick extends PdfBrick {
715
723
  protected html: string;
716
724
  constructor(question: IQuestion, controller: DocController, rect: IRect, html: string, isImage?: boolean);