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

Function getCFrac

src/plots/ternary/ternary.js:625–625  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

623 function getAFrac(x, y) { return 1 - (y / _this.h); }
624 function getBFrac(x, y) { return 1 - ((x + (_this.h - y) / Math.sqrt(3)) / _this.w); }
625 function getCFrac(x, y) { return ((x - (_this.h - y) / Math.sqrt(3)) / _this.w); }
626
627 function zoomMove(dx0, dy0) {
628 var x1 = x0 + dx0 * scaleX;

Callers 1

zoomMoveFunction · 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…