UNPKG

survey-pdf

Version:

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.

24 lines (23 loc) 966 B
import { IQuestion, ItemValue, QuestionCheckboxModel } from 'survey-core'; import { IRect, DocController } from '../doc_controller'; import { PdfBrick } from './pdf_brick'; export interface ICheckItemBrickContext { question: IQuestion; readOnly: boolean; checked: boolean; item?: ItemValue; index?: number; } export declare class CheckItemBrick extends PdfBrick { protected fieldName: string; protected context: ICheckItemBrickContext; private static readonly FONT_SIZE_SCALE; private static readonly CHECKMARK_READONLY_SYMBOL; private static readonly CHECKMARK_READONLY_FONT; static readonly CHECKMARK_READONLY_FONT_SIZE_SCALE: number; protected question: QuestionCheckboxModel; constructor(controller: DocController, rect: IRect, fieldName: string, context: ICheckItemBrickContext); protected getShouldRenderReadOnly(): boolean; renderInteractive(): Promise<void>; renderReadOnly(): Promise<void>; }