* @param {Chart} chart * @private
(chart)
| 87 | * @private |
| 88 | */ |
| 89 | _descriptors(chart) { |
| 90 | if (this._cache) { |
| 91 | return this._cache; |
| 92 | } |
| 93 | |
| 94 | const descriptors = this._cache = this._createDescriptors(chart); |
| 95 | |
| 96 | this._notifyStateChanges(chart); |
| 97 | |
| 98 | return descriptors; |
| 99 | } |
| 100 | |
| 101 | _createDescriptors(chart, all) { |
| 102 | const config = chart && chart.config; |
no test coverage detected