MCPcopy Create free account
hub / github.com/apache/echarts / optionUpdated

Method optionUpdated

src/component/visualMap/ContinuousModel.ts:114–125  ·  view source on GitHub ↗

* @override

(newOption: ContinuousVisualMapOption, isInit: boolean)

Source from the content-addressed store, hash-verified

112 * @override
113 */
114 optionUpdated(newOption: ContinuousVisualMapOption, isInit: boolean) {
115 super.optionUpdated.apply(this, arguments as any);
116
117 this.resetExtent();
118
119 this.resetVisual(function (mappingOption?: VisualMappingOption) {
120 mappingOption.mappingMethod = 'linear';
121 mappingOption.dataExtent = this.getExtent();
122 });
123
124 this._resetRange();
125 }
126
127 /**
128 * @protected

Callers

nothing calls this directly

Calls 4

_resetRangeMethod · 0.95
resetExtentMethod · 0.80
resetVisualMethod · 0.80
getExtentMethod · 0.65

Tested by

no test coverage detected