(datasets?: Dataset[])
| 682 | public datasets(): Dataset[]; |
| 683 | public datasets(datasets: Dataset[]): this; |
| 684 | public datasets(datasets?: Dataset[]): any { |
| 685 | const currentDatasets: Dataset[] = []; |
| 686 | this._datasetToDrawer.forEach((drawer, dataset) => currentDatasets.push(dataset)); |
| 687 | if (datasets == null) { |
| 688 | return currentDatasets; |
| 689 | } |
| 690 | |
| 691 | currentDatasets.forEach((dataset) => this._removeDataset(dataset)); |
| 692 | datasets.forEach((dataset) => this._addDataset(dataset)); |
| 693 | this._onDatasetUpdate(); |
| 694 | return this; |
| 695 | } |
| 696 | |
| 697 | protected _generateDrawSteps(): Drawers.DrawStep[] { |
| 698 | return [{ attrToProjector: this._getAttrToProjector(), animator: new Animators.Null() }]; |
no test coverage detected