import document from 'document' ; let demo = document . getElementById ( 'demo' ) as GraphicsElement ; demo . style . fill = 'red' ; demo . style . fontSize = 20 ; demo . style . fontFamily = 'System-Regular' ;