survey-pdf 2.0.0-rc.1 → 2.0.0-rc.3
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/LICENSE +1 -1
- package/fesm/survey.pdf.fonts.js +55 -0
- package/fesm/survey.pdf.fonts.js.map +1 -0
- package/fesm/survey.pdf.js +9943 -0
- package/fesm/survey.pdf.js.map +1 -0
- package/package.json +16 -11
- package/survey.pdf.d.ts +1309 -1309
- package/survey.pdf.fonts.js +92 -78
- package/survey.pdf.fonts.js.map +1 -0
- package/survey.pdf.fonts.min.js +2 -6
- package/survey.pdf.fonts.min.js.LICENSE.txt +5 -0
- package/survey.pdf.js +7698 -7281
- package/survey.pdf.js.map +1 -0
- package/survey.pdf.min.js +2 -26
- package/survey.pdf.min.js.LICENSE.txt +5 -0
- package/typings/doc_controller.d.ts +298 -0
- package/typings/entries/helpers.d.ts +7 -0
- package/typings/entries/pdf.d.ts +51 -0
- package/typings/event_handler/adorners.d.ts +24 -0
- package/typings/event_handler/draw_canvas.d.ts +133 -0
- package/typings/event_handler/event_handler.d.ts +11 -0
- package/typings/flat_layout/flat_boolean.d.ts +22 -0
- package/typings/flat_layout/flat_checkbox.d.ts +19 -0
- package/typings/flat_layout/flat_comment.d.ts +12 -0
- package/typings/flat_layout/flat_custom_model.d.ts +11 -0
- package/typings/flat_layout/flat_default.d.ts +6 -0
- package/typings/flat_layout/flat_dropdown.d.ts +12 -0
- package/typings/flat_layout/flat_expression.d.ts +11 -0
- package/typings/flat_layout/flat_file.d.ts +17 -0
- package/typings/flat_layout/flat_html.d.ts +15 -0
- package/typings/flat_layout/flat_image.d.ts +12 -0
- package/typings/flat_layout/flat_imagepicker.d.ts +14 -0
- package/typings/flat_layout/flat_matrix.d.ts +38 -0
- package/typings/flat_layout/flat_matrixdynamic.d.ts +8 -0
- package/typings/flat_layout/flat_matrixmultiple.d.ts +29 -0
- package/typings/flat_layout/flat_multipletext.d.ts +15 -0
- package/typings/flat_layout/flat_paneldynamic.d.ts +13 -0
- package/typings/flat_layout/flat_question.d.ts +27 -0
- package/typings/flat_layout/flat_radiogroup.d.ts +14 -0
- package/typings/flat_layout/flat_ranking.d.ts +16 -0
- package/typings/flat_layout/flat_rating.d.ts +16 -0
- package/typings/flat_layout/flat_repository.d.ts +16 -0
- package/typings/flat_layout/flat_selectbase.d.ts +18 -0
- package/typings/flat_layout/flat_signaturepad.d.ts +15 -0
- package/typings/flat_layout/flat_survey.d.ts +15 -0
- package/typings/flat_layout/flat_textbox.d.ts +12 -0
- package/typings/fonts.d.ts +4 -0
- package/typings/helper_survey.d.ts +155 -0
- package/typings/helper_test.d.ts +21 -0
- package/typings/jspdf_plugins/acroform.d.ts +1 -0
- package/typings/page_layout/page_packer.d.ts +7 -0
- package/typings/pdf_render/pdf_booleanitem.d.ts +6 -0
- package/typings/pdf_render/pdf_brick.d.ts +86 -0
- package/typings/pdf_render/pdf_checkboxitem.d.ts +6 -0
- package/typings/pdf_render/pdf_checkitem.d.ts +23 -0
- package/typings/pdf_render/pdf_coloredbrick.d.ts +9 -0
- package/typings/pdf_render/pdf_comment.d.ts +8 -0
- package/typings/pdf_render/pdf_composite.d.ts +26 -0
- package/typings/pdf_render/pdf_custom.d.ts +8 -0
- package/typings/pdf_render/pdf_description.d.ts +6 -0
- package/typings/pdf_render/pdf_dropdown.d.ts +11 -0
- package/typings/pdf_render/pdf_empty.d.ts +9 -0
- package/typings/pdf_render/pdf_html.d.ts +9 -0
- package/typings/pdf_render/pdf_image.d.ts +11 -0
- package/typings/pdf_render/pdf_link.d.ts +9 -0
- package/typings/pdf_render/pdf_radioitem.d.ts +34 -0
- package/typings/pdf_render/pdf_rankingitem.d.ts +9 -0
- package/typings/pdf_render/pdf_rowline.d.ts +17 -0
- package/typings/pdf_render/pdf_text.d.ts +11 -0
- package/typings/pdf_render/pdf_textbold.d.ts +7 -0
- package/typings/pdf_render/pdf_textbox.d.ts +8 -0
- package/typings/pdf_render/pdf_textfield.d.ts +28 -0
- package/typings/pdf_render/pdf_titlepanel.d.ts +8 -0
- package/typings/survey.d.ts +152 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IQuestion, QuestionHtmlModel } from 'survey-core';
|
|
2
|
+
import { SurveyPDF } from '../survey';
|
|
3
|
+
import { IPoint, DocController } from '../doc_controller';
|
|
4
|
+
import { FlatQuestion } from './flat_question';
|
|
5
|
+
import { IPdfBrick } from '../pdf_render/pdf_brick';
|
|
6
|
+
export type IHTMLRenderType = 'auto' | 'standard' | 'image';
|
|
7
|
+
export declare class FlatHTML extends FlatQuestion {
|
|
8
|
+
protected survey: SurveyPDF;
|
|
9
|
+
protected question: QuestionHtmlModel;
|
|
10
|
+
constructor(survey: SurveyPDF, question: IQuestion, controller: DocController);
|
|
11
|
+
private chooseRender;
|
|
12
|
+
private static correctHtmlRules;
|
|
13
|
+
protected correctHtml(html: string): string;
|
|
14
|
+
generateFlatsContent(point: IPoint): Promise<IPdfBrick[]>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IQuestion, QuestionImageModel } from 'survey-core';
|
|
2
|
+
import { SurveyPDF } from '../survey';
|
|
3
|
+
import { IPoint, DocController } from '../doc_controller';
|
|
4
|
+
import { FlatQuestion } from './flat_question';
|
|
5
|
+
import { IPdfBrick } from '../pdf_render/pdf_brick';
|
|
6
|
+
export declare class FlatImage extends FlatQuestion {
|
|
7
|
+
protected survey: SurveyPDF;
|
|
8
|
+
protected question: QuestionImageModel;
|
|
9
|
+
constructor(survey: SurveyPDF, question: IQuestion, controller: DocController);
|
|
10
|
+
private getCorrectImageSize;
|
|
11
|
+
generateFlatsContent(point: IPoint): Promise<IPdfBrick[]>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IQuestion, QuestionImagePickerModel } from 'survey-core';
|
|
2
|
+
import { SurveyPDF } from '../survey';
|
|
3
|
+
import { FlatQuestion } from './flat_question';
|
|
4
|
+
import { IPoint, DocController } from '../doc_controller';
|
|
5
|
+
import { IPdfBrick } from '../pdf_render/pdf_brick';
|
|
6
|
+
import { FlatRadiogroup } from './flat_radiogroup';
|
|
7
|
+
export declare class FlatImagePicker extends FlatQuestion {
|
|
8
|
+
protected survey: SurveyPDF;
|
|
9
|
+
protected question: QuestionImagePickerModel;
|
|
10
|
+
protected radio: FlatRadiogroup;
|
|
11
|
+
constructor(survey: SurveyPDF, question: IQuestion, controller: DocController);
|
|
12
|
+
private generateFlatItem;
|
|
13
|
+
generateFlatsContent(point: IPoint): Promise<IPdfBrick[]>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { IQuestion, QuestionMatrixModel, MatrixRowModel, ItemValue } from 'survey-core';
|
|
2
|
+
import { SurveyPDF } from '../survey';
|
|
3
|
+
import { DocController, IPoint } from '../doc_controller';
|
|
4
|
+
import { FlatQuestion } from './flat_question';
|
|
5
|
+
import { FlatRadiogroup } from './flat_radiogroup';
|
|
6
|
+
import { IPdfBrick } from '../pdf_render/pdf_brick';
|
|
7
|
+
import { CompositeBrick } from '../pdf_render/pdf_composite';
|
|
8
|
+
export declare class FlatMatrix extends FlatQuestion {
|
|
9
|
+
protected survey: SurveyPDF;
|
|
10
|
+
protected controller: DocController;
|
|
11
|
+
static readonly GAP_BETWEEN_ROWS: number;
|
|
12
|
+
protected question: QuestionMatrixModel;
|
|
13
|
+
constructor(survey: SurveyPDF, question: IQuestion, controller: DocController);
|
|
14
|
+
protected generateFlatsHeader(point: IPoint): Promise<IPdfBrick[]>;
|
|
15
|
+
protected generateFlatsRows(point: IPoint, isVertical: boolean): Promise<IPdfBrick[]>;
|
|
16
|
+
private rowTitleWidth;
|
|
17
|
+
private columnWidth;
|
|
18
|
+
private calculateColumnsWidthes;
|
|
19
|
+
generateFlatsContent(point: IPoint): Promise<IPdfBrick[]>;
|
|
20
|
+
}
|
|
21
|
+
export declare class FlatMatrixRow extends FlatRadiogroup {
|
|
22
|
+
protected survey: SurveyPDF;
|
|
23
|
+
protected controller: DocController;
|
|
24
|
+
private row;
|
|
25
|
+
private rowIndex;
|
|
26
|
+
private key;
|
|
27
|
+
protected isFirst: boolean;
|
|
28
|
+
protected isVertical: boolean;
|
|
29
|
+
private rowTitleWidth;
|
|
30
|
+
private columnWidth;
|
|
31
|
+
protected questionMatrix: QuestionMatrixModel;
|
|
32
|
+
constructor(survey: SurveyPDF, question: IQuestion, controller: DocController, row: MatrixRowModel, rowIndex: number, key: string, isFirst: boolean, isVertical: boolean, rowTitleWidth: number, columnWidth: number);
|
|
33
|
+
generateFlatsContent(point: IPoint): Promise<IPdfBrick[]>;
|
|
34
|
+
protected generateTextComposite(point: IPoint, column: ItemValue, index: number): Promise<IPdfBrick>;
|
|
35
|
+
protected generateItemCompoiste(point: IPoint, column: ItemValue, index: number): Promise<IPdfBrick>;
|
|
36
|
+
protected generateFlatsHorizontallyCells(point: IPoint): Promise<(IPdfBrick | CompositeBrick)[]>;
|
|
37
|
+
protected generateFlatsVerticallyCells(point: IPoint): Promise<IPdfBrick[]>;
|
|
38
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IQuestion } from 'survey-core';
|
|
2
|
+
import { SurveyPDF } from '../survey';
|
|
3
|
+
import { DocController } from '../doc_controller';
|
|
4
|
+
import { FlatMatrixMultiple } from './flat_matrixmultiple';
|
|
5
|
+
export declare class FlatMatrixDynamic extends FlatMatrixMultiple {
|
|
6
|
+
protected survey: SurveyPDF;
|
|
7
|
+
constructor(survey: SurveyPDF, question: IQuestion, controller: DocController);
|
|
8
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { IQuestion, QuestionMatrixDropdownModelBase } from 'survey-core';
|
|
2
|
+
import { SurveyPDF } from '../survey';
|
|
3
|
+
import { IPoint, DocController } from '../doc_controller';
|
|
4
|
+
import { FlatQuestion } from './flat_question';
|
|
5
|
+
import { IPdfBrick } from '../pdf_render/pdf_brick';
|
|
6
|
+
export declare class FlatMatrixMultiple extends FlatQuestion {
|
|
7
|
+
protected survey: SurveyPDF;
|
|
8
|
+
protected isMultiple: boolean;
|
|
9
|
+
static readonly GAP_BETWEEN_ROWS: number;
|
|
10
|
+
protected question: QuestionMatrixDropdownModelBase;
|
|
11
|
+
constructor(survey: SurveyPDF, question: IQuestion, controller: DocController, isMultiple?: boolean);
|
|
12
|
+
private visibleRowsValue;
|
|
13
|
+
private get visibleRows();
|
|
14
|
+
private generateFlatsCellTitle;
|
|
15
|
+
private generateFlatsCell;
|
|
16
|
+
private get hasDetailPanel();
|
|
17
|
+
private ignoreCell;
|
|
18
|
+
private getRowLocation;
|
|
19
|
+
private generateFlatsRowHorisontal;
|
|
20
|
+
private generateFlatsRowVertical;
|
|
21
|
+
private getAvalableWidth;
|
|
22
|
+
private calculateColumnWidth;
|
|
23
|
+
private generateOneRow;
|
|
24
|
+
private generateFlatsRows;
|
|
25
|
+
private calculateIsWide;
|
|
26
|
+
private getRowsToRender;
|
|
27
|
+
private getColCount;
|
|
28
|
+
generateFlatsContent(point: IPoint): Promise<IPdfBrick[]>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IQuestion, QuestionMultipleTextModel } from 'survey-core';
|
|
2
|
+
import { SurveyPDF } from '../survey';
|
|
3
|
+
import { IPoint, DocController } from '../doc_controller';
|
|
4
|
+
import { FlatQuestion } from './flat_question';
|
|
5
|
+
import { IPdfBrick } from '../pdf_render/pdf_brick';
|
|
6
|
+
export declare class FlatMultipleText extends FlatQuestion {
|
|
7
|
+
protected survey: SurveyPDF;
|
|
8
|
+
protected controller: DocController;
|
|
9
|
+
static readonly ROWS_GAP_SCALE: number;
|
|
10
|
+
protected question: QuestionMultipleTextModel;
|
|
11
|
+
constructor(survey: SurveyPDF, question: IQuestion, controller: DocController);
|
|
12
|
+
private getVisibleRows;
|
|
13
|
+
private generateFlatItem;
|
|
14
|
+
generateFlatsContent(point: IPoint): Promise<IPdfBrick[]>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IQuestion, QuestionPanelDynamicModel } from 'survey-core';
|
|
2
|
+
import { SurveyPDF } from '../survey';
|
|
3
|
+
import { IPoint, DocController } from '../doc_controller';
|
|
4
|
+
import { FlatQuestion } from './flat_question';
|
|
5
|
+
import { IPdfBrick } from '../pdf_render/pdf_brick';
|
|
6
|
+
export declare class FlatPanelDynamic extends FlatQuestion {
|
|
7
|
+
protected survey: SurveyPDF;
|
|
8
|
+
protected controller: DocController;
|
|
9
|
+
protected question: QuestionPanelDynamicModel;
|
|
10
|
+
static readonly GAP_BETWEEN_PANELS: number;
|
|
11
|
+
constructor(survey: SurveyPDF, question: IQuestion, controller: DocController);
|
|
12
|
+
generateFlatsContent(point: IPoint): Promise<IPdfBrick[]>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { IQuestion, Question } from 'survey-core';
|
|
2
|
+
import { SurveyPDF } from '../survey';
|
|
3
|
+
import { IPoint, DocController } from '../doc_controller';
|
|
4
|
+
import { IPdfBrick } from '../pdf_render/pdf_brick';
|
|
5
|
+
export interface IFlatQuestion {
|
|
6
|
+
generateFlatsContent(point: IPoint): Promise<IPdfBrick[]>;
|
|
7
|
+
generateFlats(point: IPoint): Promise<IPdfBrick[]>;
|
|
8
|
+
}
|
|
9
|
+
export declare class FlatQuestion implements IFlatQuestion {
|
|
10
|
+
protected survey: SurveyPDF;
|
|
11
|
+
protected controller: DocController;
|
|
12
|
+
static CONTENT_GAP_VERT_SCALE: number;
|
|
13
|
+
static CONTENT_GAP_HOR_SCALE: number;
|
|
14
|
+
static CONTENT_INDENT_SCALE: number;
|
|
15
|
+
static DESC_GAP_SCALE: number;
|
|
16
|
+
protected question: Question;
|
|
17
|
+
constructor(survey: SurveyPDF, question: IQuestion, controller: DocController);
|
|
18
|
+
private generateFlatTitle;
|
|
19
|
+
private generateFlatDescription;
|
|
20
|
+
private generateFlatHeader;
|
|
21
|
+
private generateFlatsComment;
|
|
22
|
+
generateFlatsComposite(point: IPoint): Promise<IPdfBrick[]>;
|
|
23
|
+
generateFlatsContent(point: IPoint): Promise<IPdfBrick[]>;
|
|
24
|
+
generateFlatsContentWithOptionalElements(point: IPoint): Promise<IPdfBrick[]>;
|
|
25
|
+
generateFlats(point: IPoint): Promise<IPdfBrick[]>;
|
|
26
|
+
protected get shouldRenderAsComment(): boolean;
|
|
27
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IQuestion, ItemValue, QuestionRadiogroupModel } from 'survey-core';
|
|
2
|
+
import { SurveyPDF } from '../survey';
|
|
3
|
+
import { IRect, DocController } from '../doc_controller';
|
|
4
|
+
import { IPdfBrick } from '../pdf_render/pdf_brick';
|
|
5
|
+
import { FlatSelectBase } from './flat_selectbase';
|
|
6
|
+
export declare class FlatRadiogroup extends FlatSelectBase {
|
|
7
|
+
protected survey: SurveyPDF;
|
|
8
|
+
protected controller: DocController;
|
|
9
|
+
protected question: QuestionRadiogroupModel;
|
|
10
|
+
private radioGroupWrap;
|
|
11
|
+
constructor(survey: SurveyPDF, question: IQuestion, controller: DocController);
|
|
12
|
+
protected isItemSelected(item: ItemValue, checked?: boolean): boolean;
|
|
13
|
+
generateFlatItem(rect: IRect, item: ItemValue, index: number, key?: string, checked?: boolean, context?: any): IPdfBrick;
|
|
14
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IQuestion, ItemValue, QuestionRankingModel } from 'survey-core';
|
|
2
|
+
import { SurveyPDF } from '../survey';
|
|
3
|
+
import { IPoint, DocController } from '../doc_controller';
|
|
4
|
+
import { FlatQuestion } from './flat_question';
|
|
5
|
+
import { IPdfBrick } from '../pdf_render/pdf_brick';
|
|
6
|
+
export declare class FlatRanking extends FlatQuestion {
|
|
7
|
+
protected survey: SurveyPDF;
|
|
8
|
+
protected controller: DocController;
|
|
9
|
+
protected question: QuestionRankingModel;
|
|
10
|
+
constructor(survey: SurveyPDF, question: IQuestion, controller: DocController);
|
|
11
|
+
protected generateFlatComposite(point: IPoint, item: ItemValue, index: number, unrankedItem?: boolean): Promise<IPdfBrick>;
|
|
12
|
+
generateChoicesColumn(point: IPoint, choices: ItemValue[], unrankedChoices?: boolean): Promise<IPdfBrick[]>;
|
|
13
|
+
generateSelectToRankItemsVertically(point: IPoint): Promise<IPdfBrick[]>;
|
|
14
|
+
generateSelectToRankItemsHorizontally(point: IPoint): Promise<IPdfBrick[]>;
|
|
15
|
+
generateFlatsContent(point: IPoint): Promise<IPdfBrick[]>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IQuestion, ItemValue, QuestionRatingModel } from 'survey-core';
|
|
2
|
+
import { SurveyPDF } from '../survey';
|
|
3
|
+
import { IPoint, DocController } from '../doc_controller';
|
|
4
|
+
import { FlatRadiogroup } from './flat_radiogroup';
|
|
5
|
+
import { IPdfBrick } from '../pdf_render/pdf_brick';
|
|
6
|
+
import { CompositeBrick } from '../pdf_render/pdf_composite';
|
|
7
|
+
export declare class FlatRating extends FlatRadiogroup {
|
|
8
|
+
protected survey: SurveyPDF;
|
|
9
|
+
protected controller: DocController;
|
|
10
|
+
protected questionRating: QuestionRatingModel;
|
|
11
|
+
constructor(survey: SurveyPDF, question: IQuestion, controller: DocController);
|
|
12
|
+
protected generateFlatHorisontalComposite(point: IPoint, item: ItemValue, index: number): Promise<IPdfBrick>;
|
|
13
|
+
protected generateFlatComposite(point: IPoint, item: ItemValue, index: number): Promise<IPdfBrick>;
|
|
14
|
+
protected generateHorisontallyItems(point: IPoint): Promise<CompositeBrick[]>;
|
|
15
|
+
generateFlatsContent(point: IPoint): Promise<IPdfBrick[]>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IQuestion, Question } from 'survey-core';
|
|
2
|
+
import { SurveyPDF } from '../survey';
|
|
3
|
+
import { DocController } from '../doc_controller';
|
|
4
|
+
import { IFlatQuestion } from './flat_question';
|
|
5
|
+
export type FlatConstructor = new (survey: SurveyPDF, question: IQuestion, controller: DocController) => IFlatQuestion;
|
|
6
|
+
export declare class FlatRepository {
|
|
7
|
+
private questions;
|
|
8
|
+
private static instance;
|
|
9
|
+
static getInstance(): FlatRepository;
|
|
10
|
+
register(modelType: string, rendererConstructor: FlatConstructor): void;
|
|
11
|
+
isTypeRegistered(type: string): boolean;
|
|
12
|
+
getRenderer(type: string): FlatConstructor;
|
|
13
|
+
create(survey: SurveyPDF, question: Question, docController: DocController, type?: string): IFlatQuestion;
|
|
14
|
+
static register(type: string, rendererConstructor: FlatConstructor): void;
|
|
15
|
+
static getRenderer(type: string): FlatConstructor;
|
|
16
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IQuestion, ItemValue, QuestionCheckboxBase } from 'survey-core';
|
|
2
|
+
import { SurveyPDF } from '../survey';
|
|
3
|
+
import { IPoint, IRect, DocController } from '../doc_controller';
|
|
4
|
+
import { FlatQuestion } from './flat_question';
|
|
5
|
+
import { IPdfBrick } from '../pdf_render/pdf_brick';
|
|
6
|
+
export declare abstract class FlatSelectBase extends FlatQuestion {
|
|
7
|
+
protected survey: SurveyPDF;
|
|
8
|
+
protected controller: DocController;
|
|
9
|
+
protected question: QuestionCheckboxBase;
|
|
10
|
+
constructor(survey: SurveyPDF, question: IQuestion, controller: DocController);
|
|
11
|
+
abstract generateFlatItem(rect: IRect, item: ItemValue, index: number): IPdfBrick;
|
|
12
|
+
protected generateFlatComposite(point: IPoint, item: ItemValue, index: number): Promise<IPdfBrick>;
|
|
13
|
+
protected getVisibleChoices(): Array<ItemValue>;
|
|
14
|
+
protected getColCount(): number;
|
|
15
|
+
generateFlatsContent(point: IPoint): Promise<IPdfBrick[]>;
|
|
16
|
+
protected generateVerticallyItems(point: IPoint, itemValues: ItemValue[]): Promise<IPdfBrick[]>;
|
|
17
|
+
protected generateHorisontallyItems(point: IPoint, colCount: number): Promise<IPdfBrick[]>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IQuestion, QuestionSignaturePadModel } from 'survey-core';
|
|
2
|
+
import { SurveyPDF } from '../survey';
|
|
3
|
+
import { FlatQuestion } from './flat_question';
|
|
4
|
+
import { IPoint, DocController } from '../doc_controller';
|
|
5
|
+
import { IPdfBrick } from '../pdf_render/pdf_brick';
|
|
6
|
+
export declare class FlatSignaturePad extends FlatQuestion {
|
|
7
|
+
protected survey: SurveyPDF;
|
|
8
|
+
protected question: QuestionSignaturePadModel;
|
|
9
|
+
static BORDER_STYLE: 'dashed' | 'solid' | 'none';
|
|
10
|
+
constructor(survey: SurveyPDF, question: IQuestion, controller: DocController);
|
|
11
|
+
generateBackgroundImage(point: IPoint): Promise<IPdfBrick>;
|
|
12
|
+
private getSignImageUrl;
|
|
13
|
+
generateSign(point: IPoint): Promise<IPdfBrick>;
|
|
14
|
+
generateFlatsContent(point: IPoint): Promise<IPdfBrick[]>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PanelModel } from 'survey-core';
|
|
2
|
+
import { SurveyPDF } from '../survey';
|
|
3
|
+
import { IPoint, DocController } from '../doc_controller';
|
|
4
|
+
import { IPdfBrick } from '../pdf_render/pdf_brick';
|
|
5
|
+
export declare class FlatSurvey {
|
|
6
|
+
static QUES_GAP_VERT_SCALE: number;
|
|
7
|
+
static PANEL_CONT_GAP_SCALE: number;
|
|
8
|
+
static PANEL_DESC_GAP_SCALE: number;
|
|
9
|
+
static generateFlatsPanel(survey: SurveyPDF, controller: DocController, panel: PanelModel, point: IPoint): Promise<IPdfBrick[]>;
|
|
10
|
+
private static generateFlatsPagePanel;
|
|
11
|
+
private static popRowlines;
|
|
12
|
+
private static generateFlatTitle;
|
|
13
|
+
private static generateFlatLogoImage;
|
|
14
|
+
static generateFlats(survey: SurveyPDF, controller: DocController): Promise<IPdfBrick[][]>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IQuestion, QuestionTextModel } from 'survey-core';
|
|
2
|
+
import { SurveyPDF } from '../survey';
|
|
3
|
+
import { IPoint, DocController } from '../doc_controller';
|
|
4
|
+
import { FlatQuestion } from './flat_question';
|
|
5
|
+
import { IPdfBrick } from '../pdf_render/pdf_brick';
|
|
6
|
+
export declare class FlatTextbox extends FlatQuestion {
|
|
7
|
+
protected survey: SurveyPDF;
|
|
8
|
+
static readonly MULTILINE_TEXT_ROWS_COUNT: number;
|
|
9
|
+
protected question: QuestionTextModel;
|
|
10
|
+
constructor(survey: SurveyPDF, question: IQuestion, controller: DocController);
|
|
11
|
+
generateFlatsContent(point: IPoint): Promise<IPdfBrick[]>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { IQuestion, Question, QuestionRatingModel, QuestionFileModel, LocalizableString } from 'survey-core';
|
|
2
|
+
import { SurveyPDF } from './survey';
|
|
3
|
+
import { IPoint, IRect, ISize, DocController } from './doc_controller';
|
|
4
|
+
import { IHTMLRenderType } from './flat_layout/flat_html';
|
|
5
|
+
import { IPdfBrick, PdfBrick } from './pdf_render/pdf_brick';
|
|
6
|
+
import { CompositeBrick } from './pdf_render/pdf_composite';
|
|
7
|
+
export type IBorderDescription = IRect & ISize & Pick<PdfBrick, 'formBorderColor'> & {
|
|
8
|
+
rounded?: boolean;
|
|
9
|
+
dashStyle?: {
|
|
10
|
+
dashArray: [number, number] | [number];
|
|
11
|
+
dashPhase: number;
|
|
12
|
+
};
|
|
13
|
+
outside?: boolean;
|
|
14
|
+
};
|
|
15
|
+
export declare class SurveyHelper {
|
|
16
|
+
static EPSILON: number;
|
|
17
|
+
static TITLE_SURVEY_FONT_SIZE_SCALE: number;
|
|
18
|
+
static TITLE_PAGE_FONT_SIZE_SCALE: number;
|
|
19
|
+
static TITLE_PANEL_FONT_SIZE_SCALE: number;
|
|
20
|
+
static DESCRIPTION_FONT_SIZE_SCALE: number;
|
|
21
|
+
static OTHER_ROWS_COUNT: number;
|
|
22
|
+
static RATING_MIN_WIDTH: number;
|
|
23
|
+
static RATING_MIN_HEIGHT: number;
|
|
24
|
+
static RATING_COLUMN_WIDTH: number;
|
|
25
|
+
static MATRIX_COLUMN_WIDTH: number;
|
|
26
|
+
static IMAGEPICKER_COUNT: number;
|
|
27
|
+
static IMAGEPICKER_RATIO: number;
|
|
28
|
+
static MULTIPLETEXT_TEXT_PERS: number;
|
|
29
|
+
static HTML_TAIL_TEXT_SCALE: number;
|
|
30
|
+
static SELECT_ITEM_FLAT_SCALE: number;
|
|
31
|
+
static GAP_BETWEEN_ROWS: number;
|
|
32
|
+
static GAP_BETWEEN_COLUMNS: number;
|
|
33
|
+
static GAP_BETWEEN_ITEM_TEXT: number;
|
|
34
|
+
static FORM_BORDER_VISIBLE: boolean;
|
|
35
|
+
static BORDER_SCALE: number;
|
|
36
|
+
static VISIBLE_BORDER_SCALE: number;
|
|
37
|
+
static UNVISIBLE_BORDER_SCALE: number;
|
|
38
|
+
static RADIUS_SCALE: number;
|
|
39
|
+
static TITLE_FONT_SCALE: number;
|
|
40
|
+
static VALUE_READONLY_PADDING_SCALE: number;
|
|
41
|
+
static HTML_TO_IMAGE_QUALITY: number;
|
|
42
|
+
static FORM_BORDER_COLOR: string;
|
|
43
|
+
static TEXT_COLOR: string;
|
|
44
|
+
static BACKGROUND_COLOR: string;
|
|
45
|
+
static TITLE_LOCATION_MATRIX: string;
|
|
46
|
+
static STANDARD_FONT: string;
|
|
47
|
+
static CUSTOM_FONT_ENCODING: string;
|
|
48
|
+
static parseWidth(width: string, maxWidth: number, columnsCount?: number, defaultUnit?: string): number;
|
|
49
|
+
static pxToPt(value: number | string): number;
|
|
50
|
+
static mergeRects(...rects: IRect[]): IRect;
|
|
51
|
+
static createPoint(rect: IRect, isLeft?: boolean, isTop?: boolean): IPoint;
|
|
52
|
+
static createRect(point: IPoint, width: number, height: number): IRect;
|
|
53
|
+
static createHeaderRect(controller: DocController): IRect;
|
|
54
|
+
static createFooterRect(controller: DocController): IRect;
|
|
55
|
+
static chooseHtmlFont(controller: DocController): string;
|
|
56
|
+
static generateCssTextRule(fontSize: number, fontStyle: string, fontName: string): string;
|
|
57
|
+
static createHtmlContainerBlock(html: string, controller: DocController, renderAs: IHTMLRenderType): string;
|
|
58
|
+
static splitHtmlRect(controller: DocController, htmlBrick: IPdfBrick): IPdfBrick;
|
|
59
|
+
static createPlainTextFlat<T extends IPdfBrick>(point: IPoint, question: IQuestion, controller: DocController, text: string, fabric: new (question: IQuestion, controller: DocController, rect: IRect, text: string) => T): CompositeBrick;
|
|
60
|
+
static createTextFlat<T extends IPdfBrick>(point: IPoint, question: IQuestion, controller: DocController, text: string | LocalizableString, fabric: new (question: IQuestion, controller: DocController, rect: IRect, text: string) => T): Promise<IPdfBrick>;
|
|
61
|
+
private static hasHtml;
|
|
62
|
+
private static getHtmlMargins;
|
|
63
|
+
static createHTMLRect(point: IPoint, controller: DocController, margins: {
|
|
64
|
+
top: number;
|
|
65
|
+
bottom: number;
|
|
66
|
+
width: number;
|
|
67
|
+
}, resultY: number): IRect;
|
|
68
|
+
static createHTMLFlat(point: IPoint, question: Question, controller: DocController, html: string): Promise<IPdfBrick>;
|
|
69
|
+
static generateFontFace(fontName: string, fontBase64: string, fontWeight: string): string;
|
|
70
|
+
static generateFontFaceWithItalicStyle(fontName: string, fontBase64: string, fontWeight: string): string;
|
|
71
|
+
static htmlToXml(html: string): string;
|
|
72
|
+
static createSvgContent(html: string, width: number, controller: DocController): {
|
|
73
|
+
svg: string;
|
|
74
|
+
divWidth: number;
|
|
75
|
+
divHeight: number;
|
|
76
|
+
};
|
|
77
|
+
private static setCanvas;
|
|
78
|
+
static htmlToImage(html: string, width: number, controller: DocController): Promise<{
|
|
79
|
+
url: string;
|
|
80
|
+
aspect: number;
|
|
81
|
+
}>;
|
|
82
|
+
static createBoldTextFlat(point: IPoint, question: Question, controller: DocController, text: string | LocalizableString): Promise<IPdfBrick>;
|
|
83
|
+
static createTitleFlat(point: IPoint, question: Question, controller: DocController): Promise<IPdfBrick>;
|
|
84
|
+
private static createTitleSurveyPanelFlat;
|
|
85
|
+
static createTitleSurveyFlat(point: IPoint, controller: DocController, text: string | LocalizableString): Promise<IPdfBrick>;
|
|
86
|
+
static createTitlePanelFlat(point: IPoint, controller: DocController, text: string | LocalizableString, isPage?: boolean): Promise<IPdfBrick>;
|
|
87
|
+
static createDescFlat(point: IPoint, question: IQuestion, controller: DocController, text: string | LocalizableString): Promise<IPdfBrick>;
|
|
88
|
+
static getReadonlyRenderAs(question: Question, controller: DocController): 'auto' | 'text' | 'acroform';
|
|
89
|
+
static createCommentFlat(point: IPoint, question: Question, controller: DocController, isQuestion: boolean, options?: {
|
|
90
|
+
rows?: number;
|
|
91
|
+
index?: number;
|
|
92
|
+
value?: string;
|
|
93
|
+
readOnly?: boolean;
|
|
94
|
+
}): Promise<IPdfBrick>;
|
|
95
|
+
static getQuestionOrCommentValue(question: Question, isQuestion?: boolean): string;
|
|
96
|
+
static getQuestionOrCommentDisplayValue(question: Question, isQuestion?: boolean): string;
|
|
97
|
+
static inBrowser: boolean;
|
|
98
|
+
static get hasDocument(): boolean;
|
|
99
|
+
static getImageBase64(imageLink: string): Promise<string>;
|
|
100
|
+
static shouldConvertImageToPng: boolean;
|
|
101
|
+
static getImageLink(controller: DocController, imageOptions: {
|
|
102
|
+
link: string;
|
|
103
|
+
width: number;
|
|
104
|
+
height: number;
|
|
105
|
+
objectFit?: string;
|
|
106
|
+
}, applyImageFit: boolean): Promise<string>;
|
|
107
|
+
static createImageFlat(point: IPoint, question: any, controller: DocController, imageOptions: {
|
|
108
|
+
link: string;
|
|
109
|
+
width: number;
|
|
110
|
+
height: number;
|
|
111
|
+
objectFit?: string;
|
|
112
|
+
}, applyImageFit?: boolean): Promise<IPdfBrick>;
|
|
113
|
+
static canPreviewImage(question: QuestionFileModel, item: {
|
|
114
|
+
name: string;
|
|
115
|
+
type: string;
|
|
116
|
+
content: string;
|
|
117
|
+
}, url: string): boolean;
|
|
118
|
+
static getImageSize(url: string): Promise<ISize>;
|
|
119
|
+
static createRowlineFlat(point: IPoint, controller: DocController, width?: number, color?: string): IPdfBrick;
|
|
120
|
+
static createLinkFlat(point: IPoint, question: Question, controller: DocController, text: string, link: string): Promise<IPdfBrick>;
|
|
121
|
+
static createAcroformRect(rect: IRect): number[];
|
|
122
|
+
static createTextFieldRect(point: IPoint, controller: DocController, lines?: number): IRect;
|
|
123
|
+
static createReadOnlyTextFieldTextFlat(point: IPoint, controller: DocController, question: Question, value: string): Promise<IPdfBrick>;
|
|
124
|
+
static renderFlatBorders(controller: DocController, borderOptions: IBorderDescription): void;
|
|
125
|
+
static getLocString(text: LocalizableString): string;
|
|
126
|
+
static getDropdownQuestionValue(question: Question): string;
|
|
127
|
+
static getContentQuestion(question: Question): Question;
|
|
128
|
+
static getContentQuestionTypeRenderAs(question: Question, survey: SurveyPDF): string;
|
|
129
|
+
static getContentQuestionType(question: Question, survey: SurveyPDF): string;
|
|
130
|
+
static getRatingMinWidth(controller: DocController): number;
|
|
131
|
+
static getRatingItemText(question: QuestionRatingModel, index: number, locText: LocalizableString): LocalizableString;
|
|
132
|
+
static getPageAvailableWidth(controller: DocController): number;
|
|
133
|
+
static getImagePickerAvailableWidth(controller: DocController): number;
|
|
134
|
+
static getColumnWidth(controller: DocController, colCount: number): number;
|
|
135
|
+
static setColumnMargins(controller: DocController, colCount: number, column: number): void;
|
|
136
|
+
static moveRect(rect: IRect, left?: number, top?: number): IRect;
|
|
137
|
+
static scaleRect(rect: IRect, scale: number): IRect;
|
|
138
|
+
static getBorderWidth(controller: DocController): number;
|
|
139
|
+
static formScale(controller: DocController, flat: ISize): number;
|
|
140
|
+
static generateQuestionFlats(survey: SurveyPDF, controller: DocController, question: Question, point: IPoint): Promise<IPdfBrick[]>;
|
|
141
|
+
static isFontExist(controller: DocController, fontName: string): boolean;
|
|
142
|
+
static isCustomFont(controller: DocController, fontName: string): boolean;
|
|
143
|
+
static fixFont(controller: DocController): void;
|
|
144
|
+
static clone(src: any): any;
|
|
145
|
+
static shouldRenderReadOnly(question: IQuestion, controller: DocController, readOnly?: boolean): boolean;
|
|
146
|
+
static isSizeEmpty(val: any): boolean;
|
|
147
|
+
static isHeightEmpty(val: any): boolean;
|
|
148
|
+
static getCorrectedImageSize(controller: DocController, imageOptions: {
|
|
149
|
+
imageWidth?: any;
|
|
150
|
+
imageHeight?: any;
|
|
151
|
+
imageLink: string;
|
|
152
|
+
defaultImageWidth?: any;
|
|
153
|
+
defaultImageHeight?: any;
|
|
154
|
+
}): Promise<ISize>;
|
|
155
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Question } from 'survey-core';
|
|
2
|
+
import { IPoint, IRect, IDocOptions } from './doc_controller';
|
|
3
|
+
import { IPdfBrick } from './pdf_render/pdf_brick';
|
|
4
|
+
import { SurveyPDF } from './survey';
|
|
5
|
+
export declare class TestHelper {
|
|
6
|
+
static readonly BASE64_IMAGE_16PX: string;
|
|
7
|
+
static readonly BASE64_IMAGE_100PX: string;
|
|
8
|
+
static get defaultPoint(): IPoint;
|
|
9
|
+
static get defaultRect(): IRect;
|
|
10
|
+
static get defaultOptions(): IDocOptions;
|
|
11
|
+
static wrapRect(rect: IRect): IPdfBrick;
|
|
12
|
+
static wrapRects(rects: IRect[]): IPdfBrick[];
|
|
13
|
+
static wrapRectsPage(rects: IRect[]): IPdfBrick[][];
|
|
14
|
+
static equalRects(expect: any, rects1: IRect[], rects2: IRect[], strictMode?: boolean): void;
|
|
15
|
+
static equalRect(expect: any, rect1: IRect, rect2: IRect): void;
|
|
16
|
+
static equalPoint(expect: any, point1: IPoint, point2: IPoint): void;
|
|
17
|
+
static getTitleText(question: Question): string;
|
|
18
|
+
}
|
|
19
|
+
export declare class SurveyPDFTester extends SurveyPDF {
|
|
20
|
+
get haveCommercialLicense(): boolean;
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function setRadioAppearance(doc: any): any;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DocController } from '../doc_controller';
|
|
2
|
+
import { IPdfBrick } from '../pdf_render/pdf_brick';
|
|
3
|
+
export declare class PagePacker {
|
|
4
|
+
private static findBotInterval;
|
|
5
|
+
private static addPack;
|
|
6
|
+
static pack(flats: IPdfBrick[][], controller: DocController): IPdfBrick[][];
|
|
7
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IQuestion } from 'survey-core';
|
|
2
|
+
import { IRect, DocController } from '../doc_controller';
|
|
3
|
+
import { CheckItemBrick } from './pdf_checkitem';
|
|
4
|
+
export declare class BooleanItemBrick extends CheckItemBrick {
|
|
5
|
+
constructor(question: IQuestion, controller: DocController, rect: IRect);
|
|
6
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { IRect, ISize, DocController } from '../doc_controller';
|
|
2
|
+
import { IQuestion } from 'survey-core';
|
|
3
|
+
export type TranslateXFunction = (xLeft: number, xRight: number) => {
|
|
4
|
+
xLeft: number;
|
|
5
|
+
xRight: number;
|
|
6
|
+
};
|
|
7
|
+
export interface IPdfBrick extends IRect, ISize {
|
|
8
|
+
render(): Promise<void>;
|
|
9
|
+
unfold(): IPdfBrick[];
|
|
10
|
+
translateX(func: TranslateXFunction): void;
|
|
11
|
+
isPageBreak: boolean;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* An object that describes a PDF brick—a simple element with specified content, size, and location. Bricks are fundamental elements used to construct a PDF document.
|
|
15
|
+
*
|
|
16
|
+
* You can access `PdfBrick` objects within functions that handle `SurveyPDF`'s [`onRenderQuestion`](https://surveyjs.io/pdf-generator/documentation/api-reference/surveypdf#onRenderQuestion), [`onRenderPanel`](https://surveyjs.io/pdf-generator/documentation/api-reference/surveypdf#onRenderPanel), and [`onRenderPage`](https://surveyjs.io/pdf-generator/documentation/api-reference/surveypdf#onRenderPage) events.
|
|
17
|
+
*
|
|
18
|
+
* [View Demo](https://surveyjs.io/pdf-generator/examples/add-markup-to-customize-pdf-forms/ (linkStyle))
|
|
19
|
+
*/
|
|
20
|
+
export declare class PdfBrick implements IPdfBrick {
|
|
21
|
+
protected question: IQuestion;
|
|
22
|
+
protected controller: DocController;
|
|
23
|
+
protected _xLeft: number;
|
|
24
|
+
protected _xRight: number;
|
|
25
|
+
protected _yTop: number;
|
|
26
|
+
protected _yBot: number;
|
|
27
|
+
/**
|
|
28
|
+
* An X-coordinate for the left brick edge.
|
|
29
|
+
*/
|
|
30
|
+
get xLeft(): number;
|
|
31
|
+
set xLeft(val: number);
|
|
32
|
+
/**
|
|
33
|
+
* An X-coordinate for the right brick edge.
|
|
34
|
+
*/
|
|
35
|
+
get xRight(): number;
|
|
36
|
+
set xRight(val: number);
|
|
37
|
+
/**
|
|
38
|
+
* A Y-coordinate for the top brick edge.
|
|
39
|
+
*/
|
|
40
|
+
get yTop(): number;
|
|
41
|
+
set yTop(val: number);
|
|
42
|
+
/**
|
|
43
|
+
* A Y-coordinate for the bottom brick edge.
|
|
44
|
+
*/
|
|
45
|
+
get yBot(): number;
|
|
46
|
+
set yBot(val: number);
|
|
47
|
+
/**
|
|
48
|
+
* Font size in points.
|
|
49
|
+
*
|
|
50
|
+
* Default value: 14 (inherited from the parent PDF document)
|
|
51
|
+
*/
|
|
52
|
+
fontSize: number;
|
|
53
|
+
/**
|
|
54
|
+
* The color of text within the brick.
|
|
55
|
+
*
|
|
56
|
+
* Default value: `"#404040"`
|
|
57
|
+
*/
|
|
58
|
+
textColor: string;
|
|
59
|
+
formBorderColor: string;
|
|
60
|
+
isPageBreak: boolean;
|
|
61
|
+
constructor(question: IQuestion, controller: DocController, rect: IRect);
|
|
62
|
+
translateX(func: TranslateXFunction): void;
|
|
63
|
+
/**
|
|
64
|
+
* The brick's width in pixels.
|
|
65
|
+
*/
|
|
66
|
+
get width(): number;
|
|
67
|
+
/**
|
|
68
|
+
* The brick's height in pixels.
|
|
69
|
+
*/
|
|
70
|
+
get height(): number;
|
|
71
|
+
protected getShouldRenderReadOnly(): boolean;
|
|
72
|
+
afterRenderCallback: () => void;
|
|
73
|
+
render(): Promise<void>;
|
|
74
|
+
renderInteractive(): Promise<void>;
|
|
75
|
+
renderReadOnly(): Promise<void>;
|
|
76
|
+
/**
|
|
77
|
+
* Allows you to get a flat array of nested PDF bricks.
|
|
78
|
+
* @returns A flat array of nested PDF bricks.
|
|
79
|
+
*/
|
|
80
|
+
unfold(): IPdfBrick[];
|
|
81
|
+
protected getCorrectedText(val: string): string;
|
|
82
|
+
protected setXLeft(val: number): void;
|
|
83
|
+
protected setXRight(val: number): void;
|
|
84
|
+
protected setYTop(val: number): void;
|
|
85
|
+
protected setYBottom(val: number): void;
|
|
86
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IQuestion, ItemValue } from 'survey-core';
|
|
2
|
+
import { IRect, DocController } from '../doc_controller';
|
|
3
|
+
import { CheckItemBrick } from './pdf_checkitem';
|
|
4
|
+
export declare class CheckboxItemBrick extends CheckItemBrick {
|
|
5
|
+
constructor(question: IQuestion, controller: DocController, rect: IRect, item: ItemValue, index: number);
|
|
6
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IQuestion, ItemValue, QuestionCheckboxModel } from 'survey-core';
|
|
2
|
+
import { IRect, DocController } from '../doc_controller';
|
|
3
|
+
import { PdfBrick } from './pdf_brick';
|
|
4
|
+
export interface ICheckItemBrickContext {
|
|
5
|
+
question: IQuestion;
|
|
6
|
+
readOnly: boolean;
|
|
7
|
+
checked: boolean;
|
|
8
|
+
item?: ItemValue;
|
|
9
|
+
index?: number;
|
|
10
|
+
}
|
|
11
|
+
export declare class CheckItemBrick extends PdfBrick {
|
|
12
|
+
protected fieldName: string;
|
|
13
|
+
protected context: ICheckItemBrickContext;
|
|
14
|
+
private static readonly FONT_SIZE_SCALE;
|
|
15
|
+
private static readonly CHECKMARK_READONLY_SYMBOL;
|
|
16
|
+
private static readonly CHECKMARK_READONLY_FONT;
|
|
17
|
+
static readonly CHECKMARK_READONLY_FONT_SIZE_SCALE: number;
|
|
18
|
+
protected question: QuestionCheckboxModel;
|
|
19
|
+
constructor(controller: DocController, rect: IRect, fieldName: string, context: ICheckItemBrickContext);
|
|
20
|
+
protected getShouldRenderReadOnly(): boolean;
|
|
21
|
+
renderInteractive(): Promise<void>;
|
|
22
|
+
renderReadOnly(): Promise<void>;
|
|
23
|
+
}
|