(fullData, fullLayout)
| 63 | } |
| 64 | |
| 65 | function crossTraceDefaults(fullData, fullLayout) { |
| 66 | var traceIn, traceOut; |
| 67 | |
| 68 | function coerce(attr, dflt) { |
| 69 | return Lib.coerce(traceOut._input, traceOut, attributes, attr, dflt); |
| 70 | } |
| 71 | |
| 72 | for (var i = 0; i < fullData.length; i++) { |
| 73 | traceOut = fullData[i]; |
| 74 | |
| 75 | if (traceOut.type === 'bar') { |
| 76 | traceIn = traceOut._input; |
| 77 | // `marker.cornerradius` needs to be coerced here rather than in handleStyleDefaults() |
| 78 | // because it needs to happen after `layout.barcornerradius` has been coerced |
| 79 | var r = coerce('marker.cornerradius', fullLayout.barcornerradius); |
| 80 | if (traceOut.marker) { |
| 81 | traceOut.marker.cornerradius = validateCornerradius(r); |
| 82 | } |
| 83 | |
| 84 | handleGroupingDefaults(traceIn, traceOut, fullLayout, coerce, fullLayout.barmode); |
| 85 | } |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | // Returns a value equivalent to the given cornerradius value, if valid; |
| 90 | // otherwise returns`undefined`. |
nothing calls this directly
no test coverage detected
searching dependent graphs…