survey-pdf
Version:
Renders JSON-driven SurveyJS forms and their responses as PDF documents in the browser or Node.js: fillable interactive PDF forms (AcroForm) or static printouts.
25 lines (24 loc) • 1.12 kB
TypeScript
import { ItemValue, QuestionRatingModel, LocalizableString } from 'survey-core';
import { IPoint, IRect } from '../doc_controller';
import { IPdfBrick } from '../pdf_render/pdf_brick';
import { FlatQuestion } from './flat_question';
import { RadioGroupWrap } from '../pdf_render/pdf_radioitem';
import { IQuestionRatingStyle } from '../style/types';
interface ItemInfo {
item: ItemValue;
index: number;
locText: LocalizableString;
width: number;
}
export declare class FlatRating extends FlatQuestion<QuestionRatingModel, IQuestionRatingStyle> {
private _radioGroupWrap;
protected get radioGroupWrap(): RadioGroupWrap;
protected getItemWidth(title: LocalizableString): number;
protected getItemText(index: number, locText: LocalizableString): LocalizableString;
private getInputStyle;
generateFlatItem(rect: IRect, item: ItemValue, index: number): IPdfBrick;
protected generateItemComposite(point: IPoint, itemInfo: ItemInfo): Promise<IPdfBrick>;
protected getRows(): Array<Array<ItemInfo>>;
generateFlatsContent(point: IPoint): Promise<IPdfBrick[]>;
}
export {};