import document from 'document' ; var demoinstance = document . getElementById ( 'demoinstance' ) ; setTimeout ( function ( ) { demoinstance . animate ( 'enable' ) ; } , 5000 ) ; var demogroup = demoinstance . getElementById ( 'demogroup' ) as GroupElement ; if ( demogroup . groupTransform ) { demogroup . groupTransform . translate . x = 20 ; demogroup . groupTransform . translate . y = 20 ; demogroup . groupTransform . scale . x = 0.5 ; demogroup . groupTransform . scale . y = 0.5 ; demogroup . groupTransform . rotate . angle = 45 ; }