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.
@@ -40659,6 +40659,300 @@ function ChartMultiSVGIcon()
40659
40659
  }
40660
40660
  }
40661
40661
 
40662
+
40663
+ //图标集合(2.0) 支持横屏
40664
+ function ChartMultiSVGIconV2()
40665
+ {
40666
+ this.newMethod=IChartPainting; //派生
40667
+ this.newMethod();
40668
+ delete this.newMethod;
40669
+
40670
+ this.ClassName="ChartMultiSVGIconV2";
40671
+ this.AryIcon; //[ {Index:, Value:, Symbol:, Color:, Baseline:, Line:{ Color:, Dash:[虚线点], KData:"H/L", Offset:[5,10], Width:线粗细 } } ]
40672
+ this.IconSize=
40673
+ {
40674
+ Max: g_JSChartResource.DRAWICON.Icon.MaxSize, Min:g_JSChartResource.DRAWICON.Icon.MinSize , //图标的最大最小值
40675
+ Zoom:{ Type:g_JSChartResource.DRAWICON.Icon.Zoom.Type , Value:g_JSChartResource.DRAWICON.Icon.Zoom.Value } //放大倍数
40676
+ };
40677
+ this.Family;
40678
+ this.Color=g_JSChartResource.DefaultTextColor;
40679
+ this.IsHScreen=false;
40680
+ this.IconRect=[]; //0=序号,1=区域
40681
+
40682
+ this.MapCache=null; //key=date/date-time value={ Data:[] }
40683
+
40684
+ this.BuildKey=function(item)
40685
+ {
40686
+ if (IFrameSplitOperator.IsNumber(item.Time)) return `${item.Date}-${item.Time}`;
40687
+ else return item.Date;
40688
+ }
40689
+
40690
+ this.BuildCacheData=function()
40691
+ {
40692
+ var mapData=new Map();
40693
+ this.MapCache=mapData;
40694
+ if (!IFrameSplitOperator.IsNonEmptyArray(this.AryIcon)) return;
40695
+
40696
+ for(var i=0;i<this.AryIcon.length;++i)
40697
+ {
40698
+ var item=this.AryIcon[i];
40699
+ var key=this.BuildKey(item);
40700
+ if (mapData.has(key))
40701
+ {
40702
+ var mapItem=mapData.get(key);
40703
+ mapItem.Data.push(item);
40704
+ }
40705
+ else
40706
+ {
40707
+ mapData.set(key,{ Data:[item] });
40708
+ }
40709
+ }
40710
+ }
40711
+
40712
+ this.Draw=function()
40713
+ {
40714
+ this.IconRect=[];
40715
+ if (!this.IsShow || this.ChartFrame.IsMinSize || !this.IsVisible) return;
40716
+ if (this.IsShowIndexTitleOnly()) return;
40717
+ if (this.IsHideScriptIndex()) return;
40718
+ if (!this.Data || !IFrameSplitOperator.IsNonEmptyArray(this.Data.Data)) return; //k线数据
40719
+ if (!this.Family) return;
40720
+ if (!this.MapCache || this.MapCache.size<=0) return;
40721
+
40722
+ this.IsHScreen=(this.ChartFrame.IsHScreen===true);
40723
+ var xPointCount=this.ChartFrame.XPointCount;
40724
+ var dataWidth=this.ChartFrame.DataWidth;
40725
+ var distanceWidth=this.ChartFrame.DistanceWidth;
40726
+ var isMinute=this.IsMinuteFrame();
40727
+
40728
+ var border=this.GetBorder();
40729
+ if (this.IsHScreen)
40730
+ {
40731
+ var xOffset=border.TopEx+distanceWidth/2.0+g_JSChartResource.FrameLeftMargin;
40732
+ var chartright=border.BottomEx;
40733
+ var chartLeft=border.TopEx;
40734
+ }
40735
+ else
40736
+ {
40737
+ var xOffset=border.LeftEx+distanceWidth/2.0+g_JSChartResource.FrameLeftMargin;
40738
+ var chartright=border.RightEx;
40739
+ var chartLeft=border.LeftEx;
40740
+ }
40741
+
40742
+ var fontSize=this.GetDynamicIconSize(dataWidth,distanceWidth,this.IconSize.Max,this.IconSize.Min,this.IconSize.Zoom);
40743
+ this.Canvas.font=fontSize+'px '+this.Family;
40744
+
40745
+ var drawInfo={ Left:chartLeft, Right:chartright, FontSize:fontSize, DataWidth:dataWidth, DistanceWidth:distanceWidth };
40746
+
40747
+ for(var i=this.Data.DataOffset,j=0;i<this.Data.Data.length && j<xPointCount;++i,++j,xOffset+=(dataWidth+distanceWidth))
40748
+ {
40749
+ var kItem=this.Data.Data[i];
40750
+ var key=this.BuildKey(kItem);
40751
+ if (!this.MapCache.has(key)) continue;
40752
+ var mapItem=this.MapCache.get(key);
40753
+
40754
+ if (isMinute)
40755
+ {
40756
+ var x=this.ChartFrame.GetXFromIndex(j);
40757
+ }
40758
+ else
40759
+ {
40760
+ var left=xOffset;
40761
+ var right=xOffset+dataWidth;
40762
+ if (right>chartright) break;
40763
+ var x=left+(right-left)/2;
40764
+ }
40765
+
40766
+ this.DrawItem(mapItem, kItem, x, drawInfo);
40767
+ }
40768
+ }
40769
+
40770
+ this.GetKValue=function(kItem, valueName)
40771
+ {
40772
+ switch(valueName)
40773
+ {
40774
+ case "HIGH":
40775
+ case "H":
40776
+ return kItem.High;
40777
+ case "L":
40778
+ case "LOW":
40779
+ return kItem.Low;
40780
+ case "C":
40781
+ case "CLOSE":
40782
+ return kItem.Close;
40783
+ case "O":
40784
+ case "OPEN":
40785
+ return KItem.Open;
40786
+ default:
40787
+ return null;
40788
+ }
40789
+ }
40790
+
40791
+ this.DrawItem=function(groupItem, kItem, x, drawInfo)
40792
+ {
40793
+ if (!IFrameSplitOperator.IsNonEmptyArray(groupItem.Data)) return;
40794
+
40795
+ var fontSize=drawInfo.FontSize;
40796
+ var left=drawInfo.Left, right=drawInfo.Right;
40797
+ var dataWidth=drawInfo.DataWidth;
40798
+ //var distanceWidth=drawInfo.DistanceWidth;
40799
+
40800
+ for(var i=0;i<groupItem.Data.length;++i)
40801
+ {
40802
+ var item=groupItem.Data[i];
40803
+ var value=item.Value;
40804
+ if (IFrameSplitOperator.IsString(item.Value)) value=this.GetKValue(kItem,item.Value);
40805
+ if (!IFrameSplitOperator.IsNumber(value)) continue;
40806
+
40807
+ var y=this.ChartFrame.GetYFromData(item.Value,false);
40808
+
40809
+ if (item.Color) this.Canvas.fillStyle = item.Color;
40810
+ else this.Canvas.fillStyle = this.Color;
40811
+
40812
+ var textWidth=this.Canvas.measureText(item.Symbol).width;
40813
+ this.Canvas.textAlign='center';
40814
+ var rtIcon=new Rect(x-fontSize/2,y-fontSize/2,fontSize,fontSize);
40815
+ if (x+textWidth/2>=right)
40816
+ {
40817
+ this.Canvas.textAlign='right';
40818
+ x+=dataWidth/2;
40819
+ rtIcon.X=x-fontSize;
40820
+ }
40821
+ else if (x-textWidth/2<left)
40822
+ {
40823
+ this.Canvas.textAlign = 'left';
40824
+ x-=dataWidth/2;
40825
+ rtIcon.X=x;
40826
+ }
40827
+
40828
+ if (item.Baseline==1)
40829
+ {
40830
+ this.Canvas.textBaseline='top';
40831
+ rtIcon.Y=y;
40832
+ }
40833
+ else if (item.Baseline==2)
40834
+ {
40835
+ this.Canvas.textBaseline='bottom';
40836
+ rtIcon.Y=y-fontSize;
40837
+ }
40838
+ else
40839
+ {
40840
+ this.Canvas.textBaseline = 'middle';
40841
+ rtIcon.Y=y-fontSize/2;
40842
+ }
40843
+
40844
+ if (this.IsHScreen)
40845
+ {
40846
+ this.Canvas.save();
40847
+ this.Canvas.translate(y, x);
40848
+ this.Canvas.rotate(90 * Math.PI / 180);
40849
+ this.Canvas.fillText(item.Symbol,0,0);
40850
+ this.Canvas.restore();
40851
+ }
40852
+ else
40853
+ {
40854
+ if (IFrameSplitOperator.IsNumber(item.YMove)) y+=item.YMove;
40855
+ this.Canvas.fillText(item.Symbol, x, y);
40856
+ if (item.Text) this.IconRect.push({ Rect:rtIcon , Item:item, KItem:kItem });
40857
+ }
40858
+
40859
+ if (item.Line)
40860
+ {
40861
+ var price=item.Line.KData=="H"? kItem.High:kItem.Low;
40862
+ var yPrice=this.ChartFrame.GetYFromData(price, false);
40863
+ var yText=y;
40864
+ if (Array.isArray(item.Line.Offset) && item.Line.Offset.length==2)
40865
+ {
40866
+ if (yText>yPrice) //文字在下方
40867
+ {
40868
+ yText-=item.Line.Offset[1];
40869
+ yPrice+=item.Line.Offset[0]
40870
+ }
40871
+ else if (yText<yPrice)
40872
+ {
40873
+ yText+=item.Line.Offset[1];
40874
+ yPrice-=item.Line.Offset[0]
40875
+ }
40876
+ }
40877
+ this.Canvas.save();
40878
+ if (item.Line.Dash) this.Canvas.setLineDash(item.Line.Dash); //虚线
40879
+ if (item.Line.Width>0) this.Canvas.lineWidth=item.Line.Width; //线宽
40880
+ this.Canvas.strokeStyle = item.Line.Color;
40881
+ this.Canvas.beginPath();
40882
+ if (this.IsHScreen)
40883
+ {
40884
+ this.Canvas.moveTo(yText, ToFixedPoint(x));
40885
+ this.Canvas.lineTo(yPrice,ToFixedPoint(x));
40886
+ }
40887
+ else
40888
+ {
40889
+ this.Canvas.moveTo(ToFixedPoint(x),yText);
40890
+ this.Canvas.lineTo(ToFixedPoint(x),yPrice);
40891
+ }
40892
+
40893
+ this.Canvas.stroke();
40894
+ this.Canvas.restore();
40895
+ }
40896
+ }
40897
+ }
40898
+
40899
+ this.GetTooltipData=function(x,y,tooltip)
40900
+ {
40901
+ if (!IFrameSplitOperator.IsNonEmptyArray(this.IconRect)) return false;
40902
+ for(var i=0; i<this.IconRect.length; ++i)
40903
+ {
40904
+ var item=this.IconRect[i];
40905
+ if (!item.Rect) continue;
40906
+ var rect=item.Rect;
40907
+ this.Canvas.beginPath();
40908
+ this.Canvas.rect(rect.X,rect.Y,rect.Width,rect.Height);
40909
+ if (this.Canvas.isPointInPath(x,y))
40910
+ {
40911
+ JSConsole.Chart.Log('[ChartMultiSVGIconV2::GetTooltipData] icon ', item);
40912
+ tooltip.Data=item;
40913
+ tooltip.ChartPaint=this;
40914
+ tooltip.Type=4; //指标
40915
+ return true;
40916
+ }
40917
+ }
40918
+
40919
+ return false;
40920
+ }
40921
+
40922
+ this.GetMaxMin=function()
40923
+ {
40924
+ this.IsHScreen=(this.ChartFrame.IsHScreen===true);
40925
+ var range={ Min:null, Max:null };
40926
+ if(!this.Data || !IFrameSplitOperator.IsNonEmptyArray(this.Data.Data)) return range;
40927
+ if (!this.MapCache || this.MapCache.size<=0) return;
40928
+ var xPointCount=this.ChartFrame.XPointCount;
40929
+
40930
+ for(var i=this.Data.DataOffset,j=0, k=0;i<this.Data.Data.length && j<xPointCount;++i,++j)
40931
+ {
40932
+ var kItem=this.Data.Data[i];
40933
+ var key=this.BuildKey(kItem);
40934
+ if (!this.MapCache.has(key)) continue;
40935
+ var mapItem=this.MapCache.get(key);
40936
+ if (!IFrameSplitOperator.IsNonEmptyArray(mapItem.Data)) continue;
40937
+
40938
+ for(k=0;k<mapItem.Data.length;++k)
40939
+ {
40940
+ var item=mapItem.Data[k];
40941
+ var value=item.Value;
40942
+ if (IFrameSplitOperator.IsString(item.Value)) value=this.GetKValue(kItem,item.Value);
40943
+ if (!IFrameSplitOperator.IsNumber(value)) continue;
40944
+
40945
+ if (range.Max==null) range.Max=value;
40946
+ else if (range.Max<value) range.Max=value;
40947
+ if (range.Min==null) range.Min=value;
40948
+ else if (range.Min>value) range.Min=value;
40949
+ }
40950
+ }
40951
+
40952
+ return range;
40953
+ }
40954
+ }
40955
+
40662
40956
  // 多dom节点
40663
40957
  function ChartMultiHtmlDom()
40664
40958
  {
@@ -56001,6 +56295,7 @@ function IChartDrawPicture()
56001
56295
 
56002
56296
  this.IsDrawFirst=false;
56003
56297
  this.IsShowYCoordinate=false; //是否在Y轴显示点的刻度
56298
+ this.IsShow=true; //是否显示
56004
56299
 
56005
56300
  this.LineColor=g_JSChartResource.DrawPicture.LineColor[0]; //线段颜色
56006
56301
  //this.LineColor="#1e90ff"; //线段颜色,input type="color" 不支持rgb和rgba 的格式
@@ -57070,6 +57365,8 @@ function IChartDrawPicture()
57070
57365
  this.GetXYCoordinate_default=function()
57071
57366
  {
57072
57367
  if (this.IsFrameMinSize()) return null;
57368
+ if (!this.IsShow) return null;
57369
+
57073
57370
  var drawPoint=this.CalculateDrawPoint( {IsCheckX:true, IsCheckY:true} );
57074
57371
 
57075
57372
  return this.PointRange(drawPoint);
@@ -57525,6 +57822,7 @@ function ChartDrawPictureLine()
57525
57822
  {
57526
57823
  this.LinePoint=[];
57527
57824
  if (this.IsFrameMinSize()) return;
57825
+ if (!this.IsShow) return;
57528
57826
 
57529
57827
  var drawPoint=this.CalculateDrawPoint( {IsCheckX:true, IsCheckY:true} );
57530
57828
  if (!drawPoint) return;
@@ -57562,6 +57860,7 @@ function ChartDrawPictureLine()
57562
57860
  this.GetYCoordinatePoint=function()
57563
57861
  {
57564
57862
  if (this.IsFrameMinSize()) return null;
57863
+ if (!this.IsShow) return null;
57565
57864
 
57566
57865
  if (this.Status<2) return null;
57567
57866
  if(!this.Point.length || !this.Frame) return null;
@@ -57724,6 +58023,7 @@ function ChartDrawGraffitiLine()
57724
58023
  {
57725
58024
  this.LinePoint=[];
57726
58025
  if (this.IsFrameMinSize()) return;
58026
+ if (!this.IsShow) return;
57727
58027
 
57728
58028
  var drawPoint=this.CalculateDrawPoint( {IsCheckX:true, IsCheckY:true} );
57729
58029
  if (!drawPoint) return;
@@ -57779,6 +58079,7 @@ function ChartDrawArrowLine()
57779
58079
  {
57780
58080
  this.LinePoint=[];
57781
58081
  if (this.IsFrameMinSize()) return;
58082
+ if (!this.IsShow) return;
57782
58083
 
57783
58084
  var drawPoint=this.CalculateDrawPoint( {IsCheckX:true, IsCheckY:true} );
57784
58085
  if (!drawPoint) return;
@@ -57897,6 +58198,7 @@ function ChartDrawPictureHaflLine()
57897
58198
  this.LinePoint=[];
57898
58199
  this.FullLine=null;
57899
58200
  if (this.IsFrameMinSize()) return;
58201
+ if (!this.IsShow) return;
57900
58202
 
57901
58203
  var drawPoint=this.CalculateDrawPoint({IsCheckX:false, IsCheckY:false});
57902
58204
  if (!drawPoint || drawPoint.length!=2) return;
@@ -57975,6 +58277,7 @@ function ChartDrawPictureHorizontalLine()
57975
58277
  {
57976
58278
  this.LinePoint=[];
57977
58279
  if (this.IsFrameMinSize()) return;
58280
+ if (!this.IsShow) return;
57978
58281
 
57979
58282
  var drawPoint=this.CalculateDrawPoint();
57980
58283
  if (!drawPoint || drawPoint.length!=1) return;
@@ -58231,6 +58534,7 @@ function ChartDrawHLine()
58231
58534
  this.ButtonBGWidth=0;
58232
58535
 
58233
58536
  if (this.IsFrameMinSize()) return;
58537
+ if (!this.IsShow) return;
58234
58538
 
58235
58539
  var drawPoint=this.CalculateDrawPoint();
58236
58540
  if (!drawPoint || drawPoint.length!=1) return;
@@ -58628,6 +58932,7 @@ function ChartDrawPictureTrendLine()
58628
58932
  {
58629
58933
  this.LinePoint=[];
58630
58934
  if (this.IsFrameMinSize()) return;
58935
+ if (!this.IsShow) return;
58631
58936
 
58632
58937
  var drawPoint=this.CalculateDrawPoint({IsCheckX:false, IsCheckY:false});
58633
58938
  if (!drawPoint || drawPoint.length!=2) return;
@@ -58670,6 +58975,7 @@ function ChartDrawPictureRect()
58670
58975
  this.Draw=function()
58671
58976
  {
58672
58977
  if (this.IsFrameMinSize()) return;
58978
+ if (!this.IsShow) return;
58673
58979
 
58674
58980
  var drawPoint=this.CalculateDrawPoint({IsCheckX:true, IsCheckY:true});
58675
58981
  if (!drawPoint || drawPoint.length!=2) return;
@@ -58781,6 +59087,7 @@ function ChartDrawPictureArc()
58781
59087
  this.Draw=function()
58782
59088
  {
58783
59089
  if (this.IsFrameMinSize()) return;
59090
+ if (!this.IsShow) return;
58784
59091
 
58785
59092
  var drawPoint=this.CalculateDrawPoint();
58786
59093
  if (!drawPoint || drawPoint.length!=2) return;
@@ -59012,6 +59319,7 @@ function ChartDrawPictureWaveMW()
59012
59319
  this.LinePoint=[];
59013
59320
  if (!this.Frame) return;
59014
59321
  if (this.IsFrameMinSize()) return;
59322
+ if (!this.IsShow) return;
59015
59323
 
59016
59324
  this.IsHScreen=this.Frame.IsHScreen;
59017
59325
  var drawPoint=this.CalculateDrawPoint({IsCheckX:true, IsCheckY:true});
@@ -59310,6 +59618,7 @@ function ChartDrawPictureParallelLines()
59310
59618
  this.LinePoint=[];
59311
59619
  this.CenterLine.Line=null;
59312
59620
  if (this.IsFrameMinSize()) return;
59621
+ if (!this.IsShow) return;
59313
59622
 
59314
59623
  var drawPoint=this.CalculateDrawPoint({IsCheckX:false, IsCheckY:false}); //不检测x,y
59315
59624
  if (!drawPoint) return;
@@ -59423,6 +59732,7 @@ function ChartDrawFlatTop()
59423
59732
  {
59424
59733
  this.LinePoint=[];
59425
59734
  if (this.IsFrameMinSize()) return;
59735
+ if (!this.IsShow) return;
59426
59736
 
59427
59737
  var drawPoint=this.CalculateDrawPoint({IsCheckX:true, IsCheckY:true});
59428
59738
  if (!drawPoint) return;
@@ -59775,6 +60085,7 @@ function ChartDrawPictureParallelChannel()
59775
60085
  {
59776
60086
  this.LinePoint=[];
59777
60087
  if (this.IsFrameMinSize()) return;
60088
+ if (!this.IsShow) return;
59778
60089
 
59779
60090
  var drawPoint=this.CalculateDrawPoint();
59780
60091
  if (!drawPoint) return;
@@ -59925,6 +60236,7 @@ function ChartDrawPictureText()
59925
60236
  {
59926
60237
  this.TextRect=null;
59927
60238
  if (this.IsFrameMinSize()) return;
60239
+ if (!this.IsShow) return;
59928
60240
 
59929
60241
  var drawPoint=this.CalculateDrawPoint({IsCheckX:true, IsCheckY:true});
59930
60242
  if (!drawPoint || drawPoint.length!=1) return;
@@ -60028,6 +60340,7 @@ function ChartDrawPictureIconFont()
60028
60340
  {
60029
60341
  this.TextRect=null;
60030
60342
  if (this.IsFrameMinSize()) return;
60343
+ if (!this.IsShow) return;
60031
60344
 
60032
60345
  var drawPoint=this.CalculateDrawPoint({IsCheckX:true, IsCheckY:true});
60033
60346
  if (!drawPoint || drawPoint.length!=1) return;
@@ -60126,6 +60439,7 @@ function ChartDrawPictureGannFan()
60126
60439
  {
60127
60440
  this.LinePoint=[];
60128
60441
  if (this.IsFrameMinSize()) return;
60442
+ if (!this.IsShow) return;
60129
60443
 
60130
60444
  var drawPoint=this.CalculateDrawPoint({IsCheckX:true, IsCheckY:true});
60131
60445
  if (!drawPoint) return;
@@ -60437,6 +60751,7 @@ function ChartDrawPictureGoldenSection()
60437
60751
  {
60438
60752
  this.LinePoint=[];
60439
60753
  if (this.IsFrameMinSize()) return;
60754
+ if (!this.IsShow) return;
60440
60755
 
60441
60756
  var drawPoint=this.CalculateDrawPoint();
60442
60757
  if (!drawPoint) return;
@@ -60614,6 +60929,7 @@ function ChartDrawPictureTriangle()
60614
60929
  {
60615
60930
  this.LinePoint=[];
60616
60931
  if (this.IsFrameMinSize()) return;
60932
+ if (!this.IsShow) return;
60617
60933
 
60618
60934
  var drawPoint=this.CalculateDrawPoint({IsCheckX:true, IsCheckY:true});
60619
60935
  if (!drawPoint) return;
@@ -60733,6 +61049,7 @@ function ChartDrawPictureSymmetryAngle()
60733
61049
  {
60734
61050
  this.LinePoint=[];
60735
61051
  if (this.IsFrameMinSize()) return;
61052
+ if (!this.IsShow) return;
60736
61053
 
60737
61054
  var drawPoint=this.CalculateDrawPoint({IsCheckX:true, IsCheckY:true});
60738
61055
  if (!drawPoint) return;
@@ -60827,6 +61144,7 @@ function ChartDrawPictureCircle()
60827
61144
  {
60828
61145
  this.LinePoint=[];
60829
61146
  if (this.IsFrameMinSize()) return;
61147
+ if (!this.IsShow) return;
60830
61148
 
60831
61149
  var drawPoint=this.CalculateDrawPoint({IsCheckX:true, IsCheckY:true});
60832
61150
  if (!drawPoint || drawPoint.length!=2) return;
@@ -60890,6 +61208,7 @@ function ChartDrawPictureQuadrangle()
60890
61208
  {
60891
61209
  this.LinePoint=[];
60892
61210
  if (this.IsFrameMinSize()) return;
61211
+ if (!this.IsShow) return;
60893
61212
 
60894
61213
  var drawPoint=this.CalculateDrawPoint({IsCheckX:true, IsCheckY:true});
60895
61214
  if (!drawPoint) return;
@@ -60986,6 +61305,7 @@ function ChartDrawPictureFibonacci()
60986
61305
  {
60987
61306
  this.LinePoint=[];
60988
61307
  if (this.IsFrameMinSize()) return;
61308
+ if (!this.IsShow) return;
60989
61309
 
60990
61310
  var drawPoint=this.CalculateDrawPoint();
60991
61311
  if (!drawPoint) return;
@@ -61188,6 +61508,7 @@ function ChartDrawLinearRegression(option)
61188
61508
  {
61189
61509
  this.LinePoint=[];
61190
61510
  if (this.IsFrameMinSize()) return;
61511
+ if (!this.IsShow) return;
61191
61512
 
61192
61513
  var drawPoint=this.CalculateDrawPoint( { IsCheckX:true, IsCheckY:true} );
61193
61514
  if (!drawPoint || drawPoint.length!=2)
@@ -61582,6 +61903,7 @@ function ChartDrawPriceLine()
61582
61903
  {
61583
61904
  this.LinePoint=[];
61584
61905
  if (this.IsFrameMinSize()) return;
61906
+ if (!this.IsShow) return;
61585
61907
 
61586
61908
  var drawPoint=this.CalculateDrawPoint( { IsCheckX:false, IsCheckY:true } );
61587
61909
  if (!drawPoint) return;
@@ -61682,6 +62004,7 @@ function ChartDrawPriceLineV2()
61682
62004
  {
61683
62005
  this.LinePoint=[];
61684
62006
  if (this.IsFrameMinSize()) return;
62007
+ if (!this.IsShow) return;
61685
62008
 
61686
62009
  var drawPoint=this.CalculateDrawPoint( { IsCheckX:false, IsCheckY:true } );
61687
62010
  if (!drawPoint) return;
@@ -61852,6 +62175,7 @@ function ChartDrawVerticalLine()
61852
62175
  {
61853
62176
  this.LinePoint=[];
61854
62177
  if (this.IsFrameMinSize()) return;
62178
+ if (!this.IsShow) return;
61855
62179
 
61856
62180
  if (!this.Frame || !this.Frame.Data) return;
61857
62181
  var data=this.Frame.Data;
@@ -61930,6 +62254,7 @@ function ChartDrawWaveRuler()
61930
62254
  {
61931
62255
  this.LinePoint=[];
61932
62256
  if (this.IsFrameMinSize()) return;
62257
+ if (!this.IsShow) return;
61933
62258
 
61934
62259
  var drawPoint=this.CalculateDrawPoint({IsCheckX:true, IsCheckY:true});
61935
62260
  if (!drawPoint) return;
@@ -62092,6 +62417,7 @@ function ChartDrawWaveRuler2Point()
62092
62417
  {
62093
62418
  this.LinePoint=[];
62094
62419
  if (this.IsFrameMinSize()) return;
62420
+ if (!this.IsShow) return;
62095
62421
 
62096
62422
  var drawPoint=this.CalculateDrawPoint({IsCheckX:true, IsCheckY:true});
62097
62423
  if (!drawPoint) return;
@@ -62224,6 +62550,7 @@ function ChartDrawBox()
62224
62550
  {
62225
62551
  this.LinePoint=[];
62226
62552
  if (this.IsFrameMinSize()) return;
62553
+ if (!this.IsShow) return;
62227
62554
 
62228
62555
  var drawPoint=this.CalculateDrawPoint( {IsCheckX:true, IsCheckY:true} );
62229
62556
  if (!drawPoint) return;
@@ -62454,6 +62781,7 @@ function ChartDrawTwoPointDemo()
62454
62781
  this.LinePoint=[];
62455
62782
  this.PointInfo=[];
62456
62783
  if (this.IsFrameMinSize()) return;
62784
+ if (!this.IsShow) return;
62457
62785
 
62458
62786
  var drawPoint=this.CalculateDrawPoint({IsCheckX:true, IsCheckY:true});
62459
62787
  if (!drawPoint) return;
@@ -62691,6 +63019,7 @@ function ChartDrawHLineSegment()
62691
63019
  this.IsHScreen=this.Frame.IsHScreen;
62692
63020
  this.LinePoint=[];
62693
63021
  if (this.IsFrameMinSize()) return;
63022
+ if (!this.IsShow) return;
62694
63023
 
62695
63024
  var drawPoint=this.CalculateDrawPoint( { IsCheckX:false, IsCheckY:true} );
62696
63025
  if (!drawPoint || drawPoint.length!=2) return;
@@ -63346,6 +63675,7 @@ function ChartDrawNote()
63346
63675
  this.TextRect=null;
63347
63676
  this.PtCenter=null;
63348
63677
  if (this.IsFrameMinSize()) return;
63678
+ if (!this.IsShow) return;
63349
63679
 
63350
63680
  var drawPoint=this.CalculateDrawPoint({IsCheckX:true, IsCheckY:true});
63351
63681
  if (!drawPoint || drawPoint.length!=1) return;
@@ -63729,6 +64059,7 @@ function ChartDrawAnchoredText()
63729
64059
  if (this.Status<2) return;
63730
64060
  if(this.Point.length!=1 || !this.Frame) return;
63731
64061
  if (this.IsFrameMinSize()) return;
64062
+ if (!this.IsShow) return;
63732
64063
 
63733
64064
  var drawPoint=this.CalculateDrawPoint();
63734
64065
  if (!drawPoint || drawPoint.length!=1) return;
@@ -64078,6 +64409,7 @@ function ChartDrawPriceLabel()
64078
64409
  {
64079
64410
  this.TextRect=null;
64080
64411
  if (this.IsFrameMinSize()) return;
64412
+ if (!this.IsShow) return;
64081
64413
 
64082
64414
  var drawPoint=this.CalculateDrawPoint({IsCheckX:true, IsCheckY:true});
64083
64415
  if (!drawPoint || drawPoint.length!=1) return;
@@ -64317,6 +64649,7 @@ function ChartDrawPriceNote()
64317
64649
  this.LinePoint=[];
64318
64650
  this.TextRect=null;
64319
64651
  if (this.IsFrameMinSize()) return;
64652
+ if (!this.IsShow) return;
64320
64653
 
64321
64654
  var drawPoint=this.CalculateDrawPoint( {IsCheckX:true, IsCheckY:true} );
64322
64655
  if (!drawPoint) return;
@@ -64661,6 +64994,7 @@ function ChartDrawFibWedge()
64661
64994
  this.TextAngle=null;
64662
64995
  this.Radius=null;
64663
64996
  if (this.IsFrameMinSize()) return;
64997
+ if (!this.IsShow) return;
64664
64998
 
64665
64999
  var drawPoint=this.CalculateDrawPoint({IsCheckX:false, IsCheckY:false});
64666
65000
  if (!IFrameSplitOperator.IsNonEmptyArray(drawPoint)) return;
@@ -65044,6 +65378,8 @@ function ChartFibRetracement()
65044
65378
  {
65045
65379
  this.LinePoint=[];
65046
65380
  if (this.IsFrameMinSize()) return;
65381
+ if (!this.IsShow) return;
65382
+
65047
65383
  var bCheckXY=true;
65048
65384
  if (this.ExtendLine.Left || this.ExtendLine.Right) bCheckXY=false;
65049
65385
  var drawPoint=this.CalculateDrawPoint( {IsCheckX:bCheckXY, IsCheckY:bCheckXY} );
@@ -65236,6 +65572,8 @@ function ChartFibSpeedResistanceFan()
65236
65572
  {
65237
65573
  this.LinePoint=[];
65238
65574
  if (this.IsFrameMinSize()) return;
65575
+ if (!this.IsShow) return;
65576
+
65239
65577
  var bCheckXY=false;
65240
65578
  var drawPoint=this.CalculateDrawPoint( {IsCheckX:bCheckXY, IsCheckY:bCheckXY} );
65241
65579
  if (!drawPoint) return;
@@ -65501,6 +65839,8 @@ function ChartPriceRange()
65501
65839
  {
65502
65840
  this.LinePoint=[];
65503
65841
  if (this.IsFrameMinSize()) return;
65842
+ if (!this.IsShow) return;
65843
+
65504
65844
  var bCheckXY=true;
65505
65845
  if (this.ExtendLine.Left || this.ExtendLine.Right) bCheckXY=false;
65506
65846
  var drawPoint=this.CalculateDrawPoint( {IsCheckX:bCheckXY, IsCheckY:bCheckXY} );
@@ -65618,6 +65958,8 @@ function ChartDateRange()
65618
65958
  {
65619
65959
  this.LinePoint=[];
65620
65960
  if (this.IsFrameMinSize()) return;
65961
+ if (!this.IsShow) return;
65962
+
65621
65963
  var bCheckXY=true;
65622
65964
  var drawPoint=this.CalculateDrawPoint( {IsCheckX:bCheckXY, IsCheckY:bCheckXY} );
65623
65965
  if (!drawPoint) return;
@@ -114137,7 +114479,7 @@ function ScriptIndex(name,script,args,option)
114137
114479
 
114138
114480
  this.CreateMultiSVGIcon=function(hqChart,windowIndex,varItem,i)
114139
114481
  {
114140
- let chart=new ChartMultiSVGIcon();
114482
+ let chart=new ChartMultiSVGIconV2();
114141
114483
  chart.Canvas=hqChart.Canvas;
114142
114484
  chart.Name=varItem.Name;
114143
114485
  chart.ChartBorder=hqChart.Frame.SubFrame[windowIndex].Frame.ChartBorder;
@@ -114145,7 +114487,8 @@ function ScriptIndex(name,script,args,option)
114145
114487
 
114146
114488
  chart.Data=hqChart.ChartPaint[0].Data;//绑定K线
114147
114489
  chart.Family=varItem.Draw.DrawData.Family;
114148
- chart.Icon= varItem.Draw.DrawData.Icon;
114490
+ chart.AryIcon= varItem.Draw.DrawData.Icon;
114491
+ chart.BuildCacheData();
114149
114492
  hqChart.ChartPaint.push(chart);
114150
114493
  }
114151
114494
 
@@ -115801,7 +116144,7 @@ function OverlayScriptIndex(name,script,args,option)
115801
116144
  {
115802
116145
  var overlayIndex=this.OverlayIndex;
115803
116146
  var frame=overlayIndex.Frame;
115804
- let chart=new ChartMultiSVGIcon();
116147
+ let chart=new ChartMultiSVGIconV2();
115805
116148
  chart.Canvas=hqChart.Canvas;
115806
116149
  chart.Name=varItem.Name;
115807
116150
  chart.ChartBorder=frame.Frame.ChartBorder;
@@ -115810,7 +116153,8 @@ function OverlayScriptIndex(name,script,args,option)
115810
116153
 
115811
116154
  chart.Data=hqChart.ChartPaint[0].Data;//绑定K线
115812
116155
  chart.Family=varItem.Draw.DrawData.Family;
115813
- chart.Icon= varItem.Draw.DrawData.Icon;
116156
+ chart.AryIcon= varItem.Draw.DrawData.Icon;
116157
+ chart.BuildCacheData();
115814
116158
  frame.ChartPaint.push(chart);
115815
116159
  }
115816
116160
 
@@ -116900,8 +117244,7 @@ function APIScriptIndex(name,script,args,option, isOverlay)
116900
117244
  drawItem.Text=draw.Text;
116901
117245
  drawItem.Name=draw.Name;
116902
117246
  drawItem.DrawType=draw.DrawType;
116903
- drawItem.DrawData={ Icon:this.FittingMultiText(draw.DrawData.Icon,date,time,hqChart), Family:draw.DrawData.Family };
116904
- this.GetKLineData(drawItem.DrawData.Icon, hqChart);
117247
+ drawItem.DrawData={ Icon:draw.DrawData.Icon, Family:draw.DrawData.Family };
116905
117248
  outVarItem.Draw=drawItem;
116906
117249
 
116907
117250
  result.push(outVarItem);
@@ -117301,8 +117644,7 @@ function APIScriptIndex(name,script,args,option, isOverlay)
117301
117644
  drawItem.Text=draw.Text;
117302
117645
  drawItem.Name=draw.Name;
117303
117646
  drawItem.DrawType=draw.DrawType;
117304
- drawItem.DrawData={ Icon:this.FittingMultiText(draw.DrawData.Icon,date,time,hqChart), Family:draw.DrawData.Family };
117305
- this.GetKLineData(drawItem.DrawData.Icon, hqChart);
117647
+ drawItem.DrawData={ Icon:draw.DrawData.Icon, Family:draw.DrawData.Family };
117306
117648
  outVarItem.Draw=drawItem;
117307
117649
 
117308
117650
  result.push(outVarItem);
@@ -129560,7 +129902,7 @@ function ScrollBarBGChart()
129560
129902
 
129561
129903
 
129562
129904
 
129563
- var HQCHART_VERSION="1.1.13008";
129905
+ var HQCHART_VERSION="1.1.13015";
129564
129906
 
129565
129907
  function PrintHQChartVersion()
129566
129908
  {