MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / doConvertPixel

Function doConvertPixel

libs/echarts/echarts.simple.js:27796–27822  ·  view source on GitHub ↗
(methodName, finder, value)

Source from the content-addressed store, hash-verified

27794echartsProto.convertFromPixel = curry(doConvertPixel, 'convertFromPixel');
27795
27796function 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.

Callers

nothing calls this directly

Calls 2

disposedWarningFunction · 0.70
parseFinderFunction · 0.70

Tested by

no test coverage detected