import { AnimationToolBar } from './AnimationToolBar' ; import { BoardManager } from './boardManager' ; import { Operation } from "./Operation" ; export class OperationPauseAction extends Operation { constructor ( private t ) { super ( ) ; } private do ( ) { const action = BoardManager . timeline . actions [ this . t ] ; action . pause = ! action . pause ; AnimationToolBar . updateActionPause ( this . t ) ; } undo ( ) { this . do ( ) ; } redo ( ) { this . do ( ) ; } }