hqchart 1.1.14660 → 1.1.14667
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 +48 -33
- package/package.json +1 -1
- package/src/jscommon/umychart.TReport.js +83 -0
- package/src/jscommon/umychart.js +264 -13
- package/src/jscommon/umychart.style.js +7 -0
- package/src/jscommon/umychart.uniapp.h5/umychart.uniapp.h5.js +272 -14
- package/src/jscommon/umychart.version.js +1 -1
- package/src/jscommon/umychart.vue/umychart.vue.js +355 -14
|
@@ -4684,6 +4684,7 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
|
|
|
4684
4684
|
}
|
|
4685
4685
|
|
|
4686
4686
|
if (IFrameSplitOperator.IsBool(item.EnablePrediction)) klineChart.PredictionConfig.Enable=item.EnablePrediction;
|
|
4687
|
+
if (IFrameSplitOperator.IsBool(item.EnableDaySummary)) klineChart.DaySummary.Enable=item.EnableDaySummary;
|
|
4687
4688
|
}
|
|
4688
4689
|
|
|
4689
4690
|
if(option.KLineTitle)
|
|
@@ -7021,6 +7022,7 @@ var JSCHART_MENU_ID=
|
|
|
7021
7022
|
|
|
7022
7023
|
CMD_FULLSCREEN_SUMMARY_ID:56, //当前屏区间统计
|
|
7023
7024
|
CMD_CORSS_DBCLICK_ID:57, //双击显示隐藏十字光标
|
|
7025
|
+
CMD_ENABLE_KLINE_DAY_SUMMARY_ID:58, //K线底部显示走完剩余时间
|
|
7024
7026
|
|
|
7025
7027
|
|
|
7026
7028
|
|
|
@@ -14994,6 +14996,13 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
14994
14996
|
case JSCHART_MENU_ID.CMD_FULLSCREEN_SUMMARY_ID:
|
|
14995
14997
|
this.FullScreenSummary();
|
|
14996
14998
|
break;
|
|
14999
|
+
case JSCHART_MENU_ID.CMD_ENABLE_KLINE_DAY_SUMMARY_ID:
|
|
15000
|
+
if (IFrameSplitOperator.IsBool(srcParam))
|
|
15001
|
+
{
|
|
15002
|
+
this.ChartPaint[0].DaySummary.Enable=srcParam;
|
|
15003
|
+
this.Draw();
|
|
15004
|
+
}
|
|
15005
|
+
break;
|
|
14997
15006
|
}
|
|
14998
15007
|
}
|
|
14999
15008
|
|
|
@@ -15703,6 +15712,20 @@ function IsRectOverlap(rt, rt2)
|
|
|
15703
15712
|
return false;
|
|
15704
15713
|
}
|
|
15705
15714
|
|
|
15715
|
+
//获取文字高度和宽度
|
|
15716
|
+
function GetTextSize(canvas, text, option)
|
|
15717
|
+
{
|
|
15718
|
+
var data=canvas.measureText(text);
|
|
15719
|
+
var height=Math.abs(Math.abs(data.fontBoundingBoxAscent)+Math.abs(data.fontBoundingBoxDescent));
|
|
15720
|
+
var textBaseline=canvas.textBaseline;
|
|
15721
|
+
|
|
15722
|
+
if (textBaseline=="top") height=data.fontBoundingBoxDescent;
|
|
15723
|
+
else if (textBaseline=="bottom") height=data.fontBoundingBoxAscent;
|
|
15724
|
+
|
|
15725
|
+
var result={ Width:data.width, Height:height};
|
|
15726
|
+
return result;
|
|
15727
|
+
}
|
|
15728
|
+
|
|
15706
15729
|
Number.prototype.toFixed2=Number.prototype.toFixed; //备份下老的
|
|
15707
15730
|
Number.prototype.toFixed = function( precision )
|
|
15708
15731
|
{
|
|
@@ -16229,7 +16252,7 @@ function IChartFramePainting()
|
|
|
16229
16252
|
|
|
16230
16253
|
this.BorderLine=null; //1=上 2=下 4=左 8=右
|
|
16231
16254
|
this.Buttons=[]; //按钮事件
|
|
16232
|
-
this.
|
|
16255
|
+
this.ToolbarCacheSize=null; //缓存工具条宽度{ RToolbar:{ Left:, Right }}
|
|
16233
16256
|
|
|
16234
16257
|
this.IsMinSize=false; //窗口是否最小化
|
|
16235
16258
|
|
|
@@ -16292,6 +16315,7 @@ function IChartFramePainting()
|
|
|
16292
16315
|
{
|
|
16293
16316
|
this.Buttons=[];
|
|
16294
16317
|
this.HorizontalLabel=[];
|
|
16318
|
+
this.ToolbarCacheSize=null;
|
|
16295
16319
|
this.DrawClientBG();
|
|
16296
16320
|
this.DrawFrame();
|
|
16297
16321
|
this.DrawBorder();
|
|
@@ -16811,7 +16835,9 @@ function AverageWidthFrame()
|
|
|
16811
16835
|
var right=border.Right-3;
|
|
16812
16836
|
var left=border.Left;
|
|
16813
16837
|
var yButton=border.Top+this.ChartBorder.TitleHeight/2;
|
|
16814
|
-
|
|
16838
|
+
|
|
16839
|
+
this.ToolbarCacheSize={ RToolbar:{ Right:right, Left:left }}
|
|
16840
|
+
|
|
16815
16841
|
//右往左绘制
|
|
16816
16842
|
for(var i=0;i<aryButton.length;++i)
|
|
16817
16843
|
{
|
|
@@ -16837,8 +16863,12 @@ function AverageWidthFrame()
|
|
|
16837
16863
|
|
|
16838
16864
|
this.Buttons.push({ ID:item.ID, Rect:rtButton });
|
|
16839
16865
|
|
|
16866
|
+
this.ToolbarCacheSize.RToolbar.Left=rtButton.Left;
|
|
16867
|
+
|
|
16840
16868
|
right=xBotton;
|
|
16841
16869
|
}
|
|
16870
|
+
|
|
16871
|
+
|
|
16842
16872
|
}
|
|
16843
16873
|
}
|
|
16844
16874
|
|
|
@@ -21843,7 +21873,6 @@ function KLineFrame()
|
|
|
21843
21873
|
if (g_JSChartResource.IsDOMFrameToolbar===true) return;
|
|
21844
21874
|
|
|
21845
21875
|
this.Buttons=[];
|
|
21846
|
-
this.LeftButtonWidth=0;
|
|
21847
21876
|
if (this.IsMinSize==true) return;
|
|
21848
21877
|
if (this.ChartBorder.TitleHeight<5) return;
|
|
21849
21878
|
|
|
@@ -30661,6 +30690,31 @@ function ChartKLine()
|
|
|
30661
30690
|
//面积图和收盘价线 断开点
|
|
30662
30691
|
this.AryBreakPoint;
|
|
30663
30692
|
|
|
30693
|
+
//天数统计
|
|
30694
|
+
this.DaySummary={ MapDate:new Map(), Enable:false };
|
|
30695
|
+
this.DaySummaryConfig=
|
|
30696
|
+
{
|
|
30697
|
+
Font: g_JSChartResource.DaySummaryKLine.Font,
|
|
30698
|
+
TextColor: g_JSChartResource.DaySummaryKLine.TextColor
|
|
30699
|
+
}
|
|
30700
|
+
|
|
30701
|
+
this.AddToDaySummary=function(kItem)
|
|
30702
|
+
{
|
|
30703
|
+
if (!this.DaySummary.Enable) return false;
|
|
30704
|
+
|
|
30705
|
+
if (!kItem) return false;
|
|
30706
|
+
if (!IFrameSplitOperator.IsPlusNumber(kItem.Date)) return false;
|
|
30707
|
+
|
|
30708
|
+
if (this.DaySummary.MapDate.has(kItem.Date)) return false;
|
|
30709
|
+
|
|
30710
|
+
this.DaySummary.MapDate.set(kItem.Date, { Date:kItem.Date });
|
|
30711
|
+
}
|
|
30712
|
+
|
|
30713
|
+
this.ClearDaySummary=function()
|
|
30714
|
+
{
|
|
30715
|
+
this.DaySummary.MapDate.clear();
|
|
30716
|
+
}
|
|
30717
|
+
|
|
30664
30718
|
this.BuildDateTimeKey=function(item)
|
|
30665
30719
|
{
|
|
30666
30720
|
if (!item) return null;
|
|
@@ -30718,6 +30772,13 @@ function ChartKLine()
|
|
|
30718
30772
|
UnchangeColor:g_JSChartResource.PredictionKLine.Bar.UnchangeColor,
|
|
30719
30773
|
DrawType:g_JSChartResource.PredictionKLine.Bar.DrawType
|
|
30720
30774
|
};
|
|
30775
|
+
|
|
30776
|
+
|
|
30777
|
+
this.DaySummaryConfig=
|
|
30778
|
+
{
|
|
30779
|
+
Font: g_JSChartResource.DaySummaryKLine.Font,
|
|
30780
|
+
TextColor: g_JSChartResource.DaySummaryKLine.TextColor
|
|
30781
|
+
}
|
|
30721
30782
|
|
|
30722
30783
|
}
|
|
30723
30784
|
|
|
@@ -31350,6 +31411,8 @@ function ChartKLine()
|
|
|
31350
31411
|
this.ShowRange.End=i;
|
|
31351
31412
|
if (!data || data.Open==null || data.High==null || data.Low==null || data.Close==null) continue;
|
|
31352
31413
|
|
|
31414
|
+
this.AddToDaySummary(data);
|
|
31415
|
+
|
|
31353
31416
|
var left=xOffset;
|
|
31354
31417
|
var right=xOffset+dataWidth;
|
|
31355
31418
|
if (right>chartright) break;
|
|
@@ -33235,6 +33298,7 @@ function ChartKLine()
|
|
|
33235
33298
|
if (this.IsShowIndexTitleOnly()) return;
|
|
33236
33299
|
if (this.IsHideScriptIndex()) return;
|
|
33237
33300
|
|
|
33301
|
+
this.ClearDaySummary();
|
|
33238
33302
|
this.IsShowOrderText=false;
|
|
33239
33303
|
this.TooltipRect=[];
|
|
33240
33304
|
this.InfoTooltipRect=[];
|
|
@@ -33373,6 +33437,8 @@ function ChartKLine()
|
|
|
33373
33437
|
this.FFKChart.DrawMaxMinPrice();
|
|
33374
33438
|
}
|
|
33375
33439
|
}
|
|
33440
|
+
|
|
33441
|
+
this.DrawDaySummary();
|
|
33376
33442
|
}
|
|
33377
33443
|
|
|
33378
33444
|
this.OnFormatHighLowTitle=function(ptMax, ptMin)
|
|
@@ -33443,8 +33509,33 @@ function ChartKLine()
|
|
|
33443
33509
|
else text=text+rightArrow;
|
|
33444
33510
|
if (ptTop.Y>(top-2))
|
|
33445
33511
|
{
|
|
33512
|
+
var textSize=GetTextSize(this.Canvas,text);
|
|
33513
|
+
var textWidth=textSize.Width;
|
|
33514
|
+
var textHeight=textSize.Height;
|
|
33515
|
+
if (this.ChartFrame.CoordinateType==1) //反转坐标
|
|
33516
|
+
{
|
|
33517
|
+
var rtText={ Width:textWidth, Height:textHeight, Top:ptTop.Y };
|
|
33518
|
+
rtText.Bottom=rtText.Top+rtText.Height;
|
|
33519
|
+
}
|
|
33520
|
+
else
|
|
33521
|
+
{
|
|
33522
|
+
var rtText={ Width:textWidth, Height:textHeight, Bottom:ptTop.Y };
|
|
33523
|
+
rtText.Top=rtText.Bottom-rtText.Height;
|
|
33524
|
+
}
|
|
33525
|
+
|
|
33526
|
+
if (ptTop.Align=="left")
|
|
33527
|
+
{
|
|
33528
|
+
rtText.Left=left;
|
|
33529
|
+
rtText.Right=rtText.Left+rtText.Width;
|
|
33530
|
+
}
|
|
33531
|
+
else
|
|
33532
|
+
{
|
|
33533
|
+
rtText.Right=left;
|
|
33534
|
+
rtText.Left=rtText.Right-rtText.Width;
|
|
33535
|
+
}
|
|
33536
|
+
|
|
33446
33537
|
this.Canvas.fillText(text,left,ptTop.Y);
|
|
33447
|
-
this.ChartFrame.ChartKLine.Max={X:left, Y:ptTop.Y, Text: { BaseLine:'bottom'}};
|
|
33538
|
+
this.ChartFrame.ChartKLine.Max={X:left, Y:ptTop.Y, Text: { BaseLine:'bottom'}, Rect:rtText };
|
|
33448
33539
|
}
|
|
33449
33540
|
|
|
33450
33541
|
var ptBottom=ptMin;
|
|
@@ -33473,8 +33564,33 @@ function ChartKLine()
|
|
|
33473
33564
|
else text=text+rightArrow;
|
|
33474
33565
|
if (ptBottom.Y<(bottom+1))
|
|
33475
33566
|
{
|
|
33567
|
+
var textSize=GetTextSize(this.Canvas,text);
|
|
33568
|
+
var textWidth=textSize.Width;
|
|
33569
|
+
var textHeight=textSize.Height;
|
|
33570
|
+
if (this.ChartFrame.CoordinateType==1) //反转坐标
|
|
33571
|
+
{
|
|
33572
|
+
var rtText={ Width:textWidth, Height:textHeight, Bottom:ptBottom.Y };
|
|
33573
|
+
rtText.Top=rtText.Bottom-rtText.Height;
|
|
33574
|
+
}
|
|
33575
|
+
else
|
|
33576
|
+
{
|
|
33577
|
+
var rtText={ Width:textWidth, Height:textHeight, Top:ptBottom.Y };
|
|
33578
|
+
rtText.Bottom=rtText.Top+rtText.Height;
|
|
33579
|
+
}
|
|
33580
|
+
|
|
33581
|
+
if (ptBottom.Align=="left")
|
|
33582
|
+
{
|
|
33583
|
+
rtText.Left=left;
|
|
33584
|
+
rtText.Right=rtText.Left+rtText.Width;
|
|
33585
|
+
}
|
|
33586
|
+
else
|
|
33587
|
+
{
|
|
33588
|
+
rtText.Right=left;
|
|
33589
|
+
rtText.Left=rtText.Right-rtText.Width;
|
|
33590
|
+
}
|
|
33591
|
+
|
|
33476
33592
|
this.Canvas.fillText(text,left,ptBottom.Y);
|
|
33477
|
-
this.ChartFrame.ChartKLine.Min={X:left, Y:ptBottom.Y, Text:{ BaseLine:'top'}};
|
|
33593
|
+
this.ChartFrame.ChartKLine.Min={X:left, Y:ptBottom.Y, Text:{ BaseLine:'top'}, Rect:rtText };
|
|
33478
33594
|
}
|
|
33479
33595
|
}
|
|
33480
33596
|
|
|
@@ -35561,7 +35677,99 @@ function ChartKLine()
|
|
|
35561
35677
|
}
|
|
35562
35678
|
}
|
|
35563
35679
|
}
|
|
35564
|
-
|
|
35680
|
+
|
|
35681
|
+
this.GetDaySummaryText=function()
|
|
35682
|
+
{
|
|
35683
|
+
var count=this.DaySummary.MapDate.size;
|
|
35684
|
+
if (count<=0) return null;
|
|
35685
|
+
if (!this.HQChart) return null;
|
|
35686
|
+
|
|
35687
|
+
var text;
|
|
35688
|
+
if (ChartData.IsMinutePeriod(this.Data.Period,true))
|
|
35689
|
+
{
|
|
35690
|
+
text=`${count}${g_JSChartLocalization.GetText('天',this.HQChart.LanguageID)}`;
|
|
35691
|
+
return text;
|
|
35692
|
+
}
|
|
35693
|
+
|
|
35694
|
+
if (ChartData.IsDayPeriod(this.Data.Period,true))
|
|
35695
|
+
{
|
|
35696
|
+
switch(this.Data.Period)
|
|
35697
|
+
{
|
|
35698
|
+
case 0:
|
|
35699
|
+
text=`${count}${g_JSChartLocalization.GetText('天',this.HQChart.LanguageID)}`;
|
|
35700
|
+
break;
|
|
35701
|
+
case 1:
|
|
35702
|
+
text=`${count}${g_JSChartLocalization.GetText('周',this.HQChart.LanguageID)}`;
|
|
35703
|
+
break;
|
|
35704
|
+
case 2:
|
|
35705
|
+
text=`${count}${g_JSChartLocalization.GetText('月',this.HQChart.LanguageID)}`;
|
|
35706
|
+
break;
|
|
35707
|
+
case 4:
|
|
35708
|
+
text=`${count}${g_JSChartLocalization.GetText('年',this.HQChart.LanguageID)}`;
|
|
35709
|
+
break;
|
|
35710
|
+
default:
|
|
35711
|
+
return null;
|
|
35712
|
+
}
|
|
35713
|
+
|
|
35714
|
+
return text;
|
|
35715
|
+
}
|
|
35716
|
+
|
|
35717
|
+
return null;
|
|
35718
|
+
}
|
|
35719
|
+
|
|
35720
|
+
this.DrawDaySummary=function()
|
|
35721
|
+
{
|
|
35722
|
+
if (!this.DaySummary.Enable) return;
|
|
35723
|
+
if (this.ChartFrame.IsHScreen===true) return;
|
|
35724
|
+
|
|
35725
|
+
var text=this.GetDaySummaryText();
|
|
35726
|
+
if (!text) return;
|
|
35727
|
+
|
|
35728
|
+
this.Canvas.font=this.DaySummaryConfig.Font;
|
|
35729
|
+
|
|
35730
|
+
this.Canvas.textAlign = 'left';
|
|
35731
|
+
this.Canvas.textBaseline = 'bottom';
|
|
35732
|
+
|
|
35733
|
+
var border=this.ChartBorder.GetBorder();
|
|
35734
|
+
var xText=border.Left+1;
|
|
35735
|
+
var yText=border.Bottom;
|
|
35736
|
+
|
|
35737
|
+
var textSize=GetTextSize(this.Canvas,text);
|
|
35738
|
+
var textWidth=textSize.Width;
|
|
35739
|
+
var textHeight=textSize.Height;
|
|
35740
|
+
|
|
35741
|
+
var rtText={ Left:xText, Bottom:yText, Width:textWidth, Height:textHeight };
|
|
35742
|
+
rtText.Right=rtText.Left+rtText.Width;
|
|
35743
|
+
rtText.Top=rtText.Bottom-rtText.Height;
|
|
35744
|
+
|
|
35745
|
+
if (this.ChartFrame.ChartKLine.Max && this.ChartFrame.ChartKLine.Max.Rect)
|
|
35746
|
+
{
|
|
35747
|
+
var rtMax=this.ChartFrame.ChartKLine.Max.Rect;
|
|
35748
|
+
if (IsRectOverlap(rtText,rtMax))
|
|
35749
|
+
{
|
|
35750
|
+
rtText.Left=rtMax.Right+2;
|
|
35751
|
+
rtText.Right=rtText.Left+rtText.Width;
|
|
35752
|
+
}
|
|
35753
|
+
}
|
|
35754
|
+
|
|
35755
|
+
if (this.ChartFrame.ChartKLine.Min && this.ChartFrame.ChartKLine.Min.Rect)
|
|
35756
|
+
{
|
|
35757
|
+
var rtMin=this.ChartFrame.ChartKLine.Min.Rect;
|
|
35758
|
+
if (IsRectOverlap(rtText,rtMin))
|
|
35759
|
+
{
|
|
35760
|
+
rtText.Left=rtMin.Right+2;
|
|
35761
|
+
rtText.Right=rtText.Left+rtText.Width;
|
|
35762
|
+
}
|
|
35763
|
+
}
|
|
35764
|
+
|
|
35765
|
+
//this.Canvas.fillStyle="rgb(100,0,100)";
|
|
35766
|
+
//this.Canvas.fillRect(rtText.Left,rtText.Top,rtText.Width,rtText.Height);
|
|
35767
|
+
|
|
35768
|
+
this.Canvas.fillStyle=this.DaySummaryConfig.TextColor;
|
|
35769
|
+
this.Canvas.fillText(text,rtText.Left,rtText.Bottom);
|
|
35770
|
+
|
|
35771
|
+
this.ClearDaySummary();
|
|
35772
|
+
}
|
|
35565
35773
|
}
|
|
35566
35774
|
|
|
35567
35775
|
function ChartColorKline()
|
|
@@ -64295,7 +64503,10 @@ function DynamicChartTitlePainting()
|
|
|
64295
64503
|
}
|
|
64296
64504
|
else
|
|
64297
64505
|
{
|
|
64298
|
-
|
|
64506
|
+
var yRight=right;
|
|
64507
|
+
if (this.Frame.ToolbarCacheSize && this.Frame.ToolbarCacheSize.RToolbar) yRight=this.Frame.ToolbarCacheSize.RToolbar.Left-2; //右侧按钮宽度要去掉
|
|
64508
|
+
this.DrawMainIndexTitle({ Left:left, Right:yRight, Bottom:bottom }, isShowLastData, rtText);
|
|
64509
|
+
if (IFrameSplitOperator.IsNumber(rtText.Bottom)) bottom=rtText.Bottom;
|
|
64299
64510
|
}
|
|
64300
64511
|
|
|
64301
64512
|
left=rtText.Left;
|
|
@@ -64333,7 +64544,7 @@ function DynamicChartTitlePainting()
|
|
|
64333
64544
|
if (this.OverlayIndexType.Position==1)
|
|
64334
64545
|
{
|
|
64335
64546
|
if (!this.Frame.ChartBorder.IsShowTitleOnly)
|
|
64336
|
-
this.DrawOverlayIndexSingleLine(moveonPoint, mouseStatus);
|
|
64547
|
+
this.DrawOverlayIndexSingleLine(moveonPoint, mouseStatus, bottom+1);
|
|
64337
64548
|
}
|
|
64338
64549
|
else
|
|
64339
64550
|
{
|
|
@@ -64525,9 +64736,11 @@ function DynamicChartTitlePainting()
|
|
|
64525
64736
|
if (!this.IsShowMainIndexTitle) return;
|
|
64526
64737
|
|
|
64527
64738
|
var left=positionInfo.Left;
|
|
64739
|
+
var newLineLeft=this.Frame.ChartBorder.GetLeft()+this.MerginLeft+5;
|
|
64528
64740
|
var right=positionInfo.Right;
|
|
64529
64741
|
var bottom=positionInfo.Bottom;
|
|
64530
64742
|
var pixelRatio=GetDevicePixelRatio();
|
|
64743
|
+
var lineHeight=this.Canvas.measureText("擎").width+2;
|
|
64531
64744
|
for(var i=0; i<this.Data.length; ++i)
|
|
64532
64745
|
{
|
|
64533
64746
|
var item=this.Data[i];
|
|
@@ -64567,7 +64780,12 @@ function DynamicChartTitlePainting()
|
|
|
64567
64780
|
}
|
|
64568
64781
|
}
|
|
64569
64782
|
|
|
64570
|
-
if ((left+textWidth+space)>right)
|
|
64783
|
+
if ((left+textWidth+space)>right)
|
|
64784
|
+
{
|
|
64785
|
+
left=newLineLeft;
|
|
64786
|
+
bottom+=lineHeight;
|
|
64787
|
+
right=this.Frame.ChartBorder.GetRight(); //第2行以后 右侧边框
|
|
64788
|
+
}
|
|
64571
64789
|
|
|
64572
64790
|
if (titleItem.BG) //背景
|
|
64573
64791
|
{
|
|
@@ -64626,7 +64844,12 @@ function DynamicChartTitlePainting()
|
|
|
64626
64844
|
}
|
|
64627
64845
|
var space=this.ParamSpace*pixelRatio;
|
|
64628
64846
|
var textWidth=this.Canvas.measureText(text).width+space;
|
|
64629
|
-
if ((left+textWidth)>right)
|
|
64847
|
+
if ((left+textWidth)>right) //换行
|
|
64848
|
+
{
|
|
64849
|
+
left=newLineLeft;
|
|
64850
|
+
bottom+=lineHeight;
|
|
64851
|
+
right=this.Frame.ChartBorder.GetRight(); //第2行以后 右侧边框
|
|
64852
|
+
}
|
|
64630
64853
|
|
|
64631
64854
|
this.Canvas.fillText(text,left,bottom,textWidth);
|
|
64632
64855
|
left+=textWidth;
|
|
@@ -64634,6 +64857,7 @@ function DynamicChartTitlePainting()
|
|
|
64634
64857
|
}
|
|
64635
64858
|
|
|
64636
64859
|
rtText.Left=left;
|
|
64860
|
+
rtText.Bottom=bottom;
|
|
64637
64861
|
}
|
|
64638
64862
|
|
|
64639
64863
|
//集合竞价
|
|
@@ -64822,10 +65046,12 @@ function DynamicChartTitlePainting()
|
|
|
64822
65046
|
return { Text:valueText, ArrayText:aryText };
|
|
64823
65047
|
}
|
|
64824
65048
|
|
|
64825
|
-
this.DrawOverlayIndexSingleLine=function(moveonPoint, mouseStatus) //叠加指标1个指标一行
|
|
65049
|
+
this.DrawOverlayIndexSingleLine=function(moveonPoint, mouseStatus, yTop) //叠加指标1个指标一行
|
|
64826
65050
|
{
|
|
64827
65051
|
var pixelRatio=GetDevicePixelRatio();
|
|
64828
65052
|
var border=this.Frame.GetBorder();
|
|
65053
|
+
var fontHeight=GetFontHeight(this.Canvas,this.Font,"擎");
|
|
65054
|
+
|
|
64829
65055
|
if (this.Frame.IsHScreen===true)
|
|
64830
65056
|
{
|
|
64831
65057
|
var left=1;
|
|
@@ -64836,6 +65062,7 @@ function DynamicChartTitlePainting()
|
|
|
64836
65062
|
else
|
|
64837
65063
|
{
|
|
64838
65064
|
var top=border.TopTitle+2*pixelRatio;
|
|
65065
|
+
if (IFrameSplitOperator.IsNumber(yTop) && yTop>top) top=yTop+fontHeight/2+2*pixelRatio;
|
|
64839
65066
|
if (!this.IsShowMainIndexTitle) top=this.Frame.ChartBorder.GetTop()+2*pixelRatio;
|
|
64840
65067
|
var left=this.Frame.ChartBorder.GetLeft()+this.MerginLeft;
|
|
64841
65068
|
var right=border.Right;
|
|
@@ -64845,7 +65072,6 @@ function DynamicChartTitlePainting()
|
|
|
64845
65072
|
|
|
64846
65073
|
var lineSpace=this.OverlayIndexType.LineSpace*pixelRatio;
|
|
64847
65074
|
var x=left, y=top;
|
|
64848
|
-
var fontHeight=GetFontHeight(this.Canvas,this.Font,"擎");
|
|
64849
65075
|
y=top+fontHeight/2;
|
|
64850
65076
|
for(item of this.OverlayIndex)
|
|
64851
65077
|
{
|
|
@@ -77645,6 +77871,12 @@ function JSChartResource()
|
|
|
77645
77871
|
Text:{ Color:"rgb(105,105,105)", Font:`${12*GetDevicePixelRatio()}px 微软雅黑`}
|
|
77646
77872
|
};
|
|
77647
77873
|
|
|
77874
|
+
this.DaySummaryKLine=
|
|
77875
|
+
{
|
|
77876
|
+
Font:`${12*GetDevicePixelRatio()}px 微软雅黑`,
|
|
77877
|
+
TextColor:"rgb(105,105,105)"
|
|
77878
|
+
}
|
|
77879
|
+
|
|
77648
77880
|
//订单流配置
|
|
77649
77881
|
this.OrderFlow=
|
|
77650
77882
|
{
|
|
@@ -79096,6 +79328,14 @@ function JSChartResource()
|
|
|
79096
79328
|
}
|
|
79097
79329
|
}
|
|
79098
79330
|
|
|
79331
|
+
if (style.DaySummaryKLine)
|
|
79332
|
+
{
|
|
79333
|
+
var item=style.DaySummaryKLine;
|
|
79334
|
+
var dest=this.DaySummaryKLine;
|
|
79335
|
+
if (item.Font) dest.Font=item.Font;
|
|
79336
|
+
if (item.TextColor) dest.TextColor=item.TextColor;
|
|
79337
|
+
}
|
|
79338
|
+
|
|
79099
79339
|
if (style.Index)
|
|
79100
79340
|
{
|
|
79101
79341
|
if (style.Index.LineColor) this.Index.LineColor = style.Index.LineColor;
|
|
@@ -80643,7 +80883,14 @@ function JSChartLocalization()
|
|
|
80643
80883
|
|
|
80644
80884
|
//日盘|夜盘
|
|
80645
80885
|
["日盘",{CN:'日盘', EN:'Day', TC:'日盤'}],
|
|
80646
|
-
["夜盘",{CN:'夜盘', EN:'Night', TC:'夜盤'} ]
|
|
80886
|
+
["夜盘",{CN:'夜盘', EN:'Night', TC:'夜盤'} ],
|
|
80887
|
+
|
|
80888
|
+
|
|
80889
|
+
["天", {CN:'天', EN:'Day', TC:'天'} ],
|
|
80890
|
+
["周", {CN:'周', EN:'Week', TC:'周'} ],
|
|
80891
|
+
["月", {CN:'月', EN:'Month', TC:'月'} ],
|
|
80892
|
+
["年", {CN:'年', EN:'Year', TC:'年'} ],
|
|
80893
|
+
|
|
80647
80894
|
]);
|
|
80648
80895
|
|
|
80649
80896
|
this.GetText=function(key,language)
|
|
@@ -82828,6 +83075,7 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
82828
83075
|
kline.Name="Main-KLine";
|
|
82829
83076
|
kline.DrawType=this.KLineDrawType;
|
|
82830
83077
|
kline.Identify="Main-KLine";
|
|
83078
|
+
kline.HQChart=this;
|
|
82831
83079
|
kline.GetEventCallback=(id)=>{ return this.GetEventCallback(id); };
|
|
82832
83080
|
|
|
82833
83081
|
this.ChartPaint[0]=kline;
|
|
@@ -87387,6 +87635,7 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
87387
87635
|
var klineType=klineChart.DrawType;
|
|
87388
87636
|
var bThinAKBar=klineChart.IsThinAKBar;
|
|
87389
87637
|
var priceGap=klineChart.PriceGap; //缺口配置信息
|
|
87638
|
+
var bDaySummary=klineChart.DaySummary.Enable;
|
|
87390
87639
|
var infoPosition=klineChart.InfoPosition;
|
|
87391
87640
|
var coordinateType=null, yCoordinateType=null; //坐标类型
|
|
87392
87641
|
var mainFrame=null;
|
|
@@ -87634,6 +87883,8 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
87634
87883
|
|
|
87635
87884
|
{ Name:"双击弹分时图", Data:{ ID:JSCHART_MENU_ID.CMD_ENABLE_POP_MINUTE_CHART_ID, Args:[!bPopMinuteChart]}, Checked:bPopMinuteChart},
|
|
87636
87885
|
|
|
87886
|
+
{ Name:"显示走完剩余时间", Data:{ ID:JSCHART_MENU_ID.CMD_ENABLE_KLINE_DAY_SUMMARY_ID, Args:[!bDaySummary]}, Checked:bDaySummary},
|
|
87887
|
+
|
|
87637
87888
|
{ Name:JSPopMenu.SEPARATOR_LINE_NAME },
|
|
87638
87889
|
{
|
|
87639
87890
|
Name:"鼠标形状",
|
|
@@ -131484,6 +131735,13 @@ function GetBlackStyle()
|
|
|
131484
131735
|
Text:{ Color:"rgb(219,220,220)", Font:`${12*GetDevicePixelRatio()}px 微软雅黑` }
|
|
131485
131736
|
},
|
|
131486
131737
|
|
|
131738
|
+
DaySummaryKLine:
|
|
131739
|
+
{
|
|
131740
|
+
//Font:`${12*GetDevicePixelRatio()}px 微软雅黑`,
|
|
131741
|
+
TextColor:"rgb(255,165,0)"
|
|
131742
|
+
},
|
|
131743
|
+
|
|
131744
|
+
|
|
131487
131745
|
//指标锁
|
|
131488
131746
|
IndexLock:
|
|
131489
131747
|
{
|
|
@@ -146826,7 +147084,7 @@ function ScrollBarBGChart()
|
|
|
146826
147084
|
|
|
146827
147085
|
|
|
146828
147086
|
|
|
146829
|
-
var HQCHART_VERSION="1.1.
|
|
147087
|
+
var HQCHART_VERSION="1.1.14666";
|
|
146830
147088
|
|
|
146831
147089
|
function PrintHQChartVersion()
|
|
146832
147090
|
{
|