import { ITimelineModel } from '../core/types' ; import { update } from './update' ; import { REVERSE } from '../actions' ; import { IReducer , IReducerContext } from '../core/types' ; import { _ } from '../utils/constants' ; export const reverse = ( model , _data , ctx ) => { model . rate *= - 1 ; update ( model , _ , ctx ) ; ctx . trigger ( REVERSE ) ; } ;