code/Athena0.0.1/Web/Content/js/UEditor/third-party/highcharts/modules/map.src.js
(开头部分) 25KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/**
* @license Map plugin v0.1 for Highcharts
*
* (c) 2011-2013 Torstein Hønsi
*
* License: www.highcharts.com/license
*/
/*
* See www.highcharts.com/studies/world-map.htm for use case.
*
* To do:
* - Optimize long variable names and alias adapter methods and Highcharts namespace variables
* - Zoom and pan GUI
*/
(function (Highcharts) {
var UNDEFINED,
Axis = Highcharts.Axis,
Chart = Highcharts.Chart,
Point = Highcharts.Point,
Pointer = Highcharts.Pointer,
each = Highcharts.each,
extend = Highcharts.extend,
merge = Highcharts.merge,
pick = Highcharts.pick,
numberFormat = Highcharts.numberFormat,
defaultOptions = Highcharts.getOptions(),
seriesTypes = Highcharts.seriesTypes,
plotOptions = defaultOptions.plotOptions,
wrap = Highcharts.wrap,
Color = Highcharts.Color,
noop = function () {};
/*
* Return an intermediate color between two colors, according to pos where 0
* is the from color and 1 is the to color
*/
function tweenColors(from, to, pos) {
var i = 4,
rgba = [];
while (i--) {
rgba[i] = Math.round(
to.rgba[i] + (from.rgba[i] - to.rgba[i]) * (1 - pos)
);
}
return 'rgba(' + rgba.join(',') + ')';
}
// Set the default map navigation options
defaultOptions.mapNavigation = {
buttonOptions: {
align: 'right',
verticalAlign: 'bottom',
x: 0,
width: 18,
height: 18,
style: {
后面还有 942 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
