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
|
@@ -40703,6 +40703,300 @@ function ChartMultiSVGIcon()
|
|
|
40703
40703
|
}
|
|
40704
40704
|
}
|
|
40705
40705
|
|
|
40706
|
+
|
|
40707
|
+
//图标集合(2.0) 支持横屏
|
|
40708
|
+
function ChartMultiSVGIconV2()
|
|
40709
|
+
{
|
|
40710
|
+
this.newMethod=IChartPainting; //派生
|
|
40711
|
+
this.newMethod();
|
|
40712
|
+
delete this.newMethod;
|
|
40713
|
+
|
|
40714
|
+
this.ClassName="ChartMultiSVGIconV2";
|
|
40715
|
+
this.AryIcon; //[ {Index:, Value:, Symbol:, Color:, Baseline:, Line:{ Color:, Dash:[虚线点], KData:"H/L", Offset:[5,10], Width:线粗细 } } ]
|
|
40716
|
+
this.IconSize=
|
|
40717
|
+
{
|
|
40718
|
+
Max: g_JSChartResource.DRAWICON.Icon.MaxSize, Min:g_JSChartResource.DRAWICON.Icon.MinSize , //图标的最大最小值
|
|
40719
|
+
Zoom:{ Type:g_JSChartResource.DRAWICON.Icon.Zoom.Type , Value:g_JSChartResource.DRAWICON.Icon.Zoom.Value } //放大倍数
|
|
40720
|
+
};
|
|
40721
|
+
this.Family;
|
|
40722
|
+
this.Color=g_JSChartResource.DefaultTextColor;
|
|
40723
|
+
this.IsHScreen=false;
|
|
40724
|
+
this.IconRect=[]; //0=序号,1=区域
|
|
40725
|
+
|
|
40726
|
+
this.MapCache=null; //key=date/date-time value={ Data:[] }
|
|
40727
|
+
|
|
40728
|
+
this.BuildKey=function(item)
|
|
40729
|
+
{
|
|
40730
|
+
if (IFrameSplitOperator.IsNumber(item.Time)) return `${item.Date}-${item.Time}`;
|
|
40731
|
+
else return item.Date;
|
|
40732
|
+
}
|
|
40733
|
+
|
|
40734
|
+
this.BuildCacheData=function()
|
|
40735
|
+
{
|
|
40736
|
+
var mapData=new Map();
|
|
40737
|
+
this.MapCache=mapData;
|
|
40738
|
+
if (!IFrameSplitOperator.IsNonEmptyArray(this.AryIcon)) return;
|
|
40739
|
+
|
|
40740
|
+
for(var i=0;i<this.AryIcon.length;++i)
|
|
40741
|
+
{
|
|
40742
|
+
var item=this.AryIcon[i];
|
|
40743
|
+
var key=this.BuildKey(item);
|
|
40744
|
+
if (mapData.has(key))
|
|
40745
|
+
{
|
|
40746
|
+
var mapItem=mapData.get(key);
|
|
40747
|
+
mapItem.Data.push(item);
|
|
40748
|
+
}
|
|
40749
|
+
else
|
|
40750
|
+
{
|
|
40751
|
+
mapData.set(key,{ Data:[item] });
|
|
40752
|
+
}
|
|
40753
|
+
}
|
|
40754
|
+
}
|
|
40755
|
+
|
|
40756
|
+
this.Draw=function()
|
|
40757
|
+
{
|
|
40758
|
+
this.IconRect=[];
|
|
40759
|
+
if (!this.IsShow || this.ChartFrame.IsMinSize || !this.IsVisible) return;
|
|
40760
|
+
if (this.IsShowIndexTitleOnly()) return;
|
|
40761
|
+
if (this.IsHideScriptIndex()) return;
|
|
40762
|
+
if (!this.Data || !IFrameSplitOperator.IsNonEmptyArray(this.Data.Data)) return; //k线数据
|
|
40763
|
+
if (!this.Family) return;
|
|
40764
|
+
if (!this.MapCache || this.MapCache.size<=0) return;
|
|
40765
|
+
|
|
40766
|
+
this.IsHScreen=(this.ChartFrame.IsHScreen===true);
|
|
40767
|
+
var xPointCount=this.ChartFrame.XPointCount;
|
|
40768
|
+
var dataWidth=this.ChartFrame.DataWidth;
|
|
40769
|
+
var distanceWidth=this.ChartFrame.DistanceWidth;
|
|
40770
|
+
var isMinute=this.IsMinuteFrame();
|
|
40771
|
+
|
|
40772
|
+
var border=this.GetBorder();
|
|
40773
|
+
if (this.IsHScreen)
|
|
40774
|
+
{
|
|
40775
|
+
var xOffset=border.TopEx+distanceWidth/2.0+g_JSChartResource.FrameLeftMargin;
|
|
40776
|
+
var chartright=border.BottomEx;
|
|
40777
|
+
var chartLeft=border.TopEx;
|
|
40778
|
+
}
|
|
40779
|
+
else
|
|
40780
|
+
{
|
|
40781
|
+
var xOffset=border.LeftEx+distanceWidth/2.0+g_JSChartResource.FrameLeftMargin;
|
|
40782
|
+
var chartright=border.RightEx;
|
|
40783
|
+
var chartLeft=border.LeftEx;
|
|
40784
|
+
}
|
|
40785
|
+
|
|
40786
|
+
var fontSize=this.GetDynamicIconSize(dataWidth,distanceWidth,this.IconSize.Max,this.IconSize.Min,this.IconSize.Zoom);
|
|
40787
|
+
this.Canvas.font=fontSize+'px '+this.Family;
|
|
40788
|
+
|
|
40789
|
+
var drawInfo={ Left:chartLeft, Right:chartright, FontSize:fontSize, DataWidth:dataWidth, DistanceWidth:distanceWidth };
|
|
40790
|
+
|
|
40791
|
+
for(var i=this.Data.DataOffset,j=0;i<this.Data.Data.length && j<xPointCount;++i,++j,xOffset+=(dataWidth+distanceWidth))
|
|
40792
|
+
{
|
|
40793
|
+
var kItem=this.Data.Data[i];
|
|
40794
|
+
var key=this.BuildKey(kItem);
|
|
40795
|
+
if (!this.MapCache.has(key)) continue;
|
|
40796
|
+
var mapItem=this.MapCache.get(key);
|
|
40797
|
+
|
|
40798
|
+
if (isMinute)
|
|
40799
|
+
{
|
|
40800
|
+
var x=this.ChartFrame.GetXFromIndex(j);
|
|
40801
|
+
}
|
|
40802
|
+
else
|
|
40803
|
+
{
|
|
40804
|
+
var left=xOffset;
|
|
40805
|
+
var right=xOffset+dataWidth;
|
|
40806
|
+
if (right>chartright) break;
|
|
40807
|
+
var x=left+(right-left)/2;
|
|
40808
|
+
}
|
|
40809
|
+
|
|
40810
|
+
this.DrawItem(mapItem, kItem, x, drawInfo);
|
|
40811
|
+
}
|
|
40812
|
+
}
|
|
40813
|
+
|
|
40814
|
+
this.GetKValue=function(kItem, valueName)
|
|
40815
|
+
{
|
|
40816
|
+
switch(valueName)
|
|
40817
|
+
{
|
|
40818
|
+
case "HIGH":
|
|
40819
|
+
case "H":
|
|
40820
|
+
return kItem.High;
|
|
40821
|
+
case "L":
|
|
40822
|
+
case "LOW":
|
|
40823
|
+
return kItem.Low;
|
|
40824
|
+
case "C":
|
|
40825
|
+
case "CLOSE":
|
|
40826
|
+
return kItem.Close;
|
|
40827
|
+
case "O":
|
|
40828
|
+
case "OPEN":
|
|
40829
|
+
return KItem.Open;
|
|
40830
|
+
default:
|
|
40831
|
+
return null;
|
|
40832
|
+
}
|
|
40833
|
+
}
|
|
40834
|
+
|
|
40835
|
+
this.DrawItem=function(groupItem, kItem, x, drawInfo)
|
|
40836
|
+
{
|
|
40837
|
+
if (!IFrameSplitOperator.IsNonEmptyArray(groupItem.Data)) return;
|
|
40838
|
+
|
|
40839
|
+
var fontSize=drawInfo.FontSize;
|
|
40840
|
+
var left=drawInfo.Left, right=drawInfo.Right;
|
|
40841
|
+
var dataWidth=drawInfo.DataWidth;
|
|
40842
|
+
//var distanceWidth=drawInfo.DistanceWidth;
|
|
40843
|
+
|
|
40844
|
+
for(var i=0;i<groupItem.Data.length;++i)
|
|
40845
|
+
{
|
|
40846
|
+
var item=groupItem.Data[i];
|
|
40847
|
+
var value=item.Value;
|
|
40848
|
+
if (IFrameSplitOperator.IsString(item.Value)) value=this.GetKValue(kItem,item.Value);
|
|
40849
|
+
if (!IFrameSplitOperator.IsNumber(value)) continue;
|
|
40850
|
+
|
|
40851
|
+
var y=this.ChartFrame.GetYFromData(item.Value,false);
|
|
40852
|
+
|
|
40853
|
+
if (item.Color) this.Canvas.fillStyle = item.Color;
|
|
40854
|
+
else this.Canvas.fillStyle = this.Color;
|
|
40855
|
+
|
|
40856
|
+
var textWidth=this.Canvas.measureText(item.Symbol).width;
|
|
40857
|
+
this.Canvas.textAlign='center';
|
|
40858
|
+
var rtIcon=new Rect(x-fontSize/2,y-fontSize/2,fontSize,fontSize);
|
|
40859
|
+
if (x+textWidth/2>=right)
|
|
40860
|
+
{
|
|
40861
|
+
this.Canvas.textAlign='right';
|
|
40862
|
+
x+=dataWidth/2;
|
|
40863
|
+
rtIcon.X=x-fontSize;
|
|
40864
|
+
}
|
|
40865
|
+
else if (x-textWidth/2<left)
|
|
40866
|
+
{
|
|
40867
|
+
this.Canvas.textAlign = 'left';
|
|
40868
|
+
x-=dataWidth/2;
|
|
40869
|
+
rtIcon.X=x;
|
|
40870
|
+
}
|
|
40871
|
+
|
|
40872
|
+
if (item.Baseline==1)
|
|
40873
|
+
{
|
|
40874
|
+
this.Canvas.textBaseline='top';
|
|
40875
|
+
rtIcon.Y=y;
|
|
40876
|
+
}
|
|
40877
|
+
else if (item.Baseline==2)
|
|
40878
|
+
{
|
|
40879
|
+
this.Canvas.textBaseline='bottom';
|
|
40880
|
+
rtIcon.Y=y-fontSize;
|
|
40881
|
+
}
|
|
40882
|
+
else
|
|
40883
|
+
{
|
|
40884
|
+
this.Canvas.textBaseline = 'middle';
|
|
40885
|
+
rtIcon.Y=y-fontSize/2;
|
|
40886
|
+
}
|
|
40887
|
+
|
|
40888
|
+
if (this.IsHScreen)
|
|
40889
|
+
{
|
|
40890
|
+
this.Canvas.save();
|
|
40891
|
+
this.Canvas.translate(y, x);
|
|
40892
|
+
this.Canvas.rotate(90 * Math.PI / 180);
|
|
40893
|
+
this.Canvas.fillText(item.Symbol,0,0);
|
|
40894
|
+
this.Canvas.restore();
|
|
40895
|
+
}
|
|
40896
|
+
else
|
|
40897
|
+
{
|
|
40898
|
+
if (IFrameSplitOperator.IsNumber(item.YMove)) y+=item.YMove;
|
|
40899
|
+
this.Canvas.fillText(item.Symbol, x, y);
|
|
40900
|
+
if (item.Text) this.IconRect.push({ Rect:rtIcon , Item:item, KItem:kItem });
|
|
40901
|
+
}
|
|
40902
|
+
|
|
40903
|
+
if (item.Line)
|
|
40904
|
+
{
|
|
40905
|
+
var price=item.Line.KData=="H"? kItem.High:kItem.Low;
|
|
40906
|
+
var yPrice=this.ChartFrame.GetYFromData(price, false);
|
|
40907
|
+
var yText=y;
|
|
40908
|
+
if (Array.isArray(item.Line.Offset) && item.Line.Offset.length==2)
|
|
40909
|
+
{
|
|
40910
|
+
if (yText>yPrice) //文字在下方
|
|
40911
|
+
{
|
|
40912
|
+
yText-=item.Line.Offset[1];
|
|
40913
|
+
yPrice+=item.Line.Offset[0]
|
|
40914
|
+
}
|
|
40915
|
+
else if (yText<yPrice)
|
|
40916
|
+
{
|
|
40917
|
+
yText+=item.Line.Offset[1];
|
|
40918
|
+
yPrice-=item.Line.Offset[0]
|
|
40919
|
+
}
|
|
40920
|
+
}
|
|
40921
|
+
this.Canvas.save();
|
|
40922
|
+
if (item.Line.Dash) this.Canvas.setLineDash(item.Line.Dash); //虚线
|
|
40923
|
+
if (item.Line.Width>0) this.Canvas.lineWidth=item.Line.Width; //线宽
|
|
40924
|
+
this.Canvas.strokeStyle = item.Line.Color;
|
|
40925
|
+
this.Canvas.beginPath();
|
|
40926
|
+
if (this.IsHScreen)
|
|
40927
|
+
{
|
|
40928
|
+
this.Canvas.moveTo(yText, ToFixedPoint(x));
|
|
40929
|
+
this.Canvas.lineTo(yPrice,ToFixedPoint(x));
|
|
40930
|
+
}
|
|
40931
|
+
else
|
|
40932
|
+
{
|
|
40933
|
+
this.Canvas.moveTo(ToFixedPoint(x),yText);
|
|
40934
|
+
this.Canvas.lineTo(ToFixedPoint(x),yPrice);
|
|
40935
|
+
}
|
|
40936
|
+
|
|
40937
|
+
this.Canvas.stroke();
|
|
40938
|
+
this.Canvas.restore();
|
|
40939
|
+
}
|
|
40940
|
+
}
|
|
40941
|
+
}
|
|
40942
|
+
|
|
40943
|
+
this.GetTooltipData=function(x,y,tooltip)
|
|
40944
|
+
{
|
|
40945
|
+
if (!IFrameSplitOperator.IsNonEmptyArray(this.IconRect)) return false;
|
|
40946
|
+
for(var i=0; i<this.IconRect.length; ++i)
|
|
40947
|
+
{
|
|
40948
|
+
var item=this.IconRect[i];
|
|
40949
|
+
if (!item.Rect) continue;
|
|
40950
|
+
var rect=item.Rect;
|
|
40951
|
+
this.Canvas.beginPath();
|
|
40952
|
+
this.Canvas.rect(rect.X,rect.Y,rect.Width,rect.Height);
|
|
40953
|
+
if (this.Canvas.isPointInPath(x,y))
|
|
40954
|
+
{
|
|
40955
|
+
JSConsole.Chart.Log('[ChartMultiSVGIconV2::GetTooltipData] icon ', item);
|
|
40956
|
+
tooltip.Data=item;
|
|
40957
|
+
tooltip.ChartPaint=this;
|
|
40958
|
+
tooltip.Type=4; //指标
|
|
40959
|
+
return true;
|
|
40960
|
+
}
|
|
40961
|
+
}
|
|
40962
|
+
|
|
40963
|
+
return false;
|
|
40964
|
+
}
|
|
40965
|
+
|
|
40966
|
+
this.GetMaxMin=function()
|
|
40967
|
+
{
|
|
40968
|
+
this.IsHScreen=(this.ChartFrame.IsHScreen===true);
|
|
40969
|
+
var range={ Min:null, Max:null };
|
|
40970
|
+
if(!this.Data || !IFrameSplitOperator.IsNonEmptyArray(this.Data.Data)) return range;
|
|
40971
|
+
if (!this.MapCache || this.MapCache.size<=0) return;
|
|
40972
|
+
var xPointCount=this.ChartFrame.XPointCount;
|
|
40973
|
+
|
|
40974
|
+
for(var i=this.Data.DataOffset,j=0, k=0;i<this.Data.Data.length && j<xPointCount;++i,++j)
|
|
40975
|
+
{
|
|
40976
|
+
var kItem=this.Data.Data[i];
|
|
40977
|
+
var key=this.BuildKey(kItem);
|
|
40978
|
+
if (!this.MapCache.has(key)) continue;
|
|
40979
|
+
var mapItem=this.MapCache.get(key);
|
|
40980
|
+
if (!IFrameSplitOperator.IsNonEmptyArray(mapItem.Data)) continue;
|
|
40981
|
+
|
|
40982
|
+
for(k=0;k<mapItem.Data.length;++k)
|
|
40983
|
+
{
|
|
40984
|
+
var item=mapItem.Data[k];
|
|
40985
|
+
var value=item.Value;
|
|
40986
|
+
if (IFrameSplitOperator.IsString(item.Value)) value=this.GetKValue(kItem,item.Value);
|
|
40987
|
+
if (!IFrameSplitOperator.IsNumber(value)) continue;
|
|
40988
|
+
|
|
40989
|
+
if (range.Max==null) range.Max=value;
|
|
40990
|
+
else if (range.Max<value) range.Max=value;
|
|
40991
|
+
if (range.Min==null) range.Min=value;
|
|
40992
|
+
else if (range.Min>value) range.Min=value;
|
|
40993
|
+
}
|
|
40994
|
+
}
|
|
40995
|
+
|
|
40996
|
+
return range;
|
|
40997
|
+
}
|
|
40998
|
+
}
|
|
40999
|
+
|
|
40706
41000
|
// 多dom节点
|
|
40707
41001
|
function ChartMultiHtmlDom()
|
|
40708
41002
|
{
|
|
@@ -56045,6 +56339,7 @@ function IChartDrawPicture()
|
|
|
56045
56339
|
|
|
56046
56340
|
this.IsDrawFirst=false;
|
|
56047
56341
|
this.IsShowYCoordinate=false; //是否在Y轴显示点的刻度
|
|
56342
|
+
this.IsShow=true; //是否显示
|
|
56048
56343
|
|
|
56049
56344
|
this.LineColor=g_JSChartResource.DrawPicture.LineColor[0]; //线段颜色
|
|
56050
56345
|
//this.LineColor="#1e90ff"; //线段颜色,input type="color" 不支持rgb和rgba 的格式
|
|
@@ -57114,6 +57409,8 @@ function IChartDrawPicture()
|
|
|
57114
57409
|
this.GetXYCoordinate_default=function()
|
|
57115
57410
|
{
|
|
57116
57411
|
if (this.IsFrameMinSize()) return null;
|
|
57412
|
+
if (!this.IsShow) return null;
|
|
57413
|
+
|
|
57117
57414
|
var drawPoint=this.CalculateDrawPoint( {IsCheckX:true, IsCheckY:true} );
|
|
57118
57415
|
|
|
57119
57416
|
return this.PointRange(drawPoint);
|
|
@@ -57569,6 +57866,7 @@ function ChartDrawPictureLine()
|
|
|
57569
57866
|
{
|
|
57570
57867
|
this.LinePoint=[];
|
|
57571
57868
|
if (this.IsFrameMinSize()) return;
|
|
57869
|
+
if (!this.IsShow) return;
|
|
57572
57870
|
|
|
57573
57871
|
var drawPoint=this.CalculateDrawPoint( {IsCheckX:true, IsCheckY:true} );
|
|
57574
57872
|
if (!drawPoint) return;
|
|
@@ -57606,6 +57904,7 @@ function ChartDrawPictureLine()
|
|
|
57606
57904
|
this.GetYCoordinatePoint=function()
|
|
57607
57905
|
{
|
|
57608
57906
|
if (this.IsFrameMinSize()) return null;
|
|
57907
|
+
if (!this.IsShow) return null;
|
|
57609
57908
|
|
|
57610
57909
|
if (this.Status<2) return null;
|
|
57611
57910
|
if(!this.Point.length || !this.Frame) return null;
|
|
@@ -57768,6 +58067,7 @@ function ChartDrawGraffitiLine()
|
|
|
57768
58067
|
{
|
|
57769
58068
|
this.LinePoint=[];
|
|
57770
58069
|
if (this.IsFrameMinSize()) return;
|
|
58070
|
+
if (!this.IsShow) return;
|
|
57771
58071
|
|
|
57772
58072
|
var drawPoint=this.CalculateDrawPoint( {IsCheckX:true, IsCheckY:true} );
|
|
57773
58073
|
if (!drawPoint) return;
|
|
@@ -57823,6 +58123,7 @@ function ChartDrawArrowLine()
|
|
|
57823
58123
|
{
|
|
57824
58124
|
this.LinePoint=[];
|
|
57825
58125
|
if (this.IsFrameMinSize()) return;
|
|
58126
|
+
if (!this.IsShow) return;
|
|
57826
58127
|
|
|
57827
58128
|
var drawPoint=this.CalculateDrawPoint( {IsCheckX:true, IsCheckY:true} );
|
|
57828
58129
|
if (!drawPoint) return;
|
|
@@ -57941,6 +58242,7 @@ function ChartDrawPictureHaflLine()
|
|
|
57941
58242
|
this.LinePoint=[];
|
|
57942
58243
|
this.FullLine=null;
|
|
57943
58244
|
if (this.IsFrameMinSize()) return;
|
|
58245
|
+
if (!this.IsShow) return;
|
|
57944
58246
|
|
|
57945
58247
|
var drawPoint=this.CalculateDrawPoint({IsCheckX:false, IsCheckY:false});
|
|
57946
58248
|
if (!drawPoint || drawPoint.length!=2) return;
|
|
@@ -58019,6 +58321,7 @@ function ChartDrawPictureHorizontalLine()
|
|
|
58019
58321
|
{
|
|
58020
58322
|
this.LinePoint=[];
|
|
58021
58323
|
if (this.IsFrameMinSize()) return;
|
|
58324
|
+
if (!this.IsShow) return;
|
|
58022
58325
|
|
|
58023
58326
|
var drawPoint=this.CalculateDrawPoint();
|
|
58024
58327
|
if (!drawPoint || drawPoint.length!=1) return;
|
|
@@ -58275,6 +58578,7 @@ function ChartDrawHLine()
|
|
|
58275
58578
|
this.ButtonBGWidth=0;
|
|
58276
58579
|
|
|
58277
58580
|
if (this.IsFrameMinSize()) return;
|
|
58581
|
+
if (!this.IsShow) return;
|
|
58278
58582
|
|
|
58279
58583
|
var drawPoint=this.CalculateDrawPoint();
|
|
58280
58584
|
if (!drawPoint || drawPoint.length!=1) return;
|
|
@@ -58672,6 +58976,7 @@ function ChartDrawPictureTrendLine()
|
|
|
58672
58976
|
{
|
|
58673
58977
|
this.LinePoint=[];
|
|
58674
58978
|
if (this.IsFrameMinSize()) return;
|
|
58979
|
+
if (!this.IsShow) return;
|
|
58675
58980
|
|
|
58676
58981
|
var drawPoint=this.CalculateDrawPoint({IsCheckX:false, IsCheckY:false});
|
|
58677
58982
|
if (!drawPoint || drawPoint.length!=2) return;
|
|
@@ -58714,6 +59019,7 @@ function ChartDrawPictureRect()
|
|
|
58714
59019
|
this.Draw=function()
|
|
58715
59020
|
{
|
|
58716
59021
|
if (this.IsFrameMinSize()) return;
|
|
59022
|
+
if (!this.IsShow) return;
|
|
58717
59023
|
|
|
58718
59024
|
var drawPoint=this.CalculateDrawPoint({IsCheckX:true, IsCheckY:true});
|
|
58719
59025
|
if (!drawPoint || drawPoint.length!=2) return;
|
|
@@ -58825,6 +59131,7 @@ function ChartDrawPictureArc()
|
|
|
58825
59131
|
this.Draw=function()
|
|
58826
59132
|
{
|
|
58827
59133
|
if (this.IsFrameMinSize()) return;
|
|
59134
|
+
if (!this.IsShow) return;
|
|
58828
59135
|
|
|
58829
59136
|
var drawPoint=this.CalculateDrawPoint();
|
|
58830
59137
|
if (!drawPoint || drawPoint.length!=2) return;
|
|
@@ -59056,6 +59363,7 @@ function ChartDrawPictureWaveMW()
|
|
|
59056
59363
|
this.LinePoint=[];
|
|
59057
59364
|
if (!this.Frame) return;
|
|
59058
59365
|
if (this.IsFrameMinSize()) return;
|
|
59366
|
+
if (!this.IsShow) return;
|
|
59059
59367
|
|
|
59060
59368
|
this.IsHScreen=this.Frame.IsHScreen;
|
|
59061
59369
|
var drawPoint=this.CalculateDrawPoint({IsCheckX:true, IsCheckY:true});
|
|
@@ -59354,6 +59662,7 @@ function ChartDrawPictureParallelLines()
|
|
|
59354
59662
|
this.LinePoint=[];
|
|
59355
59663
|
this.CenterLine.Line=null;
|
|
59356
59664
|
if (this.IsFrameMinSize()) return;
|
|
59665
|
+
if (!this.IsShow) return;
|
|
59357
59666
|
|
|
59358
59667
|
var drawPoint=this.CalculateDrawPoint({IsCheckX:false, IsCheckY:false}); //不检测x,y
|
|
59359
59668
|
if (!drawPoint) return;
|
|
@@ -59467,6 +59776,7 @@ function ChartDrawFlatTop()
|
|
|
59467
59776
|
{
|
|
59468
59777
|
this.LinePoint=[];
|
|
59469
59778
|
if (this.IsFrameMinSize()) return;
|
|
59779
|
+
if (!this.IsShow) return;
|
|
59470
59780
|
|
|
59471
59781
|
var drawPoint=this.CalculateDrawPoint({IsCheckX:true, IsCheckY:true});
|
|
59472
59782
|
if (!drawPoint) return;
|
|
@@ -59819,6 +60129,7 @@ function ChartDrawPictureParallelChannel()
|
|
|
59819
60129
|
{
|
|
59820
60130
|
this.LinePoint=[];
|
|
59821
60131
|
if (this.IsFrameMinSize()) return;
|
|
60132
|
+
if (!this.IsShow) return;
|
|
59822
60133
|
|
|
59823
60134
|
var drawPoint=this.CalculateDrawPoint();
|
|
59824
60135
|
if (!drawPoint) return;
|
|
@@ -59969,6 +60280,7 @@ function ChartDrawPictureText()
|
|
|
59969
60280
|
{
|
|
59970
60281
|
this.TextRect=null;
|
|
59971
60282
|
if (this.IsFrameMinSize()) return;
|
|
60283
|
+
if (!this.IsShow) return;
|
|
59972
60284
|
|
|
59973
60285
|
var drawPoint=this.CalculateDrawPoint({IsCheckX:true, IsCheckY:true});
|
|
59974
60286
|
if (!drawPoint || drawPoint.length!=1) return;
|
|
@@ -60072,6 +60384,7 @@ function ChartDrawPictureIconFont()
|
|
|
60072
60384
|
{
|
|
60073
60385
|
this.TextRect=null;
|
|
60074
60386
|
if (this.IsFrameMinSize()) return;
|
|
60387
|
+
if (!this.IsShow) return;
|
|
60075
60388
|
|
|
60076
60389
|
var drawPoint=this.CalculateDrawPoint({IsCheckX:true, IsCheckY:true});
|
|
60077
60390
|
if (!drawPoint || drawPoint.length!=1) return;
|
|
@@ -60170,6 +60483,7 @@ function ChartDrawPictureGannFan()
|
|
|
60170
60483
|
{
|
|
60171
60484
|
this.LinePoint=[];
|
|
60172
60485
|
if (this.IsFrameMinSize()) return;
|
|
60486
|
+
if (!this.IsShow) return;
|
|
60173
60487
|
|
|
60174
60488
|
var drawPoint=this.CalculateDrawPoint({IsCheckX:true, IsCheckY:true});
|
|
60175
60489
|
if (!drawPoint) return;
|
|
@@ -60481,6 +60795,7 @@ function ChartDrawPictureGoldenSection()
|
|
|
60481
60795
|
{
|
|
60482
60796
|
this.LinePoint=[];
|
|
60483
60797
|
if (this.IsFrameMinSize()) return;
|
|
60798
|
+
if (!this.IsShow) return;
|
|
60484
60799
|
|
|
60485
60800
|
var drawPoint=this.CalculateDrawPoint();
|
|
60486
60801
|
if (!drawPoint) return;
|
|
@@ -60658,6 +60973,7 @@ function ChartDrawPictureTriangle()
|
|
|
60658
60973
|
{
|
|
60659
60974
|
this.LinePoint=[];
|
|
60660
60975
|
if (this.IsFrameMinSize()) return;
|
|
60976
|
+
if (!this.IsShow) return;
|
|
60661
60977
|
|
|
60662
60978
|
var drawPoint=this.CalculateDrawPoint({IsCheckX:true, IsCheckY:true});
|
|
60663
60979
|
if (!drawPoint) return;
|
|
@@ -60777,6 +61093,7 @@ function ChartDrawPictureSymmetryAngle()
|
|
|
60777
61093
|
{
|
|
60778
61094
|
this.LinePoint=[];
|
|
60779
61095
|
if (this.IsFrameMinSize()) return;
|
|
61096
|
+
if (!this.IsShow) return;
|
|
60780
61097
|
|
|
60781
61098
|
var drawPoint=this.CalculateDrawPoint({IsCheckX:true, IsCheckY:true});
|
|
60782
61099
|
if (!drawPoint) return;
|
|
@@ -60871,6 +61188,7 @@ function ChartDrawPictureCircle()
|
|
|
60871
61188
|
{
|
|
60872
61189
|
this.LinePoint=[];
|
|
60873
61190
|
if (this.IsFrameMinSize()) return;
|
|
61191
|
+
if (!this.IsShow) return;
|
|
60874
61192
|
|
|
60875
61193
|
var drawPoint=this.CalculateDrawPoint({IsCheckX:true, IsCheckY:true});
|
|
60876
61194
|
if (!drawPoint || drawPoint.length!=2) return;
|
|
@@ -60934,6 +61252,7 @@ function ChartDrawPictureQuadrangle()
|
|
|
60934
61252
|
{
|
|
60935
61253
|
this.LinePoint=[];
|
|
60936
61254
|
if (this.IsFrameMinSize()) return;
|
|
61255
|
+
if (!this.IsShow) return;
|
|
60937
61256
|
|
|
60938
61257
|
var drawPoint=this.CalculateDrawPoint({IsCheckX:true, IsCheckY:true});
|
|
60939
61258
|
if (!drawPoint) return;
|
|
@@ -61030,6 +61349,7 @@ function ChartDrawPictureFibonacci()
|
|
|
61030
61349
|
{
|
|
61031
61350
|
this.LinePoint=[];
|
|
61032
61351
|
if (this.IsFrameMinSize()) return;
|
|
61352
|
+
if (!this.IsShow) return;
|
|
61033
61353
|
|
|
61034
61354
|
var drawPoint=this.CalculateDrawPoint();
|
|
61035
61355
|
if (!drawPoint) return;
|
|
@@ -61232,6 +61552,7 @@ function ChartDrawLinearRegression(option)
|
|
|
61232
61552
|
{
|
|
61233
61553
|
this.LinePoint=[];
|
|
61234
61554
|
if (this.IsFrameMinSize()) return;
|
|
61555
|
+
if (!this.IsShow) return;
|
|
61235
61556
|
|
|
61236
61557
|
var drawPoint=this.CalculateDrawPoint( { IsCheckX:true, IsCheckY:true} );
|
|
61237
61558
|
if (!drawPoint || drawPoint.length!=2)
|
|
@@ -61626,6 +61947,7 @@ function ChartDrawPriceLine()
|
|
|
61626
61947
|
{
|
|
61627
61948
|
this.LinePoint=[];
|
|
61628
61949
|
if (this.IsFrameMinSize()) return;
|
|
61950
|
+
if (!this.IsShow) return;
|
|
61629
61951
|
|
|
61630
61952
|
var drawPoint=this.CalculateDrawPoint( { IsCheckX:false, IsCheckY:true } );
|
|
61631
61953
|
if (!drawPoint) return;
|
|
@@ -61726,6 +62048,7 @@ function ChartDrawPriceLineV2()
|
|
|
61726
62048
|
{
|
|
61727
62049
|
this.LinePoint=[];
|
|
61728
62050
|
if (this.IsFrameMinSize()) return;
|
|
62051
|
+
if (!this.IsShow) return;
|
|
61729
62052
|
|
|
61730
62053
|
var drawPoint=this.CalculateDrawPoint( { IsCheckX:false, IsCheckY:true } );
|
|
61731
62054
|
if (!drawPoint) return;
|
|
@@ -61896,6 +62219,7 @@ function ChartDrawVerticalLine()
|
|
|
61896
62219
|
{
|
|
61897
62220
|
this.LinePoint=[];
|
|
61898
62221
|
if (this.IsFrameMinSize()) return;
|
|
62222
|
+
if (!this.IsShow) return;
|
|
61899
62223
|
|
|
61900
62224
|
if (!this.Frame || !this.Frame.Data) return;
|
|
61901
62225
|
var data=this.Frame.Data;
|
|
@@ -61974,6 +62298,7 @@ function ChartDrawWaveRuler()
|
|
|
61974
62298
|
{
|
|
61975
62299
|
this.LinePoint=[];
|
|
61976
62300
|
if (this.IsFrameMinSize()) return;
|
|
62301
|
+
if (!this.IsShow) return;
|
|
61977
62302
|
|
|
61978
62303
|
var drawPoint=this.CalculateDrawPoint({IsCheckX:true, IsCheckY:true});
|
|
61979
62304
|
if (!drawPoint) return;
|
|
@@ -62136,6 +62461,7 @@ function ChartDrawWaveRuler2Point()
|
|
|
62136
62461
|
{
|
|
62137
62462
|
this.LinePoint=[];
|
|
62138
62463
|
if (this.IsFrameMinSize()) return;
|
|
62464
|
+
if (!this.IsShow) return;
|
|
62139
62465
|
|
|
62140
62466
|
var drawPoint=this.CalculateDrawPoint({IsCheckX:true, IsCheckY:true});
|
|
62141
62467
|
if (!drawPoint) return;
|
|
@@ -62268,6 +62594,7 @@ function ChartDrawBox()
|
|
|
62268
62594
|
{
|
|
62269
62595
|
this.LinePoint=[];
|
|
62270
62596
|
if (this.IsFrameMinSize()) return;
|
|
62597
|
+
if (!this.IsShow) return;
|
|
62271
62598
|
|
|
62272
62599
|
var drawPoint=this.CalculateDrawPoint( {IsCheckX:true, IsCheckY:true} );
|
|
62273
62600
|
if (!drawPoint) return;
|
|
@@ -62498,6 +62825,7 @@ function ChartDrawTwoPointDemo()
|
|
|
62498
62825
|
this.LinePoint=[];
|
|
62499
62826
|
this.PointInfo=[];
|
|
62500
62827
|
if (this.IsFrameMinSize()) return;
|
|
62828
|
+
if (!this.IsShow) return;
|
|
62501
62829
|
|
|
62502
62830
|
var drawPoint=this.CalculateDrawPoint({IsCheckX:true, IsCheckY:true});
|
|
62503
62831
|
if (!drawPoint) return;
|
|
@@ -62735,6 +63063,7 @@ function ChartDrawHLineSegment()
|
|
|
62735
63063
|
this.IsHScreen=this.Frame.IsHScreen;
|
|
62736
63064
|
this.LinePoint=[];
|
|
62737
63065
|
if (this.IsFrameMinSize()) return;
|
|
63066
|
+
if (!this.IsShow) return;
|
|
62738
63067
|
|
|
62739
63068
|
var drawPoint=this.CalculateDrawPoint( { IsCheckX:false, IsCheckY:true} );
|
|
62740
63069
|
if (!drawPoint || drawPoint.length!=2) return;
|
|
@@ -63390,6 +63719,7 @@ function ChartDrawNote()
|
|
|
63390
63719
|
this.TextRect=null;
|
|
63391
63720
|
this.PtCenter=null;
|
|
63392
63721
|
if (this.IsFrameMinSize()) return;
|
|
63722
|
+
if (!this.IsShow) return;
|
|
63393
63723
|
|
|
63394
63724
|
var drawPoint=this.CalculateDrawPoint({IsCheckX:true, IsCheckY:true});
|
|
63395
63725
|
if (!drawPoint || drawPoint.length!=1) return;
|
|
@@ -63773,6 +64103,7 @@ function ChartDrawAnchoredText()
|
|
|
63773
64103
|
if (this.Status<2) return;
|
|
63774
64104
|
if(this.Point.length!=1 || !this.Frame) return;
|
|
63775
64105
|
if (this.IsFrameMinSize()) return;
|
|
64106
|
+
if (!this.IsShow) return;
|
|
63776
64107
|
|
|
63777
64108
|
var drawPoint=this.CalculateDrawPoint();
|
|
63778
64109
|
if (!drawPoint || drawPoint.length!=1) return;
|
|
@@ -64122,6 +64453,7 @@ function ChartDrawPriceLabel()
|
|
|
64122
64453
|
{
|
|
64123
64454
|
this.TextRect=null;
|
|
64124
64455
|
if (this.IsFrameMinSize()) return;
|
|
64456
|
+
if (!this.IsShow) return;
|
|
64125
64457
|
|
|
64126
64458
|
var drawPoint=this.CalculateDrawPoint({IsCheckX:true, IsCheckY:true});
|
|
64127
64459
|
if (!drawPoint || drawPoint.length!=1) return;
|
|
@@ -64361,6 +64693,7 @@ function ChartDrawPriceNote()
|
|
|
64361
64693
|
this.LinePoint=[];
|
|
64362
64694
|
this.TextRect=null;
|
|
64363
64695
|
if (this.IsFrameMinSize()) return;
|
|
64696
|
+
if (!this.IsShow) return;
|
|
64364
64697
|
|
|
64365
64698
|
var drawPoint=this.CalculateDrawPoint( {IsCheckX:true, IsCheckY:true} );
|
|
64366
64699
|
if (!drawPoint) return;
|
|
@@ -64705,6 +65038,7 @@ function ChartDrawFibWedge()
|
|
|
64705
65038
|
this.TextAngle=null;
|
|
64706
65039
|
this.Radius=null;
|
|
64707
65040
|
if (this.IsFrameMinSize()) return;
|
|
65041
|
+
if (!this.IsShow) return;
|
|
64708
65042
|
|
|
64709
65043
|
var drawPoint=this.CalculateDrawPoint({IsCheckX:false, IsCheckY:false});
|
|
64710
65044
|
if (!IFrameSplitOperator.IsNonEmptyArray(drawPoint)) return;
|
|
@@ -65088,6 +65422,8 @@ function ChartFibRetracement()
|
|
|
65088
65422
|
{
|
|
65089
65423
|
this.LinePoint=[];
|
|
65090
65424
|
if (this.IsFrameMinSize()) return;
|
|
65425
|
+
if (!this.IsShow) return;
|
|
65426
|
+
|
|
65091
65427
|
var bCheckXY=true;
|
|
65092
65428
|
if (this.ExtendLine.Left || this.ExtendLine.Right) bCheckXY=false;
|
|
65093
65429
|
var drawPoint=this.CalculateDrawPoint( {IsCheckX:bCheckXY, IsCheckY:bCheckXY} );
|
|
@@ -65280,6 +65616,8 @@ function ChartFibSpeedResistanceFan()
|
|
|
65280
65616
|
{
|
|
65281
65617
|
this.LinePoint=[];
|
|
65282
65618
|
if (this.IsFrameMinSize()) return;
|
|
65619
|
+
if (!this.IsShow) return;
|
|
65620
|
+
|
|
65283
65621
|
var bCheckXY=false;
|
|
65284
65622
|
var drawPoint=this.CalculateDrawPoint( {IsCheckX:bCheckXY, IsCheckY:bCheckXY} );
|
|
65285
65623
|
if (!drawPoint) return;
|
|
@@ -65545,6 +65883,8 @@ function ChartPriceRange()
|
|
|
65545
65883
|
{
|
|
65546
65884
|
this.LinePoint=[];
|
|
65547
65885
|
if (this.IsFrameMinSize()) return;
|
|
65886
|
+
if (!this.IsShow) return;
|
|
65887
|
+
|
|
65548
65888
|
var bCheckXY=true;
|
|
65549
65889
|
if (this.ExtendLine.Left || this.ExtendLine.Right) bCheckXY=false;
|
|
65550
65890
|
var drawPoint=this.CalculateDrawPoint( {IsCheckX:bCheckXY, IsCheckY:bCheckXY} );
|
|
@@ -65662,6 +66002,8 @@ function ChartDateRange()
|
|
|
65662
66002
|
{
|
|
65663
66003
|
this.LinePoint=[];
|
|
65664
66004
|
if (this.IsFrameMinSize()) return;
|
|
66005
|
+
if (!this.IsShow) return;
|
|
66006
|
+
|
|
65665
66007
|
var bCheckXY=true;
|
|
65666
66008
|
var drawPoint=this.CalculateDrawPoint( {IsCheckX:bCheckXY, IsCheckY:bCheckXY} );
|
|
65667
66009
|
if (!drawPoint) return;
|
|
@@ -114181,7 +114523,7 @@ function ScriptIndex(name,script,args,option)
|
|
|
114181
114523
|
|
|
114182
114524
|
this.CreateMultiSVGIcon=function(hqChart,windowIndex,varItem,i)
|
|
114183
114525
|
{
|
|
114184
|
-
let chart=new
|
|
114526
|
+
let chart=new ChartMultiSVGIconV2();
|
|
114185
114527
|
chart.Canvas=hqChart.Canvas;
|
|
114186
114528
|
chart.Name=varItem.Name;
|
|
114187
114529
|
chart.ChartBorder=hqChart.Frame.SubFrame[windowIndex].Frame.ChartBorder;
|
|
@@ -114189,7 +114531,8 @@ function ScriptIndex(name,script,args,option)
|
|
|
114189
114531
|
|
|
114190
114532
|
chart.Data=hqChart.ChartPaint[0].Data;//绑定K线
|
|
114191
114533
|
chart.Family=varItem.Draw.DrawData.Family;
|
|
114192
|
-
chart.
|
|
114534
|
+
chart.AryIcon= varItem.Draw.DrawData.Icon;
|
|
114535
|
+
chart.BuildCacheData();
|
|
114193
114536
|
hqChart.ChartPaint.push(chart);
|
|
114194
114537
|
}
|
|
114195
114538
|
|
|
@@ -115845,7 +116188,7 @@ function OverlayScriptIndex(name,script,args,option)
|
|
|
115845
116188
|
{
|
|
115846
116189
|
var overlayIndex=this.OverlayIndex;
|
|
115847
116190
|
var frame=overlayIndex.Frame;
|
|
115848
|
-
let chart=new
|
|
116191
|
+
let chart=new ChartMultiSVGIconV2();
|
|
115849
116192
|
chart.Canvas=hqChart.Canvas;
|
|
115850
116193
|
chart.Name=varItem.Name;
|
|
115851
116194
|
chart.ChartBorder=frame.Frame.ChartBorder;
|
|
@@ -115854,7 +116197,8 @@ function OverlayScriptIndex(name,script,args,option)
|
|
|
115854
116197
|
|
|
115855
116198
|
chart.Data=hqChart.ChartPaint[0].Data;//绑定K线
|
|
115856
116199
|
chart.Family=varItem.Draw.DrawData.Family;
|
|
115857
|
-
chart.
|
|
116200
|
+
chart.AryIcon= varItem.Draw.DrawData.Icon;
|
|
116201
|
+
chart.BuildCacheData();
|
|
115858
116202
|
frame.ChartPaint.push(chart);
|
|
115859
116203
|
}
|
|
115860
116204
|
|
|
@@ -116944,8 +117288,7 @@ function APIScriptIndex(name,script,args,option, isOverlay)
|
|
|
116944
117288
|
drawItem.Text=draw.Text;
|
|
116945
117289
|
drawItem.Name=draw.Name;
|
|
116946
117290
|
drawItem.DrawType=draw.DrawType;
|
|
116947
|
-
drawItem.DrawData={ Icon:
|
|
116948
|
-
this.GetKLineData(drawItem.DrawData.Icon, hqChart);
|
|
117291
|
+
drawItem.DrawData={ Icon:draw.DrawData.Icon, Family:draw.DrawData.Family };
|
|
116949
117292
|
outVarItem.Draw=drawItem;
|
|
116950
117293
|
|
|
116951
117294
|
result.push(outVarItem);
|
|
@@ -117345,8 +117688,7 @@ function APIScriptIndex(name,script,args,option, isOverlay)
|
|
|
117345
117688
|
drawItem.Text=draw.Text;
|
|
117346
117689
|
drawItem.Name=draw.Name;
|
|
117347
117690
|
drawItem.DrawType=draw.DrawType;
|
|
117348
|
-
drawItem.DrawData={ Icon:
|
|
117349
|
-
this.GetKLineData(drawItem.DrawData.Icon, hqChart);
|
|
117691
|
+
drawItem.DrawData={ Icon:draw.DrawData.Icon, Family:draw.DrawData.Family };
|
|
117350
117692
|
outVarItem.Draw=drawItem;
|
|
117351
117693
|
|
|
117352
117694
|
result.push(outVarItem);
|
|
@@ -129718,7 +130060,7 @@ function HQChartScriptWorker()
|
|
|
129718
130060
|
|
|
129719
130061
|
|
|
129720
130062
|
|
|
129721
|
-
var HQCHART_VERSION="1.1.
|
|
130063
|
+
var HQCHART_VERSION="1.1.13015";
|
|
129722
130064
|
|
|
129723
130065
|
function PrintHQChartVersion()
|
|
129724
130066
|
{
|