survey-pdf 1.9.26 → 1.9.29
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 +1 -1
- package/survey.pdf.d.ts +12 -2
- package/survey.pdf.fonts.js +1 -1
- package/survey.pdf.fonts.min.js +1 -1
- package/survey.pdf.js +159 -85
- package/survey.pdf.min.js +4 -4
package/package.json
CHANGED
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.29
|
|
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,7 +173,8 @@ 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
|
|
176
|
+
static getContentQuestionTypeRenderAs(question: Question, survey: SurveyPDF): string;
|
|
177
|
+
static getContentQuestionType(question: Question, survey: SurveyPDF): string;
|
|
177
178
|
static getRatingMinWidth(controller: DocController): number;
|
|
178
179
|
static getRatingItemText(question: QuestionRatingModel, index: number, locText: LocalizableString): LocalizableString;
|
|
179
180
|
static getPageAvailableWidth(controller: DocController): number;
|
|
@@ -228,6 +229,7 @@ export interface IDocOptions {
|
|
|
228
229
|
haveCommercialLicense?: boolean;
|
|
229
230
|
htmlRenderAs?: IHTMLRenderType;
|
|
230
231
|
matrixRenderAs?: 'auto' | 'list';
|
|
232
|
+
booleanRenderAs?: 'default' | 'radiogroup';
|
|
231
233
|
readonlyRenderAs?: 'auto' | 'text' | 'acroform';
|
|
232
234
|
textFieldRenderAs?: 'singleLine' | 'multiLine';
|
|
233
235
|
compress?: boolean;
|
|
@@ -255,6 +257,7 @@ export declare class DocOptions implements IDocOptions {
|
|
|
255
257
|
protected _textFieldRenderAs: 'singleLine' | 'multiLine';
|
|
256
258
|
protected _compress: boolean;
|
|
257
259
|
protected _applyImageFit: boolean;
|
|
260
|
+
protected _booleanRenderAs: 'default' | 'radiogroup';
|
|
258
261
|
constructor(options: IDocOptions);
|
|
259
262
|
get leftTopPoint(): IPoint;
|
|
260
263
|
get fontSize(): number;
|
|
@@ -271,6 +274,7 @@ export declare class DocOptions implements IDocOptions {
|
|
|
271
274
|
get textFieldRenderAs(): 'singleLine' | 'multiLine';
|
|
272
275
|
get compress(): boolean;
|
|
273
276
|
get applyImageFit(): boolean;
|
|
277
|
+
get booleanRenderAs(): 'default' | 'radiogroup';
|
|
274
278
|
}
|
|
275
279
|
export declare class DocController extends DocOptions {
|
|
276
280
|
constructor(options?: IDocOptions);
|
|
@@ -307,6 +311,7 @@ export declare type FlatConstructor = new (survey: SurveyPDF, question: IQuestio
|
|
|
307
311
|
export declare class FlatRepository {
|
|
308
312
|
static getInstance(): FlatRepository;
|
|
309
313
|
register(modelType: string, rendererConstructor: FlatConstructor): void;
|
|
314
|
+
isTypeRegistered(type: string): boolean;
|
|
310
315
|
create(survey: SurveyPDF, question: IQuestion, docController: DocController, type?: string): IFlatQuestion;
|
|
311
316
|
}
|
|
312
317
|
|
|
@@ -335,6 +340,11 @@ export declare class FlatBoolean extends FlatQuestion {
|
|
|
335
340
|
constructor(survey: SurveyPDF, question: IQuestion, controller: DocController);
|
|
336
341
|
generateFlatsContent(point: IPoint): Promise<IPdfBrick[]>;
|
|
337
342
|
}
|
|
343
|
+
export declare class FlatBooleanRadiogroup extends FlatRadiogroup {
|
|
344
|
+
protected survey: SurveyPDF;
|
|
345
|
+
protected controller: DocController;
|
|
346
|
+
constructor(survey: SurveyPDF, question: IQuestion, controller: DocController);
|
|
347
|
+
}
|
|
338
348
|
|
|
339
349
|
export declare class FlatCheckbox extends FlatSelectBase {
|
|
340
350
|
protected survey: SurveyPDF;
|
package/survey.pdf.fonts.js
CHANGED
package/survey.pdf.fonts.min.js
CHANGED