Function
getTiming
(duration: number, easing?: (t: number) => number)
Source from the content-addressed store, hash-verified
| 197 | } |
| 198 | |
| 199 | function getTiming(duration: number, easing?: (t: number) => number) { |
| 200 | let timing: InterpolationTransitionTiming; |
| 201 | if (duration) { |
| 202 | timing = { |
| 203 | duration, |
| 204 | type: 'interpolation', |
| 205 | }; |
| 206 | if (easing) { |
| 207 | timing.easing = easing; |
| 208 | } |
| 209 | } |
| 210 | return timing; |
| 211 | } |
| 212 | |
| 213 | export function getCubeLayer(deckProps: Partial<DeckProps>) { |
| 214 | return deckProps.layers.filter(layer => layer && layer.id === layerNames.cubes)[0]; |
Tested by
no test coverage detected