example/public/ueditor/third-party/highcharts/modules/map.src.js
function (path) {
			
			var series = this,
				even = false, // while loop reads from the end
				xAxis = series.xAxis,
				yAxis = series.yAxis,
				i;
				
			// Preserve the original
			path = [].concat(path);
				
			// Do the translation
			i = path.length;
			while (i--) {
				if (typeof path[i] === 'number') {
					if (even) { // even = x
						path[i] = Math.round(xAxis.translate(path[i]));
					} else { // odd = Y
						path[i] = Math.round(yAxis.len - yAxis.translate(path[i]));
					}
					even = !even;
				}
			}
			return path;
		}
function (path) {
			
			var series = this,
				even = false, // while loop reads from the end
				xAxis = series.xAxis,
				yAxis = series.yAxis,
				i;
				
			// Preserve the original
			path = [].concat(path);
				
			// Do the translation
			i = path.length;
			while (i--) {
				if (typeof path[i] === 'number') {
					if (even) { // even = x
						path[i] = Math.round(xAxis.translate(path[i]));
					} else { // odd = Y
						path[i] = Math.round(yAxis.len - yAxis.translate(path[i]));
					}
					even = !even;
				}
			}
			return path;
		}
function ( path ) { var series = this , even = false , // while loop reads from the end xAxis = series . xAxis , yAxis = series . yAxis , i ; // Preserve the original path = [ ] . concat ( path ) ; // Do the translation i = path . length ; while ( i -- ) { if ( typeof path [ i ] === 'number' ) { if ( even ) { // even = x path [ i ] = Math . round ( xAxis . translate ( path [ i ] ) ) ; } else { // odd = Y path [ i ] = Math . round ( yAxis . len - yAxis . translate ( path [ i ] ) ) ; } even = ! even ; } } return path ; }
Translate the path so that it automatically fits into the plot area box
@param {Object} path
Translate the path so that it automatically fits into the plot area box