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

Function boundRat

stackgl_modules/index.js:8885–8891  ·  view source on GitHub ↗
(r)

Source from the content-addressed store, hash-verified

8883
8884// Bounds on a rational number when rounded to a float
8885function boundRat (r) {
8886 var f = ratToFloat(r)
8887 return [
8888 nextafter(f, -Infinity),
8889 nextafter(f, Infinity)
8890 ]
8891}
8892
8893// Convert a list of edges in a pslg to bounding boxes
8894function boundEdges (points, edges) {

Callers 1

dedupPointsFunction · 0.85

Calls 1

nextafterFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…