hqchart 1.1.13558 → 1.1.13569
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 +39 -45
- package/package.json +1 -1
- package/src/jscommon/umychart.DialogDrawTool.js +1 -0
- package/src/jscommon/umychart.js +180 -40
- package/src/jscommon/umychart.report.js +88 -6
- package/src/jscommon/umychart.style.js +1 -1
- package/src/jscommon/umychart.uniapp.h5/umychart.uniapp.h5.js +270 -48
- package/src/jscommon/umychart.version.js +1 -1
- package/src/jscommon/umychart.vue/umychart.vue.js +271 -48
|
@@ -6569,6 +6569,7 @@ var JSCHART_EVENT_ID=
|
|
|
6569
6569
|
|
|
6570
6570
|
ON_DRAW_REPORT_ROW_BG:140, //报价列表整行背景
|
|
6571
6571
|
ON_CLICK_REPORT_CHECKBOX:141, //报价列表checkbox
|
|
6572
|
+
ON_CLICK_REPORT_BUTTON:142, //报价列表按钮
|
|
6572
6573
|
|
|
6573
6574
|
|
|
6574
6575
|
ON_CHANGE_INDEX:150, //切换指标
|
|
@@ -6741,8 +6742,12 @@ var JSCHART_MENU_ID=
|
|
|
6741
6742
|
|
|
6742
6743
|
CMD_CHANGE_DRAG_RECT_SHOW_MODE_ID:38,
|
|
6743
6744
|
|
|
6745
|
+
CMD_SHOW_CORSS_LINE_ID:39, //显示十字光标线
|
|
6746
|
+
|
|
6744
6747
|
|
|
6745
6748
|
CMD_REPORT_CHANGE_BLOCK_ID:60, //报价列表 切换板块ID
|
|
6749
|
+
|
|
6750
|
+
|
|
6746
6751
|
}
|
|
6747
6752
|
|
|
6748
6753
|
|
|
@@ -13262,6 +13267,8 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
13262
13267
|
//右键菜单
|
|
13263
13268
|
this.PopupMenuByRClick=function(menuData, x, y)
|
|
13264
13269
|
{
|
|
13270
|
+
if (!this.JSPopMenu) return;
|
|
13271
|
+
|
|
13265
13272
|
var rtClient=this.UIElement.getBoundingClientRect();
|
|
13266
13273
|
var rtScroll=GetScrollPosition();
|
|
13267
13274
|
|
|
@@ -13524,6 +13531,13 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
13524
13531
|
if (this.ChartDragSelectRect) this.ChartDragSelectRect.ShowMode=param;
|
|
13525
13532
|
}
|
|
13526
13533
|
break;
|
|
13534
|
+
|
|
13535
|
+
case JSCHART_MENU_ID.CMD_SHOW_CORSS_LINE_ID:
|
|
13536
|
+
if (IFrameSplitOperator.IsBool(srcParam))
|
|
13537
|
+
{
|
|
13538
|
+
if (this.ChartCorssCursor) this.ChartCorssCursor.IsShowCorss=srcParam;
|
|
13539
|
+
}
|
|
13540
|
+
break;
|
|
13527
13541
|
}
|
|
13528
13542
|
}
|
|
13529
13543
|
|
|
@@ -60314,6 +60328,7 @@ IChartDrawPicture.ArrayDrawPricture=
|
|
|
60314
60328
|
{ Name:"文本", ClassName:'ChartDrawPictureText', Create:function() { return new ChartDrawPictureText(); }},
|
|
60315
60329
|
{ Name:"江恩角度线", ClassName:'ChartDrawPictureGannFan', Create:function() { return new ChartDrawPictureGannFan(); }},
|
|
60316
60330
|
{ Name:"阻速线", ClassName:'ChartDrawPictureResistanceLine', Create:function() { return new ChartDrawPictureResistanceLine(); }},
|
|
60331
|
+
{ Name:"阻速线2", ClassName:'ChartDrawPictureResistanceLineV2', Create:function() { return new ChartDrawPictureResistanceLineV2(); }},
|
|
60317
60332
|
{ Name:"黄金分割", ClassName:'ChartDrawPictureGoldenSection', Create:function() { return new ChartDrawPictureGoldenSection(); }},
|
|
60318
60333
|
{ Name:"百分比线", ClassName:'ChartDrawPicturePercentage', Create:function() { return new ChartDrawPicturePercentage(); }},
|
|
60319
60334
|
{ Name:"波段线", ClassName:'ChartDrawPictureWaveBand', Create:function() { return new ChartDrawPictureWaveBand(); }},
|
|
@@ -63707,6 +63722,23 @@ function ChartDrawPictureGannFan()
|
|
|
63707
63722
|
this.IsPointIn=this.IsPointIn_XYValue_Line;
|
|
63708
63723
|
this.LinePoint=[];
|
|
63709
63724
|
this.Font=16*GetDevicePixelRatio() +"px 微软雅黑";
|
|
63725
|
+
this.LineDash=[5,10];
|
|
63726
|
+
this.EnableDottedLine=false; //辅助线是否使用虚线
|
|
63727
|
+
this.EnableArea=true; //是否绘制面积图
|
|
63728
|
+
|
|
63729
|
+
this.Super_SetOption=this.SetOption; //父类函数
|
|
63730
|
+
|
|
63731
|
+
this.SetOption=function(option)
|
|
63732
|
+
{
|
|
63733
|
+
if (this.Super_SetOption) this.Super_SetOption(option);
|
|
63734
|
+
if (option)
|
|
63735
|
+
{
|
|
63736
|
+
if (option.Font) this.Font=option.Font;
|
|
63737
|
+
if (Array.isArray(option.LineDash)) this.LineDash=option.LineDash;
|
|
63738
|
+
if (IFrameSplitOperator.IsBool(option.EnableDottedLine)) this.EnableDottedLine=option.EnableDottedLine;
|
|
63739
|
+
if (IFrameSplitOperator.IsBool(option.EnableArea)) this.EnableArea=option.EnableArea;
|
|
63740
|
+
}
|
|
63741
|
+
}
|
|
63710
63742
|
|
|
63711
63743
|
|
|
63712
63744
|
this.Draw=function()
|
|
@@ -63724,10 +63756,10 @@ function ChartDrawPictureGannFan()
|
|
|
63724
63756
|
var quadrant=this.GetQuadrant(drawPoint[0],drawPoint[1]);
|
|
63725
63757
|
|
|
63726
63758
|
this.SetLineWidth();
|
|
63727
|
-
if (quadrant===1 || quadrant===4)
|
|
63759
|
+
if (quadrant===1 || quadrant===2 || quadrant===3 || quadrant===4)
|
|
63728
63760
|
{
|
|
63729
63761
|
this.CalculateLines(drawPoint[0],drawPoint[1],quadrant);
|
|
63730
|
-
this.DrawArea();
|
|
63762
|
+
if (this.EnableArea) this.DrawArea();
|
|
63731
63763
|
|
|
63732
63764
|
for(var i in this.LinePoint)
|
|
63733
63765
|
{
|
|
@@ -63755,7 +63787,7 @@ function ChartDrawPictureGannFan()
|
|
|
63755
63787
|
this.GetQuadrant=function(ptStart,ptEnd)
|
|
63756
63788
|
{
|
|
63757
63789
|
if (ptStart.X<ptEnd.X && ptStart.Y>ptEnd.Y) return 1;
|
|
63758
|
-
else if (ptStart.X
|
|
63790
|
+
else if (ptStart.X>ptEnd.X && ptStart.Y>ptEnd.Y) return 2;
|
|
63759
63791
|
else if (ptStart.X < ptEnd.X && ptStart.Y< ptEnd.Y) return 4;
|
|
63760
63792
|
else return 3;
|
|
63761
63793
|
}
|
|
@@ -63764,7 +63796,7 @@ function ChartDrawPictureGannFan()
|
|
|
63764
63796
|
//isDotline 是否是虚线
|
|
63765
63797
|
this.DrawLine=function(ptStart,ptEnd,isDottedline)
|
|
63766
63798
|
{
|
|
63767
|
-
if (isDottedline) this.Canvas.setLineDash(
|
|
63799
|
+
if (isDottedline) this.Canvas.setLineDash(this.LineDash);
|
|
63768
63800
|
|
|
63769
63801
|
this.Canvas.strokeStyle=this.LineColor;
|
|
63770
63802
|
this.Canvas.beginPath();
|
|
@@ -63826,27 +63858,15 @@ function ChartDrawPictureGannFan()
|
|
|
63826
63858
|
var lineHeight=Math.abs(ptStart.Y-ptEnd.Y);
|
|
63827
63859
|
if (quadrant===1)
|
|
63828
63860
|
{
|
|
63829
|
-
/*
|
|
63830
|
-
var line={Start:ptLineStart, End:new Point(), IsDottedLine:false};
|
|
63831
|
-
line.End.X=ptStart.X;
|
|
63832
|
-
line.End.Y=top;
|
|
63833
|
-
this.LinePoint.push(line);
|
|
63834
|
-
|
|
63835
|
-
line={Start:ptLineStart, End:new Point(), IsDottedLine:false};
|
|
63836
|
-
line.End.X=right;
|
|
63837
|
-
line.End.Y=ptStart.Y;
|
|
63838
|
-
this.LinePoint.push(line);
|
|
63839
|
-
*/
|
|
63840
|
-
|
|
63841
63861
|
var extendLine=this.CalculateExtendLinePoint(ptStart,ptEnd);
|
|
63842
63862
|
var line={Start:ptLineStart, End:extendLine.Start, IsDottedLine:false,PtEnd:ptLineEnd, Text:'1:1'};
|
|
63843
63863
|
this.LinePoint.push(line);
|
|
63844
63864
|
|
|
63845
|
-
for(var i
|
|
63865
|
+
for(var i=0;i<SPLIT_LINE_VALUE.length; ++i)
|
|
63846
63866
|
{
|
|
63847
63867
|
if (lineWidth>5)
|
|
63848
63868
|
{
|
|
63849
|
-
line={Start:ptLineStart, End:null, IsDottedLine:
|
|
63869
|
+
line={Start:ptLineStart, End:null, IsDottedLine:this.EnableDottedLine,PtEnd:new Point(),Text:SPLIT_LINE_X_TITLE[i]};
|
|
63850
63870
|
line.PtEnd.Y=ptEnd.Y;
|
|
63851
63871
|
line.PtEnd.X=ptStart.X+lineWidth*SPLIT_LINE_VALUE[i];
|
|
63852
63872
|
var extendLine=this.CalculateExtendLinePoint(line.Start,line.PtEnd);
|
|
@@ -63855,7 +63875,7 @@ function ChartDrawPictureGannFan()
|
|
|
63855
63875
|
}
|
|
63856
63876
|
if (lineHeight>5)
|
|
63857
63877
|
{
|
|
63858
|
-
line={Start:ptLineStart, End:null, IsDottedLine:
|
|
63878
|
+
line={Start:ptLineStart, End:null, IsDottedLine:this.EnableDottedLine,PtEnd:new Point(), Text:SPLIT_LINE_Y_TITLE[i]};
|
|
63859
63879
|
line.PtEnd.Y=ptStart.Y-lineHeight*SPLIT_LINE_VALUE[i];
|
|
63860
63880
|
line.PtEnd.X=ptEnd.X;
|
|
63861
63881
|
var extendLine=this.CalculateExtendLinePoint(line.Start,line.PtEnd);
|
|
@@ -63865,29 +63885,77 @@ function ChartDrawPictureGannFan()
|
|
|
63865
63885
|
}
|
|
63866
63886
|
|
|
63867
63887
|
}
|
|
63868
|
-
else if (quadrant==
|
|
63888
|
+
else if (quadrant==2)
|
|
63869
63889
|
{
|
|
63870
|
-
|
|
63871
|
-
var line={Start:ptLineStart, End:
|
|
63872
|
-
line.End.X=ptStart.X;
|
|
63873
|
-
line.End.Y=bottom;
|
|
63890
|
+
var extendLine=this.CalculateExtendLinePoint(ptStart,ptEnd);
|
|
63891
|
+
var line={Start:ptLineStart, End:extendLine.Start, IsDottedLine:false,PtEnd:ptLineEnd, Text:'1:1'};
|
|
63874
63892
|
this.LinePoint.push(line);
|
|
63875
63893
|
|
|
63876
|
-
|
|
63877
|
-
|
|
63878
|
-
|
|
63894
|
+
for(var i=0;i<SPLIT_LINE_VALUE.length; ++i)
|
|
63895
|
+
{
|
|
63896
|
+
|
|
63897
|
+
if (lineWidth>5)
|
|
63898
|
+
{
|
|
63899
|
+
line={Start:ptLineStart, End:null, IsDottedLine:this.EnableDottedLine,PtEnd:new Point(),Text:SPLIT_LINE_X_TITLE[i]};
|
|
63900
|
+
line.PtEnd.Y=ptEnd.Y;
|
|
63901
|
+
line.PtEnd.X=ptStart.X-lineWidth*SPLIT_LINE_VALUE[i];
|
|
63902
|
+
var extendLine=this.CalculateExtendLinePoint(line.Start,line.PtEnd);
|
|
63903
|
+
line.End=extendLine.Start;
|
|
63904
|
+
this.LinePoint.push(line);
|
|
63905
|
+
}
|
|
63906
|
+
|
|
63907
|
+
|
|
63908
|
+
if (lineHeight>5)
|
|
63909
|
+
{
|
|
63910
|
+
line={Start:ptLineStart, End:null, IsDottedLine:this.EnableDottedLine,PtEnd:new Point(), Text:SPLIT_LINE_Y_TITLE[i]};
|
|
63911
|
+
line.PtEnd.Y=ptStart.Y-lineHeight*SPLIT_LINE_VALUE[i];
|
|
63912
|
+
line.PtEnd.X=ptEnd.X;
|
|
63913
|
+
var extendLine=this.CalculateExtendLinePoint(line.Start,line.PtEnd);
|
|
63914
|
+
line.End=extendLine.Start;
|
|
63915
|
+
this.LinePoint.push(line);
|
|
63916
|
+
}
|
|
63917
|
+
|
|
63918
|
+
}
|
|
63919
|
+
}
|
|
63920
|
+
else if (quadrant==3)
|
|
63921
|
+
{
|
|
63922
|
+
var extendLine=this.CalculateExtendLinePoint(ptStart,ptEnd);
|
|
63923
|
+
var line={Start:ptLineStart, End:extendLine.End, IsDottedLine:false,PtEnd:ptLineEnd, Text:'1:1'};
|
|
63879
63924
|
this.LinePoint.push(line);
|
|
63880
|
-
*/
|
|
63881
63925
|
|
|
63926
|
+
for(var i=0;i<SPLIT_LINE_VALUE.length; ++i)
|
|
63927
|
+
{
|
|
63928
|
+
if (lineWidth>5)
|
|
63929
|
+
{
|
|
63930
|
+
line={Start:ptLineStart, End:null, IsDottedLine:this.EnableDottedLine,PtEnd:new Point(),Text:SPLIT_LINE_X_TITLE[i]};
|
|
63931
|
+
line.PtEnd.Y=ptEnd.Y;
|
|
63932
|
+
line.PtEnd.X=ptStart.X-lineWidth*SPLIT_LINE_VALUE[i];
|
|
63933
|
+
var extendLine=this.CalculateExtendLinePoint(line.Start,line.PtEnd);
|
|
63934
|
+
line.End=extendLine.End;
|
|
63935
|
+
this.LinePoint.push(line);
|
|
63936
|
+
}
|
|
63937
|
+
if (lineHeight>5)
|
|
63938
|
+
{
|
|
63939
|
+
line={Start:ptLineStart, End:null, IsDottedLine:this.EnableDottedLine,PtEnd:new Point(), Text:SPLIT_LINE_Y_TITLE[i]};
|
|
63940
|
+
line.PtEnd.Y=ptStart.Y+lineHeight*SPLIT_LINE_VALUE[i];
|
|
63941
|
+
line.PtEnd.X=ptEnd.X;
|
|
63942
|
+
var extendLine=this.CalculateExtendLinePoint(line.Start,line.PtEnd);
|
|
63943
|
+
line.End=extendLine.End;
|
|
63944
|
+
this.LinePoint.push(line);
|
|
63945
|
+
}
|
|
63946
|
+
}
|
|
63947
|
+
}
|
|
63948
|
+
else if (quadrant==4)
|
|
63949
|
+
{
|
|
63882
63950
|
var extendLine=this.CalculateExtendLinePoint(ptStart,ptEnd);
|
|
63883
63951
|
var line={Start:ptLineStart, End:extendLine.End, IsDottedLine:false,PtEnd:ptLineEnd, Text:'1:1'};
|
|
63884
63952
|
this.LinePoint.push(line);
|
|
63885
63953
|
|
|
63886
|
-
for(var i
|
|
63954
|
+
for(var i=0;i<SPLIT_LINE_VALUE.length; ++i)
|
|
63887
63955
|
{
|
|
63888
63956
|
if (lineWidth>5)
|
|
63889
63957
|
{
|
|
63890
|
-
line={Start:ptLineStart, End:null, IsDottedLine:
|
|
63958
|
+
line={Start:ptLineStart, End:null, IsDottedLine:this.EnableDottedLine,PtEnd:new Point(),Text:SPLIT_LINE_X_TITLE[i]};
|
|
63891
63959
|
line.PtEnd.Y=ptEnd.Y;
|
|
63892
63960
|
line.PtEnd.X=ptStart.X+lineWidth*SPLIT_LINE_VALUE[i];
|
|
63893
63961
|
var extendLine=this.CalculateExtendLinePoint(line.Start,line.PtEnd);
|
|
@@ -63896,7 +63964,7 @@ function ChartDrawPictureGannFan()
|
|
|
63896
63964
|
}
|
|
63897
63965
|
if (lineHeight>5)
|
|
63898
63966
|
{
|
|
63899
|
-
line={Start:ptLineStart, End:null, IsDottedLine:
|
|
63967
|
+
line={Start:ptLineStart, End:null, IsDottedLine:this.EnableDottedLine,PtEnd:new Point(), Text:SPLIT_LINE_Y_TITLE[i]};
|
|
63900
63968
|
line.PtEnd.Y=ptStart.Y+lineHeight*SPLIT_LINE_VALUE[i];
|
|
63901
63969
|
line.PtEnd.X=ptEnd.X;
|
|
63902
63970
|
var extendLine=this.CalculateExtendLinePoint(line.Start,line.PtEnd);
|
|
@@ -63905,7 +63973,10 @@ function ChartDrawPictureGannFan()
|
|
|
63905
63973
|
}
|
|
63906
63974
|
}
|
|
63907
63975
|
}
|
|
63908
|
-
else
|
|
63976
|
+
else
|
|
63977
|
+
{
|
|
63978
|
+
return false;
|
|
63979
|
+
}
|
|
63909
63980
|
|
|
63910
63981
|
return true;
|
|
63911
63982
|
}
|
|
@@ -63944,11 +64015,11 @@ function ChartDrawPictureResistanceLine()
|
|
|
63944
64015
|
var line={Start:ptLineStart, End:extendLine.Start, IsDottedLine:false,PtEnd:ptLineEnd, Text:'1:1'};
|
|
63945
64016
|
this.LinePoint.push(line);
|
|
63946
64017
|
|
|
63947
|
-
for(var i
|
|
64018
|
+
for(var i=0;i<SPLIT_LINE_VALUE.length; ++i)
|
|
63948
64019
|
{
|
|
63949
64020
|
if (lineHeight>5)
|
|
63950
64021
|
{
|
|
63951
|
-
line={Start:ptLineStart, End:null, IsDottedLine:
|
|
64022
|
+
line={Start:ptLineStart, End:null, IsDottedLine:this.EnableDottedLine,PtEnd:new Point(), Text:SPLIT_LINE_Y_TITLE[i]};
|
|
63952
64023
|
line.PtEnd.Y=ptStart.Y-lineHeight*SPLIT_LINE_VALUE[i];
|
|
63953
64024
|
line.PtEnd.X=ptEnd.X;
|
|
63954
64025
|
var extendLine=this.CalculateExtendLinePoint(line.Start,line.PtEnd);
|
|
@@ -63956,7 +64027,45 @@ function ChartDrawPictureResistanceLine()
|
|
|
63956
64027
|
this.LinePoint.push(line);
|
|
63957
64028
|
}
|
|
63958
64029
|
}
|
|
63959
|
-
|
|
64030
|
+
}
|
|
64031
|
+
else if (quadrant==2)
|
|
64032
|
+
{
|
|
64033
|
+
var extendLine=this.CalculateExtendLinePoint(ptStart,ptEnd);
|
|
64034
|
+
var line={Start:ptLineStart, End:extendLine.Start, IsDottedLine:false,PtEnd:ptLineEnd, Text:'1:1'};
|
|
64035
|
+
this.LinePoint.push(line);
|
|
64036
|
+
|
|
64037
|
+
for(var i=0;i<SPLIT_LINE_VALUE.length; ++i)
|
|
64038
|
+
{
|
|
64039
|
+
if (lineHeight>5)
|
|
64040
|
+
{
|
|
64041
|
+
line={Start:ptLineStart, End:null, IsDottedLine:this.EnableDottedLine,PtEnd:new Point(), Text:SPLIT_LINE_Y_TITLE[i]};
|
|
64042
|
+
line.PtEnd.Y=ptStart.Y-lineHeight*SPLIT_LINE_VALUE[i];
|
|
64043
|
+
line.PtEnd.X=ptEnd.X;
|
|
64044
|
+
var extendLine=this.CalculateExtendLinePoint(line.Start,line.PtEnd);
|
|
64045
|
+
line.End=extendLine.Start;
|
|
64046
|
+
this.LinePoint.push(line);
|
|
64047
|
+
}
|
|
64048
|
+
|
|
64049
|
+
}
|
|
64050
|
+
}
|
|
64051
|
+
else if (quadrant==3)
|
|
64052
|
+
{
|
|
64053
|
+
var extendLine=this.CalculateExtendLinePoint(ptStart,ptEnd);
|
|
64054
|
+
var line={Start:ptLineStart, End:extendLine.End, IsDottedLine:false,PtEnd:ptLineEnd, Text:'1:1'};
|
|
64055
|
+
this.LinePoint.push(line);
|
|
64056
|
+
|
|
64057
|
+
for(var i=0;i<SPLIT_LINE_VALUE.length; ++i)
|
|
64058
|
+
{
|
|
64059
|
+
if (lineHeight>5)
|
|
64060
|
+
{
|
|
64061
|
+
line={Start:ptLineStart, End:null, IsDottedLine:this.EnableDottedLine,PtEnd:new Point(), Text:SPLIT_LINE_Y_TITLE[i]};
|
|
64062
|
+
line.PtEnd.Y=ptStart.Y+lineHeight*SPLIT_LINE_VALUE[i];
|
|
64063
|
+
line.PtEnd.X=ptEnd.X;
|
|
64064
|
+
var extendLine=this.CalculateExtendLinePoint(line.Start,line.PtEnd);
|
|
64065
|
+
line.End=extendLine.End;
|
|
64066
|
+
this.LinePoint.push(line);
|
|
64067
|
+
}
|
|
64068
|
+
}
|
|
63960
64069
|
}
|
|
63961
64070
|
else if (quadrant==4)
|
|
63962
64071
|
{
|
|
@@ -63964,11 +64073,11 @@ function ChartDrawPictureResistanceLine()
|
|
|
63964
64073
|
var line={Start:ptLineStart, End:extendLine.End, IsDottedLine:false,PtEnd:ptLineEnd, Text:'1:1'};
|
|
63965
64074
|
this.LinePoint.push(line);
|
|
63966
64075
|
|
|
63967
|
-
for(var i
|
|
64076
|
+
for(var i=0;i<SPLIT_LINE_VALUE.length; ++i)
|
|
63968
64077
|
{
|
|
63969
64078
|
if (lineHeight>5)
|
|
63970
64079
|
{
|
|
63971
|
-
line={Start:ptLineStart, End:null, IsDottedLine:
|
|
64080
|
+
line={Start:ptLineStart, End:null, IsDottedLine:this.EnableDottedLine,PtEnd:new Point(), Text:SPLIT_LINE_Y_TITLE[i]};
|
|
63972
64081
|
line.PtEnd.Y=ptStart.Y+lineHeight*SPLIT_LINE_VALUE[i];
|
|
63973
64082
|
line.PtEnd.X=ptEnd.X;
|
|
63974
64083
|
var extendLine=this.CalculateExtendLinePoint(line.Start,line.PtEnd);
|
|
@@ -63977,7 +64086,10 @@ function ChartDrawPictureResistanceLine()
|
|
|
63977
64086
|
}
|
|
63978
64087
|
}
|
|
63979
64088
|
}
|
|
63980
|
-
else
|
|
64089
|
+
else
|
|
64090
|
+
{
|
|
64091
|
+
return false;
|
|
64092
|
+
}
|
|
63981
64093
|
|
|
63982
64094
|
return true;
|
|
63983
64095
|
}
|
|
@@ -64004,6 +64116,22 @@ function ChartDrawPictureResistanceLine()
|
|
|
64004
64116
|
}
|
|
64005
64117
|
}
|
|
64006
64118
|
|
|
64119
|
+
//阻速线2 (高 3等份)通达信版本
|
|
64120
|
+
function ChartDrawPictureResistanceLineV2()
|
|
64121
|
+
{
|
|
64122
|
+
this.newMethod=ChartDrawPictureResistanceLine; //派生
|
|
64123
|
+
this.newMethod();
|
|
64124
|
+
delete this.newMethod;
|
|
64125
|
+
|
|
64126
|
+
this.ClassName='ChartDrawPictureResistanceLineV2';
|
|
64127
|
+
this.EnableDottedLine=true; //辅助线是否使用虚线
|
|
64128
|
+
this.LineDash=[4,8];
|
|
64129
|
+
this.EnableArea=false;
|
|
64130
|
+
}
|
|
64131
|
+
|
|
64132
|
+
|
|
64133
|
+
|
|
64134
|
+
|
|
64007
64135
|
//黄金分割线
|
|
64008
64136
|
function ChartDrawPictureGoldenSection()
|
|
64009
64137
|
{
|
|
@@ -71116,7 +71244,7 @@ function JSChartResource()
|
|
|
71116
71244
|
|
|
71117
71245
|
Item:
|
|
71118
71246
|
{
|
|
71119
|
-
Mergin:{ Top:2, Bottom:
|
|
71247
|
+
Mergin:{ Top:2, Bottom:4,Left:5, Right:5 }, //单元格四周间距
|
|
71120
71248
|
Font:{ Size:15, Name:"微软雅黑"},
|
|
71121
71249
|
BarMergin:{ Top:2, Left:3, Right:3, Bottom:2 },//单元格字体
|
|
71122
71250
|
NameFont:{ Size:14, Name:"微软雅黑" },
|
|
@@ -78887,6 +79015,9 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
78887
79015
|
if (this.GetExtendChartByClassName("SessionBreaksPaint")) bBGSpit=true;
|
|
78888
79016
|
if (this.GetExtendChartByClassName('StockChip')) bShowStockChip=true; //筹码
|
|
78889
79017
|
|
|
79018
|
+
var bShowCorss=false; //十字光标十字线
|
|
79019
|
+
if (this.ChartCorssCursor) bShowCorss=this.ChartCorssCursor.IsShowCorss;
|
|
79020
|
+
|
|
78890
79021
|
var aryMenu=
|
|
78891
79022
|
[
|
|
78892
79023
|
{
|
|
@@ -79045,6 +79176,9 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
79045
79176
|
{ Name:"画图工具", Data:{ ID:JSCHART_MENU_ID.CMD_SHOW_DRAWTOOL_ID, Args:[]}, Checked:this.IsShowDrawToolDialog() },
|
|
79046
79177
|
|
|
79047
79178
|
{ Name:"移动筹码图", Data:{ ID:bShowStockChip?JSCHART_MENU_ID.CMD_HIDE_STOCKCHIP_ID:JSCHART_MENU_ID.CMD_SHOW_STOCKCHIP_ID, Args:[]}, Checked:bShowStockChip},
|
|
79179
|
+
|
|
79180
|
+
{ Name:"十字光标线", Data:{ ID:JSCHART_MENU_ID.CMD_SHOW_CORSS_LINE_ID, Args:[!bShowCorss]}, Checked:bShowCorss },
|
|
79181
|
+
|
|
79048
79182
|
{ Name:JSPopMenu.SEPARATOR_LINE_NAME },
|
|
79049
79183
|
{
|
|
79050
79184
|
Name:"鼠标形状",
|
|
@@ -82549,6 +82683,9 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
82549
82683
|
if (item && item.Symbol) aryOverlaySymbol.push(item.Symbol)
|
|
82550
82684
|
}
|
|
82551
82685
|
|
|
82686
|
+
var bShowCorss=false; //十字光标十字线
|
|
82687
|
+
if (this.ChartCorssCursor) bShowCorss=this.ChartCorssCursor.IsShowCorss;
|
|
82688
|
+
|
|
82552
82689
|
var aryMenu=
|
|
82553
82690
|
[
|
|
82554
82691
|
{
|
|
@@ -82617,6 +82754,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
82617
82754
|
SubMenu:
|
|
82618
82755
|
[
|
|
82619
82756
|
{ Name:"画图工具", Data:{ ID:JSCHART_MENU_ID.CMD_SHOW_DRAWTOOL_ID, Args:[]}, Checked:this.IsShowDrawToolDialog()},
|
|
82757
|
+
{ Name:"十字光标线", Data:{ ID:JSCHART_MENU_ID.CMD_SHOW_CORSS_LINE_ID, Args:[!bShowCorss]}, Checked:bShowCorss },
|
|
82620
82758
|
|
|
82621
82759
|
{
|
|
82622
82760
|
Name:"区间选择样式",
|
|
@@ -82626,7 +82764,9 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
82626
82764
|
{ Name:"样式2", Data:{ ID:JSCHART_MENU_ID.CMD_CHANGE_DRAG_RECT_SHOW_MODE_ID, Args:[1]}, Checked:1==this.ChartDragSelectRect.ShowMode },
|
|
82627
82765
|
{ Name:"样式3", Data:{ ID:JSCHART_MENU_ID.CMD_CHANGE_DRAG_RECT_SHOW_MODE_ID, Args:[2]}, Checked:2==this.ChartDragSelectRect.ShowMode },
|
|
82628
82766
|
]
|
|
82629
|
-
}
|
|
82767
|
+
},
|
|
82768
|
+
|
|
82769
|
+
|
|
82630
82770
|
]
|
|
82631
82771
|
}
|
|
82632
82772
|
|
|
@@ -123578,7 +123718,7 @@ function GetBlackStyle()
|
|
|
123578
123718
|
|
|
123579
123719
|
Item:
|
|
123580
123720
|
{
|
|
123581
|
-
Mergin:{ Top:2, Bottom:
|
|
123721
|
+
Mergin:{ Top:2, Bottom:4,Left:5, Right:5 },
|
|
123582
123722
|
Font:{ Size:15, Name:"微软雅黑"},
|
|
123583
123723
|
BarMergin:{ Top:2, Left:3, Right:3, Bottom:2 },
|
|
123584
123724
|
NameFont:{ Size:14, Name:"微软雅黑" },
|
|
@@ -128935,6 +129075,7 @@ var REPORT_COLUMN_ID=
|
|
|
128935
129075
|
CUSTOM_DATETIME_TEXT_ID:102, //自定义日期类型
|
|
128936
129076
|
CUSTOM_ICON_ID:103, //自定义图标
|
|
128937
129077
|
CUSTOM_CHECKBOX_ID:104, //自定义checkbox
|
|
129078
|
+
CUSTOM_BUTTON_ID:105, //自定义按钮
|
|
128938
129079
|
}
|
|
128939
129080
|
|
|
128940
129081
|
var MAP_COLUMN_FIELD=new Map([
|
|
@@ -129311,6 +129452,13 @@ function ChartReport()
|
|
|
129311
129452
|
if (item.CheckBox) colItem.CheckBox=CloneData(item.CheckBox);
|
|
129312
129453
|
else colItem.CheckBox=CloneData(g_JSChartResource.Report.CheckBox);
|
|
129313
129454
|
}
|
|
129455
|
+
else if (item.Type==REPORT_COLUMN_ID.CUSTOM_BUTTON_ID)
|
|
129456
|
+
{
|
|
129457
|
+
if (!IFrameSplitOperator.IsNumber(item.DataIndex) && !IFrameSplitOperator.IsNumber(item.BlockIndex)) continue;
|
|
129458
|
+
if (IFrameSplitOperator.IsNumber(item.DataIndex)) colItem.DataIndex=item.DataIndex; //数据在扩展数据索引列
|
|
129459
|
+
if (IFrameSplitOperator.IsNumber(item.BlockIndex)) colItem.BlockIndex=item.BlockIndex;
|
|
129460
|
+
if (item.Button) colItem.Button=CloneData(item.Button);
|
|
129461
|
+
}
|
|
129314
129462
|
else if (item.Type==REPORT_COLUMN_ID.CUSTOM_ICON_ID)
|
|
129315
129463
|
{
|
|
129316
129464
|
|
|
@@ -129428,7 +129576,7 @@ function ChartReport()
|
|
|
129428
129576
|
|
|
129429
129577
|
{ Type:REPORT_COLUMN_ID.CUSTOM_CHECKBOX_ID, Title:"", TextAlign:"center", FixedWidth:20*GetDevicePixelRatio() },
|
|
129430
129578
|
|
|
129431
|
-
|
|
129579
|
+
{ Type:REPORT_COLUMN_ID.CUSTOM_BUTTON_ID, Title:"", TextAlign:"center", FixedWidth:50*GetDevicePixelRatio() }
|
|
129432
129580
|
];
|
|
129433
129581
|
|
|
129434
129582
|
for(var i=0;i<DEFAULT_COLUMN.length;++i)
|
|
@@ -130392,6 +130540,15 @@ function ChartReport()
|
|
|
130392
130540
|
|
|
130393
130541
|
this.GetCustomCheckBoxDrawInfo(data, column, drawInfo);
|
|
130394
130542
|
}
|
|
130543
|
+
else if (column.Type==REPORT_COLUMN_ID.CUSTOM_BUTTON_ID)
|
|
130544
|
+
{
|
|
130545
|
+
rtItem={ Left:left, Top:top, Width:column.Width, Height:this.RowHeight };
|
|
130546
|
+
rtItem.Right=rtItem.Left+rtItem.Width;
|
|
130547
|
+
rtItem.Bottom=rtItem.Top+rtItem.Height;
|
|
130548
|
+
drawInfo.Rect=rtItem;
|
|
130549
|
+
|
|
130550
|
+
this.GetCustomButtonDrawInfo(data, column, drawInfo);
|
|
130551
|
+
}
|
|
130395
130552
|
|
|
130396
130553
|
|
|
130397
130554
|
//拖拽行颜色
|
|
@@ -130410,6 +130567,10 @@ function ChartReport()
|
|
|
130410
130567
|
{
|
|
130411
130568
|
this.DrawCheckbox(drawInfo, left, top, itemWidth);
|
|
130412
130569
|
}
|
|
130570
|
+
else if (column.Type==REPORT_COLUMN_ID.CUSTOM_BUTTON_ID)
|
|
130571
|
+
{
|
|
130572
|
+
this.DrawButton(drawInfo, left, top, itemWidth);
|
|
130573
|
+
}
|
|
130413
130574
|
else
|
|
130414
130575
|
{
|
|
130415
130576
|
if (data.FlashBG && data.FlashBG.Data && column.ID!=undefined)
|
|
@@ -130503,9 +130664,9 @@ function ChartReport()
|
|
|
130503
130664
|
}
|
|
130504
130665
|
}
|
|
130505
130666
|
|
|
130506
|
-
this.Canvas.textBaseline="
|
|
130667
|
+
this.Canvas.textBaseline="bottom";
|
|
130507
130668
|
this.Canvas.fillStyle=drawInfo.TextColor;
|
|
130508
|
-
this.Canvas.fillText(text,x,top+this.ItemMergin.
|
|
130669
|
+
this.Canvas.fillText(text,x,top+this.RowHeight-this.ItemMergin.Bottom);
|
|
130509
130670
|
|
|
130510
130671
|
if (bClip) this.Canvas.restore();
|
|
130511
130672
|
}
|
|
@@ -130712,6 +130873,19 @@ function ChartReport()
|
|
|
130712
130873
|
drawInfo.CheckBox=column.CheckBox;
|
|
130713
130874
|
}
|
|
130714
130875
|
|
|
130876
|
+
this.GetCustomButtonDrawInfo=function(data, column, drawInfo)
|
|
130877
|
+
{
|
|
130878
|
+
var buttonData=this.GetExtendData(data, column);
|
|
130879
|
+
if (!buttonData) return;
|
|
130880
|
+
|
|
130881
|
+
drawInfo.Text=buttonData.Title;
|
|
130882
|
+
drawInfo.Button=column.Button;
|
|
130883
|
+
drawInfo.Font=column.Button.Font;
|
|
130884
|
+
drawInfo.Enable=true;
|
|
130885
|
+
drawInfo.Data=buttonData;
|
|
130886
|
+
if (IFrameSplitOperator.IsBool(buttonData.Enable)) drawInfo.Enable=buttonData.Enable;
|
|
130887
|
+
}
|
|
130888
|
+
|
|
130715
130889
|
this.FormaTimeDrawInfo=function(column, stock, drawInfo, data)
|
|
130716
130890
|
{
|
|
130717
130891
|
if (!IFrameSplitOperator.IsNumber(stock.Time)) return;
|
|
@@ -130872,9 +131046,9 @@ function ChartReport()
|
|
|
130872
131046
|
}
|
|
130873
131047
|
}
|
|
130874
131048
|
|
|
130875
|
-
this.Canvas.textBaseline="
|
|
131049
|
+
this.Canvas.textBaseline="bottom";
|
|
130876
131050
|
this.Canvas.fillStyle=textColor;
|
|
130877
|
-
this.Canvas.fillText(text,x,top+this.ItemMergin.
|
|
131051
|
+
this.Canvas.fillText(text,x,top+this.RowHeight-this.ItemMergin.Bottom);
|
|
130878
131052
|
|
|
130879
131053
|
if (bClip) this.Canvas.restore();
|
|
130880
131054
|
}
|
|
@@ -131014,6 +131188,46 @@ function ChartReport()
|
|
|
131014
131188
|
}
|
|
131015
131189
|
}
|
|
131016
131190
|
|
|
131191
|
+
this.DrawButton=function(drawInfo, left, top, width)
|
|
131192
|
+
{
|
|
131193
|
+
if (!drawInfo.Button) return;
|
|
131194
|
+
|
|
131195
|
+
var rtBG=
|
|
131196
|
+
{
|
|
131197
|
+
Left:left+drawInfo.Button.Margin.Left, Top:top+drawInfo.Button.Margin.Top,
|
|
131198
|
+
Height:this.RowHeight-drawInfo.Button.Margin.Top-drawInfo.Button.Margin.Bottom,
|
|
131199
|
+
Width:width-drawInfo.Button.Margin.Left-drawInfo.Button.Margin.Right
|
|
131200
|
+
}
|
|
131201
|
+
rtBG.Right=rtBG.Left+rtBG.Width;
|
|
131202
|
+
rtBG.Bottom=rtBG.Top+rtBG.Height;
|
|
131203
|
+
|
|
131204
|
+
var bgColor=drawInfo.Button.BGColor, textColor=drawInfo.Button.TextColor;
|
|
131205
|
+
if (drawInfo.Enable===false)
|
|
131206
|
+
{
|
|
131207
|
+
bgColor=drawInfo.Button.Disable.BGColor;
|
|
131208
|
+
textColor=drawInfo.Button.Disable.TextColor;
|
|
131209
|
+
}
|
|
131210
|
+
|
|
131211
|
+
this.Canvas.fillStyle=bgColor;
|
|
131212
|
+
this.Canvas.fillRect(rtBG.Left, rtBG.Top,rtBG.Width,rtBG.Height);
|
|
131213
|
+
|
|
131214
|
+
this.Canvas.font=drawInfo.Font;
|
|
131215
|
+
this.Canvas.textBaseline="bottom";
|
|
131216
|
+
this.Canvas.textAlign="left";
|
|
131217
|
+
this.Canvas.fillStyle=textColor;
|
|
131218
|
+
var textWidth=this.Canvas.measureText(drawInfo.Text).width;
|
|
131219
|
+
|
|
131220
|
+
var x=rtBG.Left;
|
|
131221
|
+
if (textWidth<rtBG.Width) x+=(rtBG.Width-textWidth)/2;
|
|
131222
|
+
var y=rtBG.Bottom-drawInfo.Button.TextMargin.Bottom;
|
|
131223
|
+
this.Canvas.fillText(drawInfo.Text,x,y);
|
|
131224
|
+
|
|
131225
|
+
if (drawInfo.Enable)
|
|
131226
|
+
{
|
|
131227
|
+
drawInfo.Botton={ Rect:rtBG, Type:1 };
|
|
131228
|
+
}
|
|
131229
|
+
}
|
|
131230
|
+
|
|
131017
131231
|
//字体由外面设置
|
|
131018
131232
|
this.TextEllipsis=function(text, maxWidth, maxText)
|
|
131019
131233
|
{
|
|
@@ -131702,7 +131916,7 @@ function ChartReport()
|
|
|
131702
131916
|
var buttonData=this.GetButtonData(x,y);
|
|
131703
131917
|
if (!buttonData) return true;
|
|
131704
131918
|
|
|
131705
|
-
if (buttonData.Type===0)
|
|
131919
|
+
if (buttonData.Type===0) //checkbox
|
|
131706
131920
|
{
|
|
131707
131921
|
var sendData={ Column:buttonData.Column, Index:buttonData.Index, Stock:buttonData.Stock, Data:buttonData.Data, PreventDefault: false };
|
|
131708
131922
|
this.SendClickEvent(JSCHART_EVENT_ID.ON_CLICK_REPORT_CHECKBOX, sendData)
|
|
@@ -131718,6 +131932,14 @@ function ChartReport()
|
|
|
131718
131932
|
status.Redraw=true;
|
|
131719
131933
|
return true;
|
|
131720
131934
|
}
|
|
131935
|
+
else if (buttonData.Type===1) //button
|
|
131936
|
+
{
|
|
131937
|
+
var sendData={ Column:buttonData.Column, Index:buttonData.Index, Stock:buttonData.Stock, Data:buttonData.Data };
|
|
131938
|
+
this.SendClickEvent(JSCHART_EVENT_ID.ON_CLICK_REPORT_BUTTON, sendData)
|
|
131939
|
+
|
|
131940
|
+
status.Redraw=true;
|
|
131941
|
+
return true;
|
|
131942
|
+
}
|
|
131721
131943
|
|
|
131722
131944
|
return false;
|
|
131723
131945
|
}
|
|
@@ -138634,6 +138856,7 @@ function JSDialogDrawTool()
|
|
|
138634
138856
|
{ Title: '水平射线', ClassName: 'hqchart_drawtool icon-tubiao_shuipingshexian', Type:0, Data:{ ID:"水平射线" } },
|
|
138635
138857
|
{ Title: '涂鸦线段', ClassName: 'hqchart_drawtool icon-draw_line', Type:0, Data:{ ID:"涂鸦线段" } },
|
|
138636
138858
|
{ Title: '阻速线', ClassName: 'hqchart_drawtool icon-draw_resline', Type:0, Data:{ ID:"阻速线" } },
|
|
138859
|
+
{ Title: '通达信阻速线', ClassName: 'hqchart_drawtool icon-draw_resline', Type:0, Data:{ ID:"阻速线2" } },
|
|
138637
138860
|
{ Title: '江恩角度线', ClassName: 'hqchart_drawtool icon-jiangenjiaoduxian', Type:0, Data:{ ID:"江恩角度线" } },
|
|
138638
138861
|
]
|
|
138639
138862
|
},
|
|
@@ -139717,7 +139940,7 @@ function HQChartScriptWorker()
|
|
|
139717
139940
|
|
|
139718
139941
|
|
|
139719
139942
|
|
|
139720
|
-
var HQCHART_VERSION="1.1.
|
|
139943
|
+
var HQCHART_VERSION="1.1.13568";
|
|
139721
139944
|
|
|
139722
139945
|
function PrintHQChartVersion()
|
|
139723
139946
|
{
|