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

Method _doInit

src/component/dataZoom/DataZoomModel.ts:241–260  ·  view source on GitHub ↗
(inputRawOption: Opts)

Source from the content-addressed store, hash-verified

239 }
240
241 private _doInit(inputRawOption: Opts): void {
242 const thisOption = this.option;
243
244 this._setDefaultThrottle(inputRawOption);
245
246 this._updateRangeUse(inputRawOption);
247
248 const settledOption = this.settledOption;
249 each([['start', 'startValue'], ['end', 'endValue']] as const, function (names, index) {
250 // start/end has higher priority over startValue/endValue if they
251 // both set, but we should make chart.setOption({endValue: 1000})
252 // effective, rather than chart.setOption({endValue: 1000, end: null}).
253 if (this._rangePropMode[index] === 'value') {
254 thisOption[names[0]] = settledOption[names[0]] = null;
255 }
256 // Otherwise do nothing and use the merge result.
257 }, this);
258
259 this._resetTarget();
260 }
261
262 private _resetTarget() {
263 const optionOrient = this.get('orient', true);

Callers 2

initMethod · 0.95
mergeOptionMethod · 0.95

Calls 4

_setDefaultThrottleMethod · 0.95
_updateRangeUseMethod · 0.95
_resetTargetMethod · 0.95
eachFunction · 0.50

Tested by

no test coverage detected