import { Atom , ToLatexOptions } from '../core/atom-class' ; import { Box } from '../core/box' ; import { Context } from '../core/context' ; import { ParseMode , Style } from '../public/core' ; export class CompositionAtom extends Atom { constructor ( value , options ? ) { super ( 'composition' , { mode : options ?. mode ?? 'math' , value } ) ; } get computedStyle ( ) : Style { return { } ; } render ( context ) { const result = new Box ( this . value , { classes : 'ML__composition' , type : 'composition' , } ) ; this . bind ( context , result ) ; if ( this . caret ) result . caret = this . caret ; return result ; } serialize ( _options ) { return '' ; } }