WebContent/highcharts4/js/highcharts-3d.src.js
(开头部分) 35KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
// ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highcharts JS v4.1.5 (2015-04-13)
*
* (c) 2009-2013 Torstein Hønsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, HighchartsAdapter, document, window, navigator, setInterval, clearInterval, clearTimeout, setTimeout, location, jQuery, $, console */
(function (Highcharts) {
/**
Shorthands for often used function
*/
/**
* Mathematical Functionility
*/
var PI = Math.PI,
deg2rad = (PI / 180), // degrees to radians
sin = Math.sin,
cos = Math.cos,
pick = Highcharts.pick,
round = Math.round;
function perspective(points, chart, insidePlotArea) {
var options3d = chart.options.chart.options3d,
inverted = false,
origin;
if (insidePlotArea) {
inverted = chart.inverted;
origin = {
x: chart.plotWidth / 2,
y: chart.plotHeight / 2,
z: options3d.depth / 2,
vd: pick(options3d.depth, 1) * pick(options3d.viewDistance, 0)
};
} else {
origin = {
x: chart.plotLeft + (chart.plotWidth / 2),
y: chart.plotTop + (chart.plotHeight / 2),
z: options3d.depth / 2,
vd: pick(options3d.depth, 1) * pick(options3d.viewDistance, 0)
};
}
var result = [],
xe = origin.x,
ye = origin.y,
ze = origin.z,
vd = origin.vd,
angle1 = deg2rad * (inverted ? options3d.beta : -options3d.beta),
angle2 = deg2rad * (inverted ? -options3d.alpha : options3d.alpha),
s1 = sin(angle1),
c1 = cos(angle1),
s2 = sin(angle2),
后面还有 1267 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
