MCPcopy Create free account
hub / github.com/plotly/plotly.js / clampTiny

Function clampTiny

src/plots/polar/helpers.js:209–211  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

207
208// to more easily catch 'almost zero' numbers in if-else blocks
209function clampTiny(v) {
210 return Math.abs(v) > 1e-10 ? v : 0;
211}
212
213function transformForSVG(pts0, cx, cy) {
214 cx = cx || 0;

Callers 2

findIntersectionXYFunction · 0.85
pathCornerForPolygonsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…