(name: string, obj: CustomAnimation)
| 72 | export const reversePercentage = (x: number) => -(x - 1); |
| 73 | |
| 74 | const makeAnimation = (name: string, obj: CustomAnimation): void => { |
| 75 | animatable.registerAnimation( |
| 76 | name, |
| 77 | animatable.createAnimation(obj) as CustomAnimation, |
| 78 | ); |
| 79 | }; |
| 80 | |
| 81 | const isObject = (obj: any): obj is Object => { |
| 82 | return obj !== null && typeof obj === 'object'; |
no outgoing calls
no test coverage detected
searching dependent graphs…