MCPcopy
hub / github.com/plotly/plotly.js / validateOpacity

Function validateOpacity

src/lib/gl_format_color.js:28–30  ·  view source on GitHub ↗
(opacityIn)

Source from the content-addressed store, hash-verified

26}
27
28function validateOpacity(opacityIn) {
29 return isNumeric(opacityIn) ? opacityIn : opacityDflt;
30}
31
32function formatColor(containerIn, opacityIn, len) {
33 var colorIn = containerIn.color;

Callers 1

formatColorFunction · 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…