(opts)
| 79 | var cbOpt; |
| 80 | |
| 81 | function initOpts(opts) { |
| 82 | return extendFlat(opts, { |
| 83 | // fillcolor can be a d3 scale, domain is z values, range is colors |
| 84 | // or leave it out for no fill, |
| 85 | // or set to a string constant for single-color fill |
| 86 | _fillcolor: null, |
| 87 | // line.color has the same options as fillcolor |
| 88 | _line: {color: null, width: null, dash: null}, |
| 89 | // levels of lines to draw. |
| 90 | // note that this DOES NOT determine the extent of the bar |
| 91 | // that's given by the domain of fillcolor |
| 92 | // (or line.color if no fillcolor domain) |
| 93 | _levels: {start: null, end: null, size: null}, |
| 94 | // separate fill levels (for example, heatmap coloring of a |
| 95 | // contour map) if this is omitted, fillcolors will be |
| 96 | // evaluated halfway between levels |
| 97 | _filllevels: null, |
| 98 | // for continuous colorscales: fill with a gradient instead of explicit levels |
| 99 | // value should be the colorscale [[0, c0], [v1, c1], ..., [1, cEnd]] |
| 100 | _fillgradient: null, |
| 101 | // when using a gradient, we need the data range specified separately |
| 102 | _zrange: null |
| 103 | }); |
| 104 | } |
| 105 | |
| 106 | function calcOpts() { |
| 107 | if(typeof cbOpt.calc === 'function') { |
no outgoing calls
no test coverage detected
searching dependent graphs…