(methodName, finder, value)
| 27794 | echartsProto.convertFromPixel = curry(doConvertPixel, 'convertFromPixel'); |
| 27795 | |
| 27796 | function doConvertPixel(methodName, finder, value) { |
| 27797 | if (this._disposed) { |
| 27798 | disposedWarning(this.id); |
| 27799 | return; |
| 27800 | } |
| 27801 | |
| 27802 | var ecModel = this._model; |
| 27803 | var coordSysList = this._coordSysMgr.getCoordinateSystems(); |
| 27804 | var result; |
| 27805 | |
| 27806 | finder = parseFinder(ecModel, finder); |
| 27807 | |
| 27808 | for (var i = 0; i < coordSysList.length; i++) { |
| 27809 | var coordSys = coordSysList[i]; |
| 27810 | if (coordSys[methodName] |
| 27811 | && (result = coordSys[methodName](ecModel, finder, value)) != null |
| 27812 | ) { |
| 27813 | return result; |
| 27814 | } |
| 27815 | } |
| 27816 | |
| 27817 | if (__DEV__) { |
| 27818 | console.warn( |
| 27819 | 'No coordinate system that supports ' + methodName + ' found by the given finder.' |
| 27820 | ); |
| 27821 | } |
| 27822 | } |
| 27823 | |
| 27824 | /** |
| 27825 | * Is the specified coordinate systems or components contain the given pixel point. |
nothing calls this directly
no test coverage detected