import { PdfBrick } from './pdf_brick' ; import { DocController , IRect } from '../doc_controller' ; import { IQuestion } from 'survey-core' ; export class CustomBrick extends PdfBrick { constructor ( question , controller , private renderFunc ) { super ( question , controller , renderFunc ( controller . helperDoc , question , 0 , 0 ) ) ; } public async renderInteractive ( ) { await new Promise < void > ( ( resolve ) => { this . renderFunc ( this . controller . doc , this . question , this . xLeft , this . yTop ) ; resolve ( ) ; } ) ; } }