hqchart 1.1.14354 → 1.1.14363
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/umychart.vue.js +33 -28
- package/package.json +1 -1
- package/src/jscommon/umychart.DialogTooltip.js +21 -0
- package/src/jscommon/umychart.NetworkFilterTest.js +54 -1
- package/src/jscommon/umychart.TReport.js +100 -16
- package/src/jscommon/umychart.complier.js +10 -0
- package/src/jscommon/umychart.js +84 -63
- package/src/jscommon/umychart.testdata.js +54 -1
- package/src/jscommon/umychart.uniapp.h5/umychart.uniapp.h5.js +95 -64
- package/src/jscommon/umychart.version.js +1 -1
- package/src/jscommon/umychart.vue/umychart.NetworkFilterTest.vue.js +54 -1
- package/src/jscommon/umychart.vue/umychart.vue.js +216 -80
|
@@ -45309,10 +45309,18 @@ function ChartMultiText()
|
|
|
45309
45309
|
var mapItem=this.MapCache.get(key);
|
|
45310
45310
|
if (!IFrameSplitOperator.IsNonEmptyArray(mapItem.Data)) continue;
|
|
45311
45311
|
|
|
45312
|
-
|
|
45313
|
-
|
|
45314
|
-
|
|
45315
|
-
|
|
45312
|
+
if (isMinute)
|
|
45313
|
+
{
|
|
45314
|
+
var x=this.ChartFrame.GetXFromIndex(j);
|
|
45315
|
+
}
|
|
45316
|
+
else
|
|
45317
|
+
{
|
|
45318
|
+
var left=xOffset;
|
|
45319
|
+
var right=xOffset+dataWidth;
|
|
45320
|
+
if (right>chartright) break;
|
|
45321
|
+
var x=left+(right-left)/2;
|
|
45322
|
+
}
|
|
45323
|
+
|
|
45316
45324
|
|
|
45317
45325
|
for(var k=0;k<mapItem.Data.length;++k)
|
|
45318
45326
|
{
|
|
@@ -57118,8 +57126,9 @@ function ChartCorssCursor()
|
|
|
57118
57126
|
Icon:g_JSChartResource.CorssCursor.RightButton.Icon
|
|
57119
57127
|
};
|
|
57120
57128
|
|
|
57121
|
-
this.RightMargin=
|
|
57122
|
-
|
|
57129
|
+
this.RightMargin=CloneData(g_JSChartResource.CorssCursor.RightMargin);
|
|
57130
|
+
this.BottomConfig=CloneData(g_JSChartResource.CorssCursor.BottomText); //底部输出配置
|
|
57131
|
+
this.LeftConfig=CloneData(g_JSChartResource.CorssCursor.LeftText);
|
|
57123
57132
|
|
|
57124
57133
|
//内部使用
|
|
57125
57134
|
this.Close=null; //收盘价格
|
|
@@ -57491,36 +57500,48 @@ function ChartCorssCursor()
|
|
|
57491
57500
|
{
|
|
57492
57501
|
var text=this.StringFormatY.Text;
|
|
57493
57502
|
this.Canvas.font=this.Font;
|
|
57494
|
-
var textWidth=this.Canvas.measureText(text).width
|
|
57495
|
-
var textSize={ Width:textWidth, Height:this.TextHeight, Text:[] };
|
|
57503
|
+
var textWidth=this.Canvas.measureText(text).width; //前后各空2个像素
|
|
57504
|
+
var textSize={ Width:textWidth+4, Height:this.TextHeight, Text:[] };
|
|
57496
57505
|
var buttonData={Y:y, YValue:yValue, FrameID:yValueExtend.FrameID };
|
|
57497
|
-
|
|
57506
|
+
|
|
57507
|
+
if (this.Frame.ChartBorder.Left>=30) //左边
|
|
57498
57508
|
{
|
|
57499
|
-
|
|
57509
|
+
var margin=this.LeftConfig.Margin;
|
|
57510
|
+
var textOffset=this.LeftConfig.TextOffset;
|
|
57511
|
+
|
|
57512
|
+
var rtBG=null;
|
|
57513
|
+
if (this.ShowTextMode.Left==1)
|
|
57500
57514
|
{
|
|
57501
|
-
|
|
57502
|
-
|
|
57503
|
-
|
|
57504
|
-
|
|
57505
|
-
|
|
57515
|
+
var rtBG={ Right:left, Width:textWidth+margin.Left+margin.Right, YCenter:y, Height:textHeight+margin.Top+margin.Bottom };
|
|
57516
|
+
rtBG.Left=rtBG.Right-rtBG.Width;
|
|
57517
|
+
rtBG.Top=rtBG.YCenter-rtBG.Height/2;
|
|
57518
|
+
rtBG.Bottom=rtBG.Top+rtBG.Height;
|
|
57519
|
+
|
|
57520
|
+
if (rtBG.Left<0)
|
|
57521
|
+
{
|
|
57522
|
+
rtBG.Left=0;
|
|
57523
|
+
rtBG.Right=rtBG.Left+rtBG.Width;
|
|
57524
|
+
}
|
|
57506
57525
|
}
|
|
57507
|
-
else
|
|
57526
|
+
else if (this.ShowTextMode.Left==2) //在框架内显示
|
|
57508
57527
|
{
|
|
57509
|
-
|
|
57510
|
-
|
|
57511
|
-
|
|
57528
|
+
var rtBG={ Left:left, Width:textWidth+margin.Left+margin.Right, YCenter:y, Height:textHeight+margin.Top+margin.Bottom };
|
|
57529
|
+
rtBG.Right=rtBG.Left+rtBG.Width;
|
|
57530
|
+
rtBG.Top=rtBG.YCenter-rtBG.Height/2;
|
|
57531
|
+
rtBG.Bottom=rtBG.Top+rtBG.Height;
|
|
57532
|
+
}
|
|
57533
|
+
|
|
57534
|
+
if (rtBG)
|
|
57535
|
+
{
|
|
57536
|
+
this.DrawTextBGRect(rtBG.Left,rtBG.Top,rtBG.Width,rtBG.Height);
|
|
57537
|
+
this.Canvas.textAlign="left";
|
|
57538
|
+
this.Canvas.textBaseline="bottom";
|
|
57512
57539
|
this.Canvas.fillStyle=this.TextColor;
|
|
57513
|
-
this.Canvas.fillText(text,
|
|
57540
|
+
this.Canvas.fillText(text,rtBG.Left+textOffset.X, rtBG.Bottom+textOffset.Y);
|
|
57514
57541
|
}
|
|
57515
57542
|
}
|
|
57516
|
-
|
|
57517
|
-
|
|
57518
|
-
this.DrawTextBGRect(left,y-this.TextHeight/2,textWidth,this.TextHeight);
|
|
57519
|
-
this.Canvas.textAlign="left";
|
|
57520
|
-
this.Canvas.textBaseline="middle";
|
|
57521
|
-
this.Canvas.fillStyle=this.TextColor;
|
|
57522
|
-
this.Canvas.fillText(text,left+2,y,textWidth);
|
|
57523
|
-
}
|
|
57543
|
+
|
|
57544
|
+
|
|
57524
57545
|
|
|
57525
57546
|
var complexText=
|
|
57526
57547
|
{
|
|
@@ -57662,26 +57683,42 @@ function ChartCorssCursor()
|
|
|
57662
57683
|
var text=this.StringFormatX.Text;
|
|
57663
57684
|
this.Canvas.font=this.Font;
|
|
57664
57685
|
this.Canvas.fillStyle=this.TextBGColor;
|
|
57665
|
-
var textWidth=this.Canvas.measureText(text).width
|
|
57686
|
+
var textWidth=this.Canvas.measureText(text).width; //前后各空2个像素
|
|
57687
|
+
var margin=this.BottomConfig.Margin;
|
|
57688
|
+
var textOffset=this.BottomConfig.TextOffset;
|
|
57689
|
+
var rtBG=
|
|
57690
|
+
{
|
|
57691
|
+
Top:bottom, Height:margin.Top+margin.Bottom+textHeight,
|
|
57692
|
+
XCenter:x, Width:textWidth+margin.Left+margin.Right
|
|
57693
|
+
};
|
|
57694
|
+
rtBG.Bottom=rtBG.Top+rtBG.Height;
|
|
57695
|
+
rtBG.Left=rtBG.XCenter-rtBG.Width/2;
|
|
57696
|
+
rtBG.Right=rtBG.Left+rtBG.Width;
|
|
57697
|
+
|
|
57698
|
+
if (rtBG.Left<=0)
|
|
57699
|
+
{
|
|
57700
|
+
rtBG.Left=0;
|
|
57701
|
+
rtBG.Right=rtBG.Left+rtBG.Width;
|
|
57702
|
+
}
|
|
57703
|
+
else if (rtBG.Right>=right)
|
|
57704
|
+
{
|
|
57705
|
+
rtBG.Right=right;
|
|
57706
|
+
rtBG.Left=rtBG.Right-rtBG.Width;
|
|
57707
|
+
}
|
|
57666
57708
|
|
|
57667
|
-
var yCenter=bottom+2+this.TextHeight/2;
|
|
57668
|
-
var yTop=bottom+2;
|
|
57669
57709
|
var bShowText=true;
|
|
57670
57710
|
if (this.ShowTextMode.Bottom==2)
|
|
57671
57711
|
{
|
|
57672
|
-
|
|
57673
|
-
|
|
57712
|
+
rtBG.Bottom=bottom;
|
|
57713
|
+
rtBG.Top=rtBG.Bottom-rtBG.Height;
|
|
57674
57714
|
}
|
|
57675
57715
|
else if (this.ShowTextMode.Bottom==8)
|
|
57676
57716
|
{
|
|
57677
57717
|
var event=this.GetEventCallback(JSCHART_EVENT_ID.ON_CUSTOM_CORSSCURSOR_POSITION);
|
|
57678
57718
|
if (event && event.Callback)
|
|
57679
57719
|
{
|
|
57680
|
-
var sendData={
|
|
57720
|
+
var sendData={ RectText:rtBG, IsShowText:bShowText, X:x, Y:y };
|
|
57681
57721
|
event.Callback(event, sendData, this);
|
|
57682
|
-
|
|
57683
|
-
yCenter=sendData.YCenter;
|
|
57684
|
-
yTop=sendData.YTop;
|
|
57685
57722
|
bShowText=sendData.IsShowText;
|
|
57686
57723
|
}
|
|
57687
57724
|
}
|
|
@@ -57689,31 +57726,12 @@ function ChartCorssCursor()
|
|
|
57689
57726
|
//JSConsole.Chart.Log('[ChartCorssCursor::Draw] ',yCenter);
|
|
57690
57727
|
if (bShowText)
|
|
57691
57728
|
{
|
|
57692
|
-
|
|
57693
|
-
|
|
57694
|
-
|
|
57695
|
-
|
|
57696
|
-
|
|
57697
|
-
|
|
57698
|
-
this.Canvas.fillText(text,x+1,yCenter,textWidth);
|
|
57699
|
-
}
|
|
57700
|
-
else if (x+textWidth/2>=right)
|
|
57701
|
-
{
|
|
57702
|
-
this.DrawTextBGRect(right-textWidth,yTop,textWidth,this.TextHeight);
|
|
57703
|
-
this.Canvas.textAlign="right";
|
|
57704
|
-
this.Canvas.textBaseline="middle";
|
|
57705
|
-
this.Canvas.fillStyle=this.TextColor;
|
|
57706
|
-
this.Canvas.fillText(text,right-2,yCenter,textWidth);
|
|
57707
|
-
}
|
|
57708
|
-
else
|
|
57709
|
-
{
|
|
57710
|
-
this.DrawTextBGRect(x-textWidth/2,yTop,textWidth,this.TextHeight);
|
|
57711
|
-
this.Canvas.textAlign="center";
|
|
57712
|
-
this.Canvas.textBaseline="middle";
|
|
57713
|
-
this.Canvas.fillStyle=this.TextColor;
|
|
57714
|
-
this.Canvas.fillText(text,x,yCenter,textWidth);
|
|
57715
|
-
}
|
|
57716
|
-
}
|
|
57729
|
+
this.DrawTextBGRect(rtBG.Left,rtBG.Top,rtBG.Width,rtBG.Height);
|
|
57730
|
+
this.Canvas.textAlign="left";
|
|
57731
|
+
this.Canvas.textBaseline="bottom";
|
|
57732
|
+
this.Canvas.fillStyle=this.TextColor;
|
|
57733
|
+
this.Canvas.fillText(text,rtBG.Left+textOffset.X,rtBG.Bottom+textOffset.Y,textWidth);
|
|
57734
|
+
}
|
|
57717
57735
|
}
|
|
57718
57736
|
|
|
57719
57737
|
//子坐标Y轴
|
|
@@ -75041,7 +75059,10 @@ function JSChartResource()
|
|
|
75041
75059
|
Icon: { Text:'\ue6a3', Color:'rgb(255,255,255)', Family:"iconfont", Size:18 }
|
|
75042
75060
|
},
|
|
75043
75061
|
|
|
75044
|
-
RightMargin: { Left:2, Right:2, Top:5, Bottom:3 }
|
|
75062
|
+
RightMargin: { Left:2, Right:2, Top:5, Bottom:3 },
|
|
75063
|
+
|
|
75064
|
+
BottomText:{ Margin: { Left:4, Right:4, Top:0, Bottom:0 }, TextOffset:{X:4, Y:-1 } },
|
|
75065
|
+
LeftText:{ Margin: { Left:4, Right:4, Top:0, Bottom:0 }, TextOffset:{X:4, Y:-1 } }
|
|
75045
75066
|
};
|
|
75046
75067
|
|
|
75047
75068
|
this.LockBGColor = "rgb(220, 220, 220)"; //指标锁区域颜色
|
|
@@ -126963,6 +126984,16 @@ function APIScriptIndex(name,script,args,option, isOverlay)
|
|
|
126963
126984
|
|
|
126964
126985
|
result.push(outVarItem);
|
|
126965
126986
|
}
|
|
126987
|
+
else if (draw.DrawType=='MULTI_BAR')
|
|
126988
|
+
{
|
|
126989
|
+
drawItem.Text=draw.Text;
|
|
126990
|
+
drawItem.Name=draw.Name;
|
|
126991
|
+
drawItem.DrawType=draw.DrawType;
|
|
126992
|
+
drawItem.DrawData=draw.DrawData;
|
|
126993
|
+
outVarItem.Draw=drawItem;
|
|
126994
|
+
|
|
126995
|
+
result.push(outVarItem);
|
|
126996
|
+
}
|
|
126966
126997
|
else if (draw.DrawType=="DRAWCOLORKLINE")
|
|
126967
126998
|
{
|
|
126968
126999
|
drawItem.Name=draw.Name;
|
|
@@ -139504,10 +139535,8 @@ function JSTReportChart(divElement)
|
|
|
139504
139535
|
|
|
139505
139536
|
if (option.EnableResize==true) this.CreateResizeListener();
|
|
139506
139537
|
|
|
139507
|
-
if (option.MinuteChartTooltip && option.MinuteChartTooltip.Enable)
|
|
139508
|
-
|
|
139509
|
-
chart.InitalMinuteChartTooltip(option.MinuteChartTooltip);
|
|
139510
|
-
}
|
|
139538
|
+
if (option.MinuteChartTooltip && option.MinuteChartTooltip.Enable) chart.InitalMinuteChartTooltip(option.MinuteChartTooltip); //分时图
|
|
139539
|
+
if (option.FloatTooltip && option.FloatTooltip.Enable) chart.InitalFloatTooltip(option.FloatTooltip); //提示信息
|
|
139511
139540
|
|
|
139512
139541
|
if (option.Symbol)
|
|
139513
139542
|
{
|
|
@@ -139761,6 +139790,7 @@ function JSTReportChartContainer(uielement)
|
|
|
139761
139790
|
this.EnablePageCycle=false; //是否循环翻页
|
|
139762
139791
|
|
|
139763
139792
|
this.TooltipMinuteChart; //分时图
|
|
139793
|
+
this.FloatTooltip; //浮框提示
|
|
139764
139794
|
this.LastMouseStatus={ MoveStatus:null, TooltipStatus:null, MouseOnStatus:null };
|
|
139765
139795
|
|
|
139766
139796
|
this.IsDestroy=false; //是否已经销毁了
|
|
@@ -139770,6 +139800,7 @@ function JSTReportChartContainer(uielement)
|
|
|
139770
139800
|
this.IsDestroy=true;
|
|
139771
139801
|
this.StopAutoUpdate();
|
|
139772
139802
|
this.DestroyMinuteChartTooltip();
|
|
139803
|
+
this.DestroyFloatTooltip();
|
|
139773
139804
|
}
|
|
139774
139805
|
|
|
139775
139806
|
this.InitalMinuteChartTooltip=function(option)
|
|
@@ -139812,6 +139843,51 @@ function JSTReportChartContainer(uielement)
|
|
|
139812
139843
|
this.TooltipMinuteChart.Hide();
|
|
139813
139844
|
}
|
|
139814
139845
|
|
|
139846
|
+
this.InitalFloatTooltip=function(option)
|
|
139847
|
+
{
|
|
139848
|
+
if (this.FloatTooltip) return;
|
|
139849
|
+
|
|
139850
|
+
this.FloatTooltip=new JSFloatTooltip();
|
|
139851
|
+
this.FloatTooltip.Inital(this, option);
|
|
139852
|
+
this.FloatTooltip.Create();
|
|
139853
|
+
}
|
|
139854
|
+
|
|
139855
|
+
this.HideFloatTooltip=function()
|
|
139856
|
+
{
|
|
139857
|
+
if (!this.FloatTooltip) return;
|
|
139858
|
+
|
|
139859
|
+
this.FloatTooltip.Hide();
|
|
139860
|
+
}
|
|
139861
|
+
|
|
139862
|
+
this.DestroyFloatTooltip=function()
|
|
139863
|
+
{
|
|
139864
|
+
if (!this.FloatTooltip) return;
|
|
139865
|
+
|
|
139866
|
+
this.FloatTooltip.Destroy();
|
|
139867
|
+
this.FloatTooltip=null;
|
|
139868
|
+
}
|
|
139869
|
+
|
|
139870
|
+
this.DrawFloatTooltip=function(point,toolTip)
|
|
139871
|
+
{
|
|
139872
|
+
if (!this.FloatTooltip) return;
|
|
139873
|
+
|
|
139874
|
+
this.UpdateFloatTooltip(point, toolTip)
|
|
139875
|
+
}
|
|
139876
|
+
|
|
139877
|
+
this.UpdateFloatTooltip=function(point, toolTip)
|
|
139878
|
+
{
|
|
139879
|
+
if (!this.FloatTooltip) return;
|
|
139880
|
+
|
|
139881
|
+
var sendData=
|
|
139882
|
+
{
|
|
139883
|
+
Tooltip:toolTip,
|
|
139884
|
+
Point:point,
|
|
139885
|
+
DataType:4,
|
|
139886
|
+
};
|
|
139887
|
+
|
|
139888
|
+
this.FloatTooltip.Update(sendData);
|
|
139889
|
+
}
|
|
139890
|
+
|
|
139815
139891
|
//清空固定行数据
|
|
139816
139892
|
this.ClearFixedRowData=function()
|
|
139817
139893
|
{
|
|
@@ -140491,8 +140567,7 @@ function JSTReportChartContainer(uielement)
|
|
|
140491
140567
|
var oldMouseOnStatus=this.LastMouseStatus.MouseOnStatus;
|
|
140492
140568
|
this.LastMouseStatus.OnMouseMove=null;
|
|
140493
140569
|
|
|
140494
|
-
var
|
|
140495
|
-
if (this.LastMouseStatus.TooltipStatus) bDrawTooltip=true;
|
|
140570
|
+
var bShowTooltip=false;
|
|
140496
140571
|
this.LastMouseStatus.TooltipStatus=null;
|
|
140497
140572
|
|
|
140498
140573
|
var bShowChartTooltip=false;
|
|
@@ -140519,7 +140594,7 @@ function JSTReportChartContainer(uielement)
|
|
|
140519
140594
|
else
|
|
140520
140595
|
{
|
|
140521
140596
|
this.LastMouseStatus.TooltipStatus={ X:x, Y:y, Data:tooltipData, ClientX:e.clientX, ClientY:e.clientY };
|
|
140522
|
-
|
|
140597
|
+
bShowTooltip=true;
|
|
140523
140598
|
}
|
|
140524
140599
|
}
|
|
140525
140600
|
|
|
@@ -140535,7 +140610,6 @@ function JSTReportChartContainer(uielement)
|
|
|
140535
140610
|
*/
|
|
140536
140611
|
|
|
140537
140612
|
if (mouseStatus) this.UIElement.style.cursor=mouseStatus.Cursor;
|
|
140538
|
-
//if (bDrawTooltip) this.DrawTooltip(this.LastMouseStatus.TooltipStatus);
|
|
140539
140613
|
|
|
140540
140614
|
if (bShowChartTooltip)
|
|
140541
140615
|
{
|
|
@@ -140545,6 +140619,17 @@ function JSTReportChartContainer(uielement)
|
|
|
140545
140619
|
{
|
|
140546
140620
|
this.HideMinuteChartTooltip();
|
|
140547
140621
|
}
|
|
140622
|
+
|
|
140623
|
+
if (bShowTooltip)
|
|
140624
|
+
{
|
|
140625
|
+
var xTooltip = e.clientX-this.UIElement.getBoundingClientRect().left;
|
|
140626
|
+
var yTooltip = e.clientY-this.UIElement.getBoundingClientRect().top;
|
|
140627
|
+
this.DrawFloatTooltip({X:xTooltip, Y:yTooltip, YMove:20/pixelTatio},this.LastMouseStatus.TooltipStatus.Data);
|
|
140628
|
+
}
|
|
140629
|
+
else
|
|
140630
|
+
{
|
|
140631
|
+
this.HideFloatTooltip();
|
|
140632
|
+
}
|
|
140548
140633
|
}
|
|
140549
140634
|
|
|
140550
140635
|
this.UIOnMounseOut=function(e)
|
|
@@ -140774,6 +140859,7 @@ function JSTReportChartContainer(uielement)
|
|
|
140774
140859
|
{
|
|
140775
140860
|
this.LastMouseStatus.TooltipStatus=null;
|
|
140776
140861
|
this.HideMinuteChartTooltip();
|
|
140862
|
+
this.HideFloatTooltip();
|
|
140777
140863
|
var result=this.MoveSelectedRow(1,{ EnablePageCycle:this.EnablePageCycle })
|
|
140778
140864
|
if (result)
|
|
140779
140865
|
{
|
|
@@ -140785,6 +140871,7 @@ function JSTReportChartContainer(uielement)
|
|
|
140785
140871
|
{
|
|
140786
140872
|
this.LastMouseStatus.TooltipStatus=null;
|
|
140787
140873
|
this.HideMinuteChartTooltip();
|
|
140874
|
+
this.HideFloatTooltip();
|
|
140788
140875
|
var result=this.MoveSelectedRow(-1,{ EnablePageCycle:this.EnablePageCycle} );
|
|
140789
140876
|
if (result)
|
|
140790
140877
|
{
|
|
@@ -140807,6 +140894,7 @@ function JSTReportChartContainer(uielement)
|
|
|
140807
140894
|
if (keyID==116) return; //F15刷新不处理
|
|
140808
140895
|
|
|
140809
140896
|
this.HideMinuteChartTooltip();
|
|
140897
|
+
this.HideFloatTooltip();
|
|
140810
140898
|
|
|
140811
140899
|
switch(keyID)
|
|
140812
140900
|
{
|
|
@@ -141927,11 +142015,11 @@ function ChartTReport()
|
|
|
141927
142015
|
if (leftData.TitleColor) drawInfo.TextColor=leftData.TitleColor;
|
|
141928
142016
|
if (leftData.Text && leftData.TextColor)
|
|
141929
142017
|
{
|
|
141930
|
-
drawInfo.Left={ Text:leftData.Text, TextColor:leftData.TextColor};
|
|
142018
|
+
drawInfo.Left={ Text:leftData.Text, TextColor:leftData.TextColor, Tooltip:leftData.Tooltip};
|
|
141931
142019
|
}
|
|
141932
142020
|
else if (leftData.IconFont && leftData.TextColor)
|
|
141933
142021
|
{
|
|
141934
|
-
drawInfo.Left={ IconFont:leftData.IconFont, TextColor:leftData.TextColor};
|
|
142022
|
+
drawInfo.Left={ IconFont:leftData.IconFont, TextColor:leftData.TextColor, Tooltip:leftData.Tooltip};
|
|
141935
142023
|
}
|
|
141936
142024
|
|
|
141937
142025
|
}
|
|
@@ -141943,11 +142031,11 @@ function ChartTReport()
|
|
|
141943
142031
|
|
|
141944
142032
|
if (rightData.Text && rightData.TextColor)
|
|
141945
142033
|
{
|
|
141946
|
-
drawInfo.Right={ Text:rightData.Text, TextColor:rightData.TextColor};
|
|
142034
|
+
drawInfo.Right={ Text:rightData.Text, TextColor:rightData.TextColor, Tooltip:rightData.Tooltip};
|
|
141947
142035
|
}
|
|
141948
142036
|
else if (rightData.IconFont && rightData.TextColor)
|
|
141949
142037
|
{
|
|
141950
|
-
drawInfo.Right={ IconFont:rightData.IconFont, TextColor:rightData.TextColor};
|
|
142038
|
+
drawInfo.Right={ IconFont:rightData.IconFont, TextColor:rightData.TextColor, Tooltip:rightData.Tooltip};
|
|
141951
142039
|
}
|
|
141952
142040
|
}
|
|
141953
142041
|
}
|
|
@@ -141978,9 +142066,21 @@ function ChartTReport()
|
|
|
141978
142066
|
|
|
141979
142067
|
this.FormatCenterItem(data,drawInfo);
|
|
141980
142068
|
|
|
141981
|
-
|
|
141982
|
-
|
|
141983
142069
|
this.DrawCell(drawInfo);
|
|
142070
|
+
|
|
142071
|
+
if (drawInfo.LeftIconTooltip)
|
|
142072
|
+
{
|
|
142073
|
+
var tooltipItem=drawInfo.LeftIconTooltip;
|
|
142074
|
+
var tooltipData={ Rect:tooltipItem.Rect, Data:tooltipItem.Data, Index:index, Column:column, CellType:cellType, Type:2 };
|
|
142075
|
+
this.TooltipRect.push(tooltipData);
|
|
142076
|
+
}
|
|
142077
|
+
|
|
142078
|
+
if (drawInfo.RightIconTooltip)
|
|
142079
|
+
{
|
|
142080
|
+
var tooltipItem=drawInfo.RightIconTooltip;
|
|
142081
|
+
var tooltipData={ Rect:tooltipItem.Rect, Data:tooltipItem.Data, Index:index, Column:column, CellType:cellType, Type:3 };
|
|
142082
|
+
this.TooltipRect.push(tooltipData);
|
|
142083
|
+
}
|
|
141984
142084
|
}
|
|
141985
142085
|
|
|
141986
142086
|
this.DrawItem=function(index, exePriceData, data, column, rtItem, cellType)
|
|
@@ -142249,7 +142349,7 @@ function ChartTReport()
|
|
|
142249
142349
|
this.DrawText(drawInfo.Text, drawInfo.TextAlign, rtText.Left, yCenter, rtText.Width);
|
|
142250
142350
|
}
|
|
142251
142351
|
|
|
142252
|
-
if (drawInfo.Left)
|
|
142352
|
+
if (drawInfo.Left) //左边图标
|
|
142253
142353
|
{
|
|
142254
142354
|
var item=drawInfo.Left;
|
|
142255
142355
|
this.Canvas.textAlign="left";
|
|
@@ -142260,6 +142360,13 @@ function ChartTReport()
|
|
|
142260
142360
|
if (!fontBackup) fontBackup=this.Canvas.font;
|
|
142261
142361
|
this.Canvas.font=item.IconFont.Font;
|
|
142262
142362
|
this.Canvas.fillText(item.IconFont.Symbol,rtText.Left,yCenter);
|
|
142363
|
+
if (item.Tooltip)
|
|
142364
|
+
{
|
|
142365
|
+
var iconWidth=this.Canvas.measureText(item.IconFont.Symbol).width;
|
|
142366
|
+
var rtIcon={ Left:rtText.Left, Top:rtText.Top, Bottom:rtText.Bottom, Height:rtText.Height, Width:iconWidth };
|
|
142367
|
+
rtIcon.Right=rtIcon.Left+rtIcon.Width;
|
|
142368
|
+
drawInfo.LeftIconTooltip={ Rect:rtIcon, Data:item.Tooltip };
|
|
142369
|
+
}
|
|
142263
142370
|
}
|
|
142264
142371
|
else if (item.Text)
|
|
142265
142372
|
{
|
|
@@ -142267,7 +142374,7 @@ function ChartTReport()
|
|
|
142267
142374
|
}
|
|
142268
142375
|
}
|
|
142269
142376
|
|
|
142270
|
-
if (drawInfo.Right)
|
|
142377
|
+
if (drawInfo.Right) //右边图标
|
|
142271
142378
|
{
|
|
142272
142379
|
var item=drawInfo.Right;
|
|
142273
142380
|
this.Canvas.textAlign="right";
|
|
@@ -142278,6 +142385,14 @@ function ChartTReport()
|
|
|
142278
142385
|
if (!fontBackup) fontBackup=this.Canvas.font;
|
|
142279
142386
|
this.Canvas.font=item.IconFont.Font;
|
|
142280
142387
|
this.Canvas.fillText(item.IconFont.Symbol,rtText.Right,yCenter);
|
|
142388
|
+
|
|
142389
|
+
if (item.Tooltip)
|
|
142390
|
+
{
|
|
142391
|
+
var iconWidth=this.Canvas.measureText(item.IconFont.Symbol).width;
|
|
142392
|
+
var rtIcon={ Right:rtText.Right, Top:rtText.Top, Bottom:rtText.Bottom, Height:rtText.Height, Width:iconWidth };
|
|
142393
|
+
rtIcon.Left=rtIcon.Right-rtIcon.Width;
|
|
142394
|
+
drawInfo.RightIconTooltip={ Rect:rtIcon, Data:item.Tooltip };
|
|
142395
|
+
}
|
|
142281
142396
|
}
|
|
142282
142397
|
else if (item.Text)
|
|
142283
142398
|
{
|
|
@@ -149411,6 +149526,16 @@ function JSFloatTooltip()
|
|
|
149411
149526
|
this.ReportCellTruncateTooltip(data);
|
|
149412
149527
|
}
|
|
149413
149528
|
}
|
|
149529
|
+
else if (data.DataType==4) //T型报价
|
|
149530
|
+
{
|
|
149531
|
+
var tooltipData=data.Tooltip;
|
|
149532
|
+
if (!tooltipData) return;
|
|
149533
|
+
|
|
149534
|
+
if (tooltipData.Type==2 || tooltipData.Type==3)
|
|
149535
|
+
{
|
|
149536
|
+
this.TReportIconTooltip(data);
|
|
149537
|
+
}
|
|
149538
|
+
}
|
|
149414
149539
|
}
|
|
149415
149540
|
|
|
149416
149541
|
this.UpdateRealtimeHQTooltip=function(data)
|
|
@@ -149678,6 +149803,17 @@ function JSFloatTooltip()
|
|
|
149678
149803
|
|
|
149679
149804
|
this.ShowTooltip(data);
|
|
149680
149805
|
}
|
|
149806
|
+
|
|
149807
|
+
this.TReportIconTooltip=function(data)
|
|
149808
|
+
{
|
|
149809
|
+
var tooltipData=data.Tooltip;
|
|
149810
|
+
if (!tooltipData.Data || !IFrameSplitOperator.IsNonEmptyArray(tooltipData.Data.AryText)) return;
|
|
149811
|
+
|
|
149812
|
+
this.AryText=tooltipData.Data.AryText;
|
|
149813
|
+
this.UpdateTableDOM();
|
|
149814
|
+
|
|
149815
|
+
this.ShowTooltip(data);
|
|
149816
|
+
}
|
|
149681
149817
|
|
|
149682
149818
|
this.UpdateTableDOM=function()
|
|
149683
149819
|
{
|
|
@@ -152374,7 +152510,7 @@ function HQChartScriptWorker()
|
|
|
152374
152510
|
|
|
152375
152511
|
|
|
152376
152512
|
|
|
152377
|
-
var HQCHART_VERSION="1.1.
|
|
152513
|
+
var HQCHART_VERSION="1.1.14362";
|
|
152378
152514
|
|
|
152379
152515
|
function PrintHQChartVersion()
|
|
152380
152516
|
{
|