survey-pdf 1.9.44 → 1.9.47
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 +2 -2
- package/survey.pdf.d.ts +6 -4
- package/survey.pdf.fonts.js +1 -1
- package/survey.pdf.fonts.min.js +1 -1
- package/survey.pdf.js +82 -54
- package/survey.pdf.min.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-pdf",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.47",
|
|
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": "
|
|
29
|
+
"survey-core": "1.9.47"
|
|
30
30
|
}
|
|
31
31
|
}
|
package/survey.pdf.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*Type definitions for SurveyJS PDF library v1.9.
|
|
1
|
+
/*Type definitions for SurveyJS PDF library v1.9.47
|
|
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
|
*/
|
|
@@ -170,7 +170,7 @@ export declare class SurveyHelper {
|
|
|
170
170
|
static createTextFieldRect(point: IPoint, controller: DocController, lines?: number): IRect;
|
|
171
171
|
static createReadOnlyTextFieldTextFlat(point: IPoint, controller: DocController, question: Question, value: string, onlyFirstLine: boolean): Promise<IPdfBrick>;
|
|
172
172
|
static renderFlatBorders(controller: DocController, flat: PdfBrick): void;
|
|
173
|
-
static renderReadOnlyTextField(controller: DocController, question: Question, flat: PdfBrick, value: string, onlyFirstLine?: boolean): Promise<void>;
|
|
173
|
+
static renderReadOnlyTextField(controller: DocController, question: Question, flat: PdfBrick, value: string, onlyFirstLine?: boolean, shouldRenderFlatBorders?: boolean): Promise<void>;
|
|
174
174
|
static getLocString(text: LocalizableString): string;
|
|
175
175
|
static getDropdownQuestionValue(question: Question): string;
|
|
176
176
|
static getContentQuestion(question: Question): Question;
|
|
@@ -294,7 +294,7 @@ export interface IDocOptions {
|
|
|
294
294
|
* - `"image"` - Render HTML questions as images.
|
|
295
295
|
* - `"auto"` (default) - Select between the `"standard"` and `"image"` modes automatically based on the HTML content.
|
|
296
296
|
*
|
|
297
|
-
* You can override this property for an individual HTML question. Set the question's `renderAs` property to `"standard"` or `"image"` in the survey JSON
|
|
297
|
+
* You can override this property for an individual HTML question. Set the question's `renderAs` property to `"standard"` or `"image"` in the survey JSON schema.
|
|
298
298
|
*/
|
|
299
299
|
htmlRenderAs?: IHTMLRenderType;
|
|
300
300
|
/**
|
|
@@ -304,7 +304,7 @@ export interface IDocOptions {
|
|
|
304
304
|
* - `"list"` - Render matrix-like questions as lists.
|
|
305
305
|
* - `"auto"` (default) - Render matrix-like questions as tables if they fit into the available space. Otherwise, render the questions as lists.
|
|
306
306
|
*
|
|
307
|
-
* You can override this property for an individual matrix-like question. Set the question's `renderAs` property to `"list"` in the survey JSON
|
|
307
|
+
* You can override this property for an individual matrix-like question. Set the question's `renderAs` property to `"list"` in the survey JSON schema.
|
|
308
308
|
*/
|
|
309
309
|
matrixRenderAs?: 'auto' | 'list';
|
|
310
310
|
booleanRenderAs?: 'default' | 'radiogroup';
|
|
@@ -799,6 +799,7 @@ export declare class CheckItemBrick extends PdfBrick {
|
|
|
799
799
|
export declare class CommentBrick extends TextBoxBrick {
|
|
800
800
|
protected controller: DocController;
|
|
801
801
|
constructor(question: IQuestion, controller: DocController, rect: IRect, isQuestion: boolean, index?: number);
|
|
802
|
+
protected shouldRenderFlatBorders(): boolean;
|
|
802
803
|
}
|
|
803
804
|
|
|
804
805
|
export declare class CompositeBrick implements IPdfBrick {
|
|
@@ -909,6 +910,7 @@ export declare class TextFieldBrick extends PdfBrick {
|
|
|
909
910
|
protected question: QuestionTextModel;
|
|
910
911
|
constructor(question: IQuestion, controller: DocController, rect: IRect, isQuestion: boolean, fieldName: string, value: string, placeholder: string, isReadOnly: boolean, isMultiline: boolean, inputType: string);
|
|
911
912
|
renderInteractive(): Promise<void>;
|
|
913
|
+
protected shouldRenderFlatBorders(): boolean;
|
|
912
914
|
renderReadOnly(): Promise<void>;
|
|
913
915
|
}
|
|
914
916
|
|
package/survey.pdf.fonts.js
CHANGED
package/survey.pdf.fonts.min.js
CHANGED