(mode)
| 39 | } |
| 40 | |
| 41 | update(mode) { |
| 42 | const meta = this._cachedMeta; |
| 43 | const {dataset: line, data: points = [], _dataset} = meta; |
| 44 | class="cm">// @ts-ignore |
| 45 | const animationsDisabled = this.chart._animationsDisabled; |
| 46 | let {start, count} = _getStartAndCountOfVisiblePoints(meta, points, animationsDisabled); |
| 47 | |
| 48 | this._drawStart = start; |
| 49 | this._drawCount = count; |
| 50 | |
| 51 | if (_scaleRangesChanged(meta)) { |
| 52 | start = 0; |
| 53 | count = points.length; |
| 54 | } |
| 55 | |
| 56 | class="cm">// Update Line |
| 57 | line._chart = this.chart; |
| 58 | line._datasetIndex = this.index; |
| 59 | line._decimated = !!_dataset._decimated; |
| 60 | line.points = points; |
| 61 | |
| 62 | const options = this.resolveDatasetElementOptions(mode); |
| 63 | if (!this.options.showLine) { |
| 64 | options.borderWidth = 0; |
| 65 | } |
| 66 | options.segment = this.options.segment; |
| 67 | this.updateElement(line, undefined, { |
| 68 | animated: !animationsDisabled, |
| 69 | options |
| 70 | }, mode); |
| 71 | |
| 72 | class="cm">// Update Points |
| 73 | this.updateElements(points, start, count, mode); |
| 74 | } |
| 75 | |
| 76 | updateElements(points, start, count, mode) { |
| 77 | const reset = mode === class="st">'reset'; |
nothing calls this directly
no test coverage detected