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

Function calcTilt

src/traces/parcoords/parcoords.js:366–377  ·  view source on GitHub ↗
(angle, position)

Source from the content-addressed store, hash-verified

364}
365
366function calcTilt(angle, position) {
367 var dir = (position === 'top') ? 1 : -1;
368 var radians = angle * Math.PI / 180;
369 var dx = Math.sin(radians);
370 var dy = Math.cos(radians);
371 return {
372 dir: dir,
373 dx: dx,
374 dy: dy,
375 degrees: angle
376 };
377}
378
379function updatePanelLayout(yAxis, vm, plotGlPixelRatio) {
380 var panels = vm.panels || (vm.panels = []);

Callers 1

parcoords.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…