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

Function getSpecifiedVisual

src/visual/VisualMapping.ts:681–691  ·  view source on GitHub ↗
(this: VisualMapping, value: number)

Source from the content-addressed store, hash-verified

679}
680
681function getSpecifiedVisual(this: VisualMapping, value: number) {
682 const thisOption = this.option;
683 const pieceList = thisOption.pieceList;
684 if (thisOption.hasSpecialVisual) {
685 const pieceIndex = VisualMapping.findPieceIndex(value, pieceList);
686 const piece = pieceList[pieceIndex];
687 if (piece && piece.visual) {
688 return piece.visual[this.type];
689 }
690 }
691}
692
693function setVisualToOption(thisOption: VisualMappingInnerOption, visualArr: VisualValue[]) {
694 thisOption.visual = visualArr;

Callers

nothing calls this directly

Calls 1

findPieceIndexMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…