Scientific/Css/ichartjs/src/ichart.sector2d.js
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/**
* @overview the sector2d componment
* @component#iChart.Sector2D
* @extend#iChart.Sector
*/
iChart.Sector2D = iChart.extend(iChart.Sector,{
configure:function(){
/**
* invoked the super class's configuration
*/
iChart.Sector2D.superclass.configure.apply(this,arguments);
/**
* indicate the component's type
*/
this.type = 'sector2d';
this.set({
/**
* @cfg {Float (0~)} Specifies the sector's radius.Normally,this will given by chart.(default to 0)
*/
radius:0
});
},
drawSector:function(){
this.T.sector(
this.x,
this.y,
this.r,
this.get('donutwidth'),
this.get('startAngle'),
this.get('endAngle'),
this.get('f_color'),
this.get('border.enable'),
this.get('border.width'),
this.get('border.color'),
this.get('shadow'),
this.get('counterclockwise'));
},
isEventValid:function(e,_){
if(!_.get('ignored')){
if(_.isLabel()&&_.label.isEventValid(e,_.label).valid){
return {valid:true};
}
var r = iChart.distanceP2P(_.x,_.y,e.x,e.y),b=_.get('donutwidth');
if(_.r<r||(b&&(_.r-b)>r)){
return {valid:false};
}
if(iChart.angleInRange(_.get('startAngle'),_.get('endAngle'),iChart.atan2Radian(_.x,_.y,e.x,e.y))){
return {valid:true};
}
}
return {valid:false};
},
tipInvoke:function(){
var _ = this,A = _.get('middleAngle'),Q = iChart.quadrantd(A);
return function(w,h){
var P = iChart.p2Point(_.x,_.y,A,_.r*0.8)
后面还有 38 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。