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
|
@@ -6525,6 +6525,7 @@ var JSCHART_EVENT_ID=
|
|
|
6525
6525
|
|
|
6526
6526
|
ON_DRAW_REPORT_ROW_BG:140, //报价列表整行背景
|
|
6527
6527
|
ON_CLICK_REPORT_CHECKBOX:141, //报价列表checkbox
|
|
6528
|
+
ON_CLICK_REPORT_BUTTON:142, //报价列表按钮
|
|
6528
6529
|
|
|
6529
6530
|
|
|
6530
6531
|
ON_CHANGE_INDEX:150, //切换指标
|
|
@@ -6697,8 +6698,12 @@ var JSCHART_MENU_ID=
|
|
|
6697
6698
|
|
|
6698
6699
|
CMD_CHANGE_DRAG_RECT_SHOW_MODE_ID:38,
|
|
6699
6700
|
|
|
6701
|
+
CMD_SHOW_CORSS_LINE_ID:39, //显示十字光标线
|
|
6702
|
+
|
|
6700
6703
|
|
|
6701
6704
|
CMD_REPORT_CHANGE_BLOCK_ID:60, //报价列表 切换板块ID
|
|
6705
|
+
|
|
6706
|
+
|
|
6702
6707
|
}
|
|
6703
6708
|
|
|
6704
6709
|
|
|
@@ -13218,6 +13223,8 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
13218
13223
|
//右键菜单
|
|
13219
13224
|
this.PopupMenuByRClick=function(menuData, x, y)
|
|
13220
13225
|
{
|
|
13226
|
+
if (!this.JSPopMenu) return;
|
|
13227
|
+
|
|
13221
13228
|
var rtClient=this.UIElement.getBoundingClientRect();
|
|
13222
13229
|
var rtScroll=GetScrollPosition();
|
|
13223
13230
|
|
|
@@ -13480,6 +13487,13 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
13480
13487
|
if (this.ChartDragSelectRect) this.ChartDragSelectRect.ShowMode=param;
|
|
13481
13488
|
}
|
|
13482
13489
|
break;
|
|
13490
|
+
|
|
13491
|
+
case JSCHART_MENU_ID.CMD_SHOW_CORSS_LINE_ID:
|
|
13492
|
+
if (IFrameSplitOperator.IsBool(srcParam))
|
|
13493
|
+
{
|
|
13494
|
+
if (this.ChartCorssCursor) this.ChartCorssCursor.IsShowCorss=srcParam;
|
|
13495
|
+
}
|
|
13496
|
+
break;
|
|
13483
13497
|
}
|
|
13484
13498
|
}
|
|
13485
13499
|
|
|
@@ -60270,6 +60284,7 @@ IChartDrawPicture.ArrayDrawPricture=
|
|
|
60270
60284
|
{ Name:"文本", ClassName:'ChartDrawPictureText', Create:function() { return new ChartDrawPictureText(); }},
|
|
60271
60285
|
{ Name:"江恩角度线", ClassName:'ChartDrawPictureGannFan', Create:function() { return new ChartDrawPictureGannFan(); }},
|
|
60272
60286
|
{ Name:"阻速线", ClassName:'ChartDrawPictureResistanceLine', Create:function() { return new ChartDrawPictureResistanceLine(); }},
|
|
60287
|
+
{ Name:"阻速线2", ClassName:'ChartDrawPictureResistanceLineV2', Create:function() { return new ChartDrawPictureResistanceLineV2(); }},
|
|
60273
60288
|
{ Name:"黄金分割", ClassName:'ChartDrawPictureGoldenSection', Create:function() { return new ChartDrawPictureGoldenSection(); }},
|
|
60274
60289
|
{ Name:"百分比线", ClassName:'ChartDrawPicturePercentage', Create:function() { return new ChartDrawPicturePercentage(); }},
|
|
60275
60290
|
{ Name:"波段线", ClassName:'ChartDrawPictureWaveBand', Create:function() { return new ChartDrawPictureWaveBand(); }},
|
|
@@ -63663,6 +63678,23 @@ function ChartDrawPictureGannFan()
|
|
|
63663
63678
|
this.IsPointIn=this.IsPointIn_XYValue_Line;
|
|
63664
63679
|
this.LinePoint=[];
|
|
63665
63680
|
this.Font=16*GetDevicePixelRatio() +"px 微软雅黑";
|
|
63681
|
+
this.LineDash=[5,10];
|
|
63682
|
+
this.EnableDottedLine=false; //辅助线是否使用虚线
|
|
63683
|
+
this.EnableArea=true; //是否绘制面积图
|
|
63684
|
+
|
|
63685
|
+
this.Super_SetOption=this.SetOption; //父类函数
|
|
63686
|
+
|
|
63687
|
+
this.SetOption=function(option)
|
|
63688
|
+
{
|
|
63689
|
+
if (this.Super_SetOption) this.Super_SetOption(option);
|
|
63690
|
+
if (option)
|
|
63691
|
+
{
|
|
63692
|
+
if (option.Font) this.Font=option.Font;
|
|
63693
|
+
if (Array.isArray(option.LineDash)) this.LineDash=option.LineDash;
|
|
63694
|
+
if (IFrameSplitOperator.IsBool(option.EnableDottedLine)) this.EnableDottedLine=option.EnableDottedLine;
|
|
63695
|
+
if (IFrameSplitOperator.IsBool(option.EnableArea)) this.EnableArea=option.EnableArea;
|
|
63696
|
+
}
|
|
63697
|
+
}
|
|
63666
63698
|
|
|
63667
63699
|
|
|
63668
63700
|
this.Draw=function()
|
|
@@ -63680,10 +63712,10 @@ function ChartDrawPictureGannFan()
|
|
|
63680
63712
|
var quadrant=this.GetQuadrant(drawPoint[0],drawPoint[1]);
|
|
63681
63713
|
|
|
63682
63714
|
this.SetLineWidth();
|
|
63683
|
-
if (quadrant===1 || quadrant===4)
|
|
63715
|
+
if (quadrant===1 || quadrant===2 || quadrant===3 || quadrant===4)
|
|
63684
63716
|
{
|
|
63685
63717
|
this.CalculateLines(drawPoint[0],drawPoint[1],quadrant);
|
|
63686
|
-
this.DrawArea();
|
|
63718
|
+
if (this.EnableArea) this.DrawArea();
|
|
63687
63719
|
|
|
63688
63720
|
for(var i in this.LinePoint)
|
|
63689
63721
|
{
|
|
@@ -63711,7 +63743,7 @@ function ChartDrawPictureGannFan()
|
|
|
63711
63743
|
this.GetQuadrant=function(ptStart,ptEnd)
|
|
63712
63744
|
{
|
|
63713
63745
|
if (ptStart.X<ptEnd.X && ptStart.Y>ptEnd.Y) return 1;
|
|
63714
|
-
else if (ptStart.X
|
|
63746
|
+
else if (ptStart.X>ptEnd.X && ptStart.Y>ptEnd.Y) return 2;
|
|
63715
63747
|
else if (ptStart.X < ptEnd.X && ptStart.Y< ptEnd.Y) return 4;
|
|
63716
63748
|
else return 3;
|
|
63717
63749
|
}
|
|
@@ -63720,7 +63752,7 @@ function ChartDrawPictureGannFan()
|
|
|
63720
63752
|
//isDotline 是否是虚线
|
|
63721
63753
|
this.DrawLine=function(ptStart,ptEnd,isDottedline)
|
|
63722
63754
|
{
|
|
63723
|
-
if (isDottedline) this.Canvas.setLineDash(
|
|
63755
|
+
if (isDottedline) this.Canvas.setLineDash(this.LineDash);
|
|
63724
63756
|
|
|
63725
63757
|
this.Canvas.strokeStyle=this.LineColor;
|
|
63726
63758
|
this.Canvas.beginPath();
|
|
@@ -63782,27 +63814,15 @@ function ChartDrawPictureGannFan()
|
|
|
63782
63814
|
var lineHeight=Math.abs(ptStart.Y-ptEnd.Y);
|
|
63783
63815
|
if (quadrant===1)
|
|
63784
63816
|
{
|
|
63785
|
-
/*
|
|
63786
|
-
var line={Start:ptLineStart, End:new Point(), IsDottedLine:false};
|
|
63787
|
-
line.End.X=ptStart.X;
|
|
63788
|
-
line.End.Y=top;
|
|
63789
|
-
this.LinePoint.push(line);
|
|
63790
|
-
|
|
63791
|
-
line={Start:ptLineStart, End:new Point(), IsDottedLine:false};
|
|
63792
|
-
line.End.X=right;
|
|
63793
|
-
line.End.Y=ptStart.Y;
|
|
63794
|
-
this.LinePoint.push(line);
|
|
63795
|
-
*/
|
|
63796
|
-
|
|
63797
63817
|
var extendLine=this.CalculateExtendLinePoint(ptStart,ptEnd);
|
|
63798
63818
|
var line={Start:ptLineStart, End:extendLine.Start, IsDottedLine:false,PtEnd:ptLineEnd, Text:'1:1'};
|
|
63799
63819
|
this.LinePoint.push(line);
|
|
63800
63820
|
|
|
63801
|
-
for(var i
|
|
63821
|
+
for(var i=0;i<SPLIT_LINE_VALUE.length; ++i)
|
|
63802
63822
|
{
|
|
63803
63823
|
if (lineWidth>5)
|
|
63804
63824
|
{
|
|
63805
|
-
line={Start:ptLineStart, End:null, IsDottedLine:
|
|
63825
|
+
line={Start:ptLineStart, End:null, IsDottedLine:this.EnableDottedLine,PtEnd:new Point(),Text:SPLIT_LINE_X_TITLE[i]};
|
|
63806
63826
|
line.PtEnd.Y=ptEnd.Y;
|
|
63807
63827
|
line.PtEnd.X=ptStart.X+lineWidth*SPLIT_LINE_VALUE[i];
|
|
63808
63828
|
var extendLine=this.CalculateExtendLinePoint(line.Start,line.PtEnd);
|
|
@@ -63811,7 +63831,7 @@ function ChartDrawPictureGannFan()
|
|
|
63811
63831
|
}
|
|
63812
63832
|
if (lineHeight>5)
|
|
63813
63833
|
{
|
|
63814
|
-
line={Start:ptLineStart, End:null, IsDottedLine:
|
|
63834
|
+
line={Start:ptLineStart, End:null, IsDottedLine:this.EnableDottedLine,PtEnd:new Point(), Text:SPLIT_LINE_Y_TITLE[i]};
|
|
63815
63835
|
line.PtEnd.Y=ptStart.Y-lineHeight*SPLIT_LINE_VALUE[i];
|
|
63816
63836
|
line.PtEnd.X=ptEnd.X;
|
|
63817
63837
|
var extendLine=this.CalculateExtendLinePoint(line.Start,line.PtEnd);
|
|
@@ -63821,29 +63841,77 @@ function ChartDrawPictureGannFan()
|
|
|
63821
63841
|
}
|
|
63822
63842
|
|
|
63823
63843
|
}
|
|
63824
|
-
else if (quadrant==
|
|
63844
|
+
else if (quadrant==2)
|
|
63825
63845
|
{
|
|
63826
|
-
|
|
63827
|
-
var line={Start:ptLineStart, End:
|
|
63828
|
-
line.End.X=ptStart.X;
|
|
63829
|
-
line.End.Y=bottom;
|
|
63846
|
+
var extendLine=this.CalculateExtendLinePoint(ptStart,ptEnd);
|
|
63847
|
+
var line={Start:ptLineStart, End:extendLine.Start, IsDottedLine:false,PtEnd:ptLineEnd, Text:'1:1'};
|
|
63830
63848
|
this.LinePoint.push(line);
|
|
63831
63849
|
|
|
63832
|
-
|
|
63833
|
-
|
|
63834
|
-
|
|
63850
|
+
for(var i=0;i<SPLIT_LINE_VALUE.length; ++i)
|
|
63851
|
+
{
|
|
63852
|
+
|
|
63853
|
+
if (lineWidth>5)
|
|
63854
|
+
{
|
|
63855
|
+
line={Start:ptLineStart, End:null, IsDottedLine:this.EnableDottedLine,PtEnd:new Point(),Text:SPLIT_LINE_X_TITLE[i]};
|
|
63856
|
+
line.PtEnd.Y=ptEnd.Y;
|
|
63857
|
+
line.PtEnd.X=ptStart.X-lineWidth*SPLIT_LINE_VALUE[i];
|
|
63858
|
+
var extendLine=this.CalculateExtendLinePoint(line.Start,line.PtEnd);
|
|
63859
|
+
line.End=extendLine.Start;
|
|
63860
|
+
this.LinePoint.push(line);
|
|
63861
|
+
}
|
|
63862
|
+
|
|
63863
|
+
|
|
63864
|
+
if (lineHeight>5)
|
|
63865
|
+
{
|
|
63866
|
+
line={Start:ptLineStart, End:null, IsDottedLine:this.EnableDottedLine,PtEnd:new Point(), Text:SPLIT_LINE_Y_TITLE[i]};
|
|
63867
|
+
line.PtEnd.Y=ptStart.Y-lineHeight*SPLIT_LINE_VALUE[i];
|
|
63868
|
+
line.PtEnd.X=ptEnd.X;
|
|
63869
|
+
var extendLine=this.CalculateExtendLinePoint(line.Start,line.PtEnd);
|
|
63870
|
+
line.End=extendLine.Start;
|
|
63871
|
+
this.LinePoint.push(line);
|
|
63872
|
+
}
|
|
63873
|
+
|
|
63874
|
+
}
|
|
63875
|
+
}
|
|
63876
|
+
else if (quadrant==3)
|
|
63877
|
+
{
|
|
63878
|
+
var extendLine=this.CalculateExtendLinePoint(ptStart,ptEnd);
|
|
63879
|
+
var line={Start:ptLineStart, End:extendLine.End, IsDottedLine:false,PtEnd:ptLineEnd, Text:'1:1'};
|
|
63835
63880
|
this.LinePoint.push(line);
|
|
63836
|
-
*/
|
|
63837
63881
|
|
|
63882
|
+
for(var i=0;i<SPLIT_LINE_VALUE.length; ++i)
|
|
63883
|
+
{
|
|
63884
|
+
if (lineWidth>5)
|
|
63885
|
+
{
|
|
63886
|
+
line={Start:ptLineStart, End:null, IsDottedLine:this.EnableDottedLine,PtEnd:new Point(),Text:SPLIT_LINE_X_TITLE[i]};
|
|
63887
|
+
line.PtEnd.Y=ptEnd.Y;
|
|
63888
|
+
line.PtEnd.X=ptStart.X-lineWidth*SPLIT_LINE_VALUE[i];
|
|
63889
|
+
var extendLine=this.CalculateExtendLinePoint(line.Start,line.PtEnd);
|
|
63890
|
+
line.End=extendLine.End;
|
|
63891
|
+
this.LinePoint.push(line);
|
|
63892
|
+
}
|
|
63893
|
+
if (lineHeight>5)
|
|
63894
|
+
{
|
|
63895
|
+
line={Start:ptLineStart, End:null, IsDottedLine:this.EnableDottedLine,PtEnd:new Point(), Text:SPLIT_LINE_Y_TITLE[i]};
|
|
63896
|
+
line.PtEnd.Y=ptStart.Y+lineHeight*SPLIT_LINE_VALUE[i];
|
|
63897
|
+
line.PtEnd.X=ptEnd.X;
|
|
63898
|
+
var extendLine=this.CalculateExtendLinePoint(line.Start,line.PtEnd);
|
|
63899
|
+
line.End=extendLine.End;
|
|
63900
|
+
this.LinePoint.push(line);
|
|
63901
|
+
}
|
|
63902
|
+
}
|
|
63903
|
+
}
|
|
63904
|
+
else if (quadrant==4)
|
|
63905
|
+
{
|
|
63838
63906
|
var extendLine=this.CalculateExtendLinePoint(ptStart,ptEnd);
|
|
63839
63907
|
var line={Start:ptLineStart, End:extendLine.End, IsDottedLine:false,PtEnd:ptLineEnd, Text:'1:1'};
|
|
63840
63908
|
this.LinePoint.push(line);
|
|
63841
63909
|
|
|
63842
|
-
for(var i
|
|
63910
|
+
for(var i=0;i<SPLIT_LINE_VALUE.length; ++i)
|
|
63843
63911
|
{
|
|
63844
63912
|
if (lineWidth>5)
|
|
63845
63913
|
{
|
|
63846
|
-
line={Start:ptLineStart, End:null, IsDottedLine:
|
|
63914
|
+
line={Start:ptLineStart, End:null, IsDottedLine:this.EnableDottedLine,PtEnd:new Point(),Text:SPLIT_LINE_X_TITLE[i]};
|
|
63847
63915
|
line.PtEnd.Y=ptEnd.Y;
|
|
63848
63916
|
line.PtEnd.X=ptStart.X+lineWidth*SPLIT_LINE_VALUE[i];
|
|
63849
63917
|
var extendLine=this.CalculateExtendLinePoint(line.Start,line.PtEnd);
|
|
@@ -63852,7 +63920,7 @@ function ChartDrawPictureGannFan()
|
|
|
63852
63920
|
}
|
|
63853
63921
|
if (lineHeight>5)
|
|
63854
63922
|
{
|
|
63855
|
-
line={Start:ptLineStart, End:null, IsDottedLine:
|
|
63923
|
+
line={Start:ptLineStart, End:null, IsDottedLine:this.EnableDottedLine,PtEnd:new Point(), Text:SPLIT_LINE_Y_TITLE[i]};
|
|
63856
63924
|
line.PtEnd.Y=ptStart.Y+lineHeight*SPLIT_LINE_VALUE[i];
|
|
63857
63925
|
line.PtEnd.X=ptEnd.X;
|
|
63858
63926
|
var extendLine=this.CalculateExtendLinePoint(line.Start,line.PtEnd);
|
|
@@ -63861,7 +63929,10 @@ function ChartDrawPictureGannFan()
|
|
|
63861
63929
|
}
|
|
63862
63930
|
}
|
|
63863
63931
|
}
|
|
63864
|
-
else
|
|
63932
|
+
else
|
|
63933
|
+
{
|
|
63934
|
+
return false;
|
|
63935
|
+
}
|
|
63865
63936
|
|
|
63866
63937
|
return true;
|
|
63867
63938
|
}
|
|
@@ -63900,11 +63971,11 @@ function ChartDrawPictureResistanceLine()
|
|
|
63900
63971
|
var line={Start:ptLineStart, End:extendLine.Start, IsDottedLine:false,PtEnd:ptLineEnd, Text:'1:1'};
|
|
63901
63972
|
this.LinePoint.push(line);
|
|
63902
63973
|
|
|
63903
|
-
for(var i
|
|
63974
|
+
for(var i=0;i<SPLIT_LINE_VALUE.length; ++i)
|
|
63904
63975
|
{
|
|
63905
63976
|
if (lineHeight>5)
|
|
63906
63977
|
{
|
|
63907
|
-
line={Start:ptLineStart, End:null, IsDottedLine:
|
|
63978
|
+
line={Start:ptLineStart, End:null, IsDottedLine:this.EnableDottedLine,PtEnd:new Point(), Text:SPLIT_LINE_Y_TITLE[i]};
|
|
63908
63979
|
line.PtEnd.Y=ptStart.Y-lineHeight*SPLIT_LINE_VALUE[i];
|
|
63909
63980
|
line.PtEnd.X=ptEnd.X;
|
|
63910
63981
|
var extendLine=this.CalculateExtendLinePoint(line.Start,line.PtEnd);
|
|
@@ -63912,7 +63983,45 @@ function ChartDrawPictureResistanceLine()
|
|
|
63912
63983
|
this.LinePoint.push(line);
|
|
63913
63984
|
}
|
|
63914
63985
|
}
|
|
63915
|
-
|
|
63986
|
+
}
|
|
63987
|
+
else if (quadrant==2)
|
|
63988
|
+
{
|
|
63989
|
+
var extendLine=this.CalculateExtendLinePoint(ptStart,ptEnd);
|
|
63990
|
+
var line={Start:ptLineStart, End:extendLine.Start, IsDottedLine:false,PtEnd:ptLineEnd, Text:'1:1'};
|
|
63991
|
+
this.LinePoint.push(line);
|
|
63992
|
+
|
|
63993
|
+
for(var i=0;i<SPLIT_LINE_VALUE.length; ++i)
|
|
63994
|
+
{
|
|
63995
|
+
if (lineHeight>5)
|
|
63996
|
+
{
|
|
63997
|
+
line={Start:ptLineStart, End:null, IsDottedLine:this.EnableDottedLine,PtEnd:new Point(), Text:SPLIT_LINE_Y_TITLE[i]};
|
|
63998
|
+
line.PtEnd.Y=ptStart.Y-lineHeight*SPLIT_LINE_VALUE[i];
|
|
63999
|
+
line.PtEnd.X=ptEnd.X;
|
|
64000
|
+
var extendLine=this.CalculateExtendLinePoint(line.Start,line.PtEnd);
|
|
64001
|
+
line.End=extendLine.Start;
|
|
64002
|
+
this.LinePoint.push(line);
|
|
64003
|
+
}
|
|
64004
|
+
|
|
64005
|
+
}
|
|
64006
|
+
}
|
|
64007
|
+
else if (quadrant==3)
|
|
64008
|
+
{
|
|
64009
|
+
var extendLine=this.CalculateExtendLinePoint(ptStart,ptEnd);
|
|
64010
|
+
var line={Start:ptLineStart, End:extendLine.End, IsDottedLine:false,PtEnd:ptLineEnd, Text:'1:1'};
|
|
64011
|
+
this.LinePoint.push(line);
|
|
64012
|
+
|
|
64013
|
+
for(var i=0;i<SPLIT_LINE_VALUE.length; ++i)
|
|
64014
|
+
{
|
|
64015
|
+
if (lineHeight>5)
|
|
64016
|
+
{
|
|
64017
|
+
line={Start:ptLineStart, End:null, IsDottedLine:this.EnableDottedLine,PtEnd:new Point(), Text:SPLIT_LINE_Y_TITLE[i]};
|
|
64018
|
+
line.PtEnd.Y=ptStart.Y+lineHeight*SPLIT_LINE_VALUE[i];
|
|
64019
|
+
line.PtEnd.X=ptEnd.X;
|
|
64020
|
+
var extendLine=this.CalculateExtendLinePoint(line.Start,line.PtEnd);
|
|
64021
|
+
line.End=extendLine.End;
|
|
64022
|
+
this.LinePoint.push(line);
|
|
64023
|
+
}
|
|
64024
|
+
}
|
|
63916
64025
|
}
|
|
63917
64026
|
else if (quadrant==4)
|
|
63918
64027
|
{
|
|
@@ -63920,11 +64029,11 @@ function ChartDrawPictureResistanceLine()
|
|
|
63920
64029
|
var line={Start:ptLineStart, End:extendLine.End, IsDottedLine:false,PtEnd:ptLineEnd, Text:'1:1'};
|
|
63921
64030
|
this.LinePoint.push(line);
|
|
63922
64031
|
|
|
63923
|
-
for(var i
|
|
64032
|
+
for(var i=0;i<SPLIT_LINE_VALUE.length; ++i)
|
|
63924
64033
|
{
|
|
63925
64034
|
if (lineHeight>5)
|
|
63926
64035
|
{
|
|
63927
|
-
line={Start:ptLineStart, End:null, IsDottedLine:
|
|
64036
|
+
line={Start:ptLineStart, End:null, IsDottedLine:this.EnableDottedLine,PtEnd:new Point(), Text:SPLIT_LINE_Y_TITLE[i]};
|
|
63928
64037
|
line.PtEnd.Y=ptStart.Y+lineHeight*SPLIT_LINE_VALUE[i];
|
|
63929
64038
|
line.PtEnd.X=ptEnd.X;
|
|
63930
64039
|
var extendLine=this.CalculateExtendLinePoint(line.Start,line.PtEnd);
|
|
@@ -63933,7 +64042,10 @@ function ChartDrawPictureResistanceLine()
|
|
|
63933
64042
|
}
|
|
63934
64043
|
}
|
|
63935
64044
|
}
|
|
63936
|
-
else
|
|
64045
|
+
else
|
|
64046
|
+
{
|
|
64047
|
+
return false;
|
|
64048
|
+
}
|
|
63937
64049
|
|
|
63938
64050
|
return true;
|
|
63939
64051
|
}
|
|
@@ -63960,6 +64072,22 @@ function ChartDrawPictureResistanceLine()
|
|
|
63960
64072
|
}
|
|
63961
64073
|
}
|
|
63962
64074
|
|
|
64075
|
+
//阻速线2 (高 3等份)通达信版本
|
|
64076
|
+
function ChartDrawPictureResistanceLineV2()
|
|
64077
|
+
{
|
|
64078
|
+
this.newMethod=ChartDrawPictureResistanceLine; //派生
|
|
64079
|
+
this.newMethod();
|
|
64080
|
+
delete this.newMethod;
|
|
64081
|
+
|
|
64082
|
+
this.ClassName='ChartDrawPictureResistanceLineV2';
|
|
64083
|
+
this.EnableDottedLine=true; //辅助线是否使用虚线
|
|
64084
|
+
this.LineDash=[4,8];
|
|
64085
|
+
this.EnableArea=false;
|
|
64086
|
+
}
|
|
64087
|
+
|
|
64088
|
+
|
|
64089
|
+
|
|
64090
|
+
|
|
63963
64091
|
//黄金分割线
|
|
63964
64092
|
function ChartDrawPictureGoldenSection()
|
|
63965
64093
|
{
|
|
@@ -71072,7 +71200,7 @@ function JSChartResource()
|
|
|
71072
71200
|
|
|
71073
71201
|
Item:
|
|
71074
71202
|
{
|
|
71075
|
-
Mergin:{ Top:2, Bottom:
|
|
71203
|
+
Mergin:{ Top:2, Bottom:4,Left:5, Right:5 }, //单元格四周间距
|
|
71076
71204
|
Font:{ Size:15, Name:"微软雅黑"},
|
|
71077
71205
|
BarMergin:{ Top:2, Left:3, Right:3, Bottom:2 },//单元格字体
|
|
71078
71206
|
NameFont:{ Size:14, Name:"微软雅黑" },
|
|
@@ -78843,6 +78971,9 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
78843
78971
|
if (this.GetExtendChartByClassName("SessionBreaksPaint")) bBGSpit=true;
|
|
78844
78972
|
if (this.GetExtendChartByClassName('StockChip')) bShowStockChip=true; //筹码
|
|
78845
78973
|
|
|
78974
|
+
var bShowCorss=false; //十字光标十字线
|
|
78975
|
+
if (this.ChartCorssCursor) bShowCorss=this.ChartCorssCursor.IsShowCorss;
|
|
78976
|
+
|
|
78846
78977
|
var aryMenu=
|
|
78847
78978
|
[
|
|
78848
78979
|
{
|
|
@@ -79001,6 +79132,9 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
79001
79132
|
{ Name:"画图工具", Data:{ ID:JSCHART_MENU_ID.CMD_SHOW_DRAWTOOL_ID, Args:[]}, Checked:this.IsShowDrawToolDialog() },
|
|
79002
79133
|
|
|
79003
79134
|
{ Name:"移动筹码图", Data:{ ID:bShowStockChip?JSCHART_MENU_ID.CMD_HIDE_STOCKCHIP_ID:JSCHART_MENU_ID.CMD_SHOW_STOCKCHIP_ID, Args:[]}, Checked:bShowStockChip},
|
|
79135
|
+
|
|
79136
|
+
{ Name:"十字光标线", Data:{ ID:JSCHART_MENU_ID.CMD_SHOW_CORSS_LINE_ID, Args:[!bShowCorss]}, Checked:bShowCorss },
|
|
79137
|
+
|
|
79004
79138
|
{ Name:JSPopMenu.SEPARATOR_LINE_NAME },
|
|
79005
79139
|
{
|
|
79006
79140
|
Name:"鼠标形状",
|
|
@@ -82505,6 +82639,9 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
82505
82639
|
if (item && item.Symbol) aryOverlaySymbol.push(item.Symbol)
|
|
82506
82640
|
}
|
|
82507
82641
|
|
|
82642
|
+
var bShowCorss=false; //十字光标十字线
|
|
82643
|
+
if (this.ChartCorssCursor) bShowCorss=this.ChartCorssCursor.IsShowCorss;
|
|
82644
|
+
|
|
82508
82645
|
var aryMenu=
|
|
82509
82646
|
[
|
|
82510
82647
|
{
|
|
@@ -82573,6 +82710,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
82573
82710
|
SubMenu:
|
|
82574
82711
|
[
|
|
82575
82712
|
{ Name:"画图工具", Data:{ ID:JSCHART_MENU_ID.CMD_SHOW_DRAWTOOL_ID, Args:[]}, Checked:this.IsShowDrawToolDialog()},
|
|
82713
|
+
{ Name:"十字光标线", Data:{ ID:JSCHART_MENU_ID.CMD_SHOW_CORSS_LINE_ID, Args:[!bShowCorss]}, Checked:bShowCorss },
|
|
82576
82714
|
|
|
82577
82715
|
{
|
|
82578
82716
|
Name:"区间选择样式",
|
|
@@ -82582,7 +82720,9 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
82582
82720
|
{ Name:"样式2", Data:{ ID:JSCHART_MENU_ID.CMD_CHANGE_DRAG_RECT_SHOW_MODE_ID, Args:[1]}, Checked:1==this.ChartDragSelectRect.ShowMode },
|
|
82583
82721
|
{ Name:"样式3", Data:{ ID:JSCHART_MENU_ID.CMD_CHANGE_DRAG_RECT_SHOW_MODE_ID, Args:[2]}, Checked:2==this.ChartDragSelectRect.ShowMode },
|
|
82584
82722
|
]
|
|
82585
|
-
}
|
|
82723
|
+
},
|
|
82724
|
+
|
|
82725
|
+
|
|
82586
82726
|
]
|
|
82587
82727
|
}
|
|
82588
82728
|
|
|
@@ -123534,7 +123674,7 @@ function GetBlackStyle()
|
|
|
123534
123674
|
|
|
123535
123675
|
Item:
|
|
123536
123676
|
{
|
|
123537
|
-
Mergin:{ Top:2, Bottom:
|
|
123677
|
+
Mergin:{ Top:2, Bottom:4,Left:5, Right:5 },
|
|
123538
123678
|
Font:{ Size:15, Name:"微软雅黑"},
|
|
123539
123679
|
BarMergin:{ Top:2, Left:3, Right:3, Bottom:2 },
|
|
123540
123680
|
NameFont:{ Size:14, Name:"微软雅黑" },
|
|
@@ -128891,6 +129031,7 @@ var REPORT_COLUMN_ID=
|
|
|
128891
129031
|
CUSTOM_DATETIME_TEXT_ID:102, //自定义日期类型
|
|
128892
129032
|
CUSTOM_ICON_ID:103, //自定义图标
|
|
128893
129033
|
CUSTOM_CHECKBOX_ID:104, //自定义checkbox
|
|
129034
|
+
CUSTOM_BUTTON_ID:105, //自定义按钮
|
|
128894
129035
|
}
|
|
128895
129036
|
|
|
128896
129037
|
var MAP_COLUMN_FIELD=new Map([
|
|
@@ -129267,6 +129408,13 @@ function ChartReport()
|
|
|
129267
129408
|
if (item.CheckBox) colItem.CheckBox=CloneData(item.CheckBox);
|
|
129268
129409
|
else colItem.CheckBox=CloneData(g_JSChartResource.Report.CheckBox);
|
|
129269
129410
|
}
|
|
129411
|
+
else if (item.Type==REPORT_COLUMN_ID.CUSTOM_BUTTON_ID)
|
|
129412
|
+
{
|
|
129413
|
+
if (!IFrameSplitOperator.IsNumber(item.DataIndex) && !IFrameSplitOperator.IsNumber(item.BlockIndex)) continue;
|
|
129414
|
+
if (IFrameSplitOperator.IsNumber(item.DataIndex)) colItem.DataIndex=item.DataIndex; //数据在扩展数据索引列
|
|
129415
|
+
if (IFrameSplitOperator.IsNumber(item.BlockIndex)) colItem.BlockIndex=item.BlockIndex;
|
|
129416
|
+
if (item.Button) colItem.Button=CloneData(item.Button);
|
|
129417
|
+
}
|
|
129270
129418
|
else if (item.Type==REPORT_COLUMN_ID.CUSTOM_ICON_ID)
|
|
129271
129419
|
{
|
|
129272
129420
|
|
|
@@ -129384,7 +129532,7 @@ function ChartReport()
|
|
|
129384
129532
|
|
|
129385
129533
|
{ Type:REPORT_COLUMN_ID.CUSTOM_CHECKBOX_ID, Title:"", TextAlign:"center", FixedWidth:20*GetDevicePixelRatio() },
|
|
129386
129534
|
|
|
129387
|
-
|
|
129535
|
+
{ Type:REPORT_COLUMN_ID.CUSTOM_BUTTON_ID, Title:"", TextAlign:"center", FixedWidth:50*GetDevicePixelRatio() }
|
|
129388
129536
|
];
|
|
129389
129537
|
|
|
129390
129538
|
for(var i=0;i<DEFAULT_COLUMN.length;++i)
|
|
@@ -130348,6 +130496,15 @@ function ChartReport()
|
|
|
130348
130496
|
|
|
130349
130497
|
this.GetCustomCheckBoxDrawInfo(data, column, drawInfo);
|
|
130350
130498
|
}
|
|
130499
|
+
else if (column.Type==REPORT_COLUMN_ID.CUSTOM_BUTTON_ID)
|
|
130500
|
+
{
|
|
130501
|
+
rtItem={ Left:left, Top:top, Width:column.Width, Height:this.RowHeight };
|
|
130502
|
+
rtItem.Right=rtItem.Left+rtItem.Width;
|
|
130503
|
+
rtItem.Bottom=rtItem.Top+rtItem.Height;
|
|
130504
|
+
drawInfo.Rect=rtItem;
|
|
130505
|
+
|
|
130506
|
+
this.GetCustomButtonDrawInfo(data, column, drawInfo);
|
|
130507
|
+
}
|
|
130351
130508
|
|
|
130352
130509
|
|
|
130353
130510
|
//拖拽行颜色
|
|
@@ -130366,6 +130523,10 @@ function ChartReport()
|
|
|
130366
130523
|
{
|
|
130367
130524
|
this.DrawCheckbox(drawInfo, left, top, itemWidth);
|
|
130368
130525
|
}
|
|
130526
|
+
else if (column.Type==REPORT_COLUMN_ID.CUSTOM_BUTTON_ID)
|
|
130527
|
+
{
|
|
130528
|
+
this.DrawButton(drawInfo, left, top, itemWidth);
|
|
130529
|
+
}
|
|
130369
130530
|
else
|
|
130370
130531
|
{
|
|
130371
130532
|
if (data.FlashBG && data.FlashBG.Data && column.ID!=undefined)
|
|
@@ -130459,9 +130620,9 @@ function ChartReport()
|
|
|
130459
130620
|
}
|
|
130460
130621
|
}
|
|
130461
130622
|
|
|
130462
|
-
this.Canvas.textBaseline="
|
|
130623
|
+
this.Canvas.textBaseline="bottom";
|
|
130463
130624
|
this.Canvas.fillStyle=drawInfo.TextColor;
|
|
130464
|
-
this.Canvas.fillText(text,x,top+this.ItemMergin.
|
|
130625
|
+
this.Canvas.fillText(text,x,top+this.RowHeight-this.ItemMergin.Bottom);
|
|
130465
130626
|
|
|
130466
130627
|
if (bClip) this.Canvas.restore();
|
|
130467
130628
|
}
|
|
@@ -130668,6 +130829,19 @@ function ChartReport()
|
|
|
130668
130829
|
drawInfo.CheckBox=column.CheckBox;
|
|
130669
130830
|
}
|
|
130670
130831
|
|
|
130832
|
+
this.GetCustomButtonDrawInfo=function(data, column, drawInfo)
|
|
130833
|
+
{
|
|
130834
|
+
var buttonData=this.GetExtendData(data, column);
|
|
130835
|
+
if (!buttonData) return;
|
|
130836
|
+
|
|
130837
|
+
drawInfo.Text=buttonData.Title;
|
|
130838
|
+
drawInfo.Button=column.Button;
|
|
130839
|
+
drawInfo.Font=column.Button.Font;
|
|
130840
|
+
drawInfo.Enable=true;
|
|
130841
|
+
drawInfo.Data=buttonData;
|
|
130842
|
+
if (IFrameSplitOperator.IsBool(buttonData.Enable)) drawInfo.Enable=buttonData.Enable;
|
|
130843
|
+
}
|
|
130844
|
+
|
|
130671
130845
|
this.FormaTimeDrawInfo=function(column, stock, drawInfo, data)
|
|
130672
130846
|
{
|
|
130673
130847
|
if (!IFrameSplitOperator.IsNumber(stock.Time)) return;
|
|
@@ -130828,9 +131002,9 @@ function ChartReport()
|
|
|
130828
131002
|
}
|
|
130829
131003
|
}
|
|
130830
131004
|
|
|
130831
|
-
this.Canvas.textBaseline="
|
|
131005
|
+
this.Canvas.textBaseline="bottom";
|
|
130832
131006
|
this.Canvas.fillStyle=textColor;
|
|
130833
|
-
this.Canvas.fillText(text,x,top+this.ItemMergin.
|
|
131007
|
+
this.Canvas.fillText(text,x,top+this.RowHeight-this.ItemMergin.Bottom);
|
|
130834
131008
|
|
|
130835
131009
|
if (bClip) this.Canvas.restore();
|
|
130836
131010
|
}
|
|
@@ -130970,6 +131144,46 @@ function ChartReport()
|
|
|
130970
131144
|
}
|
|
130971
131145
|
}
|
|
130972
131146
|
|
|
131147
|
+
this.DrawButton=function(drawInfo, left, top, width)
|
|
131148
|
+
{
|
|
131149
|
+
if (!drawInfo.Button) return;
|
|
131150
|
+
|
|
131151
|
+
var rtBG=
|
|
131152
|
+
{
|
|
131153
|
+
Left:left+drawInfo.Button.Margin.Left, Top:top+drawInfo.Button.Margin.Top,
|
|
131154
|
+
Height:this.RowHeight-drawInfo.Button.Margin.Top-drawInfo.Button.Margin.Bottom,
|
|
131155
|
+
Width:width-drawInfo.Button.Margin.Left-drawInfo.Button.Margin.Right
|
|
131156
|
+
}
|
|
131157
|
+
rtBG.Right=rtBG.Left+rtBG.Width;
|
|
131158
|
+
rtBG.Bottom=rtBG.Top+rtBG.Height;
|
|
131159
|
+
|
|
131160
|
+
var bgColor=drawInfo.Button.BGColor, textColor=drawInfo.Button.TextColor;
|
|
131161
|
+
if (drawInfo.Enable===false)
|
|
131162
|
+
{
|
|
131163
|
+
bgColor=drawInfo.Button.Disable.BGColor;
|
|
131164
|
+
textColor=drawInfo.Button.Disable.TextColor;
|
|
131165
|
+
}
|
|
131166
|
+
|
|
131167
|
+
this.Canvas.fillStyle=bgColor;
|
|
131168
|
+
this.Canvas.fillRect(rtBG.Left, rtBG.Top,rtBG.Width,rtBG.Height);
|
|
131169
|
+
|
|
131170
|
+
this.Canvas.font=drawInfo.Font;
|
|
131171
|
+
this.Canvas.textBaseline="bottom";
|
|
131172
|
+
this.Canvas.textAlign="left";
|
|
131173
|
+
this.Canvas.fillStyle=textColor;
|
|
131174
|
+
var textWidth=this.Canvas.measureText(drawInfo.Text).width;
|
|
131175
|
+
|
|
131176
|
+
var x=rtBG.Left;
|
|
131177
|
+
if (textWidth<rtBG.Width) x+=(rtBG.Width-textWidth)/2;
|
|
131178
|
+
var y=rtBG.Bottom-drawInfo.Button.TextMargin.Bottom;
|
|
131179
|
+
this.Canvas.fillText(drawInfo.Text,x,y);
|
|
131180
|
+
|
|
131181
|
+
if (drawInfo.Enable)
|
|
131182
|
+
{
|
|
131183
|
+
drawInfo.Botton={ Rect:rtBG, Type:1 };
|
|
131184
|
+
}
|
|
131185
|
+
}
|
|
131186
|
+
|
|
130973
131187
|
//字体由外面设置
|
|
130974
131188
|
this.TextEllipsis=function(text, maxWidth, maxText)
|
|
130975
131189
|
{
|
|
@@ -131658,7 +131872,7 @@ function ChartReport()
|
|
|
131658
131872
|
var buttonData=this.GetButtonData(x,y);
|
|
131659
131873
|
if (!buttonData) return true;
|
|
131660
131874
|
|
|
131661
|
-
if (buttonData.Type===0)
|
|
131875
|
+
if (buttonData.Type===0) //checkbox
|
|
131662
131876
|
{
|
|
131663
131877
|
var sendData={ Column:buttonData.Column, Index:buttonData.Index, Stock:buttonData.Stock, Data:buttonData.Data, PreventDefault: false };
|
|
131664
131878
|
this.SendClickEvent(JSCHART_EVENT_ID.ON_CLICK_REPORT_CHECKBOX, sendData)
|
|
@@ -131674,6 +131888,14 @@ function ChartReport()
|
|
|
131674
131888
|
status.Redraw=true;
|
|
131675
131889
|
return true;
|
|
131676
131890
|
}
|
|
131891
|
+
else if (buttonData.Type===1) //button
|
|
131892
|
+
{
|
|
131893
|
+
var sendData={ Column:buttonData.Column, Index:buttonData.Index, Stock:buttonData.Stock, Data:buttonData.Data };
|
|
131894
|
+
this.SendClickEvent(JSCHART_EVENT_ID.ON_CLICK_REPORT_BUTTON, sendData)
|
|
131895
|
+
|
|
131896
|
+
status.Redraw=true;
|
|
131897
|
+
return true;
|
|
131898
|
+
}
|
|
131677
131899
|
|
|
131678
131900
|
return false;
|
|
131679
131901
|
}
|
|
@@ -135763,7 +135985,7 @@ function ScrollBarBGChart()
|
|
|
135763
135985
|
|
|
135764
135986
|
|
|
135765
135987
|
|
|
135766
|
-
var HQCHART_VERSION="1.1.
|
|
135988
|
+
var HQCHART_VERSION="1.1.13568";
|
|
135767
135989
|
|
|
135768
135990
|
function PrintHQChartVersion()
|
|
135769
135991
|
{
|