MCPcopy
hub / github.com/apache/echarts / getValueState

Method getValueState

src/component/visualMap/PiecewiseModel.ts:289–297  ·  view source on GitHub ↗

* @override

(value: number)

Source from the content-addressed store, hash-verified

287 * @override
288 */
289 getValueState(value: number): VisualState {
290 const index = VisualMapping.findPieceIndex(value, this._pieceList);
291
292 return index != null
293 ? (this.option.selected[this.getSelectedMapKey(this._pieceList[index])]
294 ? 'inRange' : 'outOfRange'
295 )
296 : 'outOfRange';
297 }
298
299 /**
300 * @public

Callers 1

setStopMethod · 0.45

Calls 2

getSelectedMapKeyMethod · 0.95
findPieceIndexMethod · 0.80

Tested by

no test coverage detected