Skip to content

VoicingRichText

Overview

RichText that composes ReadingBlock, adding support for Voicing and input listeners that speak content upon user activation.

@author Jesse Greenberg (PhET Interactive Simulations)

Class VoicingRichText

import { VoicingRichText } from 'scenerystack/scenery';

Constructor

new VoicingRichText( text : string | TReadOnlyProperty<string>, providedOptions? : VoicingRichTextOptions )

Instance Methods

Type VoicingRichTextOptions

import type { VoicingRichTextOptions } from 'scenerystack/scenery';

ReadingBlockOptions & StrictOmit<RichTextOptions, "focusHighlight">

Source Code

See the source for VoicingRichText.ts in the scenery repository.