MCPcopy Create free account
hub / github.com/plotly/plotly.js / computeAnimateBindings

Function computeAnimateBindings

src/plots/command.js:298–306  ·  view source on GitHub ↗
(gd, args)

Source from the content-addressed store, hash-verified

296};
297
298function computeAnimateBindings(gd, args) {
299 // We'll assume that the only relevant modification an animation
300 // makes that's meaningfully tracked is the frame:
301 if(Array.isArray(args[0]) && args[0].length === 1 && ['string', 'number'].indexOf(typeof args[0][0]) !== -1) {
302 return [{type: 'layout', prop: '_currentFrame', value: args[0][0].toString()}];
303 } else {
304 return [];
305 }
306}
307
308function computeLayoutBindings(gd, args) {
309 var bindings = [];

Callers 1

command.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…