Scientific/Css/ichartjs/src/ichart.sector3d.js
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/**
* @overview the sector3d componment
* @component#iChart.Sector3D
* @extend#iChart.Sector
*/
iChart.Sector3D = iChart.extend(iChart.Sector,{
configure:function(){
/**
* invoked the super class's configuration
*/
iChart.Sector3D.superclass.configure.apply(this,arguments);
/**
* indicate the component's type
*/
this.type = 'sector3d';
this.dimension = iChart._3D;
this.set({
/**
* @cfg {Number} Specifies major semiaxis of ellipse.Normally,this will given by chart.(default to 0)
*/
semi_major_axis:0,
/**
* @cfg {Number} Specifies minor semiaxis of ellipse.Normally,this will given by chart.(default to 0)
*/
semi_minor_axis:0,
/**
* @cfg {Float (0~)} Specifies the sector's height(thickness).Normally,this will given by chart.(default to 0)
*/
cylinder_height:0
});
this.proxy = true;
},
isEventValid:function(e,_){
if(!_.get('ignored')){
if(_.isLabel()&&_.label.isEventValid(e,_.label).valid){
return {valid:true};
}
if(!iChart.inEllipse(e.x - _.x,e.y-_.y,_.a,_.b)){
return {valid:false};
}
if(iChart.angleZInRange(_.sA,_.eA,iChart.atan2Radian(_.x,_.y,e.x,e.y))){
return {valid:true};
}
}
return {valid:false};
},
p2p:function(x,y,a,z){
return {
x:x+this.a*Math.cos(a)*z,
y:y+this.b*Math.sin(a)*z
};
},
tipInvoke:function(){
var _ = this,A = _.get('middleAngle'),Q = iChart.quadrantd(A);
return function(w,h){
var P = _.p2p(_.x,_.y,A,0.6);
return {
后面还有 45 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。