(scale)
| 126 | } |
| 127 | |
| 128 | function getUserBounds(scale) { |
| 129 | const {min, max, minDefined, maxDefined} = scale.getUserBounds(); |
| 130 | return { |
| 131 | min: minDefined ? min : Number.NEGATIVE_INFINITY, |
| 132 | max: maxDefined ? max : Number.POSITIVE_INFINITY |
| 133 | }; |
| 134 | } |
| 135 | |
| 136 | function getOrCreateStack(stacks, stackKey, indexValue) { |
| 137 | const subStack = stacks[stackKey] || (stacks[stackKey] = {}); |
no test coverage detected