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

Function x2p

src/components/shapes/draw.js:312–315  ·  view source on GitHub ↗
(v, shift)

Source from the content-addressed store, hash-verified

310 var shiftYStart = shapeOptions.y0shift;
311 var shiftYEnd = shapeOptions.y1shift;
312 var x2p = function (v, shift) {
313 var dataToPixel = helpers.getDataToPixel(gd, xa, shift, false, xRefType);
314 return dataToPixel(v);
315 };
316 var y2p = function (v, shift) {
317 var dataToPixel = helpers.getDataToPixel(gd, ya, shift, true, yRefType);
318 return dataToPixel(v);

Callers 6

helpers.jsFile · 0.70
createLineDragHandlesFunction · 0.70
startDragFunction · 0.70
moveShapeFunction · 0.70
resizeShapeFunction · 0.70
renderAnchorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected