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

Function coordDefaults

src/traces/heatmap/xyz_defaults.js:45–55  ·  view source on GitHub ↗
(coordStr, coerce)

Source from the content-addressed store, hash-verified

43};
44
45function coordDefaults(coordStr, coerce) {
46 var coord = coerce(coordStr);
47 var coordType = coord ? coerce(coordStr + 'type', 'array') : 'scaled';
48
49 if(coordType === 'scaled') {
50 coerce(coordStr + '0');
51 coerce('d' + coordStr);
52 }
53
54 return coord;
55}
56
57function isValidZ(z) {
58 var allRowsAreArrays = true;

Callers 1

xyz_defaults.jsFile · 0.85

Calls 1

coerceFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…