(stacks, stackKey, indexValue)
| 134 | } |
| 135 | |
| 136 | function getOrCreateStack(stacks, stackKey, indexValue) { |
| 137 | const subStack = stacks[stackKey] || (stacks[stackKey] = {}); |
| 138 | return subStack[indexValue] || (subStack[indexValue] = {}); |
| 139 | } |
| 140 | |
| 141 | function getLastIndexInStack(stack, vScale, positive, type) { |
| 142 | for (const meta of vScale.getMatchingVisibleMetas(type).reverse()) { |