(attr, attrName, attrs, level)
| 159 | var baseContainer, baseAttrName; |
| 160 | |
| 161 | function callback(attr, attrName, attrs, level) { |
| 162 | stack = stack.slice(0, level).concat([attrName]); |
| 163 | isArrayStack = isArrayStack.slice(0, level).concat([attr && attr._isLinkedToArray]); |
| 164 | |
| 165 | var splittableAttr = ( |
| 166 | attr && |
| 167 | (attr.valType === 'data_array' || attr.arrayOk === true) && |
| 168 | !(stack[level - 1] === 'colorbar' && (attrName === 'ticktext' || attrName === 'tickvals')) |
| 169 | ); |
| 170 | |
| 171 | // Manually exclude 'colorbar.tickvals' and 'colorbar.ticktext' for now |
| 172 | // which are declared as `valType: 'data_array'` but scale independently of |
| 173 | // the coordinate arrays. |
| 174 | // |
| 175 | // Down the road, we might want to add a schema field (e.g `uncorrelatedArray: true`) |
| 176 | // to distinguish attributes of the likes. |
| 177 | |
| 178 | if(!splittableAttr) return; |
| 179 | |
| 180 | crawlIntoTrace(baseContainer, 0, ''); |
| 181 | } |
| 182 | |
| 183 | function crawlIntoTrace(container, i, astrPartial) { |
| 184 | var item = container[stack[i]]; |
no test coverage detected
searching dependent graphs…