hqchart 1.1.12708 → 1.1.12714
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.
|
@@ -4638,6 +4638,8 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
|
|
|
4638
4638
|
if (IFrameSplitOperator.IsBool(item.IsShowIndexTitle)) chart.Frame.SubFrame[i].Frame.IsShowIndexTitle=item.IsShowIndexTitle;
|
|
4639
4639
|
if (IFrameSplitOperator.IsBool(item.IsDrawTitleBottomLine)) subFrame.IsDrawTitleBottomLine=item.IsDrawTitleBottomLine;
|
|
4640
4640
|
if (IFrameSplitOperator.IsBool(item.IsShowNameArrow)) chart.Frame.SubFrame[i].Frame.IsShowNameArrow=item.IsShowNameArrow;
|
|
4641
|
+
|
|
4642
|
+
if (item.ClientBGColor) subFrame.ClientBGColor=item.ClientBGColor;
|
|
4641
4643
|
}
|
|
4642
4644
|
}
|
|
4643
4645
|
|
|
@@ -5051,6 +5053,8 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
|
|
|
5051
5053
|
{
|
|
5052
5054
|
var item=option.Frame[i];
|
|
5053
5055
|
if (!chart.Frame.SubFrame[i]) continue;
|
|
5056
|
+
var subFrame=chart.Frame.SubFrame[i].Frame;
|
|
5057
|
+
|
|
5054
5058
|
if (IFrameSplitOperator.IsNumber(item.SplitCount)) chart.Frame.SubFrame[i].Frame.YSplitOperator.SplitCount=item.SplitCount;
|
|
5055
5059
|
if (item.StringFormat) chart.Frame.SubFrame[i].Frame.YSplitOperator.StringFormat=item.StringFormat;
|
|
5056
5060
|
if (IFrameSplitOperator.IsNumber(item.SplitType))
|
|
@@ -5085,6 +5089,8 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
|
|
|
5085
5089
|
|
|
5086
5090
|
//是否显示关闭集合竞价按钮
|
|
5087
5091
|
if (IFrameSplitOperator.IsNumber(item.CloseBeforeButton)) chart.Frame.SubFrame[i].Frame.IsShowCloseButton=item.CloseBeforeButton;
|
|
5092
|
+
|
|
5093
|
+
if (item.ClientBGColor) subFrame.ClientBGColor=item.ClientBGColor;
|
|
5088
5094
|
}
|
|
5089
5095
|
|
|
5090
5096
|
chart.UpdateXShowText();
|
|
@@ -13346,6 +13352,8 @@ function IChartFramePainting()
|
|
|
13346
13352
|
this.HorizontalMin; //Y轴最小值
|
|
13347
13353
|
this.XPointCount=10; //X轴数据个数
|
|
13348
13354
|
|
|
13355
|
+
this.ClientBGColor; //客户区背景色
|
|
13356
|
+
|
|
13349
13357
|
//Y轴原始的最大值 最小值
|
|
13350
13358
|
this.YMaxMin={ Max:null, Min:null };
|
|
13351
13359
|
|
|
@@ -13411,6 +13419,7 @@ function IChartFramePainting()
|
|
|
13411
13419
|
this.Draw=function()
|
|
13412
13420
|
{
|
|
13413
13421
|
this.Buttons=[];
|
|
13422
|
+
this.DrawClientBG();
|
|
13414
13423
|
this.DrawFrame();
|
|
13415
13424
|
this.DrawBorder();
|
|
13416
13425
|
|
|
@@ -13421,6 +13430,25 @@ function IChartFramePainting()
|
|
|
13421
13430
|
|
|
13422
13431
|
this.DrawFrame=function() { }
|
|
13423
13432
|
|
|
13433
|
+
this.DrawClientBG=function()
|
|
13434
|
+
{
|
|
13435
|
+
if (!this.ClientBGColor) return;
|
|
13436
|
+
|
|
13437
|
+
var border=this.IsHScreen==true?this.ChartBorder.GetHScreenBorder():this.ChartBorder.GetBorder();
|
|
13438
|
+
|
|
13439
|
+
var left=ToFixedPoint(border.Left);
|
|
13440
|
+
var top=ToFixedPoint(border.Top);
|
|
13441
|
+
//var top=ToFixedPoint(border.TopEx);
|
|
13442
|
+
var right=ToFixedPoint(border.Right);
|
|
13443
|
+
var bottom=ToFixedPoint(border.Bottom);
|
|
13444
|
+
var width=right-left;
|
|
13445
|
+
var height=bottom-top;
|
|
13446
|
+
|
|
13447
|
+
this.Canvas.fillStyle=this.ClientBGColor;
|
|
13448
|
+
this.Canvas.fillRect(left,top,width,height);
|
|
13449
|
+
|
|
13450
|
+
}
|
|
13451
|
+
|
|
13424
13452
|
this.ClearCoordinateText=function(option)
|
|
13425
13453
|
{
|
|
13426
13454
|
if (IFrameSplitOperator.IsNonEmptyArray(this.HorizontalInfo))
|
|
@@ -34834,7 +34862,9 @@ function ChartSingleText()
|
|
|
34834
34862
|
this.Draw=function()
|
|
34835
34863
|
{
|
|
34836
34864
|
if (!this.IsShow || this.ChartFrame.IsMinSize) return;
|
|
34837
|
-
|
|
34865
|
+
if (this.IsShowIndexTitleOnly()) return;
|
|
34866
|
+
if (this.IsHideScriptIndex()) return;
|
|
34867
|
+
|
|
34838
34868
|
if (this.NotSupportMessage)
|
|
34839
34869
|
{
|
|
34840
34870
|
this.DrawNotSupportmessage();
|
|
@@ -34863,6 +34893,10 @@ function ChartSingleText()
|
|
|
34863
34893
|
var chartright=this.ChartBorder.GetRight();
|
|
34864
34894
|
var top=this.ChartBorder.GetTopEx();
|
|
34865
34895
|
var bottom=this.ChartBorder.GetBottomEx();
|
|
34896
|
+
|
|
34897
|
+
this.Canvas.save();
|
|
34898
|
+
this.ClipClient(this.ChartFrame.IsHScreen);
|
|
34899
|
+
|
|
34866
34900
|
if (isHScreen)
|
|
34867
34901
|
{
|
|
34868
34902
|
chartright=this.ChartBorder.GetBottom();
|
|
@@ -34928,7 +34962,7 @@ function ChartSingleText()
|
|
|
34928
34962
|
var x=left+(right-left)/2;
|
|
34929
34963
|
}
|
|
34930
34964
|
|
|
34931
|
-
var y=this.ChartFrame.GetYFromData(value);
|
|
34965
|
+
var y=this.ChartFrame.GetYFromData(value,false);
|
|
34932
34966
|
|
|
34933
34967
|
if (x>chartright) break;
|
|
34934
34968
|
|
|
@@ -35027,6 +35061,8 @@ function ChartSingleText()
|
|
|
35027
35061
|
}
|
|
35028
35062
|
}
|
|
35029
35063
|
}
|
|
35064
|
+
|
|
35065
|
+
this.Canvas.restore();
|
|
35030
35066
|
}
|
|
35031
35067
|
|
|
35032
35068
|
this.DrawPosition=function() //绘制在指定位置上
|
|
@@ -35346,7 +35382,9 @@ function ChartDrawText()
|
|
|
35346
35382
|
|
|
35347
35383
|
this.Draw=function()
|
|
35348
35384
|
{
|
|
35349
|
-
if (!this.IsShow || this.ChartFrame.IsMinSize) return;
|
|
35385
|
+
if (!this.IsShow || this.ChartFrame.IsMinSize || !this.IsVisible) return;
|
|
35386
|
+
if (this.IsShowIndexTitleOnly()) return;
|
|
35387
|
+
if (this.IsHideScriptIndex()) return;
|
|
35350
35388
|
|
|
35351
35389
|
if (this.NotSupportMessage)
|
|
35352
35390
|
{
|
|
@@ -35364,6 +35402,10 @@ function ChartDrawText()
|
|
|
35364
35402
|
var chartright=this.ChartBorder.GetRight();
|
|
35365
35403
|
var top=this.ChartBorder.GetTopEx();
|
|
35366
35404
|
var bottom=this.ChartBorder.GetBottomEx();
|
|
35405
|
+
|
|
35406
|
+
this.Canvas.save();
|
|
35407
|
+
this.ClipClient(isHScreen);
|
|
35408
|
+
|
|
35367
35409
|
if (isHScreen)
|
|
35368
35410
|
{
|
|
35369
35411
|
chartright=this.ChartBorder.GetBottom();
|
|
@@ -35412,7 +35454,7 @@ function ChartDrawText()
|
|
|
35412
35454
|
}
|
|
35413
35455
|
else
|
|
35414
35456
|
{
|
|
35415
|
-
y=this.ChartFrame.GetYFromData(value);
|
|
35457
|
+
y=this.ChartFrame.GetYFromData(value,false);
|
|
35416
35458
|
}
|
|
35417
35459
|
|
|
35418
35460
|
if (x>chartright) break;
|
|
@@ -35436,6 +35478,8 @@ function ChartDrawText()
|
|
|
35436
35478
|
|
|
35437
35479
|
this.DrawVerticalLine(i, drawTextInfo, isHScreen);
|
|
35438
35480
|
}
|
|
35481
|
+
|
|
35482
|
+
this.Canvas.restore();
|
|
35439
35483
|
}
|
|
35440
35484
|
|
|
35441
35485
|
this.DrawText=function(text, drawInfo, isHScreen)
|
|
@@ -105067,6 +105111,11 @@ function JSDraw(errorHandler,symbolData)
|
|
|
105067
105111
|
return offset;
|
|
105068
105112
|
}
|
|
105069
105113
|
|
|
105114
|
+
this.FIRSTDRAW=function(value)
|
|
105115
|
+
{
|
|
105116
|
+
return value;
|
|
105117
|
+
}
|
|
105118
|
+
|
|
105070
105119
|
|
|
105071
105120
|
/*
|
|
105072
105121
|
SOUND 播放声音。用法:SOUND(NAME),播放NAME
|
|
@@ -111698,6 +111747,7 @@ function JSExecute(ast,option)
|
|
|
111698
111747
|
var fontSize=-1;
|
|
111699
111748
|
var bgConfig=null; //背景设置
|
|
111700
111749
|
var vLineConfig=null;
|
|
111750
|
+
var isFirstDraw=null;
|
|
111701
111751
|
let xOffset=null, yOffset=null;
|
|
111702
111752
|
for(let j=0; j<item.Expression.Expression.length; ++j)
|
|
111703
111753
|
{
|
|
@@ -111821,6 +111871,11 @@ function JSExecute(ast,option)
|
|
|
111821
111871
|
{
|
|
111822
111872
|
yOffset=itemExpression.Out;
|
|
111823
111873
|
}
|
|
111874
|
+
else if (itemExpression.Callee.Name=="FIRSTDRAW")
|
|
111875
|
+
{
|
|
111876
|
+
if (itemExpression.Out===0) isFirstDraw=false;
|
|
111877
|
+
else if (itemExpression.Out===1) isFirstDraw=true;
|
|
111878
|
+
}
|
|
111824
111879
|
else if (itemExpression.Callee.Name=="SOUND")
|
|
111825
111880
|
{
|
|
111826
111881
|
var event=this.GetSoundEvent();
|
|
@@ -111969,6 +112024,7 @@ function JSExecute(ast,option)
|
|
|
111969
112024
|
if (vLineConfig) outVar.VerticalLine=vLineConfig;
|
|
111970
112025
|
if (IFrameSplitOperator.IsNumber(xOffset)) outVar.XOffset=xOffset;
|
|
111971
112026
|
if (IFrameSplitOperator.IsNumber(yOffset)) outVar.YOffset=yOffset;
|
|
112027
|
+
if (IFrameSplitOperator.IsBool(isFirstDraw)) outVar.IsFirstDraw=isFirstDraw;
|
|
111972
112028
|
this.OutVarTable.push(outVar);
|
|
111973
112029
|
}
|
|
111974
112030
|
else if (varName)
|
|
@@ -112337,6 +112393,9 @@ function JSExecute(ast,option)
|
|
|
112337
112393
|
case "YMOVE":
|
|
112338
112394
|
node.Out=this.Draw.YMOVE(args[0]);
|
|
112339
112395
|
break;
|
|
112396
|
+
case "FIRSTDRAW":
|
|
112397
|
+
node.Out=this.Draw.FIRSTDRAW(args[0]);
|
|
112398
|
+
break;
|
|
112340
112399
|
case 'PARTLINE':
|
|
112341
112400
|
node.Draw=this.Draw.PARTLINE(args);
|
|
112342
112401
|
node.Out=[];
|
|
@@ -113407,6 +113466,8 @@ function JSExplainer(ast,option)
|
|
|
113407
113466
|
return `上涨颜色${args[0]}`;
|
|
113408
113467
|
case "DOWNCOLOR":
|
|
113409
113468
|
return `下跌颜色${args[0]}`;
|
|
113469
|
+
case "FIRSTDRAW":
|
|
113470
|
+
return "";
|
|
113410
113471
|
|
|
113411
113472
|
default:
|
|
113412
113473
|
this.ThrowUnexpectedNode(node,`函数${funcName}不存在`);
|
|
@@ -114919,6 +114980,8 @@ function ScriptIndex(name,script,args,option)
|
|
|
114919
114980
|
chart.SecondColor = varItem.Draw.Color[1];
|
|
114920
114981
|
chart.Data.Data=varItem.Draw.DrawData;
|
|
114921
114982
|
|
|
114983
|
+
if (IFrameSplitOperator.IsBool(varItem.IsFirstDraw)) chart.IsDrawFirst=varItem.IsFirstDraw;
|
|
114984
|
+
|
|
114922
114985
|
hqChart.ChartPaint.push(chart);
|
|
114923
114986
|
}
|
|
114924
114987
|
|
|
@@ -116252,6 +116315,10 @@ function OverlayScriptIndex(name,script,args,option)
|
|
|
116252
116315
|
case 'POLYLINE':
|
|
116253
116316
|
this.CreatePolyLine(hqChart,windowIndex,item,i);
|
|
116254
116317
|
break;
|
|
116318
|
+
case 'DRAWGBK':
|
|
116319
|
+
case "DRAWGBK2":
|
|
116320
|
+
this.CreateBackgroud(hqChart,windowIndex,item,i);
|
|
116321
|
+
break;
|
|
116255
116322
|
case 'DRAWNUMBER':
|
|
116256
116323
|
case "DRAWNUMBER_FIX":
|
|
116257
116324
|
case 'DRAWTEXT_FIX':
|
|
@@ -116783,6 +116850,8 @@ function OverlayScriptIndex(name,script,args,option)
|
|
|
116783
116850
|
chart.SecondColor = varItem.Draw.Color[1];
|
|
116784
116851
|
chart.Data.Data=varItem.Draw.DrawData;
|
|
116785
116852
|
|
|
116853
|
+
if (IFrameSplitOperator.IsBool(varItem.IsFirstDraw)) chart.IsDrawFirst=varItem.IsFirstDraw;
|
|
116854
|
+
|
|
116786
116855
|
frame.ChartPaint.push(chart);
|
|
116787
116856
|
}
|
|
116788
116857
|
|
|
@@ -130868,7 +130937,7 @@ function ScrollBarBGChart()
|
|
|
130868
130937
|
|
|
130869
130938
|
|
|
130870
130939
|
|
|
130871
|
-
var HQCHART_VERSION="1.1.
|
|
130940
|
+
var HQCHART_VERSION="1.1.12712";
|
|
130872
130941
|
|
|
130873
130942
|
function PrintHQChartVersion()
|
|
130874
130943
|
{
|
|
@@ -4682,6 +4682,8 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
|
|
|
4682
4682
|
if (IFrameSplitOperator.IsBool(item.IsShowIndexTitle)) chart.Frame.SubFrame[i].Frame.IsShowIndexTitle=item.IsShowIndexTitle;
|
|
4683
4683
|
if (IFrameSplitOperator.IsBool(item.IsDrawTitleBottomLine)) subFrame.IsDrawTitleBottomLine=item.IsDrawTitleBottomLine;
|
|
4684
4684
|
if (IFrameSplitOperator.IsBool(item.IsShowNameArrow)) chart.Frame.SubFrame[i].Frame.IsShowNameArrow=item.IsShowNameArrow;
|
|
4685
|
+
|
|
4686
|
+
if (item.ClientBGColor) subFrame.ClientBGColor=item.ClientBGColor;
|
|
4685
4687
|
}
|
|
4686
4688
|
}
|
|
4687
4689
|
|
|
@@ -5095,6 +5097,8 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
|
|
|
5095
5097
|
{
|
|
5096
5098
|
var item=option.Frame[i];
|
|
5097
5099
|
if (!chart.Frame.SubFrame[i]) continue;
|
|
5100
|
+
var subFrame=chart.Frame.SubFrame[i].Frame;
|
|
5101
|
+
|
|
5098
5102
|
if (IFrameSplitOperator.IsNumber(item.SplitCount)) chart.Frame.SubFrame[i].Frame.YSplitOperator.SplitCount=item.SplitCount;
|
|
5099
5103
|
if (item.StringFormat) chart.Frame.SubFrame[i].Frame.YSplitOperator.StringFormat=item.StringFormat;
|
|
5100
5104
|
if (IFrameSplitOperator.IsNumber(item.SplitType))
|
|
@@ -5129,6 +5133,8 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
|
|
|
5129
5133
|
|
|
5130
5134
|
//是否显示关闭集合竞价按钮
|
|
5131
5135
|
if (IFrameSplitOperator.IsNumber(item.CloseBeforeButton)) chart.Frame.SubFrame[i].Frame.IsShowCloseButton=item.CloseBeforeButton;
|
|
5136
|
+
|
|
5137
|
+
if (item.ClientBGColor) subFrame.ClientBGColor=item.ClientBGColor;
|
|
5132
5138
|
}
|
|
5133
5139
|
|
|
5134
5140
|
chart.UpdateXShowText();
|
|
@@ -13390,6 +13396,8 @@ function IChartFramePainting()
|
|
|
13390
13396
|
this.HorizontalMin; //Y轴最小值
|
|
13391
13397
|
this.XPointCount=10; //X轴数据个数
|
|
13392
13398
|
|
|
13399
|
+
this.ClientBGColor; //客户区背景色
|
|
13400
|
+
|
|
13393
13401
|
//Y轴原始的最大值 最小值
|
|
13394
13402
|
this.YMaxMin={ Max:null, Min:null };
|
|
13395
13403
|
|
|
@@ -13455,6 +13463,7 @@ function IChartFramePainting()
|
|
|
13455
13463
|
this.Draw=function()
|
|
13456
13464
|
{
|
|
13457
13465
|
this.Buttons=[];
|
|
13466
|
+
this.DrawClientBG();
|
|
13458
13467
|
this.DrawFrame();
|
|
13459
13468
|
this.DrawBorder();
|
|
13460
13469
|
|
|
@@ -13465,6 +13474,25 @@ function IChartFramePainting()
|
|
|
13465
13474
|
|
|
13466
13475
|
this.DrawFrame=function() { }
|
|
13467
13476
|
|
|
13477
|
+
this.DrawClientBG=function()
|
|
13478
|
+
{
|
|
13479
|
+
if (!this.ClientBGColor) return;
|
|
13480
|
+
|
|
13481
|
+
var border=this.IsHScreen==true?this.ChartBorder.GetHScreenBorder():this.ChartBorder.GetBorder();
|
|
13482
|
+
|
|
13483
|
+
var left=ToFixedPoint(border.Left);
|
|
13484
|
+
var top=ToFixedPoint(border.Top);
|
|
13485
|
+
//var top=ToFixedPoint(border.TopEx);
|
|
13486
|
+
var right=ToFixedPoint(border.Right);
|
|
13487
|
+
var bottom=ToFixedPoint(border.Bottom);
|
|
13488
|
+
var width=right-left;
|
|
13489
|
+
var height=bottom-top;
|
|
13490
|
+
|
|
13491
|
+
this.Canvas.fillStyle=this.ClientBGColor;
|
|
13492
|
+
this.Canvas.fillRect(left,top,width,height);
|
|
13493
|
+
|
|
13494
|
+
}
|
|
13495
|
+
|
|
13468
13496
|
this.ClearCoordinateText=function(option)
|
|
13469
13497
|
{
|
|
13470
13498
|
if (IFrameSplitOperator.IsNonEmptyArray(this.HorizontalInfo))
|
|
@@ -34878,7 +34906,9 @@ function ChartSingleText()
|
|
|
34878
34906
|
this.Draw=function()
|
|
34879
34907
|
{
|
|
34880
34908
|
if (!this.IsShow || this.ChartFrame.IsMinSize) return;
|
|
34881
|
-
|
|
34909
|
+
if (this.IsShowIndexTitleOnly()) return;
|
|
34910
|
+
if (this.IsHideScriptIndex()) return;
|
|
34911
|
+
|
|
34882
34912
|
if (this.NotSupportMessage)
|
|
34883
34913
|
{
|
|
34884
34914
|
this.DrawNotSupportmessage();
|
|
@@ -34907,6 +34937,10 @@ function ChartSingleText()
|
|
|
34907
34937
|
var chartright=this.ChartBorder.GetRight();
|
|
34908
34938
|
var top=this.ChartBorder.GetTopEx();
|
|
34909
34939
|
var bottom=this.ChartBorder.GetBottomEx();
|
|
34940
|
+
|
|
34941
|
+
this.Canvas.save();
|
|
34942
|
+
this.ClipClient(this.ChartFrame.IsHScreen);
|
|
34943
|
+
|
|
34910
34944
|
if (isHScreen)
|
|
34911
34945
|
{
|
|
34912
34946
|
chartright=this.ChartBorder.GetBottom();
|
|
@@ -34972,7 +35006,7 @@ function ChartSingleText()
|
|
|
34972
35006
|
var x=left+(right-left)/2;
|
|
34973
35007
|
}
|
|
34974
35008
|
|
|
34975
|
-
var y=this.ChartFrame.GetYFromData(value);
|
|
35009
|
+
var y=this.ChartFrame.GetYFromData(value,false);
|
|
34976
35010
|
|
|
34977
35011
|
if (x>chartright) break;
|
|
34978
35012
|
|
|
@@ -35071,6 +35105,8 @@ function ChartSingleText()
|
|
|
35071
35105
|
}
|
|
35072
35106
|
}
|
|
35073
35107
|
}
|
|
35108
|
+
|
|
35109
|
+
this.Canvas.restore();
|
|
35074
35110
|
}
|
|
35075
35111
|
|
|
35076
35112
|
this.DrawPosition=function() //绘制在指定位置上
|
|
@@ -35390,7 +35426,9 @@ function ChartDrawText()
|
|
|
35390
35426
|
|
|
35391
35427
|
this.Draw=function()
|
|
35392
35428
|
{
|
|
35393
|
-
if (!this.IsShow || this.ChartFrame.IsMinSize) return;
|
|
35429
|
+
if (!this.IsShow || this.ChartFrame.IsMinSize || !this.IsVisible) return;
|
|
35430
|
+
if (this.IsShowIndexTitleOnly()) return;
|
|
35431
|
+
if (this.IsHideScriptIndex()) return;
|
|
35394
35432
|
|
|
35395
35433
|
if (this.NotSupportMessage)
|
|
35396
35434
|
{
|
|
@@ -35408,6 +35446,10 @@ function ChartDrawText()
|
|
|
35408
35446
|
var chartright=this.ChartBorder.GetRight();
|
|
35409
35447
|
var top=this.ChartBorder.GetTopEx();
|
|
35410
35448
|
var bottom=this.ChartBorder.GetBottomEx();
|
|
35449
|
+
|
|
35450
|
+
this.Canvas.save();
|
|
35451
|
+
this.ClipClient(isHScreen);
|
|
35452
|
+
|
|
35411
35453
|
if (isHScreen)
|
|
35412
35454
|
{
|
|
35413
35455
|
chartright=this.ChartBorder.GetBottom();
|
|
@@ -35456,7 +35498,7 @@ function ChartDrawText()
|
|
|
35456
35498
|
}
|
|
35457
35499
|
else
|
|
35458
35500
|
{
|
|
35459
|
-
y=this.ChartFrame.GetYFromData(value);
|
|
35501
|
+
y=this.ChartFrame.GetYFromData(value,false);
|
|
35460
35502
|
}
|
|
35461
35503
|
|
|
35462
35504
|
if (x>chartright) break;
|
|
@@ -35480,6 +35522,8 @@ function ChartDrawText()
|
|
|
35480
35522
|
|
|
35481
35523
|
this.DrawVerticalLine(i, drawTextInfo, isHScreen);
|
|
35482
35524
|
}
|
|
35525
|
+
|
|
35526
|
+
this.Canvas.restore();
|
|
35483
35527
|
}
|
|
35484
35528
|
|
|
35485
35529
|
this.DrawText=function(text, drawInfo, isHScreen)
|
|
@@ -105111,6 +105155,11 @@ function JSDraw(errorHandler,symbolData)
|
|
|
105111
105155
|
return offset;
|
|
105112
105156
|
}
|
|
105113
105157
|
|
|
105158
|
+
this.FIRSTDRAW=function(value)
|
|
105159
|
+
{
|
|
105160
|
+
return value;
|
|
105161
|
+
}
|
|
105162
|
+
|
|
105114
105163
|
|
|
105115
105164
|
/*
|
|
105116
105165
|
SOUND 播放声音。用法:SOUND(NAME),播放NAME
|
|
@@ -111742,6 +111791,7 @@ function JSExecute(ast,option)
|
|
|
111742
111791
|
var fontSize=-1;
|
|
111743
111792
|
var bgConfig=null; //背景设置
|
|
111744
111793
|
var vLineConfig=null;
|
|
111794
|
+
var isFirstDraw=null;
|
|
111745
111795
|
let xOffset=null, yOffset=null;
|
|
111746
111796
|
for(let j=0; j<item.Expression.Expression.length; ++j)
|
|
111747
111797
|
{
|
|
@@ -111865,6 +111915,11 @@ function JSExecute(ast,option)
|
|
|
111865
111915
|
{
|
|
111866
111916
|
yOffset=itemExpression.Out;
|
|
111867
111917
|
}
|
|
111918
|
+
else if (itemExpression.Callee.Name=="FIRSTDRAW")
|
|
111919
|
+
{
|
|
111920
|
+
if (itemExpression.Out===0) isFirstDraw=false;
|
|
111921
|
+
else if (itemExpression.Out===1) isFirstDraw=true;
|
|
111922
|
+
}
|
|
111868
111923
|
else if (itemExpression.Callee.Name=="SOUND")
|
|
111869
111924
|
{
|
|
111870
111925
|
var event=this.GetSoundEvent();
|
|
@@ -112013,6 +112068,7 @@ function JSExecute(ast,option)
|
|
|
112013
112068
|
if (vLineConfig) outVar.VerticalLine=vLineConfig;
|
|
112014
112069
|
if (IFrameSplitOperator.IsNumber(xOffset)) outVar.XOffset=xOffset;
|
|
112015
112070
|
if (IFrameSplitOperator.IsNumber(yOffset)) outVar.YOffset=yOffset;
|
|
112071
|
+
if (IFrameSplitOperator.IsBool(isFirstDraw)) outVar.IsFirstDraw=isFirstDraw;
|
|
112016
112072
|
this.OutVarTable.push(outVar);
|
|
112017
112073
|
}
|
|
112018
112074
|
else if (varName)
|
|
@@ -112381,6 +112437,9 @@ function JSExecute(ast,option)
|
|
|
112381
112437
|
case "YMOVE":
|
|
112382
112438
|
node.Out=this.Draw.YMOVE(args[0]);
|
|
112383
112439
|
break;
|
|
112440
|
+
case "FIRSTDRAW":
|
|
112441
|
+
node.Out=this.Draw.FIRSTDRAW(args[0]);
|
|
112442
|
+
break;
|
|
112384
112443
|
case 'PARTLINE':
|
|
112385
112444
|
node.Draw=this.Draw.PARTLINE(args);
|
|
112386
112445
|
node.Out=[];
|
|
@@ -113451,6 +113510,8 @@ function JSExplainer(ast,option)
|
|
|
113451
113510
|
return `上涨颜色${args[0]}`;
|
|
113452
113511
|
case "DOWNCOLOR":
|
|
113453
113512
|
return `下跌颜色${args[0]}`;
|
|
113513
|
+
case "FIRSTDRAW":
|
|
113514
|
+
return "";
|
|
113454
113515
|
|
|
113455
113516
|
default:
|
|
113456
113517
|
this.ThrowUnexpectedNode(node,`函数${funcName}不存在`);
|
|
@@ -114963,6 +115024,8 @@ function ScriptIndex(name,script,args,option)
|
|
|
114963
115024
|
chart.SecondColor = varItem.Draw.Color[1];
|
|
114964
115025
|
chart.Data.Data=varItem.Draw.DrawData;
|
|
114965
115026
|
|
|
115027
|
+
if (IFrameSplitOperator.IsBool(varItem.IsFirstDraw)) chart.IsDrawFirst=varItem.IsFirstDraw;
|
|
115028
|
+
|
|
114966
115029
|
hqChart.ChartPaint.push(chart);
|
|
114967
115030
|
}
|
|
114968
115031
|
|
|
@@ -116296,6 +116359,10 @@ function OverlayScriptIndex(name,script,args,option)
|
|
|
116296
116359
|
case 'POLYLINE':
|
|
116297
116360
|
this.CreatePolyLine(hqChart,windowIndex,item,i);
|
|
116298
116361
|
break;
|
|
116362
|
+
case 'DRAWGBK':
|
|
116363
|
+
case "DRAWGBK2":
|
|
116364
|
+
this.CreateBackgroud(hqChart,windowIndex,item,i);
|
|
116365
|
+
break;
|
|
116299
116366
|
case 'DRAWNUMBER':
|
|
116300
116367
|
case "DRAWNUMBER_FIX":
|
|
116301
116368
|
case 'DRAWTEXT_FIX':
|
|
@@ -116827,6 +116894,8 @@ function OverlayScriptIndex(name,script,args,option)
|
|
|
116827
116894
|
chart.SecondColor = varItem.Draw.Color[1];
|
|
116828
116895
|
chart.Data.Data=varItem.Draw.DrawData;
|
|
116829
116896
|
|
|
116897
|
+
if (IFrameSplitOperator.IsBool(varItem.IsFirstDraw)) chart.IsDrawFirst=varItem.IsFirstDraw;
|
|
116898
|
+
|
|
116830
116899
|
frame.ChartPaint.push(chart);
|
|
116831
116900
|
}
|
|
116832
116901
|
|
|
@@ -131026,7 +131095,7 @@ function HQChartScriptWorker()
|
|
|
131026
131095
|
|
|
131027
131096
|
|
|
131028
131097
|
|
|
131029
|
-
var HQCHART_VERSION="1.1.
|
|
131098
|
+
var HQCHART_VERSION="1.1.12712";
|
|
131030
131099
|
|
|
131031
131100
|
function PrintHQChartVersion()
|
|
131032
131101
|
{
|