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.

35 lines (34 loc) 1.23 kB
import { IQuestion, ItemValue } from 'survey-core'; import { IRect, DocController } from '../doc_controller'; import { PdfBrick } from './pdf_brick'; export interface IRadiogroupWrapContext { question: IQuestion; readOnly: boolean; } export declare class RadioGroupWrap { name: string; private controller; private context; private _radioGroup; constructor(name: string, controller: DocController, context: IRadiogroupWrapContext); addToPdf(color: string): void; get radioGroup(): any; get readOnly(): boolean; } export interface IRadioGroupItemBrickContext { question: IQuestion; checked: boolean; index: number; item: ItemValue; } export declare class RadioItemBrick extends PdfBrick { private context; private radioGroupWrap; private static readonly RADIOMARKER_READONLY_SYMBOL; private static readonly RADIOMARKER_READONLY_FONT; static readonly RADIOMARKER_READONLY_FONT_SIZE_SCALE: number; constructor(controller: DocController, rect: IRect, context: IRadioGroupItemBrickContext, radioGroupWrap: RadioGroupWrap); protected getShouldRenderReadOnly(): boolean; renderInteractive(): Promise<void>; renderReadOnly(): Promise<void>; }