* Allow named stacks to be hidden or shown by clicking on legend items. * This does not affect the behavior of hideStack or showStack. * @param {Boolean} [hidableStacks=false] * @returns {Boolean|StackMixin}
(hidableStacks)
| 141 | * @returns {Boolean|StackMixin} |
| 142 | */ |
| 143 | hidableStacks (hidableStacks) { |
| 144 | if (!arguments.length) { |
| 145 | return this._hidableStacks; |
| 146 | } |
| 147 | this._hidableStacks = hidableStacks; |
| 148 | return this; |
| 149 | } |
| 150 | |
| 151 | _findLayerByName (n) { |
| 152 | const i = this._stack.map(pluck('name')).indexOf(n); |
no outgoing calls
no test coverage detected