MCPcopy Index your code
hub / github.com/apache/echarts / prepareSource

Method prepareSource

src/data/helper/sourceManager.ts:186–193  ·  view source on GitHub ↗

* Always return a source instance. Otherwise throw error.

()

Source from the content-addressed store, hash-verified

184 * Always return a source instance. Otherwise throw error.
185 */
186 prepareSource(): void {
187 // For the case that call `setOption` multiple time but no data changed,
188 // cache the result source to prevent from repeating transform.
189 if (this._isDirty()) {
190 this._createSource();
191 this._dirty = false;
192 }
193 }
194
195 private _createSource(): void {
196 this._setLocalSource([], []);

Callers 4

initMethod · 0.80
mergeOptionMethod · 0.80
_createSourceMethod · 0.80
_applyTransformMethod · 0.80

Calls 2

_isDirtyMethod · 0.95
_createSourceMethod · 0.95

Tested by

no test coverage detected