hqchart 1.1.13009 → 1.1.13016
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 +64 -50
- package/package.json +1 -1
- package/src/jscommon/umychart.complier.js +8 -8
- package/src/jscommon/umychart.js +342 -0
- package/src/jscommon/umychart.uniapp.h5/umychart.uniapp.h5.js +351 -9
- package/src/jscommon/umychart.version.js +1 -1
- package/src/jscommon/umychart.vue/umychart.vue.js +351 -9
package/package.json
CHANGED
|
@@ -21059,7 +21059,7 @@ function ScriptIndex(name,script,args,option)
|
|
|
21059
21059
|
|
|
21060
21060
|
this.CreateMultiSVGIcon=function(hqChart,windowIndex,varItem,i)
|
|
21061
21061
|
{
|
|
21062
|
-
let chart=new
|
|
21062
|
+
let chart=new ChartMultiSVGIconV2();
|
|
21063
21063
|
chart.Canvas=hqChart.Canvas;
|
|
21064
21064
|
chart.Name=varItem.Name;
|
|
21065
21065
|
chart.ChartBorder=hqChart.Frame.SubFrame[windowIndex].Frame.ChartBorder;
|
|
@@ -21067,7 +21067,8 @@ function ScriptIndex(name,script,args,option)
|
|
|
21067
21067
|
|
|
21068
21068
|
chart.Data=hqChart.ChartPaint[0].Data;//绑定K线
|
|
21069
21069
|
chart.Family=varItem.Draw.DrawData.Family;
|
|
21070
|
-
chart.
|
|
21070
|
+
chart.AryIcon= varItem.Draw.DrawData.Icon;
|
|
21071
|
+
chart.BuildCacheData();
|
|
21071
21072
|
hqChart.ChartPaint.push(chart);
|
|
21072
21073
|
}
|
|
21073
21074
|
|
|
@@ -22723,7 +22724,7 @@ function OverlayScriptIndex(name,script,args,option)
|
|
|
22723
22724
|
{
|
|
22724
22725
|
var overlayIndex=this.OverlayIndex;
|
|
22725
22726
|
var frame=overlayIndex.Frame;
|
|
22726
|
-
let chart=new
|
|
22727
|
+
let chart=new ChartMultiSVGIconV2();
|
|
22727
22728
|
chart.Canvas=hqChart.Canvas;
|
|
22728
22729
|
chart.Name=varItem.Name;
|
|
22729
22730
|
chart.ChartBorder=frame.Frame.ChartBorder;
|
|
@@ -22732,7 +22733,8 @@ function OverlayScriptIndex(name,script,args,option)
|
|
|
22732
22733
|
|
|
22733
22734
|
chart.Data=hqChart.ChartPaint[0].Data;//绑定K线
|
|
22734
22735
|
chart.Family=varItem.Draw.DrawData.Family;
|
|
22735
|
-
chart.
|
|
22736
|
+
chart.AryIcon= varItem.Draw.DrawData.Icon;
|
|
22737
|
+
chart.BuildCacheData();
|
|
22736
22738
|
frame.ChartPaint.push(chart);
|
|
22737
22739
|
}
|
|
22738
22740
|
|
|
@@ -23822,8 +23824,7 @@ function APIScriptIndex(name,script,args,option, isOverlay)
|
|
|
23822
23824
|
drawItem.Text=draw.Text;
|
|
23823
23825
|
drawItem.Name=draw.Name;
|
|
23824
23826
|
drawItem.DrawType=draw.DrawType;
|
|
23825
|
-
drawItem.DrawData={ Icon:
|
|
23826
|
-
this.GetKLineData(drawItem.DrawData.Icon, hqChart);
|
|
23827
|
+
drawItem.DrawData={ Icon:draw.DrawData.Icon, Family:draw.DrawData.Family };
|
|
23827
23828
|
outVarItem.Draw=drawItem;
|
|
23828
23829
|
|
|
23829
23830
|
result.push(outVarItem);
|
|
@@ -24223,8 +24224,7 @@ function APIScriptIndex(name,script,args,option, isOverlay)
|
|
|
24223
24224
|
drawItem.Text=draw.Text;
|
|
24224
24225
|
drawItem.Name=draw.Name;
|
|
24225
24226
|
drawItem.DrawType=draw.DrawType;
|
|
24226
|
-
drawItem.DrawData={ Icon:
|
|
24227
|
-
this.GetKLineData(drawItem.DrawData.Icon, hqChart);
|
|
24227
|
+
drawItem.DrawData={ Icon:draw.DrawData.Icon, Family:draw.DrawData.Family };
|
|
24228
24228
|
outVarItem.Draw=drawItem;
|
|
24229
24229
|
|
|
24230
24230
|
result.push(outVarItem);
|
package/src/jscommon/umychart.js
CHANGED
|
@@ -36767,6 +36767,300 @@ function ChartMultiSVGIcon()
|
|
|
36767
36767
|
}
|
|
36768
36768
|
}
|
|
36769
36769
|
|
|
36770
|
+
|
|
36771
|
+
//图标集合(2.0) 支持横屏
|
|
36772
|
+
function ChartMultiSVGIconV2()
|
|
36773
|
+
{
|
|
36774
|
+
this.newMethod=IChartPainting; //派生
|
|
36775
|
+
this.newMethod();
|
|
36776
|
+
delete this.newMethod;
|
|
36777
|
+
|
|
36778
|
+
this.ClassName="ChartMultiSVGIconV2";
|
|
36779
|
+
this.AryIcon; //[ {Index:, Value:, Symbol:, Color:, Baseline:, Line:{ Color:, Dash:[虚线点], KData:"H/L", Offset:[5,10], Width:线粗细 } } ]
|
|
36780
|
+
this.IconSize=
|
|
36781
|
+
{
|
|
36782
|
+
Max: g_JSChartResource.DRAWICON.Icon.MaxSize, Min:g_JSChartResource.DRAWICON.Icon.MinSize , //图标的最大最小值
|
|
36783
|
+
Zoom:{ Type:g_JSChartResource.DRAWICON.Icon.Zoom.Type , Value:g_JSChartResource.DRAWICON.Icon.Zoom.Value } //放大倍数
|
|
36784
|
+
};
|
|
36785
|
+
this.Family;
|
|
36786
|
+
this.Color=g_JSChartResource.DefaultTextColor;
|
|
36787
|
+
this.IsHScreen=false;
|
|
36788
|
+
this.IconRect=[]; //0=序号,1=区域
|
|
36789
|
+
|
|
36790
|
+
this.MapCache=null; //key=date/date-time value={ Data:[] }
|
|
36791
|
+
|
|
36792
|
+
this.BuildKey=function(item)
|
|
36793
|
+
{
|
|
36794
|
+
if (IFrameSplitOperator.IsNumber(item.Time)) return `${item.Date}-${item.Time}`;
|
|
36795
|
+
else return item.Date;
|
|
36796
|
+
}
|
|
36797
|
+
|
|
36798
|
+
this.BuildCacheData=function()
|
|
36799
|
+
{
|
|
36800
|
+
var mapData=new Map();
|
|
36801
|
+
this.MapCache=mapData;
|
|
36802
|
+
if (!IFrameSplitOperator.IsNonEmptyArray(this.AryIcon)) return;
|
|
36803
|
+
|
|
36804
|
+
for(var i=0;i<this.AryIcon.length;++i)
|
|
36805
|
+
{
|
|
36806
|
+
var item=this.AryIcon[i];
|
|
36807
|
+
var key=this.BuildKey(item);
|
|
36808
|
+
if (mapData.has(key))
|
|
36809
|
+
{
|
|
36810
|
+
var mapItem=mapData.get(key);
|
|
36811
|
+
mapItem.Data.push(item);
|
|
36812
|
+
}
|
|
36813
|
+
else
|
|
36814
|
+
{
|
|
36815
|
+
mapData.set(key,{ Data:[item] });
|
|
36816
|
+
}
|
|
36817
|
+
}
|
|
36818
|
+
}
|
|
36819
|
+
|
|
36820
|
+
this.Draw=function()
|
|
36821
|
+
{
|
|
36822
|
+
this.IconRect=[];
|
|
36823
|
+
if (!this.IsShow || this.ChartFrame.IsMinSize || !this.IsVisible) return;
|
|
36824
|
+
if (this.IsShowIndexTitleOnly()) return;
|
|
36825
|
+
if (this.IsHideScriptIndex()) return;
|
|
36826
|
+
if (!this.Data || !IFrameSplitOperator.IsNonEmptyArray(this.Data.Data)) return; //k线数据
|
|
36827
|
+
if (!this.Family) return;
|
|
36828
|
+
if (!this.MapCache || this.MapCache.size<=0) return;
|
|
36829
|
+
|
|
36830
|
+
this.IsHScreen=(this.ChartFrame.IsHScreen===true);
|
|
36831
|
+
var xPointCount=this.ChartFrame.XPointCount;
|
|
36832
|
+
var dataWidth=this.ChartFrame.DataWidth;
|
|
36833
|
+
var distanceWidth=this.ChartFrame.DistanceWidth;
|
|
36834
|
+
var isMinute=this.IsMinuteFrame();
|
|
36835
|
+
|
|
36836
|
+
var border=this.GetBorder();
|
|
36837
|
+
if (this.IsHScreen)
|
|
36838
|
+
{
|
|
36839
|
+
var xOffset=border.TopEx+distanceWidth/2.0+g_JSChartResource.FrameLeftMargin;
|
|
36840
|
+
var chartright=border.BottomEx;
|
|
36841
|
+
var chartLeft=border.TopEx;
|
|
36842
|
+
}
|
|
36843
|
+
else
|
|
36844
|
+
{
|
|
36845
|
+
var xOffset=border.LeftEx+distanceWidth/2.0+g_JSChartResource.FrameLeftMargin;
|
|
36846
|
+
var chartright=border.RightEx;
|
|
36847
|
+
var chartLeft=border.LeftEx;
|
|
36848
|
+
}
|
|
36849
|
+
|
|
36850
|
+
var fontSize=this.GetDynamicIconSize(dataWidth,distanceWidth,this.IconSize.Max,this.IconSize.Min,this.IconSize.Zoom);
|
|
36851
|
+
this.Canvas.font=fontSize+'px '+this.Family;
|
|
36852
|
+
|
|
36853
|
+
var drawInfo={ Left:chartLeft, Right:chartright, FontSize:fontSize, DataWidth:dataWidth, DistanceWidth:distanceWidth };
|
|
36854
|
+
|
|
36855
|
+
for(var i=this.Data.DataOffset,j=0;i<this.Data.Data.length && j<xPointCount;++i,++j,xOffset+=(dataWidth+distanceWidth))
|
|
36856
|
+
{
|
|
36857
|
+
var kItem=this.Data.Data[i];
|
|
36858
|
+
var key=this.BuildKey(kItem);
|
|
36859
|
+
if (!this.MapCache.has(key)) continue;
|
|
36860
|
+
var mapItem=this.MapCache.get(key);
|
|
36861
|
+
|
|
36862
|
+
if (isMinute)
|
|
36863
|
+
{
|
|
36864
|
+
var x=this.ChartFrame.GetXFromIndex(j);
|
|
36865
|
+
}
|
|
36866
|
+
else
|
|
36867
|
+
{
|
|
36868
|
+
var left=xOffset;
|
|
36869
|
+
var right=xOffset+dataWidth;
|
|
36870
|
+
if (right>chartright) break;
|
|
36871
|
+
var x=left+(right-left)/2;
|
|
36872
|
+
}
|
|
36873
|
+
|
|
36874
|
+
this.DrawItem(mapItem, kItem, x, drawInfo);
|
|
36875
|
+
}
|
|
36876
|
+
}
|
|
36877
|
+
|
|
36878
|
+
this.GetKValue=function(kItem, valueName)
|
|
36879
|
+
{
|
|
36880
|
+
switch(valueName)
|
|
36881
|
+
{
|
|
36882
|
+
case "HIGH":
|
|
36883
|
+
case "H":
|
|
36884
|
+
return kItem.High;
|
|
36885
|
+
case "L":
|
|
36886
|
+
case "LOW":
|
|
36887
|
+
return kItem.Low;
|
|
36888
|
+
case "C":
|
|
36889
|
+
case "CLOSE":
|
|
36890
|
+
return kItem.Close;
|
|
36891
|
+
case "O":
|
|
36892
|
+
case "OPEN":
|
|
36893
|
+
return KItem.Open;
|
|
36894
|
+
default:
|
|
36895
|
+
return null;
|
|
36896
|
+
}
|
|
36897
|
+
}
|
|
36898
|
+
|
|
36899
|
+
this.DrawItem=function(groupItem, kItem, x, drawInfo)
|
|
36900
|
+
{
|
|
36901
|
+
if (!IFrameSplitOperator.IsNonEmptyArray(groupItem.Data)) return;
|
|
36902
|
+
|
|
36903
|
+
var fontSize=drawInfo.FontSize;
|
|
36904
|
+
var left=drawInfo.Left, right=drawInfo.Right;
|
|
36905
|
+
var dataWidth=drawInfo.DataWidth;
|
|
36906
|
+
//var distanceWidth=drawInfo.DistanceWidth;
|
|
36907
|
+
|
|
36908
|
+
for(var i=0;i<groupItem.Data.length;++i)
|
|
36909
|
+
{
|
|
36910
|
+
var item=groupItem.Data[i];
|
|
36911
|
+
var value=item.Value;
|
|
36912
|
+
if (IFrameSplitOperator.IsString(item.Value)) value=this.GetKValue(kItem,item.Value);
|
|
36913
|
+
if (!IFrameSplitOperator.IsNumber(value)) continue;
|
|
36914
|
+
|
|
36915
|
+
var y=this.ChartFrame.GetYFromData(item.Value,false);
|
|
36916
|
+
|
|
36917
|
+
if (item.Color) this.Canvas.fillStyle = item.Color;
|
|
36918
|
+
else this.Canvas.fillStyle = this.Color;
|
|
36919
|
+
|
|
36920
|
+
var textWidth=this.Canvas.measureText(item.Symbol).width;
|
|
36921
|
+
this.Canvas.textAlign='center';
|
|
36922
|
+
var rtIcon=new Rect(x-fontSize/2,y-fontSize/2,fontSize,fontSize);
|
|
36923
|
+
if (x+textWidth/2>=right)
|
|
36924
|
+
{
|
|
36925
|
+
this.Canvas.textAlign='right';
|
|
36926
|
+
x+=dataWidth/2;
|
|
36927
|
+
rtIcon.X=x-fontSize;
|
|
36928
|
+
}
|
|
36929
|
+
else if (x-textWidth/2<left)
|
|
36930
|
+
{
|
|
36931
|
+
this.Canvas.textAlign = 'left';
|
|
36932
|
+
x-=dataWidth/2;
|
|
36933
|
+
rtIcon.X=x;
|
|
36934
|
+
}
|
|
36935
|
+
|
|
36936
|
+
if (item.Baseline==1)
|
|
36937
|
+
{
|
|
36938
|
+
this.Canvas.textBaseline='top';
|
|
36939
|
+
rtIcon.Y=y;
|
|
36940
|
+
}
|
|
36941
|
+
else if (item.Baseline==2)
|
|
36942
|
+
{
|
|
36943
|
+
this.Canvas.textBaseline='bottom';
|
|
36944
|
+
rtIcon.Y=y-fontSize;
|
|
36945
|
+
}
|
|
36946
|
+
else
|
|
36947
|
+
{
|
|
36948
|
+
this.Canvas.textBaseline = 'middle';
|
|
36949
|
+
rtIcon.Y=y-fontSize/2;
|
|
36950
|
+
}
|
|
36951
|
+
|
|
36952
|
+
if (this.IsHScreen)
|
|
36953
|
+
{
|
|
36954
|
+
this.Canvas.save();
|
|
36955
|
+
this.Canvas.translate(y, x);
|
|
36956
|
+
this.Canvas.rotate(90 * Math.PI / 180);
|
|
36957
|
+
this.Canvas.fillText(item.Symbol,0,0);
|
|
36958
|
+
this.Canvas.restore();
|
|
36959
|
+
}
|
|
36960
|
+
else
|
|
36961
|
+
{
|
|
36962
|
+
if (IFrameSplitOperator.IsNumber(item.YMove)) y+=item.YMove;
|
|
36963
|
+
this.Canvas.fillText(item.Symbol, x, y);
|
|
36964
|
+
if (item.Text) this.IconRect.push({ Rect:rtIcon , Item:item, KItem:kItem });
|
|
36965
|
+
}
|
|
36966
|
+
|
|
36967
|
+
if (item.Line)
|
|
36968
|
+
{
|
|
36969
|
+
var price=item.Line.KData=="H"? kItem.High:kItem.Low;
|
|
36970
|
+
var yPrice=this.ChartFrame.GetYFromData(price, false);
|
|
36971
|
+
var yText=y;
|
|
36972
|
+
if (Array.isArray(item.Line.Offset) && item.Line.Offset.length==2)
|
|
36973
|
+
{
|
|
36974
|
+
if (yText>yPrice) //文字在下方
|
|
36975
|
+
{
|
|
36976
|
+
yText-=item.Line.Offset[1];
|
|
36977
|
+
yPrice+=item.Line.Offset[0]
|
|
36978
|
+
}
|
|
36979
|
+
else if (yText<yPrice)
|
|
36980
|
+
{
|
|
36981
|
+
yText+=item.Line.Offset[1];
|
|
36982
|
+
yPrice-=item.Line.Offset[0]
|
|
36983
|
+
}
|
|
36984
|
+
}
|
|
36985
|
+
this.Canvas.save();
|
|
36986
|
+
if (item.Line.Dash) this.Canvas.setLineDash(item.Line.Dash); //虚线
|
|
36987
|
+
if (item.Line.Width>0) this.Canvas.lineWidth=item.Line.Width; //线宽
|
|
36988
|
+
this.Canvas.strokeStyle = item.Line.Color;
|
|
36989
|
+
this.Canvas.beginPath();
|
|
36990
|
+
if (this.IsHScreen)
|
|
36991
|
+
{
|
|
36992
|
+
this.Canvas.moveTo(yText, ToFixedPoint(x));
|
|
36993
|
+
this.Canvas.lineTo(yPrice,ToFixedPoint(x));
|
|
36994
|
+
}
|
|
36995
|
+
else
|
|
36996
|
+
{
|
|
36997
|
+
this.Canvas.moveTo(ToFixedPoint(x),yText);
|
|
36998
|
+
this.Canvas.lineTo(ToFixedPoint(x),yPrice);
|
|
36999
|
+
}
|
|
37000
|
+
|
|
37001
|
+
this.Canvas.stroke();
|
|
37002
|
+
this.Canvas.restore();
|
|
37003
|
+
}
|
|
37004
|
+
}
|
|
37005
|
+
}
|
|
37006
|
+
|
|
37007
|
+
this.GetTooltipData=function(x,y,tooltip)
|
|
37008
|
+
{
|
|
37009
|
+
if (!IFrameSplitOperator.IsNonEmptyArray(this.IconRect)) return false;
|
|
37010
|
+
for(var i=0; i<this.IconRect.length; ++i)
|
|
37011
|
+
{
|
|
37012
|
+
var item=this.IconRect[i];
|
|
37013
|
+
if (!item.Rect) continue;
|
|
37014
|
+
var rect=item.Rect;
|
|
37015
|
+
this.Canvas.beginPath();
|
|
37016
|
+
this.Canvas.rect(rect.X,rect.Y,rect.Width,rect.Height);
|
|
37017
|
+
if (this.Canvas.isPointInPath(x,y))
|
|
37018
|
+
{
|
|
37019
|
+
JSConsole.Chart.Log('[ChartMultiSVGIconV2::GetTooltipData] icon ', item);
|
|
37020
|
+
tooltip.Data=item;
|
|
37021
|
+
tooltip.ChartPaint=this;
|
|
37022
|
+
tooltip.Type=4; //指标
|
|
37023
|
+
return true;
|
|
37024
|
+
}
|
|
37025
|
+
}
|
|
37026
|
+
|
|
37027
|
+
return false;
|
|
37028
|
+
}
|
|
37029
|
+
|
|
37030
|
+
this.GetMaxMin=function()
|
|
37031
|
+
{
|
|
37032
|
+
this.IsHScreen=(this.ChartFrame.IsHScreen===true);
|
|
37033
|
+
var range={ Min:null, Max:null };
|
|
37034
|
+
if(!this.Data || !IFrameSplitOperator.IsNonEmptyArray(this.Data.Data)) return range;
|
|
37035
|
+
if (!this.MapCache || this.MapCache.size<=0) return;
|
|
37036
|
+
var xPointCount=this.ChartFrame.XPointCount;
|
|
37037
|
+
|
|
37038
|
+
for(var i=this.Data.DataOffset,j=0, k=0;i<this.Data.Data.length && j<xPointCount;++i,++j)
|
|
37039
|
+
{
|
|
37040
|
+
var kItem=this.Data.Data[i];
|
|
37041
|
+
var key=this.BuildKey(kItem);
|
|
37042
|
+
if (!this.MapCache.has(key)) continue;
|
|
37043
|
+
var mapItem=this.MapCache.get(key);
|
|
37044
|
+
if (!IFrameSplitOperator.IsNonEmptyArray(mapItem.Data)) continue;
|
|
37045
|
+
|
|
37046
|
+
for(k=0;k<mapItem.Data.length;++k)
|
|
37047
|
+
{
|
|
37048
|
+
var item=mapItem.Data[k];
|
|
37049
|
+
var value=item.Value;
|
|
37050
|
+
if (IFrameSplitOperator.IsString(item.Value)) value=this.GetKValue(kItem,item.Value);
|
|
37051
|
+
if (!IFrameSplitOperator.IsNumber(value)) continue;
|
|
37052
|
+
|
|
37053
|
+
if (range.Max==null) range.Max=value;
|
|
37054
|
+
else if (range.Max<value) range.Max=value;
|
|
37055
|
+
if (range.Min==null) range.Min=value;
|
|
37056
|
+
else if (range.Min>value) range.Min=value;
|
|
37057
|
+
}
|
|
37058
|
+
}
|
|
37059
|
+
|
|
37060
|
+
return range;
|
|
37061
|
+
}
|
|
37062
|
+
}
|
|
37063
|
+
|
|
36770
37064
|
// 多dom节点
|
|
36771
37065
|
function ChartMultiHtmlDom()
|
|
36772
37066
|
{
|
|
@@ -52109,6 +52403,7 @@ function IChartDrawPicture()
|
|
|
52109
52403
|
|
|
52110
52404
|
this.IsDrawFirst=false;
|
|
52111
52405
|
this.IsShowYCoordinate=false; //是否在Y轴显示点的刻度
|
|
52406
|
+
this.IsShow=true; //是否显示
|
|
52112
52407
|
|
|
52113
52408
|
this.LineColor=g_JSChartResource.DrawPicture.LineColor[0]; //线段颜色
|
|
52114
52409
|
//this.LineColor="#1e90ff"; //线段颜色,input type="color" 不支持rgb和rgba 的格式
|
|
@@ -53178,6 +53473,8 @@ function IChartDrawPicture()
|
|
|
53178
53473
|
this.GetXYCoordinate_default=function()
|
|
53179
53474
|
{
|
|
53180
53475
|
if (this.IsFrameMinSize()) return null;
|
|
53476
|
+
if (!this.IsShow) return null;
|
|
53477
|
+
|
|
53181
53478
|
var drawPoint=this.CalculateDrawPoint( {IsCheckX:true, IsCheckY:true} );
|
|
53182
53479
|
|
|
53183
53480
|
return this.PointRange(drawPoint);
|
|
@@ -53633,6 +53930,7 @@ function ChartDrawPictureLine()
|
|
|
53633
53930
|
{
|
|
53634
53931
|
this.LinePoint=[];
|
|
53635
53932
|
if (this.IsFrameMinSize()) return;
|
|
53933
|
+
if (!this.IsShow) return;
|
|
53636
53934
|
|
|
53637
53935
|
var drawPoint=this.CalculateDrawPoint( {IsCheckX:true, IsCheckY:true} );
|
|
53638
53936
|
if (!drawPoint) return;
|
|
@@ -53670,6 +53968,7 @@ function ChartDrawPictureLine()
|
|
|
53670
53968
|
this.GetYCoordinatePoint=function()
|
|
53671
53969
|
{
|
|
53672
53970
|
if (this.IsFrameMinSize()) return null;
|
|
53971
|
+
if (!this.IsShow) return null;
|
|
53673
53972
|
|
|
53674
53973
|
if (this.Status<2) return null;
|
|
53675
53974
|
if(!this.Point.length || !this.Frame) return null;
|
|
@@ -53832,6 +54131,7 @@ function ChartDrawGraffitiLine()
|
|
|
53832
54131
|
{
|
|
53833
54132
|
this.LinePoint=[];
|
|
53834
54133
|
if (this.IsFrameMinSize()) return;
|
|
54134
|
+
if (!this.IsShow) return;
|
|
53835
54135
|
|
|
53836
54136
|
var drawPoint=this.CalculateDrawPoint( {IsCheckX:true, IsCheckY:true} );
|
|
53837
54137
|
if (!drawPoint) return;
|
|
@@ -53887,6 +54187,7 @@ function ChartDrawArrowLine()
|
|
|
53887
54187
|
{
|
|
53888
54188
|
this.LinePoint=[];
|
|
53889
54189
|
if (this.IsFrameMinSize()) return;
|
|
54190
|
+
if (!this.IsShow) return;
|
|
53890
54191
|
|
|
53891
54192
|
var drawPoint=this.CalculateDrawPoint( {IsCheckX:true, IsCheckY:true} );
|
|
53892
54193
|
if (!drawPoint) return;
|
|
@@ -54005,6 +54306,7 @@ function ChartDrawPictureHaflLine()
|
|
|
54005
54306
|
this.LinePoint=[];
|
|
54006
54307
|
this.FullLine=null;
|
|
54007
54308
|
if (this.IsFrameMinSize()) return;
|
|
54309
|
+
if (!this.IsShow) return;
|
|
54008
54310
|
|
|
54009
54311
|
var drawPoint=this.CalculateDrawPoint({IsCheckX:false, IsCheckY:false});
|
|
54010
54312
|
if (!drawPoint || drawPoint.length!=2) return;
|
|
@@ -54083,6 +54385,7 @@ function ChartDrawPictureHorizontalLine()
|
|
|
54083
54385
|
{
|
|
54084
54386
|
this.LinePoint=[];
|
|
54085
54387
|
if (this.IsFrameMinSize()) return;
|
|
54388
|
+
if (!this.IsShow) return;
|
|
54086
54389
|
|
|
54087
54390
|
var drawPoint=this.CalculateDrawPoint();
|
|
54088
54391
|
if (!drawPoint || drawPoint.length!=1) return;
|
|
@@ -54339,6 +54642,7 @@ function ChartDrawHLine()
|
|
|
54339
54642
|
this.ButtonBGWidth=0;
|
|
54340
54643
|
|
|
54341
54644
|
if (this.IsFrameMinSize()) return;
|
|
54645
|
+
if (!this.IsShow) return;
|
|
54342
54646
|
|
|
54343
54647
|
var drawPoint=this.CalculateDrawPoint();
|
|
54344
54648
|
if (!drawPoint || drawPoint.length!=1) return;
|
|
@@ -54736,6 +55040,7 @@ function ChartDrawPictureTrendLine()
|
|
|
54736
55040
|
{
|
|
54737
55041
|
this.LinePoint=[];
|
|
54738
55042
|
if (this.IsFrameMinSize()) return;
|
|
55043
|
+
if (!this.IsShow) return;
|
|
54739
55044
|
|
|
54740
55045
|
var drawPoint=this.CalculateDrawPoint({IsCheckX:false, IsCheckY:false});
|
|
54741
55046
|
if (!drawPoint || drawPoint.length!=2) return;
|
|
@@ -54778,6 +55083,7 @@ function ChartDrawPictureRect()
|
|
|
54778
55083
|
this.Draw=function()
|
|
54779
55084
|
{
|
|
54780
55085
|
if (this.IsFrameMinSize()) return;
|
|
55086
|
+
if (!this.IsShow) return;
|
|
54781
55087
|
|
|
54782
55088
|
var drawPoint=this.CalculateDrawPoint({IsCheckX:true, IsCheckY:true});
|
|
54783
55089
|
if (!drawPoint || drawPoint.length!=2) return;
|
|
@@ -54889,6 +55195,7 @@ function ChartDrawPictureArc()
|
|
|
54889
55195
|
this.Draw=function()
|
|
54890
55196
|
{
|
|
54891
55197
|
if (this.IsFrameMinSize()) return;
|
|
55198
|
+
if (!this.IsShow) return;
|
|
54892
55199
|
|
|
54893
55200
|
var drawPoint=this.CalculateDrawPoint();
|
|
54894
55201
|
if (!drawPoint || drawPoint.length!=2) return;
|
|
@@ -55120,6 +55427,7 @@ function ChartDrawPictureWaveMW()
|
|
|
55120
55427
|
this.LinePoint=[];
|
|
55121
55428
|
if (!this.Frame) return;
|
|
55122
55429
|
if (this.IsFrameMinSize()) return;
|
|
55430
|
+
if (!this.IsShow) return;
|
|
55123
55431
|
|
|
55124
55432
|
this.IsHScreen=this.Frame.IsHScreen;
|
|
55125
55433
|
var drawPoint=this.CalculateDrawPoint({IsCheckX:true, IsCheckY:true});
|
|
@@ -55418,6 +55726,7 @@ function ChartDrawPictureParallelLines()
|
|
|
55418
55726
|
this.LinePoint=[];
|
|
55419
55727
|
this.CenterLine.Line=null;
|
|
55420
55728
|
if (this.IsFrameMinSize()) return;
|
|
55729
|
+
if (!this.IsShow) return;
|
|
55421
55730
|
|
|
55422
55731
|
var drawPoint=this.CalculateDrawPoint({IsCheckX:false, IsCheckY:false}); //不检测x,y
|
|
55423
55732
|
if (!drawPoint) return;
|
|
@@ -55531,6 +55840,7 @@ function ChartDrawFlatTop()
|
|
|
55531
55840
|
{
|
|
55532
55841
|
this.LinePoint=[];
|
|
55533
55842
|
if (this.IsFrameMinSize()) return;
|
|
55843
|
+
if (!this.IsShow) return;
|
|
55534
55844
|
|
|
55535
55845
|
var drawPoint=this.CalculateDrawPoint({IsCheckX:true, IsCheckY:true});
|
|
55536
55846
|
if (!drawPoint) return;
|
|
@@ -55883,6 +56193,7 @@ function ChartDrawPictureParallelChannel()
|
|
|
55883
56193
|
{
|
|
55884
56194
|
this.LinePoint=[];
|
|
55885
56195
|
if (this.IsFrameMinSize()) return;
|
|
56196
|
+
if (!this.IsShow) return;
|
|
55886
56197
|
|
|
55887
56198
|
var drawPoint=this.CalculateDrawPoint();
|
|
55888
56199
|
if (!drawPoint) return;
|
|
@@ -56033,6 +56344,7 @@ function ChartDrawPictureText()
|
|
|
56033
56344
|
{
|
|
56034
56345
|
this.TextRect=null;
|
|
56035
56346
|
if (this.IsFrameMinSize()) return;
|
|
56347
|
+
if (!this.IsShow) return;
|
|
56036
56348
|
|
|
56037
56349
|
var drawPoint=this.CalculateDrawPoint({IsCheckX:true, IsCheckY:true});
|
|
56038
56350
|
if (!drawPoint || drawPoint.length!=1) return;
|
|
@@ -56136,6 +56448,7 @@ function ChartDrawPictureIconFont()
|
|
|
56136
56448
|
{
|
|
56137
56449
|
this.TextRect=null;
|
|
56138
56450
|
if (this.IsFrameMinSize()) return;
|
|
56451
|
+
if (!this.IsShow) return;
|
|
56139
56452
|
|
|
56140
56453
|
var drawPoint=this.CalculateDrawPoint({IsCheckX:true, IsCheckY:true});
|
|
56141
56454
|
if (!drawPoint || drawPoint.length!=1) return;
|
|
@@ -56234,6 +56547,7 @@ function ChartDrawPictureGannFan()
|
|
|
56234
56547
|
{
|
|
56235
56548
|
this.LinePoint=[];
|
|
56236
56549
|
if (this.IsFrameMinSize()) return;
|
|
56550
|
+
if (!this.IsShow) return;
|
|
56237
56551
|
|
|
56238
56552
|
var drawPoint=this.CalculateDrawPoint({IsCheckX:true, IsCheckY:true});
|
|
56239
56553
|
if (!drawPoint) return;
|
|
@@ -56545,6 +56859,7 @@ function ChartDrawPictureGoldenSection()
|
|
|
56545
56859
|
{
|
|
56546
56860
|
this.LinePoint=[];
|
|
56547
56861
|
if (this.IsFrameMinSize()) return;
|
|
56862
|
+
if (!this.IsShow) return;
|
|
56548
56863
|
|
|
56549
56864
|
var drawPoint=this.CalculateDrawPoint();
|
|
56550
56865
|
if (!drawPoint) return;
|
|
@@ -56722,6 +57037,7 @@ function ChartDrawPictureTriangle()
|
|
|
56722
57037
|
{
|
|
56723
57038
|
this.LinePoint=[];
|
|
56724
57039
|
if (this.IsFrameMinSize()) return;
|
|
57040
|
+
if (!this.IsShow) return;
|
|
56725
57041
|
|
|
56726
57042
|
var drawPoint=this.CalculateDrawPoint({IsCheckX:true, IsCheckY:true});
|
|
56727
57043
|
if (!drawPoint) return;
|
|
@@ -56841,6 +57157,7 @@ function ChartDrawPictureSymmetryAngle()
|
|
|
56841
57157
|
{
|
|
56842
57158
|
this.LinePoint=[];
|
|
56843
57159
|
if (this.IsFrameMinSize()) return;
|
|
57160
|
+
if (!this.IsShow) return;
|
|
56844
57161
|
|
|
56845
57162
|
var drawPoint=this.CalculateDrawPoint({IsCheckX:true, IsCheckY:true});
|
|
56846
57163
|
if (!drawPoint) return;
|
|
@@ -56935,6 +57252,7 @@ function ChartDrawPictureCircle()
|
|
|
56935
57252
|
{
|
|
56936
57253
|
this.LinePoint=[];
|
|
56937
57254
|
if (this.IsFrameMinSize()) return;
|
|
57255
|
+
if (!this.IsShow) return;
|
|
56938
57256
|
|
|
56939
57257
|
var drawPoint=this.CalculateDrawPoint({IsCheckX:true, IsCheckY:true});
|
|
56940
57258
|
if (!drawPoint || drawPoint.length!=2) return;
|
|
@@ -56998,6 +57316,7 @@ function ChartDrawPictureQuadrangle()
|
|
|
56998
57316
|
{
|
|
56999
57317
|
this.LinePoint=[];
|
|
57000
57318
|
if (this.IsFrameMinSize()) return;
|
|
57319
|
+
if (!this.IsShow) return;
|
|
57001
57320
|
|
|
57002
57321
|
var drawPoint=this.CalculateDrawPoint({IsCheckX:true, IsCheckY:true});
|
|
57003
57322
|
if (!drawPoint) return;
|
|
@@ -57094,6 +57413,7 @@ function ChartDrawPictureFibonacci()
|
|
|
57094
57413
|
{
|
|
57095
57414
|
this.LinePoint=[];
|
|
57096
57415
|
if (this.IsFrameMinSize()) return;
|
|
57416
|
+
if (!this.IsShow) return;
|
|
57097
57417
|
|
|
57098
57418
|
var drawPoint=this.CalculateDrawPoint();
|
|
57099
57419
|
if (!drawPoint) return;
|
|
@@ -57296,6 +57616,7 @@ function ChartDrawLinearRegression(option)
|
|
|
57296
57616
|
{
|
|
57297
57617
|
this.LinePoint=[];
|
|
57298
57618
|
if (this.IsFrameMinSize()) return;
|
|
57619
|
+
if (!this.IsShow) return;
|
|
57299
57620
|
|
|
57300
57621
|
var drawPoint=this.CalculateDrawPoint( { IsCheckX:true, IsCheckY:true} );
|
|
57301
57622
|
if (!drawPoint || drawPoint.length!=2)
|
|
@@ -57690,6 +58011,7 @@ function ChartDrawPriceLine()
|
|
|
57690
58011
|
{
|
|
57691
58012
|
this.LinePoint=[];
|
|
57692
58013
|
if (this.IsFrameMinSize()) return;
|
|
58014
|
+
if (!this.IsShow) return;
|
|
57693
58015
|
|
|
57694
58016
|
var drawPoint=this.CalculateDrawPoint( { IsCheckX:false, IsCheckY:true } );
|
|
57695
58017
|
if (!drawPoint) return;
|
|
@@ -57790,6 +58112,7 @@ function ChartDrawPriceLineV2()
|
|
|
57790
58112
|
{
|
|
57791
58113
|
this.LinePoint=[];
|
|
57792
58114
|
if (this.IsFrameMinSize()) return;
|
|
58115
|
+
if (!this.IsShow) return;
|
|
57793
58116
|
|
|
57794
58117
|
var drawPoint=this.CalculateDrawPoint( { IsCheckX:false, IsCheckY:true } );
|
|
57795
58118
|
if (!drawPoint) return;
|
|
@@ -57960,6 +58283,7 @@ function ChartDrawVerticalLine()
|
|
|
57960
58283
|
{
|
|
57961
58284
|
this.LinePoint=[];
|
|
57962
58285
|
if (this.IsFrameMinSize()) return;
|
|
58286
|
+
if (!this.IsShow) return;
|
|
57963
58287
|
|
|
57964
58288
|
if (!this.Frame || !this.Frame.Data) return;
|
|
57965
58289
|
var data=this.Frame.Data;
|
|
@@ -58038,6 +58362,7 @@ function ChartDrawWaveRuler()
|
|
|
58038
58362
|
{
|
|
58039
58363
|
this.LinePoint=[];
|
|
58040
58364
|
if (this.IsFrameMinSize()) return;
|
|
58365
|
+
if (!this.IsShow) return;
|
|
58041
58366
|
|
|
58042
58367
|
var drawPoint=this.CalculateDrawPoint({IsCheckX:true, IsCheckY:true});
|
|
58043
58368
|
if (!drawPoint) return;
|
|
@@ -58200,6 +58525,7 @@ function ChartDrawWaveRuler2Point()
|
|
|
58200
58525
|
{
|
|
58201
58526
|
this.LinePoint=[];
|
|
58202
58527
|
if (this.IsFrameMinSize()) return;
|
|
58528
|
+
if (!this.IsShow) return;
|
|
58203
58529
|
|
|
58204
58530
|
var drawPoint=this.CalculateDrawPoint({IsCheckX:true, IsCheckY:true});
|
|
58205
58531
|
if (!drawPoint) return;
|
|
@@ -58332,6 +58658,7 @@ function ChartDrawBox()
|
|
|
58332
58658
|
{
|
|
58333
58659
|
this.LinePoint=[];
|
|
58334
58660
|
if (this.IsFrameMinSize()) return;
|
|
58661
|
+
if (!this.IsShow) return;
|
|
58335
58662
|
|
|
58336
58663
|
var drawPoint=this.CalculateDrawPoint( {IsCheckX:true, IsCheckY:true} );
|
|
58337
58664
|
if (!drawPoint) return;
|
|
@@ -58562,6 +58889,7 @@ function ChartDrawTwoPointDemo()
|
|
|
58562
58889
|
this.LinePoint=[];
|
|
58563
58890
|
this.PointInfo=[];
|
|
58564
58891
|
if (this.IsFrameMinSize()) return;
|
|
58892
|
+
if (!this.IsShow) return;
|
|
58565
58893
|
|
|
58566
58894
|
var drawPoint=this.CalculateDrawPoint({IsCheckX:true, IsCheckY:true});
|
|
58567
58895
|
if (!drawPoint) return;
|
|
@@ -58799,6 +59127,7 @@ function ChartDrawHLineSegment()
|
|
|
58799
59127
|
this.IsHScreen=this.Frame.IsHScreen;
|
|
58800
59128
|
this.LinePoint=[];
|
|
58801
59129
|
if (this.IsFrameMinSize()) return;
|
|
59130
|
+
if (!this.IsShow) return;
|
|
58802
59131
|
|
|
58803
59132
|
var drawPoint=this.CalculateDrawPoint( { IsCheckX:false, IsCheckY:true} );
|
|
58804
59133
|
if (!drawPoint || drawPoint.length!=2) return;
|
|
@@ -59454,6 +59783,7 @@ function ChartDrawNote()
|
|
|
59454
59783
|
this.TextRect=null;
|
|
59455
59784
|
this.PtCenter=null;
|
|
59456
59785
|
if (this.IsFrameMinSize()) return;
|
|
59786
|
+
if (!this.IsShow) return;
|
|
59457
59787
|
|
|
59458
59788
|
var drawPoint=this.CalculateDrawPoint({IsCheckX:true, IsCheckY:true});
|
|
59459
59789
|
if (!drawPoint || drawPoint.length!=1) return;
|
|
@@ -59837,6 +60167,7 @@ function ChartDrawAnchoredText()
|
|
|
59837
60167
|
if (this.Status<2) return;
|
|
59838
60168
|
if(this.Point.length!=1 || !this.Frame) return;
|
|
59839
60169
|
if (this.IsFrameMinSize()) return;
|
|
60170
|
+
if (!this.IsShow) return;
|
|
59840
60171
|
|
|
59841
60172
|
var drawPoint=this.CalculateDrawPoint();
|
|
59842
60173
|
if (!drawPoint || drawPoint.length!=1) return;
|
|
@@ -60186,6 +60517,7 @@ function ChartDrawPriceLabel()
|
|
|
60186
60517
|
{
|
|
60187
60518
|
this.TextRect=null;
|
|
60188
60519
|
if (this.IsFrameMinSize()) return;
|
|
60520
|
+
if (!this.IsShow) return;
|
|
60189
60521
|
|
|
60190
60522
|
var drawPoint=this.CalculateDrawPoint({IsCheckX:true, IsCheckY:true});
|
|
60191
60523
|
if (!drawPoint || drawPoint.length!=1) return;
|
|
@@ -60425,6 +60757,7 @@ function ChartDrawPriceNote()
|
|
|
60425
60757
|
this.LinePoint=[];
|
|
60426
60758
|
this.TextRect=null;
|
|
60427
60759
|
if (this.IsFrameMinSize()) return;
|
|
60760
|
+
if (!this.IsShow) return;
|
|
60428
60761
|
|
|
60429
60762
|
var drawPoint=this.CalculateDrawPoint( {IsCheckX:true, IsCheckY:true} );
|
|
60430
60763
|
if (!drawPoint) return;
|
|
@@ -60769,6 +61102,7 @@ function ChartDrawFibWedge()
|
|
|
60769
61102
|
this.TextAngle=null;
|
|
60770
61103
|
this.Radius=null;
|
|
60771
61104
|
if (this.IsFrameMinSize()) return;
|
|
61105
|
+
if (!this.IsShow) return;
|
|
60772
61106
|
|
|
60773
61107
|
var drawPoint=this.CalculateDrawPoint({IsCheckX:false, IsCheckY:false});
|
|
60774
61108
|
if (!IFrameSplitOperator.IsNonEmptyArray(drawPoint)) return;
|
|
@@ -61152,6 +61486,8 @@ function ChartFibRetracement()
|
|
|
61152
61486
|
{
|
|
61153
61487
|
this.LinePoint=[];
|
|
61154
61488
|
if (this.IsFrameMinSize()) return;
|
|
61489
|
+
if (!this.IsShow) return;
|
|
61490
|
+
|
|
61155
61491
|
var bCheckXY=true;
|
|
61156
61492
|
if (this.ExtendLine.Left || this.ExtendLine.Right) bCheckXY=false;
|
|
61157
61493
|
var drawPoint=this.CalculateDrawPoint( {IsCheckX:bCheckXY, IsCheckY:bCheckXY} );
|
|
@@ -61344,6 +61680,8 @@ function ChartFibSpeedResistanceFan()
|
|
|
61344
61680
|
{
|
|
61345
61681
|
this.LinePoint=[];
|
|
61346
61682
|
if (this.IsFrameMinSize()) return;
|
|
61683
|
+
if (!this.IsShow) return;
|
|
61684
|
+
|
|
61347
61685
|
var bCheckXY=false;
|
|
61348
61686
|
var drawPoint=this.CalculateDrawPoint( {IsCheckX:bCheckXY, IsCheckY:bCheckXY} );
|
|
61349
61687
|
if (!drawPoint) return;
|
|
@@ -61609,6 +61947,8 @@ function ChartPriceRange()
|
|
|
61609
61947
|
{
|
|
61610
61948
|
this.LinePoint=[];
|
|
61611
61949
|
if (this.IsFrameMinSize()) return;
|
|
61950
|
+
if (!this.IsShow) return;
|
|
61951
|
+
|
|
61612
61952
|
var bCheckXY=true;
|
|
61613
61953
|
if (this.ExtendLine.Left || this.ExtendLine.Right) bCheckXY=false;
|
|
61614
61954
|
var drawPoint=this.CalculateDrawPoint( {IsCheckX:bCheckXY, IsCheckY:bCheckXY} );
|
|
@@ -61726,6 +62066,8 @@ function ChartDateRange()
|
|
|
61726
62066
|
{
|
|
61727
62067
|
this.LinePoint=[];
|
|
61728
62068
|
if (this.IsFrameMinSize()) return;
|
|
62069
|
+
if (!this.IsShow) return;
|
|
62070
|
+
|
|
61729
62071
|
var bCheckXY=true;
|
|
61730
62072
|
var drawPoint=this.CalculateDrawPoint( {IsCheckX:bCheckXY, IsCheckY:bCheckXY} );
|
|
61731
62073
|
if (!drawPoint) return;
|