Skip to content

Commit

Permalink
优化FrequencyHistogramView扩展停用shadowBlur这个性能杀手
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangyuecn committed Jan 14, 2020
1 parent d2a4785 commit 27f7157
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -650,9 +650,9 @@ set={
//峰值小横条渐变颜色配置,取值格式和linear一致,留空为柱子的渐变颜色
,stripeLinear:null

,shadowBlur:0 //柱子阴影基础大小,设为0不显示阴影
,shadowBlur:0 //柱子阴影基础大小,设为0不显示阴影,如果柱子数量太多时请勿开启,非常影响性能
,shadowColor:"#bbb" //柱子阴影颜色
,stripeShadowBlur:-1 //峰值小横条阴影基础大小,设为0不显示阴影,-1为柱子的大小
,stripeShadowBlur:-1 //峰值小横条阴影基础大小,设为0不显示阴影,-1为柱子的大小,如果柱子数量太多时请勿开启,非常影响性能
,stripeShadowColor:"" //峰值小横条阴影颜色,留空为柱子的阴影颜色

//当发生绘制时会回调此方法,参数为当前绘制的频率数据和采样率,可实现多个直方图同时绘制,只消耗一个input输入和计算时间
Expand Down
1 change: 0 additions & 1 deletion app-support-sample/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,6 @@
,lineCount:90
,position:0
,minHeight:1
,shadowBlur:6
,stripeEnable:false
});

Expand Down
1 change: 0 additions & 1 deletion assets/工具-代码运行和静态分发Runtime.html
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,6 @@
,lineCount:90
,position:0
,minHeight:1
,shadowBlur:6
,stripeEnable:false
});
};
Expand Down
1 change: 0 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,6 @@
,lineCount:90
,position:0
,minHeight:1
,shadowBlur:6
,stripeEnable:false
});
},function(e,isUserNotAllow){
Expand Down
4 changes: 2 additions & 2 deletions src/extensions/frequency.histogram.view.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ var fn=function(set){
//峰值小横条渐变颜色配置,取值格式和linear一致,留空为柱子的渐变颜色
,stripeLinear:null

,shadowBlur:0 //柱子阴影基础大小,设为0不显示阴影
,shadowBlur:0 //柱子阴影基础大小,设为0不显示阴影,如果柱子数量太多时请勿开启,非常影响性能
,shadowColor:"#bbb" //柱子阴影颜色
,stripeShadowBlur:-1 //峰值小横条阴影基础大小,设为0不显示阴影,-1为柱子的大小
,stripeShadowBlur:-1 //峰值小横条阴影基础大小,设为0不显示阴影,-1为柱子的大小,如果柱子数量太多时请勿开启,非常影响性能
,stripeShadowColor:"" //峰值小横条阴影颜色,留空为柱子的阴影颜色

//当发生绘制时会回调此方法,参数为当前绘制的频率数据和采样率,可实现多个直方图同时绘制,只消耗一个input输入和计算时间
Expand Down

0 comments on commit 27f7157

Please sign in to comment.