MCPcopy Index your code
hub / github.com/methodofaction/Method-Draw / ptToScreen

Function ptToScreen

src/js/svgcanvas.js:3608–3624  ·  view source on GitHub ↗
(x_in, y_in)

Source from the content-addressed store, hash-verified

3606 }
3607
3608 function ptToScreen(x_in, y_in) {
3609 var out = {
3610 x: x_in,
3611 y: y_in
3612 }
3613
3614 if(matrix) {
3615 var pt = transformPoint(out.x, out.y, matrix);
3616 out.x = pt.x;
3617 out.y = pt.y;
3618 }
3619
3620 out.x *= current_zoom;
3621 out.y *= current_zoom;
3622
3623 return out;
3624 }
3625
3626 function hideCursor() {
3627 if(cursor) {

Callers 2

setCursorFunction · 0.85
setSelectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected