MCPcopy
hub / github.com/danvk/dygraphs / halfDown

Function halfDown

src/plugins/axes.js:107–107  ·  view source on GitHub ↗
(y)

Source from the content-addressed store, hash-verified

105 // Round pixels to half-integer boundaries for crisper drawing.
106 function halfUp(x) { return Math.round(x) + 0.5; }
107 function halfDown(y){ return Math.round(y) - 0.5; }
108
109 var context = e.drawingContext;
110 var containerDiv = e.canvas.parentNode;

Callers 1

axes.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected