hqchart 1.1.13565 → 1.1.13573
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 +18 -29
- package/package.json +1 -1
- package/src/jscommon/umychart.DialogDrawTool.js +2 -0
- package/src/jscommon/umychart.js +220 -43
- package/src/jscommon/umychart.uniapp.h5/umychart.uniapp.h5.js +221 -44
- package/src/jscommon/umychart.version.js +1 -1
- package/src/jscommon/umychart.vue/umychart.vue.js +223 -44
|
@@ -13267,6 +13267,8 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
13267
13267
|
//右键菜单
|
|
13268
13268
|
this.PopupMenuByRClick=function(menuData, x, y)
|
|
13269
13269
|
{
|
|
13270
|
+
if (!this.JSPopMenu) return;
|
|
13271
|
+
|
|
13270
13272
|
var rtClient=this.UIElement.getBoundingClientRect();
|
|
13271
13273
|
var rtScroll=GetScrollPosition();
|
|
13272
13274
|
|
|
@@ -60325,7 +60327,9 @@ IChartDrawPicture.ArrayDrawPricture=
|
|
|
60325
60327
|
{ Name:"价格通道线", ClassName:'ChartDrawPicturePriceChannel', Create:function() { return new ChartDrawPicturePriceChannel(); }},
|
|
60326
60328
|
{ Name:"文本", ClassName:'ChartDrawPictureText', Create:function() { return new ChartDrawPictureText(); }},
|
|
60327
60329
|
{ Name:"江恩角度线", ClassName:'ChartDrawPictureGannFan', Create:function() { return new ChartDrawPictureGannFan(); }},
|
|
60330
|
+
{ Name:"江恩角度线2", ClassName:'ChartDrawPictureGannFan', Create:function() { return new ChartDrawPictureGannFanV2(); }},
|
|
60328
60331
|
{ Name:"阻速线", ClassName:'ChartDrawPictureResistanceLine', Create:function() { return new ChartDrawPictureResistanceLine(); }},
|
|
60332
|
+
{ Name:"阻速线2", ClassName:'ChartDrawPictureResistanceLineV2', Create:function() { return new ChartDrawPictureResistanceLineV2(); }},
|
|
60329
60333
|
{ Name:"黄金分割", ClassName:'ChartDrawPictureGoldenSection', Create:function() { return new ChartDrawPictureGoldenSection(); }},
|
|
60330
60334
|
{ Name:"百分比线", ClassName:'ChartDrawPicturePercentage', Create:function() { return new ChartDrawPicturePercentage(); }},
|
|
60331
60335
|
{ Name:"波段线", ClassName:'ChartDrawPictureWaveBand', Create:function() { return new ChartDrawPictureWaveBand(); }},
|
|
@@ -63719,7 +63723,25 @@ function ChartDrawPictureGannFan()
|
|
|
63719
63723
|
this.IsPointIn=this.IsPointIn_XYValue_Line;
|
|
63720
63724
|
this.LinePoint=[];
|
|
63721
63725
|
this.Font=16*GetDevicePixelRatio() +"px 微软雅黑";
|
|
63726
|
+
this.LineDash=[5,10];
|
|
63727
|
+
this.EnableDottedLine=false; //辅助线是否使用虚线
|
|
63728
|
+
this.EnableArea=true; //是否绘制面积图
|
|
63729
|
+
this.IsShowTitle=true;
|
|
63722
63730
|
|
|
63731
|
+
this.Super_SetOption=this.SetOption; //父类函数
|
|
63732
|
+
|
|
63733
|
+
this.SetOption=function(option)
|
|
63734
|
+
{
|
|
63735
|
+
if (this.Super_SetOption) this.Super_SetOption(option);
|
|
63736
|
+
if (option)
|
|
63737
|
+
{
|
|
63738
|
+
if (option.Font) this.Font=option.Font;
|
|
63739
|
+
if (Array.isArray(option.LineDash)) this.LineDash=option.LineDash;
|
|
63740
|
+
if (IFrameSplitOperator.IsBool(option.EnableDottedLine)) this.EnableDottedLine=option.EnableDottedLine;
|
|
63741
|
+
if (IFrameSplitOperator.IsBool(option.EnableArea)) this.EnableArea=option.EnableArea;
|
|
63742
|
+
if (IFrameSplitOperator.IsBool(option.IsShowTitle)) this.IsShowTitle=option.IsShowTitle;
|
|
63743
|
+
}
|
|
63744
|
+
}
|
|
63723
63745
|
|
|
63724
63746
|
this.Draw=function()
|
|
63725
63747
|
{
|
|
@@ -63736,21 +63758,24 @@ function ChartDrawPictureGannFan()
|
|
|
63736
63758
|
var quadrant=this.GetQuadrant(drawPoint[0],drawPoint[1]);
|
|
63737
63759
|
|
|
63738
63760
|
this.SetLineWidth();
|
|
63739
|
-
if (quadrant===1 || quadrant===4)
|
|
63761
|
+
if (quadrant===1 || quadrant===2 || quadrant===3 || quadrant===4)
|
|
63740
63762
|
{
|
|
63741
63763
|
this.CalculateLines(drawPoint[0],drawPoint[1],quadrant);
|
|
63742
|
-
this.DrawArea();
|
|
63764
|
+
if (this.EnableArea) this.DrawArea();
|
|
63743
63765
|
|
|
63744
|
-
for(var i
|
|
63766
|
+
for(var i=0; i<this.LinePoint.length; ++i)
|
|
63745
63767
|
{
|
|
63746
63768
|
var item=this.LinePoint[i];
|
|
63747
63769
|
this.DrawLine(item.Start,item.End,item.IsDottedLine);
|
|
63748
63770
|
}
|
|
63749
63771
|
|
|
63750
|
-
|
|
63772
|
+
if (this.IsShowTitle)
|
|
63751
63773
|
{
|
|
63752
|
-
var
|
|
63753
|
-
|
|
63774
|
+
for(var i=0; i<this.LinePoint.length; ++i)
|
|
63775
|
+
{
|
|
63776
|
+
var item =this.LinePoint[i];
|
|
63777
|
+
if (item.Text && item.PtEnd) this.DrawTitle(item.PtEnd,item.Text);
|
|
63778
|
+
}
|
|
63754
63779
|
}
|
|
63755
63780
|
}
|
|
63756
63781
|
else
|
|
@@ -63767,7 +63792,7 @@ function ChartDrawPictureGannFan()
|
|
|
63767
63792
|
this.GetQuadrant=function(ptStart,ptEnd)
|
|
63768
63793
|
{
|
|
63769
63794
|
if (ptStart.X<ptEnd.X && ptStart.Y>ptEnd.Y) return 1;
|
|
63770
|
-
else if (ptStart.X
|
|
63795
|
+
else if (ptStart.X>ptEnd.X && ptStart.Y>ptEnd.Y) return 2;
|
|
63771
63796
|
else if (ptStart.X < ptEnd.X && ptStart.Y< ptEnd.Y) return 4;
|
|
63772
63797
|
else return 3;
|
|
63773
63798
|
}
|
|
@@ -63776,7 +63801,7 @@ function ChartDrawPictureGannFan()
|
|
|
63776
63801
|
//isDotline 是否是虚线
|
|
63777
63802
|
this.DrawLine=function(ptStart,ptEnd,isDottedline)
|
|
63778
63803
|
{
|
|
63779
|
-
if (isDottedline) this.Canvas.setLineDash(
|
|
63804
|
+
if (isDottedline) this.Canvas.setLineDash(this.LineDash);
|
|
63780
63805
|
|
|
63781
63806
|
this.Canvas.strokeStyle=this.LineColor;
|
|
63782
63807
|
this.Canvas.beginPath();
|
|
@@ -63838,27 +63863,15 @@ function ChartDrawPictureGannFan()
|
|
|
63838
63863
|
var lineHeight=Math.abs(ptStart.Y-ptEnd.Y);
|
|
63839
63864
|
if (quadrant===1)
|
|
63840
63865
|
{
|
|
63841
|
-
/*
|
|
63842
|
-
var line={Start:ptLineStart, End:new Point(), IsDottedLine:false};
|
|
63843
|
-
line.End.X=ptStart.X;
|
|
63844
|
-
line.End.Y=top;
|
|
63845
|
-
this.LinePoint.push(line);
|
|
63846
|
-
|
|
63847
|
-
line={Start:ptLineStart, End:new Point(), IsDottedLine:false};
|
|
63848
|
-
line.End.X=right;
|
|
63849
|
-
line.End.Y=ptStart.Y;
|
|
63850
|
-
this.LinePoint.push(line);
|
|
63851
|
-
*/
|
|
63852
|
-
|
|
63853
63866
|
var extendLine=this.CalculateExtendLinePoint(ptStart,ptEnd);
|
|
63854
63867
|
var line={Start:ptLineStart, End:extendLine.Start, IsDottedLine:false,PtEnd:ptLineEnd, Text:'1:1'};
|
|
63855
63868
|
this.LinePoint.push(line);
|
|
63856
63869
|
|
|
63857
|
-
for(var i
|
|
63870
|
+
for(var i=0;i<SPLIT_LINE_VALUE.length; ++i)
|
|
63858
63871
|
{
|
|
63859
63872
|
if (lineWidth>5)
|
|
63860
63873
|
{
|
|
63861
|
-
line={Start:ptLineStart, End:null, IsDottedLine:
|
|
63874
|
+
line={Start:ptLineStart, End:null, IsDottedLine:this.EnableDottedLine,PtEnd:new Point(),Text:SPLIT_LINE_X_TITLE[i]};
|
|
63862
63875
|
line.PtEnd.Y=ptEnd.Y;
|
|
63863
63876
|
line.PtEnd.X=ptStart.X+lineWidth*SPLIT_LINE_VALUE[i];
|
|
63864
63877
|
var extendLine=this.CalculateExtendLinePoint(line.Start,line.PtEnd);
|
|
@@ -63867,7 +63880,7 @@ function ChartDrawPictureGannFan()
|
|
|
63867
63880
|
}
|
|
63868
63881
|
if (lineHeight>5)
|
|
63869
63882
|
{
|
|
63870
|
-
line={Start:ptLineStart, End:null, IsDottedLine:
|
|
63883
|
+
line={Start:ptLineStart, End:null, IsDottedLine:this.EnableDottedLine,PtEnd:new Point(), Text:SPLIT_LINE_Y_TITLE[i]};
|
|
63871
63884
|
line.PtEnd.Y=ptStart.Y-lineHeight*SPLIT_LINE_VALUE[i];
|
|
63872
63885
|
line.PtEnd.X=ptEnd.X;
|
|
63873
63886
|
var extendLine=this.CalculateExtendLinePoint(line.Start,line.PtEnd);
|
|
@@ -63877,29 +63890,77 @@ function ChartDrawPictureGannFan()
|
|
|
63877
63890
|
}
|
|
63878
63891
|
|
|
63879
63892
|
}
|
|
63880
|
-
else if (quadrant==
|
|
63893
|
+
else if (quadrant==2)
|
|
63881
63894
|
{
|
|
63882
|
-
|
|
63883
|
-
var line={Start:ptLineStart, End:
|
|
63884
|
-
line.End.X=ptStart.X;
|
|
63885
|
-
line.End.Y=bottom;
|
|
63895
|
+
var extendLine=this.CalculateExtendLinePoint(ptStart,ptEnd);
|
|
63896
|
+
var line={Start:ptLineStart, End:extendLine.Start, IsDottedLine:false,PtEnd:ptLineEnd, Text:'1:1'};
|
|
63886
63897
|
this.LinePoint.push(line);
|
|
63887
63898
|
|
|
63888
|
-
|
|
63889
|
-
|
|
63890
|
-
|
|
63899
|
+
for(var i=0;i<SPLIT_LINE_VALUE.length; ++i)
|
|
63900
|
+
{
|
|
63901
|
+
|
|
63902
|
+
if (lineWidth>5)
|
|
63903
|
+
{
|
|
63904
|
+
line={Start:ptLineStart, End:null, IsDottedLine:this.EnableDottedLine,PtEnd:new Point(),Text:SPLIT_LINE_X_TITLE[i]};
|
|
63905
|
+
line.PtEnd.Y=ptEnd.Y;
|
|
63906
|
+
line.PtEnd.X=ptStart.X-lineWidth*SPLIT_LINE_VALUE[i];
|
|
63907
|
+
var extendLine=this.CalculateExtendLinePoint(line.Start,line.PtEnd);
|
|
63908
|
+
line.End=extendLine.Start;
|
|
63909
|
+
this.LinePoint.push(line);
|
|
63910
|
+
}
|
|
63911
|
+
|
|
63912
|
+
|
|
63913
|
+
if (lineHeight>5)
|
|
63914
|
+
{
|
|
63915
|
+
line={Start:ptLineStart, End:null, IsDottedLine:this.EnableDottedLine,PtEnd:new Point(), Text:SPLIT_LINE_Y_TITLE[i]};
|
|
63916
|
+
line.PtEnd.Y=ptStart.Y-lineHeight*SPLIT_LINE_VALUE[i];
|
|
63917
|
+
line.PtEnd.X=ptEnd.X;
|
|
63918
|
+
var extendLine=this.CalculateExtendLinePoint(line.Start,line.PtEnd);
|
|
63919
|
+
line.End=extendLine.Start;
|
|
63920
|
+
this.LinePoint.push(line);
|
|
63921
|
+
}
|
|
63922
|
+
|
|
63923
|
+
}
|
|
63924
|
+
}
|
|
63925
|
+
else if (quadrant==3)
|
|
63926
|
+
{
|
|
63927
|
+
var extendLine=this.CalculateExtendLinePoint(ptStart,ptEnd);
|
|
63928
|
+
var line={Start:ptLineStart, End:extendLine.End, IsDottedLine:false,PtEnd:ptLineEnd, Text:'1:1'};
|
|
63891
63929
|
this.LinePoint.push(line);
|
|
63892
|
-
*/
|
|
63893
63930
|
|
|
63931
|
+
for(var i=0;i<SPLIT_LINE_VALUE.length; ++i)
|
|
63932
|
+
{
|
|
63933
|
+
if (lineWidth>5)
|
|
63934
|
+
{
|
|
63935
|
+
line={Start:ptLineStart, End:null, IsDottedLine:this.EnableDottedLine,PtEnd:new Point(),Text:SPLIT_LINE_X_TITLE[i]};
|
|
63936
|
+
line.PtEnd.Y=ptEnd.Y;
|
|
63937
|
+
line.PtEnd.X=ptStart.X-lineWidth*SPLIT_LINE_VALUE[i];
|
|
63938
|
+
var extendLine=this.CalculateExtendLinePoint(line.Start,line.PtEnd);
|
|
63939
|
+
line.End=extendLine.End;
|
|
63940
|
+
this.LinePoint.push(line);
|
|
63941
|
+
}
|
|
63942
|
+
if (lineHeight>5)
|
|
63943
|
+
{
|
|
63944
|
+
line={Start:ptLineStart, End:null, IsDottedLine:this.EnableDottedLine,PtEnd:new Point(), Text:SPLIT_LINE_Y_TITLE[i]};
|
|
63945
|
+
line.PtEnd.Y=ptStart.Y+lineHeight*SPLIT_LINE_VALUE[i];
|
|
63946
|
+
line.PtEnd.X=ptEnd.X;
|
|
63947
|
+
var extendLine=this.CalculateExtendLinePoint(line.Start,line.PtEnd);
|
|
63948
|
+
line.End=extendLine.End;
|
|
63949
|
+
this.LinePoint.push(line);
|
|
63950
|
+
}
|
|
63951
|
+
}
|
|
63952
|
+
}
|
|
63953
|
+
else if (quadrant==4)
|
|
63954
|
+
{
|
|
63894
63955
|
var extendLine=this.CalculateExtendLinePoint(ptStart,ptEnd);
|
|
63895
63956
|
var line={Start:ptLineStart, End:extendLine.End, IsDottedLine:false,PtEnd:ptLineEnd, Text:'1:1'};
|
|
63896
63957
|
this.LinePoint.push(line);
|
|
63897
63958
|
|
|
63898
|
-
for(var i
|
|
63959
|
+
for(var i=0;i<SPLIT_LINE_VALUE.length; ++i)
|
|
63899
63960
|
{
|
|
63900
63961
|
if (lineWidth>5)
|
|
63901
63962
|
{
|
|
63902
|
-
line={Start:ptLineStart, End:null, IsDottedLine:
|
|
63963
|
+
line={Start:ptLineStart, End:null, IsDottedLine:this.EnableDottedLine,PtEnd:new Point(),Text:SPLIT_LINE_X_TITLE[i]};
|
|
63903
63964
|
line.PtEnd.Y=ptEnd.Y;
|
|
63904
63965
|
line.PtEnd.X=ptStart.X+lineWidth*SPLIT_LINE_VALUE[i];
|
|
63905
63966
|
var extendLine=this.CalculateExtendLinePoint(line.Start,line.PtEnd);
|
|
@@ -63908,7 +63969,7 @@ function ChartDrawPictureGannFan()
|
|
|
63908
63969
|
}
|
|
63909
63970
|
if (lineHeight>5)
|
|
63910
63971
|
{
|
|
63911
|
-
line={Start:ptLineStart, End:null, IsDottedLine:
|
|
63972
|
+
line={Start:ptLineStart, End:null, IsDottedLine:this.EnableDottedLine,PtEnd:new Point(), Text:SPLIT_LINE_Y_TITLE[i]};
|
|
63912
63973
|
line.PtEnd.Y=ptStart.Y+lineHeight*SPLIT_LINE_VALUE[i];
|
|
63913
63974
|
line.PtEnd.X=ptEnd.X;
|
|
63914
63975
|
var extendLine=this.CalculateExtendLinePoint(line.Start,line.PtEnd);
|
|
@@ -63917,19 +63978,77 @@ function ChartDrawPictureGannFan()
|
|
|
63917
63978
|
}
|
|
63918
63979
|
}
|
|
63919
63980
|
}
|
|
63920
|
-
else
|
|
63981
|
+
else
|
|
63982
|
+
{
|
|
63983
|
+
return false;
|
|
63984
|
+
}
|
|
63921
63985
|
|
|
63922
63986
|
return true;
|
|
63923
63987
|
}
|
|
63924
63988
|
}
|
|
63925
63989
|
|
|
63990
|
+
|
|
63991
|
+
//江恩角度线(Gann Fan) 通达信版本
|
|
63992
|
+
function ChartDrawPictureGannFanV2()
|
|
63993
|
+
{
|
|
63994
|
+
this.newMethod=ChartDrawPictureGannFan; //派生
|
|
63995
|
+
this.newMethod();
|
|
63996
|
+
delete this.newMethod;
|
|
63997
|
+
|
|
63998
|
+
this.ClassName='ChartDrawPictureGannFanV2';
|
|
63999
|
+
this.EnableDottedLine=true; //辅助线是否使用虚线
|
|
64000
|
+
this.LineDash=[4,8];
|
|
64001
|
+
this.EnableArea=false;
|
|
64002
|
+
|
|
64003
|
+
this.Super_CalculateLines=this.CalculateLines;
|
|
64004
|
+
|
|
64005
|
+
this.CalculateLines=function(ptStart,ptEnd,quadrant)
|
|
64006
|
+
{
|
|
64007
|
+
if (!this.Super_CalculateLines(ptStart,ptEnd,quadrant)) return false;
|
|
64008
|
+
|
|
64009
|
+
var border=this.Frame.ChartBorder.GetBorder();
|
|
64010
|
+
if (quadrant==1)
|
|
64011
|
+
{
|
|
64012
|
+
var line={ Start:ptStart, End:{ X:border.Right, Y:ptStart.Y}, IsDottedLine:false, PtEnd:null, Text:null };
|
|
64013
|
+
this.LinePoint.push(line);
|
|
64014
|
+
|
|
64015
|
+
var line={ Start:ptStart, End:{ X:ptStart.X, Y:border.TopEx }, IsDottedLine:false, PtEnd:null, Text:null };
|
|
64016
|
+
this.LinePoint.push(line);
|
|
64017
|
+
}
|
|
64018
|
+
else if (quadrant==2)
|
|
64019
|
+
{
|
|
64020
|
+
var line={ Start:ptStart, End:{ X:ptStart.X, Y:border.TopEx }, IsDottedLine:false, PtEnd:null, Text:null };
|
|
64021
|
+
this.LinePoint.push(line);
|
|
64022
|
+
|
|
64023
|
+
var line={ Start:ptStart, End:{ X:border.Left, Y:ptStart.Y}, IsDottedLine:false, PtEnd:null, Text:null };
|
|
64024
|
+
this.LinePoint.push(line);
|
|
64025
|
+
}
|
|
64026
|
+
else if (quadrant==3)
|
|
64027
|
+
{
|
|
64028
|
+
var line={ Start:ptStart, End:{ X:border.Left, Y:ptStart.Y}, IsDottedLine:false, PtEnd:null, Text:null };
|
|
64029
|
+
this.LinePoint.push(line);
|
|
64030
|
+
|
|
64031
|
+
var line={ Start:ptStart, End:{ X:ptStart.X, Y:border.BottomEx }, IsDottedLine:false, PtEnd:null, Text:null };
|
|
64032
|
+
this.LinePoint.push(line);
|
|
64033
|
+
}
|
|
64034
|
+
else if (quadrant==4)
|
|
64035
|
+
{
|
|
64036
|
+
var line={ Start:ptStart, End:{ X:ptStart.X, Y:border.BottomEx }, IsDottedLine:false, PtEnd:null, Text:null };
|
|
64037
|
+
this.LinePoint.push(line);
|
|
64038
|
+
|
|
64039
|
+
var line={ Start:ptStart, End:{ X:border.Right, Y:ptStart.Y}, IsDottedLine:false, PtEnd:null, Text:null };
|
|
64040
|
+
this.LinePoint.push(line);
|
|
64041
|
+
}
|
|
64042
|
+
}
|
|
64043
|
+
}
|
|
64044
|
+
|
|
63926
64045
|
//阻速线 (高 3等份)
|
|
63927
64046
|
function ChartDrawPictureResistanceLine()
|
|
63928
64047
|
{
|
|
63929
64048
|
this.newMethod=ChartDrawPictureGannFan; //派生
|
|
63930
64049
|
this.newMethod();
|
|
63931
64050
|
delete this.newMethod;
|
|
63932
|
-
|
|
64051
|
+
|
|
63933
64052
|
this.ClassName='ChartDrawPictureResistanceLine';
|
|
63934
64053
|
|
|
63935
64054
|
//计算线段
|
|
@@ -63956,11 +64075,11 @@ function ChartDrawPictureResistanceLine()
|
|
|
63956
64075
|
var line={Start:ptLineStart, End:extendLine.Start, IsDottedLine:false,PtEnd:ptLineEnd, Text:'1:1'};
|
|
63957
64076
|
this.LinePoint.push(line);
|
|
63958
64077
|
|
|
63959
|
-
for(var i
|
|
64078
|
+
for(var i=0;i<SPLIT_LINE_VALUE.length; ++i)
|
|
63960
64079
|
{
|
|
63961
64080
|
if (lineHeight>5)
|
|
63962
64081
|
{
|
|
63963
|
-
line={Start:ptLineStart, End:null, IsDottedLine:
|
|
64082
|
+
line={Start:ptLineStart, End:null, IsDottedLine:this.EnableDottedLine,PtEnd:new Point(), Text:SPLIT_LINE_Y_TITLE[i]};
|
|
63964
64083
|
line.PtEnd.Y=ptStart.Y-lineHeight*SPLIT_LINE_VALUE[i];
|
|
63965
64084
|
line.PtEnd.X=ptEnd.X;
|
|
63966
64085
|
var extendLine=this.CalculateExtendLinePoint(line.Start,line.PtEnd);
|
|
@@ -63968,7 +64087,45 @@ function ChartDrawPictureResistanceLine()
|
|
|
63968
64087
|
this.LinePoint.push(line);
|
|
63969
64088
|
}
|
|
63970
64089
|
}
|
|
63971
|
-
|
|
64090
|
+
}
|
|
64091
|
+
else if (quadrant==2)
|
|
64092
|
+
{
|
|
64093
|
+
var extendLine=this.CalculateExtendLinePoint(ptStart,ptEnd);
|
|
64094
|
+
var line={Start:ptLineStart, End:extendLine.Start, IsDottedLine:false,PtEnd:ptLineEnd, Text:'1:1'};
|
|
64095
|
+
this.LinePoint.push(line);
|
|
64096
|
+
|
|
64097
|
+
for(var i=0;i<SPLIT_LINE_VALUE.length; ++i)
|
|
64098
|
+
{
|
|
64099
|
+
if (lineHeight>5)
|
|
64100
|
+
{
|
|
64101
|
+
line={Start:ptLineStart, End:null, IsDottedLine:this.EnableDottedLine,PtEnd:new Point(), Text:SPLIT_LINE_Y_TITLE[i]};
|
|
64102
|
+
line.PtEnd.Y=ptStart.Y-lineHeight*SPLIT_LINE_VALUE[i];
|
|
64103
|
+
line.PtEnd.X=ptEnd.X;
|
|
64104
|
+
var extendLine=this.CalculateExtendLinePoint(line.Start,line.PtEnd);
|
|
64105
|
+
line.End=extendLine.Start;
|
|
64106
|
+
this.LinePoint.push(line);
|
|
64107
|
+
}
|
|
64108
|
+
|
|
64109
|
+
}
|
|
64110
|
+
}
|
|
64111
|
+
else if (quadrant==3)
|
|
64112
|
+
{
|
|
64113
|
+
var extendLine=this.CalculateExtendLinePoint(ptStart,ptEnd);
|
|
64114
|
+
var line={Start:ptLineStart, End:extendLine.End, IsDottedLine:false,PtEnd:ptLineEnd, Text:'1:1'};
|
|
64115
|
+
this.LinePoint.push(line);
|
|
64116
|
+
|
|
64117
|
+
for(var i=0;i<SPLIT_LINE_VALUE.length; ++i)
|
|
64118
|
+
{
|
|
64119
|
+
if (lineHeight>5)
|
|
64120
|
+
{
|
|
64121
|
+
line={Start:ptLineStart, End:null, IsDottedLine:this.EnableDottedLine,PtEnd:new Point(), Text:SPLIT_LINE_Y_TITLE[i]};
|
|
64122
|
+
line.PtEnd.Y=ptStart.Y+lineHeight*SPLIT_LINE_VALUE[i];
|
|
64123
|
+
line.PtEnd.X=ptEnd.X;
|
|
64124
|
+
var extendLine=this.CalculateExtendLinePoint(line.Start,line.PtEnd);
|
|
64125
|
+
line.End=extendLine.End;
|
|
64126
|
+
this.LinePoint.push(line);
|
|
64127
|
+
}
|
|
64128
|
+
}
|
|
63972
64129
|
}
|
|
63973
64130
|
else if (quadrant==4)
|
|
63974
64131
|
{
|
|
@@ -63976,11 +64133,11 @@ function ChartDrawPictureResistanceLine()
|
|
|
63976
64133
|
var line={Start:ptLineStart, End:extendLine.End, IsDottedLine:false,PtEnd:ptLineEnd, Text:'1:1'};
|
|
63977
64134
|
this.LinePoint.push(line);
|
|
63978
64135
|
|
|
63979
|
-
for(var i
|
|
64136
|
+
for(var i=0;i<SPLIT_LINE_VALUE.length; ++i)
|
|
63980
64137
|
{
|
|
63981
64138
|
if (lineHeight>5)
|
|
63982
64139
|
{
|
|
63983
|
-
line={Start:ptLineStart, End:null, IsDottedLine:
|
|
64140
|
+
line={Start:ptLineStart, End:null, IsDottedLine:this.EnableDottedLine,PtEnd:new Point(), Text:SPLIT_LINE_Y_TITLE[i]};
|
|
63984
64141
|
line.PtEnd.Y=ptStart.Y+lineHeight*SPLIT_LINE_VALUE[i];
|
|
63985
64142
|
line.PtEnd.X=ptEnd.X;
|
|
63986
64143
|
var extendLine=this.CalculateExtendLinePoint(line.Start,line.PtEnd);
|
|
@@ -63989,7 +64146,10 @@ function ChartDrawPictureResistanceLine()
|
|
|
63989
64146
|
}
|
|
63990
64147
|
}
|
|
63991
64148
|
}
|
|
63992
|
-
else
|
|
64149
|
+
else
|
|
64150
|
+
{
|
|
64151
|
+
return false;
|
|
64152
|
+
}
|
|
63993
64153
|
|
|
63994
64154
|
return true;
|
|
63995
64155
|
}
|
|
@@ -64016,6 +64176,23 @@ function ChartDrawPictureResistanceLine()
|
|
|
64016
64176
|
}
|
|
64017
64177
|
}
|
|
64018
64178
|
|
|
64179
|
+
//阻速线2 (高 3等份)通达信版本
|
|
64180
|
+
function ChartDrawPictureResistanceLineV2()
|
|
64181
|
+
{
|
|
64182
|
+
this.newMethod=ChartDrawPictureResistanceLine; //派生
|
|
64183
|
+
this.newMethod();
|
|
64184
|
+
delete this.newMethod;
|
|
64185
|
+
|
|
64186
|
+
this.ClassName='ChartDrawPictureResistanceLineV2';
|
|
64187
|
+
this.EnableDottedLine=true; //辅助线是否使用虚线
|
|
64188
|
+
this.LineDash=[4,8];
|
|
64189
|
+
this.EnableArea=false;
|
|
64190
|
+
this.IsShowTitle=false;
|
|
64191
|
+
}
|
|
64192
|
+
|
|
64193
|
+
|
|
64194
|
+
|
|
64195
|
+
|
|
64019
64196
|
//黄金分割线
|
|
64020
64197
|
function ChartDrawPictureGoldenSection()
|
|
64021
64198
|
{
|
|
@@ -138740,7 +138917,9 @@ function JSDialogDrawTool()
|
|
|
138740
138917
|
{ Title: '水平射线', ClassName: 'hqchart_drawtool icon-tubiao_shuipingshexian', Type:0, Data:{ ID:"水平射线" } },
|
|
138741
138918
|
{ Title: '涂鸦线段', ClassName: 'hqchart_drawtool icon-draw_line', Type:0, Data:{ ID:"涂鸦线段" } },
|
|
138742
138919
|
{ Title: '阻速线', ClassName: 'hqchart_drawtool icon-draw_resline', Type:0, Data:{ ID:"阻速线" } },
|
|
138920
|
+
{ Title: '通达信阻速线', ClassName: 'hqchart_drawtool icon-draw_resline', Type:0, Data:{ ID:"阻速线2" } },
|
|
138743
138921
|
{ Title: '江恩角度线', ClassName: 'hqchart_drawtool icon-jiangenjiaoduxian', Type:0, Data:{ ID:"江恩角度线" } },
|
|
138922
|
+
{ Title: '通达信江恩角度线', ClassName: 'hqchart_drawtool icon-jiangenjiaoduxian', Type:0, Data:{ ID:"江恩角度线2" } },
|
|
138744
138923
|
]
|
|
138745
138924
|
},
|
|
138746
138925
|
{
|
|
@@ -139823,7 +140002,7 @@ function HQChartScriptWorker()
|
|
|
139823
140002
|
|
|
139824
140003
|
|
|
139825
140004
|
|
|
139826
|
-
var HQCHART_VERSION="1.1.
|
|
140005
|
+
var HQCHART_VERSION="1.1.13572";
|
|
139827
140006
|
|
|
139828
140007
|
function PrintHQChartVersion()
|
|
139829
140008
|
{
|