Car/Css/ichartjs/src/ichart.pie3d.js
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/**
* @overview the pie3d componment
* @component#@chart#iChart.Pie3D
* @extend#iChart.Pie
*/
iChart.Pie3D = iChart.extend(iChart.Pie, {
configure : function() {
/**
* invoked the super class's configuration
*/
iChart.Pie3D.superclass.configure.apply(this, arguments);
this.type = 'pie3d';
this.dimension = iChart._3D;
this.set({
/**
* @cfg {Number} Three-dimensional rotation Z in degree(angle).socpe{0-90}.(default to 45)
*/
zRotate : 45,
/**
* @cfg {Number} Specifies the pie's thickness in pixels.(default to 30)
*/
yHeight : 30
});
this.positive = true;
},
doSector : function(_,d) {
_.push('sub_option.cylinder_height', (d.cylinder_height ? d.cylinder_height * _.get('zRotate_') : _.get('cylinder_height')));
return new iChart[_.sub](_.get('sub_option'), _);
},
one:function(_){
var layer,spaint,L = [],c = _.get('counterclockwise'), abs = function(n,M) {
/**
* If M,close to pi/2,else pi*3/2
*/
return 1 + Math.sin(M?(n+Math.PI):n);
}, t = 'startAngle', d = 'endAngle',Q,s,e
/**
* If the inside layer visibile
*/
lay =function(C,g,z,f){
Q = iChart.quadrantd(g);
if (C &&(Q ==0 || Q ==3) || (!C && (Q ==2 || Q ==1))) {
layer.push({
g : g,
z : g==z,
x : f.x,
y : f.y,
a : f.a,
b : f.b,
color : iChart.dark(f.get('background_color')),
h : f.h,
F : f
});
}
};
_.proxy = new iChart.Custom({
z_index : _.get('z_index') + 1,
后面还有 95 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。