import { IQuestion , QuestionTextModel } from 'survey-core' ; import { IRect , DocController } from '../doc_controller' ; import { TextBoldBrick } from './pdf_textbold' ; import { SurveyHelper } from '../helper_survey' ; export class TitlePanelBrick extends TextBoldBrick { protected question : QuestionTextModel ; public constructor ( question , controller , rect , text ) { super ( question , controller , rect , text ) ; } public async renderInteractive ( ) { let oldFontSize = this . controller . fontSize ; this . controller . fontSize = oldFontSize * SurveyHelper . TITLE_PANEL_FONT_SIZE_SCALE ; await super . renderInteractive ( ) ; this . controller . fontSize = oldFontSize ; } }