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

Function y2p

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

Source from the content-addressed store, hash-verified

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);
319 };
320 var p2x = helpers.getPixelToData(gd, xa, false, xRefType);
321 var p2y = helpers.getPixelToData(gd, ya, true, yRefType);
322

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