import { StyleDefinition } from './style-definition' ; import { IQR } from '../interfaces' ; /**
 * Class that create a QR code
 */ export class QR extends StyleDefinition < QR , IQR > { param _code constructor ( private _code ) { super ( ) ; this . content . qr = this . _code ; } param fit public fit ( fit ) { this . content . fit = fit ; return this ; } param version public version ( version ) { this . content . version = version ; return this ; } param foreground public foreground ( foreground ) { this . content . foreground = foreground ; return this ; } param eccLevel public eccLevel ( eccLevel ) { this . content . eccLevel = eccLevel ; return this ; } param mode public mode ( mode ) { this . content . mode = mode ; return this ; } param mask public mask ( mask ) { this . content . mask = mask ; return this ; } }