Skip to content

Commit

Permalink
ver 7743
Browse files Browse the repository at this point in the history
7743 小程序 FullDraw 增加标题绘制事件通知
  • Loading branch information
jones2000 committed Jan 4, 2020
1 parent 89ef36e commit f3f9bfb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions wechathqchart/umychart.wechat.3.0.js
Original file line number Diff line number Diff line change
Expand Up @@ -1447,10 +1447,16 @@ function JSChartContainer(uielement)
if (this.ChartInfoPaint) this.ChartInfoPaint.Draw();
this.Frame.DrawLock();

var eventTitleDraw = this.GetEvent(JSCHART_EVENT_ID.ON_TITLE_DRAW);
var eventIndexTitleDraw = this.GetEvent(JSCHART_EVENT_ID.ON_INDEXTITLE_DRAW);
for (var i in this.TitlePaint) //标题
{
var item = this.TitlePaint[i];
if (!item.IsDynamic) continue;

if (item.ClassName == 'DynamicChartTitlePainting') item.OnDrawEvent = eventIndexTitleDraw
else item.OnDrawEvent = eventTitleDraw;

if (typeof (item.DrawTitle) == 'function') item.DrawTitle();
}

Expand Down

0 comments on commit f3f9bfb

Please sign in to comment.