MCPcopy Index your code
hub / github.com/plotly/plotly.js / arcTween

Function arcTween

src/traces/indicator/plot.js:798–805  ·  view source on GitHub ↗
(arc, endAngle, newAngle)

Source from the content-addressed store, hash-verified

796// Returns a tween for a transition’s "d" attribute, transitioning any selected
797// arcs from their current angle to the specified new angle.
798function arcTween(arc, endAngle, newAngle) {
799 return function() {
800 var interp = interpolate(endAngle, newAngle);
801 return function(t) {
802 return arc.endAngle(interp(t))();
803 };
804 };
805}
806
807// mocks our axis
808function mockAxis(gd, opts, zrange) {

Callers 1

drawAngularGaugeFunction · 0.85

Calls 1

interpolateFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…