hqchart 1.1.14349 → 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 +36 -31
- 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 +86 -66
- package/src/jscommon/umychart.testdata.js +54 -1
- package/src/jscommon/umychart.uniapp.h5/umychart.uniapp.h5.js +97 -67
- 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 +218 -83
|
@@ -44531,7 +44531,7 @@ function ChartMultiBar()
|
|
|
44531
44531
|
|
|
44532
44532
|
for(var mapItem of mapBar)
|
|
44533
44533
|
{
|
|
44534
|
-
aryBar=mapItem[1].AryBar;
|
|
44534
|
+
var aryBar=mapItem[1].AryBar;
|
|
44535
44535
|
if (!IFrameSplitOperator.IsNonEmptyArray(aryBar)) continue;
|
|
44536
44536
|
|
|
44537
44537
|
var config=null;
|
|
@@ -44539,6 +44539,7 @@ function ChartMultiBar()
|
|
|
44539
44539
|
var count=0;
|
|
44540
44540
|
var drawType=-1; //1=直线 2=实心 3=空心
|
|
44541
44541
|
var barWidth=1;
|
|
44542
|
+
this.Canvas.beginPath();
|
|
44542
44543
|
for(var i=0;i<aryBar.length;++i)
|
|
44543
44544
|
{
|
|
44544
44545
|
var item=aryBar[i];
|
|
@@ -44562,7 +44563,6 @@ function ChartMultiBar()
|
|
|
44562
44563
|
|
|
44563
44564
|
if (drawType==1)
|
|
44564
44565
|
{
|
|
44565
|
-
this.Canvas.beginPath();
|
|
44566
44566
|
if (this.IsHScreen)
|
|
44567
44567
|
{
|
|
44568
44568
|
this.Canvas.moveTo(ToFixedPoint(item.Y),ToFixedPoint(item.X));
|
|
@@ -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
|
{
|
|
@@ -45367,7 +45375,6 @@ function ChartMultiText()
|
|
|
45367
45375
|
|
|
45368
45376
|
if (item.Line)
|
|
45369
45377
|
{
|
|
45370
|
-
var kItem=this.Data.Data[item.Index];
|
|
45371
45378
|
var price=item.Line.KData=="H"? kItem.High:kItem.Low;
|
|
45372
45379
|
var yPrice=this.ChartFrame.GetYFromData(price, false);
|
|
45373
45380
|
var yText=y;
|
|
@@ -57119,8 +57126,9 @@ function ChartCorssCursor()
|
|
|
57119
57126
|
Icon:g_JSChartResource.CorssCursor.RightButton.Icon
|
|
57120
57127
|
};
|
|
57121
57128
|
|
|
57122
|
-
this.RightMargin=
|
|
57123
|
-
|
|
57129
|
+
this.RightMargin=CloneData(g_JSChartResource.CorssCursor.RightMargin);
|
|
57130
|
+
this.BottomConfig=CloneData(g_JSChartResource.CorssCursor.BottomText); //底部输出配置
|
|
57131
|
+
this.LeftConfig=CloneData(g_JSChartResource.CorssCursor.LeftText);
|
|
57124
57132
|
|
|
57125
57133
|
//内部使用
|
|
57126
57134
|
this.Close=null; //收盘价格
|
|
@@ -57492,36 +57500,48 @@ function ChartCorssCursor()
|
|
|
57492
57500
|
{
|
|
57493
57501
|
var text=this.StringFormatY.Text;
|
|
57494
57502
|
this.Canvas.font=this.Font;
|
|
57495
|
-
var textWidth=this.Canvas.measureText(text).width
|
|
57496
|
-
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:[] };
|
|
57497
57505
|
var buttonData={Y:y, YValue:yValue, FrameID:yValueExtend.FrameID };
|
|
57498
|
-
|
|
57506
|
+
|
|
57507
|
+
if (this.Frame.ChartBorder.Left>=30) //左边
|
|
57499
57508
|
{
|
|
57500
|
-
|
|
57509
|
+
var margin=this.LeftConfig.Margin;
|
|
57510
|
+
var textOffset=this.LeftConfig.TextOffset;
|
|
57511
|
+
|
|
57512
|
+
var rtBG=null;
|
|
57513
|
+
if (this.ShowTextMode.Left==1)
|
|
57501
57514
|
{
|
|
57502
|
-
|
|
57503
|
-
|
|
57504
|
-
|
|
57505
|
-
|
|
57506
|
-
|
|
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
|
+
}
|
|
57507
57525
|
}
|
|
57508
|
-
else
|
|
57526
|
+
else if (this.ShowTextMode.Left==2) //在框架内显示
|
|
57509
57527
|
{
|
|
57510
|
-
|
|
57511
|
-
|
|
57512
|
-
|
|
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";
|
|
57513
57539
|
this.Canvas.fillStyle=this.TextColor;
|
|
57514
|
-
this.Canvas.fillText(text,
|
|
57540
|
+
this.Canvas.fillText(text,rtBG.Left+textOffset.X, rtBG.Bottom+textOffset.Y);
|
|
57515
57541
|
}
|
|
57516
57542
|
}
|
|
57517
|
-
|
|
57518
|
-
|
|
57519
|
-
this.DrawTextBGRect(left,y-this.TextHeight/2,textWidth,this.TextHeight);
|
|
57520
|
-
this.Canvas.textAlign="left";
|
|
57521
|
-
this.Canvas.textBaseline="middle";
|
|
57522
|
-
this.Canvas.fillStyle=this.TextColor;
|
|
57523
|
-
this.Canvas.fillText(text,left+2,y,textWidth);
|
|
57524
|
-
}
|
|
57543
|
+
|
|
57544
|
+
|
|
57525
57545
|
|
|
57526
57546
|
var complexText=
|
|
57527
57547
|
{
|
|
@@ -57663,26 +57683,42 @@ function ChartCorssCursor()
|
|
|
57663
57683
|
var text=this.StringFormatX.Text;
|
|
57664
57684
|
this.Canvas.font=this.Font;
|
|
57665
57685
|
this.Canvas.fillStyle=this.TextBGColor;
|
|
57666
|
-
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
|
+
}
|
|
57667
57708
|
|
|
57668
|
-
var yCenter=bottom+2+this.TextHeight/2;
|
|
57669
|
-
var yTop=bottom+2;
|
|
57670
57709
|
var bShowText=true;
|
|
57671
57710
|
if (this.ShowTextMode.Bottom==2)
|
|
57672
57711
|
{
|
|
57673
|
-
|
|
57674
|
-
|
|
57712
|
+
rtBG.Bottom=bottom;
|
|
57713
|
+
rtBG.Top=rtBG.Bottom-rtBG.Height;
|
|
57675
57714
|
}
|
|
57676
57715
|
else if (this.ShowTextMode.Bottom==8)
|
|
57677
57716
|
{
|
|
57678
57717
|
var event=this.GetEventCallback(JSCHART_EVENT_ID.ON_CUSTOM_CORSSCURSOR_POSITION);
|
|
57679
57718
|
if (event && event.Callback)
|
|
57680
57719
|
{
|
|
57681
|
-
var sendData={
|
|
57720
|
+
var sendData={ RectText:rtBG, IsShowText:bShowText, X:x, Y:y };
|
|
57682
57721
|
event.Callback(event, sendData, this);
|
|
57683
|
-
|
|
57684
|
-
yCenter=sendData.YCenter;
|
|
57685
|
-
yTop=sendData.YTop;
|
|
57686
57722
|
bShowText=sendData.IsShowText;
|
|
57687
57723
|
}
|
|
57688
57724
|
}
|
|
@@ -57690,31 +57726,12 @@ function ChartCorssCursor()
|
|
|
57690
57726
|
//JSConsole.Chart.Log('[ChartCorssCursor::Draw] ',yCenter);
|
|
57691
57727
|
if (bShowText)
|
|
57692
57728
|
{
|
|
57693
|
-
|
|
57694
|
-
|
|
57695
|
-
|
|
57696
|
-
|
|
57697
|
-
|
|
57698
|
-
|
|
57699
|
-
this.Canvas.fillText(text,x+1,yCenter,textWidth);
|
|
57700
|
-
}
|
|
57701
|
-
else if (x+textWidth/2>=right)
|
|
57702
|
-
{
|
|
57703
|
-
this.DrawTextBGRect(right-textWidth,yTop,textWidth,this.TextHeight);
|
|
57704
|
-
this.Canvas.textAlign="right";
|
|
57705
|
-
this.Canvas.textBaseline="middle";
|
|
57706
|
-
this.Canvas.fillStyle=this.TextColor;
|
|
57707
|
-
this.Canvas.fillText(text,right-2,yCenter,textWidth);
|
|
57708
|
-
}
|
|
57709
|
-
else
|
|
57710
|
-
{
|
|
57711
|
-
this.DrawTextBGRect(x-textWidth/2,yTop,textWidth,this.TextHeight);
|
|
57712
|
-
this.Canvas.textAlign="center";
|
|
57713
|
-
this.Canvas.textBaseline="middle";
|
|
57714
|
-
this.Canvas.fillStyle=this.TextColor;
|
|
57715
|
-
this.Canvas.fillText(text,x,yCenter,textWidth);
|
|
57716
|
-
}
|
|
57717
|
-
}
|
|
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
|
+
}
|
|
57718
57735
|
}
|
|
57719
57736
|
|
|
57720
57737
|
//子坐标Y轴
|
|
@@ -75042,7 +75059,10 @@ function JSChartResource()
|
|
|
75042
75059
|
Icon: { Text:'\ue6a3', Color:'rgb(255,255,255)', Family:"iconfont", Size:18 }
|
|
75043
75060
|
},
|
|
75044
75061
|
|
|
75045
|
-
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 } }
|
|
75046
75066
|
};
|
|
75047
75067
|
|
|
75048
75068
|
this.LockBGColor = "rgb(220, 220, 220)"; //指标锁区域颜色
|
|
@@ -126964,6 +126984,16 @@ function APIScriptIndex(name,script,args,option, isOverlay)
|
|
|
126964
126984
|
|
|
126965
126985
|
result.push(outVarItem);
|
|
126966
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
|
+
}
|
|
126967
126997
|
else if (draw.DrawType=="DRAWCOLORKLINE")
|
|
126968
126998
|
{
|
|
126969
126999
|
drawItem.Name=draw.Name;
|
|
@@ -139505,10 +139535,8 @@ function JSTReportChart(divElement)
|
|
|
139505
139535
|
|
|
139506
139536
|
if (option.EnableResize==true) this.CreateResizeListener();
|
|
139507
139537
|
|
|
139508
|
-
if (option.MinuteChartTooltip && option.MinuteChartTooltip.Enable)
|
|
139509
|
-
|
|
139510
|
-
chart.InitalMinuteChartTooltip(option.MinuteChartTooltip);
|
|
139511
|
-
}
|
|
139538
|
+
if (option.MinuteChartTooltip && option.MinuteChartTooltip.Enable) chart.InitalMinuteChartTooltip(option.MinuteChartTooltip); //分时图
|
|
139539
|
+
if (option.FloatTooltip && option.FloatTooltip.Enable) chart.InitalFloatTooltip(option.FloatTooltip); //提示信息
|
|
139512
139540
|
|
|
139513
139541
|
if (option.Symbol)
|
|
139514
139542
|
{
|
|
@@ -139762,6 +139790,7 @@ function JSTReportChartContainer(uielement)
|
|
|
139762
139790
|
this.EnablePageCycle=false; //是否循环翻页
|
|
139763
139791
|
|
|
139764
139792
|
this.TooltipMinuteChart; //分时图
|
|
139793
|
+
this.FloatTooltip; //浮框提示
|
|
139765
139794
|
this.LastMouseStatus={ MoveStatus:null, TooltipStatus:null, MouseOnStatus:null };
|
|
139766
139795
|
|
|
139767
139796
|
this.IsDestroy=false; //是否已经销毁了
|
|
@@ -139771,6 +139800,7 @@ function JSTReportChartContainer(uielement)
|
|
|
139771
139800
|
this.IsDestroy=true;
|
|
139772
139801
|
this.StopAutoUpdate();
|
|
139773
139802
|
this.DestroyMinuteChartTooltip();
|
|
139803
|
+
this.DestroyFloatTooltip();
|
|
139774
139804
|
}
|
|
139775
139805
|
|
|
139776
139806
|
this.InitalMinuteChartTooltip=function(option)
|
|
@@ -139813,6 +139843,51 @@ function JSTReportChartContainer(uielement)
|
|
|
139813
139843
|
this.TooltipMinuteChart.Hide();
|
|
139814
139844
|
}
|
|
139815
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
|
+
|
|
139816
139891
|
//清空固定行数据
|
|
139817
139892
|
this.ClearFixedRowData=function()
|
|
139818
139893
|
{
|
|
@@ -140492,8 +140567,7 @@ function JSTReportChartContainer(uielement)
|
|
|
140492
140567
|
var oldMouseOnStatus=this.LastMouseStatus.MouseOnStatus;
|
|
140493
140568
|
this.LastMouseStatus.OnMouseMove=null;
|
|
140494
140569
|
|
|
140495
|
-
var
|
|
140496
|
-
if (this.LastMouseStatus.TooltipStatus) bDrawTooltip=true;
|
|
140570
|
+
var bShowTooltip=false;
|
|
140497
140571
|
this.LastMouseStatus.TooltipStatus=null;
|
|
140498
140572
|
|
|
140499
140573
|
var bShowChartTooltip=false;
|
|
@@ -140520,7 +140594,7 @@ function JSTReportChartContainer(uielement)
|
|
|
140520
140594
|
else
|
|
140521
140595
|
{
|
|
140522
140596
|
this.LastMouseStatus.TooltipStatus={ X:x, Y:y, Data:tooltipData, ClientX:e.clientX, ClientY:e.clientY };
|
|
140523
|
-
|
|
140597
|
+
bShowTooltip=true;
|
|
140524
140598
|
}
|
|
140525
140599
|
}
|
|
140526
140600
|
|
|
@@ -140536,7 +140610,6 @@ function JSTReportChartContainer(uielement)
|
|
|
140536
140610
|
*/
|
|
140537
140611
|
|
|
140538
140612
|
if (mouseStatus) this.UIElement.style.cursor=mouseStatus.Cursor;
|
|
140539
|
-
//if (bDrawTooltip) this.DrawTooltip(this.LastMouseStatus.TooltipStatus);
|
|
140540
140613
|
|
|
140541
140614
|
if (bShowChartTooltip)
|
|
140542
140615
|
{
|
|
@@ -140546,6 +140619,17 @@ function JSTReportChartContainer(uielement)
|
|
|
140546
140619
|
{
|
|
140547
140620
|
this.HideMinuteChartTooltip();
|
|
140548
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
|
+
}
|
|
140549
140633
|
}
|
|
140550
140634
|
|
|
140551
140635
|
this.UIOnMounseOut=function(e)
|
|
@@ -140775,6 +140859,7 @@ function JSTReportChartContainer(uielement)
|
|
|
140775
140859
|
{
|
|
140776
140860
|
this.LastMouseStatus.TooltipStatus=null;
|
|
140777
140861
|
this.HideMinuteChartTooltip();
|
|
140862
|
+
this.HideFloatTooltip();
|
|
140778
140863
|
var result=this.MoveSelectedRow(1,{ EnablePageCycle:this.EnablePageCycle })
|
|
140779
140864
|
if (result)
|
|
140780
140865
|
{
|
|
@@ -140786,6 +140871,7 @@ function JSTReportChartContainer(uielement)
|
|
|
140786
140871
|
{
|
|
140787
140872
|
this.LastMouseStatus.TooltipStatus=null;
|
|
140788
140873
|
this.HideMinuteChartTooltip();
|
|
140874
|
+
this.HideFloatTooltip();
|
|
140789
140875
|
var result=this.MoveSelectedRow(-1,{ EnablePageCycle:this.EnablePageCycle} );
|
|
140790
140876
|
if (result)
|
|
140791
140877
|
{
|
|
@@ -140808,6 +140894,7 @@ function JSTReportChartContainer(uielement)
|
|
|
140808
140894
|
if (keyID==116) return; //F15刷新不处理
|
|
140809
140895
|
|
|
140810
140896
|
this.HideMinuteChartTooltip();
|
|
140897
|
+
this.HideFloatTooltip();
|
|
140811
140898
|
|
|
140812
140899
|
switch(keyID)
|
|
140813
140900
|
{
|
|
@@ -141928,11 +142015,11 @@ function ChartTReport()
|
|
|
141928
142015
|
if (leftData.TitleColor) drawInfo.TextColor=leftData.TitleColor;
|
|
141929
142016
|
if (leftData.Text && leftData.TextColor)
|
|
141930
142017
|
{
|
|
141931
|
-
drawInfo.Left={ Text:leftData.Text, TextColor:leftData.TextColor};
|
|
142018
|
+
drawInfo.Left={ Text:leftData.Text, TextColor:leftData.TextColor, Tooltip:leftData.Tooltip};
|
|
141932
142019
|
}
|
|
141933
142020
|
else if (leftData.IconFont && leftData.TextColor)
|
|
141934
142021
|
{
|
|
141935
|
-
drawInfo.Left={ IconFont:leftData.IconFont, TextColor:leftData.TextColor};
|
|
142022
|
+
drawInfo.Left={ IconFont:leftData.IconFont, TextColor:leftData.TextColor, Tooltip:leftData.Tooltip};
|
|
141936
142023
|
}
|
|
141937
142024
|
|
|
141938
142025
|
}
|
|
@@ -141944,11 +142031,11 @@ function ChartTReport()
|
|
|
141944
142031
|
|
|
141945
142032
|
if (rightData.Text && rightData.TextColor)
|
|
141946
142033
|
{
|
|
141947
|
-
drawInfo.Right={ Text:rightData.Text, TextColor:rightData.TextColor};
|
|
142034
|
+
drawInfo.Right={ Text:rightData.Text, TextColor:rightData.TextColor, Tooltip:rightData.Tooltip};
|
|
141948
142035
|
}
|
|
141949
142036
|
else if (rightData.IconFont && rightData.TextColor)
|
|
141950
142037
|
{
|
|
141951
|
-
drawInfo.Right={ IconFont:rightData.IconFont, TextColor:rightData.TextColor};
|
|
142038
|
+
drawInfo.Right={ IconFont:rightData.IconFont, TextColor:rightData.TextColor, Tooltip:rightData.Tooltip};
|
|
141952
142039
|
}
|
|
141953
142040
|
}
|
|
141954
142041
|
}
|
|
@@ -141979,9 +142066,21 @@ function ChartTReport()
|
|
|
141979
142066
|
|
|
141980
142067
|
this.FormatCenterItem(data,drawInfo);
|
|
141981
142068
|
|
|
141982
|
-
|
|
141983
|
-
|
|
141984
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
|
+
}
|
|
141985
142084
|
}
|
|
141986
142085
|
|
|
141987
142086
|
this.DrawItem=function(index, exePriceData, data, column, rtItem, cellType)
|
|
@@ -142250,7 +142349,7 @@ function ChartTReport()
|
|
|
142250
142349
|
this.DrawText(drawInfo.Text, drawInfo.TextAlign, rtText.Left, yCenter, rtText.Width);
|
|
142251
142350
|
}
|
|
142252
142351
|
|
|
142253
|
-
if (drawInfo.Left)
|
|
142352
|
+
if (drawInfo.Left) //左边图标
|
|
142254
142353
|
{
|
|
142255
142354
|
var item=drawInfo.Left;
|
|
142256
142355
|
this.Canvas.textAlign="left";
|
|
@@ -142261,6 +142360,13 @@ function ChartTReport()
|
|
|
142261
142360
|
if (!fontBackup) fontBackup=this.Canvas.font;
|
|
142262
142361
|
this.Canvas.font=item.IconFont.Font;
|
|
142263
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
|
+
}
|
|
142264
142370
|
}
|
|
142265
142371
|
else if (item.Text)
|
|
142266
142372
|
{
|
|
@@ -142268,7 +142374,7 @@ function ChartTReport()
|
|
|
142268
142374
|
}
|
|
142269
142375
|
}
|
|
142270
142376
|
|
|
142271
|
-
if (drawInfo.Right)
|
|
142377
|
+
if (drawInfo.Right) //右边图标
|
|
142272
142378
|
{
|
|
142273
142379
|
var item=drawInfo.Right;
|
|
142274
142380
|
this.Canvas.textAlign="right";
|
|
@@ -142279,6 +142385,14 @@ function ChartTReport()
|
|
|
142279
142385
|
if (!fontBackup) fontBackup=this.Canvas.font;
|
|
142280
142386
|
this.Canvas.font=item.IconFont.Font;
|
|
142281
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
|
+
}
|
|
142282
142396
|
}
|
|
142283
142397
|
else if (item.Text)
|
|
142284
142398
|
{
|
|
@@ -149412,6 +149526,16 @@ function JSFloatTooltip()
|
|
|
149412
149526
|
this.ReportCellTruncateTooltip(data);
|
|
149413
149527
|
}
|
|
149414
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
|
+
}
|
|
149415
149539
|
}
|
|
149416
149540
|
|
|
149417
149541
|
this.UpdateRealtimeHQTooltip=function(data)
|
|
@@ -149679,6 +149803,17 @@ function JSFloatTooltip()
|
|
|
149679
149803
|
|
|
149680
149804
|
this.ShowTooltip(data);
|
|
149681
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
|
+
}
|
|
149682
149817
|
|
|
149683
149818
|
this.UpdateTableDOM=function()
|
|
149684
149819
|
{
|
|
@@ -152375,7 +152510,7 @@ function HQChartScriptWorker()
|
|
|
152375
152510
|
|
|
152376
152511
|
|
|
152377
152512
|
|
|
152378
|
-
var HQCHART_VERSION="1.1.
|
|
152513
|
+
var HQCHART_VERSION="1.1.14362";
|
|
152379
152514
|
|
|
152380
152515
|
function PrintHQChartVersion()
|
|
152381
152516
|
{
|