MCPcopy Create free account
hub / github.com/microsoft/SandDance / getTiming

Function getTiming

packages/vega-deck.gl/src/layers.ts:199–211  ·  view source on GitHub ↗
(duration: number, easing?: (t: number) => number)

Source from the content-addressed store, hash-verified

197}
198
199function 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
213export function getCubeLayer(deckProps: Partial<DeckProps>) {
214 return deckProps.layers.filter(layer => layer && layer.id === layerNames.cubes)[0];

Callers 1

newCubeLayerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected