(this: VisualMapping, value: number)
| 679 | } |
| 680 | |
| 681 | function 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 | |
| 693 | function setVisualToOption(thisOption: VisualMappingInnerOption, visualArr: VisualValue[]) { |
| 694 | thisOption.visual = visualArr; |
nothing calls this directly
no test coverage detected
searching dependent graphs…