hqchart 1.1.14722 → 1.1.14734
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/src/jscommon/umychart.js
CHANGED
|
@@ -1109,7 +1109,7 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
|
|
|
1109
1109
|
if (item.BottomSpace>=0) chart.Frame.SubFrame[i].Frame.ChartBorder.BottomSpace=item.BottomSpace*pixelRatio;
|
|
1110
1110
|
|
|
1111
1111
|
//是否显示关闭集合竞价按钮
|
|
1112
|
-
if (IFrameSplitOperator.
|
|
1112
|
+
if (IFrameSplitOperator.IsBool(item.CloseBeforeButton)) chart.Frame.SubFrame[i].Frame.IsShowCloseButton=item.CloseBeforeButton;
|
|
1113
1113
|
|
|
1114
1114
|
if (item.ClientBGColor) subFrame.ClientBGColor=item.ClientBGColor;
|
|
1115
1115
|
if (!IFrameSplitOperator.IsUndefined(item.HorizontalReserved)) subFrame.HorizontalReserved=item.HorizontalReserved;
|
|
@@ -10220,6 +10220,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
10220
10220
|
frame.YSplitOperator.ChartBorder=frame.ChartBorder;
|
|
10221
10221
|
frame.YSplitOperator.SplitCount=subFrame.Frame.YSplitOperator.SplitCount;
|
|
10222
10222
|
frame.YSplitOperator.GetEventCallback=(id)=> { return this.GetEventCallback(id); };
|
|
10223
|
+
frame.YSplitOperator.HQChart=this;
|
|
10223
10224
|
|
|
10224
10225
|
overlayFrame.Frame=frame;
|
|
10225
10226
|
|
|
@@ -11153,6 +11154,27 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
11153
11154
|
chart.Canvas=this.Canvas;
|
|
11154
11155
|
chart.ChartBorder=frame.ChartBorder;
|
|
11155
11156
|
chart.ChartFrame=frame;
|
|
11157
|
+
chart.HQChart=this;
|
|
11158
|
+
|
|
11159
|
+
this.ChartPaintEx.push(chart);
|
|
11160
|
+
|
|
11161
|
+
return true;
|
|
11162
|
+
}
|
|
11163
|
+
|
|
11164
|
+
this.CreateChartPaintExtendV2=function(className, option, windowIndex)
|
|
11165
|
+
{
|
|
11166
|
+
if (windowIndex<0) return false;
|
|
11167
|
+
var subFrame=this.Frame.SubFrame[windowIndex];
|
|
11168
|
+
if (!subFrame || !subFrame.Frame) return false;
|
|
11169
|
+
|
|
11170
|
+
var chart=g_ChartPaintFactory.Create(className, option);
|
|
11171
|
+
if (!chart) return false;
|
|
11172
|
+
|
|
11173
|
+
var frame=subFrame.Frame;
|
|
11174
|
+
chart.Canvas=this.Canvas;
|
|
11175
|
+
chart.ChartBorder=frame.ChartBorder;
|
|
11176
|
+
chart.ChartFrame=frame;
|
|
11177
|
+
chart.HQChart=this;
|
|
11156
11178
|
|
|
11157
11179
|
this.ChartPaintEx.push(chart);
|
|
11158
11180
|
|
|
@@ -11695,6 +11717,12 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
11695
11717
|
|
|
11696
11718
|
return true;
|
|
11697
11719
|
}
|
|
11720
|
+
|
|
11721
|
+
//是否是额外的集合竞价部分
|
|
11722
|
+
this.IsCallAuctionFrame=function(frameID)
|
|
11723
|
+
{
|
|
11724
|
+
return false;
|
|
11725
|
+
}
|
|
11698
11726
|
}
|
|
11699
11727
|
|
|
11700
11728
|
function GetDevicePixelRatio()
|
|
@@ -25723,6 +25751,7 @@ function ChartPaintFactory()
|
|
|
25723
25751
|
["ChartMinuteVolumBar",{ Create:function(option) { return new ChartMinuteVolumBar(); } }], //分时成交量柱子
|
|
25724
25752
|
["ChartMinutePriceLine",{ Create:function(option) { return new ChartMinutePriceLine();} }],
|
|
25725
25753
|
["ChartMinuteBuySellBar", { Create:function(option){ return new ChartMinuteBuySellBar(); }}],
|
|
25754
|
+
["ChartMinuteBarCallAuction", { Create:function(option){ return new ChartMinuteBarCallAuction(); }}]
|
|
25726
25755
|
]);
|
|
25727
25756
|
|
|
25728
25757
|
this.Create=function(name, option)
|
|
@@ -26651,6 +26680,7 @@ function ChartKLine()
|
|
|
26651
26680
|
this.IsThinAKBar=true; //美国线 柱子是否是线段 (false=柱子)
|
|
26652
26681
|
this.OneLimitBarType=0; //一字板颜色类型 4个价格全部都在同一个价位上 0=使用平盘颜色 1=跟昨收比较
|
|
26653
26682
|
this.UnchangeBarType=0; //0=使用unchange color 1=和昨收比较
|
|
26683
|
+
this.EnableColorBar=false; //K线柱子是否支持自定义颜色
|
|
26654
26684
|
|
|
26655
26685
|
this.HighLowBarColor=g_JSChartResource.HighLowBarColor;
|
|
26656
26686
|
this.HighLowTextConfig=
|
|
@@ -27583,7 +27613,7 @@ function ChartKLine()
|
|
|
27583
27613
|
|
|
27584
27614
|
this.DrawKBar_Custom(data, dataWidth, barColor, drawType, kLineOption, x, y, left, right, yLow, yHigh, yOpen, yClose, border, isHScreen);
|
|
27585
27615
|
}
|
|
27586
|
-
else if (this.DrawType==9 && data.ColorData)
|
|
27616
|
+
else if ((this.DrawType==9 || this.EnableColorBar) && data.ColorData)
|
|
27587
27617
|
{
|
|
27588
27618
|
this.DrawColorKBar(data, data.ColorData, dataWidth, x, y, left, right, yLow, yHigh, yOpen, yClose, isHScreen);
|
|
27589
27619
|
}
|
|
@@ -34591,6 +34621,8 @@ function ChartMinuteVolumBar()
|
|
|
34591
34621
|
var isHScreen=(this.ChartFrame.IsHScreen===true);
|
|
34592
34622
|
var yPrice=this.YClose; //上一分钟的价格
|
|
34593
34623
|
var yBottom=this.ChartFrame.GetYFromData(0);
|
|
34624
|
+
var yBottom=border.BottomEx;
|
|
34625
|
+
if (isHScreen) yBottom=border.LeftEx;
|
|
34594
34626
|
var unit=this.GetVolUnit();
|
|
34595
34627
|
if (callAutionData.Ver==1.0)
|
|
34596
34628
|
{
|
|
@@ -34781,6 +34813,28 @@ function ChartMinuteVolumBar()
|
|
|
34781
34813
|
|
|
34782
34814
|
}
|
|
34783
34815
|
|
|
34816
|
+
//只画集合竞价柱子
|
|
34817
|
+
function ChartMinuteBarCallAuction()
|
|
34818
|
+
{
|
|
34819
|
+
this.newMethod=ChartMinuteVolumBar; //派生
|
|
34820
|
+
this.newMethod();
|
|
34821
|
+
delete this.newMethod;
|
|
34822
|
+
|
|
34823
|
+
this.ClassName="ChartMinuteBarCallAuction";
|
|
34824
|
+
|
|
34825
|
+
this.Draw=function()
|
|
34826
|
+
{
|
|
34827
|
+
if (!this.IsShow || this.ChartFrame.IsMinSize || !this.IsVisible) return;
|
|
34828
|
+
if (this.IsShowIndexTitleOnly()) return;
|
|
34829
|
+
|
|
34830
|
+
this.DrawBeforeOpen();
|
|
34831
|
+
this.DrawMultiDayBeforeOpen();
|
|
34832
|
+
|
|
34833
|
+
this.DrawAfterClose();
|
|
34834
|
+
this.DrawMultiDayAfterClose();
|
|
34835
|
+
}
|
|
34836
|
+
}
|
|
34837
|
+
|
|
34784
34838
|
function ChartErrorMessage()
|
|
34785
34839
|
{
|
|
34786
34840
|
this.newMethod=IChartPainting; //派生
|
|
@@ -40136,6 +40190,8 @@ function ChartOverlayMinutePriceLine()
|
|
|
40136
40190
|
}
|
|
40137
40191
|
|
|
40138
40192
|
|
|
40193
|
+
|
|
40194
|
+
|
|
40139
40195
|
//分钟持仓线
|
|
40140
40196
|
function ChartMinutePositionLine()
|
|
40141
40197
|
{
|
|
@@ -54263,7 +54319,8 @@ function FrameSplitY()
|
|
|
54263
54319
|
|
|
54264
54320
|
this.CallAcutionSplitY=function(count,splitData)
|
|
54265
54321
|
{
|
|
54266
|
-
if (this.
|
|
54322
|
+
if (!this.IsCallAuctionFrame()) return;
|
|
54323
|
+
|
|
54267
54324
|
var aryCallAcution=this.GetCallAcutionSplitY(count,splitData);
|
|
54268
54325
|
if (!aryCallAcution) return;
|
|
54269
54326
|
|
|
@@ -54291,9 +54348,18 @@ function FrameSplitY()
|
|
|
54291
54348
|
}
|
|
54292
54349
|
}
|
|
54293
54350
|
|
|
54351
|
+
this.IsCallAuctionFrame=function()
|
|
54352
|
+
{
|
|
54353
|
+
if (this.Frame.Identify==1) return true;
|
|
54354
|
+
|
|
54355
|
+
if (!this.HQChart || !this.HQChart.IsCallAuctionFrame) return false;
|
|
54356
|
+
|
|
54357
|
+
return this.HQChart.IsCallAuctionFrame(this.Frame.Identify);
|
|
54358
|
+
}
|
|
54359
|
+
|
|
54294
54360
|
this.GetCallAcutionSplitY=function(count,splitData)
|
|
54295
54361
|
{
|
|
54296
|
-
if (this.
|
|
54362
|
+
if (!this.IsCallAuctionFrame()) return null;
|
|
54297
54363
|
|
|
54298
54364
|
var isBeforeData=(this.IsBeforeData==true && this.BeforeOpenData && (this.BeforeOpenData.Ver==2.0 || this.BeforeOpenData.Ver==3.0));
|
|
54299
54365
|
var isAfterData=(this.IsAfterData==true && this.AfterCloseData && (this.AfterCloseData.Ver==2.0 || this.AfterCloseData.Ver==3.0));
|
|
@@ -54308,7 +54374,7 @@ function FrameSplitY()
|
|
|
54308
54374
|
for(var i=0;i<count;++i)
|
|
54309
54375
|
{
|
|
54310
54376
|
var item=new CoordinateInfo();
|
|
54311
|
-
var yValue=intervalY*i;
|
|
54377
|
+
var yValue=intervalY*i+splitData.Min;
|
|
54312
54378
|
item.Value=yValue;
|
|
54313
54379
|
item.LineType=8;
|
|
54314
54380
|
if (isBeforeData )
|
|
@@ -54358,7 +54424,7 @@ function FrameSplitY()
|
|
|
54358
54424
|
for(var i=0;i<count;++i)
|
|
54359
54425
|
{
|
|
54360
54426
|
var item=new CoordinateInfo();
|
|
54361
|
-
var yValue=intervalY*i;
|
|
54427
|
+
var yValue=intervalY*i+splitData.Min;
|
|
54362
54428
|
item.Value=yValue;
|
|
54363
54429
|
item.LineType=9;
|
|
54364
54430
|
var isVaild=false;
|
|
@@ -56370,6 +56436,28 @@ function ChartCorssCursor()
|
|
|
56370
56436
|
|
|
56371
56437
|
this.CalculateComplexTextSize(complexText, textSize);
|
|
56372
56438
|
|
|
56439
|
+
//计算右侧文本输出顶部位置
|
|
56440
|
+
function _Temp_CalculateRightTextBGTop(rtBG, complexText, defaultTextHeight)
|
|
56441
|
+
{
|
|
56442
|
+
if (complexText.ShowType==1)
|
|
56443
|
+
{
|
|
56444
|
+
var yValue=defaultTextHeight/2;
|
|
56445
|
+
if (IFrameSplitOperator.IsNonEmptyArray(textSize.Text) && textSize.Text[0])
|
|
56446
|
+
{
|
|
56447
|
+
var itemSize=textSize.Text[0];
|
|
56448
|
+
if (IFrameSplitOperator.IsNumber(itemSize.Height)) yValue=itemSize.Height/2;
|
|
56449
|
+
}
|
|
56450
|
+
|
|
56451
|
+
rtBG.Top=rtBG.YCenter-yValue;
|
|
56452
|
+
rtBG.Bottom=rtBG.Top+rtBG.Height;
|
|
56453
|
+
}
|
|
56454
|
+
else
|
|
56455
|
+
{
|
|
56456
|
+
rtBG.Top=rtBG.YCenter-rtBG.Height/2;
|
|
56457
|
+
rtBG.Bottom=rtBG.Top+rtBG.Height;
|
|
56458
|
+
}
|
|
56459
|
+
}
|
|
56460
|
+
|
|
56373
56461
|
if (this.Frame.ChartBorder.Right>=30 && this.ShowTextMode.Right==1)
|
|
56374
56462
|
{
|
|
56375
56463
|
var isOverlayIndex=false; //是否有叠加子坐标
|
|
@@ -56400,17 +56488,8 @@ function ChartCorssCursor()
|
|
|
56400
56488
|
{
|
|
56401
56489
|
var rtBG={ Right:right+overlayIndexInterval, Width:textSize.Width, YCenter:y, Height:textSize.Height };
|
|
56402
56490
|
rtBG.Left=rtBG.Right-rtBG.Width;
|
|
56403
|
-
|
|
56404
|
-
|
|
56405
|
-
rtBG.Top=rtBG.YCenter-this.TextHeight/2;
|
|
56406
|
-
rtBG.Bottom=rtBG.Top+rtBG.Height;
|
|
56407
|
-
}
|
|
56408
|
-
else
|
|
56409
|
-
{
|
|
56410
|
-
rtBG.Top=rtBG.YCenter-rtBG.Height/2;
|
|
56411
|
-
rtBG.Bottom=rtBG.Top+rtBG.Height;
|
|
56412
|
-
}
|
|
56413
|
-
|
|
56491
|
+
_Temp_CalculateRightTextBGTop(rtBG,complexText,this.TextHeight);
|
|
56492
|
+
|
|
56414
56493
|
if (rtBG.Right>chartRight)
|
|
56415
56494
|
{
|
|
56416
56495
|
rtBG.Right=chartRight;
|
|
@@ -56429,16 +56508,7 @@ function ChartCorssCursor()
|
|
|
56429
56508
|
{
|
|
56430
56509
|
var rtBG={ Left:right+1, Width:textSize.Width, YCenter:y, Height:textSize.Height };
|
|
56431
56510
|
rtBG.Right=rtBG.Left+rtBG.Width;
|
|
56432
|
-
|
|
56433
|
-
{
|
|
56434
|
-
rtBG.Top=rtBG.YCenter-this.TextHeight/2;
|
|
56435
|
-
rtBG.Bottom=rtBG.Top+rtBG.Height;
|
|
56436
|
-
}
|
|
56437
|
-
else
|
|
56438
|
-
{
|
|
56439
|
-
rtBG.Top=rtBG.YCenter-rtBG.Height/2;
|
|
56440
|
-
rtBG.Bottom=rtBG.Top+rtBG.Height;
|
|
56441
|
-
}
|
|
56511
|
+
_Temp_CalculateRightTextBGTop(rtBG,complexText,this.TextHeight);
|
|
56442
56512
|
|
|
56443
56513
|
if (rtBG.Right>chartRight)
|
|
56444
56514
|
{
|
|
@@ -56456,11 +56526,9 @@ function ChartCorssCursor()
|
|
|
56456
56526
|
{
|
|
56457
56527
|
var rtBG={ Right:right, Width:textSize.Width, YCenter:y, Height:textSize.Height };
|
|
56458
56528
|
rtBG.Left=rtBG.Right-rtBG.Width;
|
|
56459
|
-
rtBG.
|
|
56460
|
-
|
|
56461
|
-
|
|
56529
|
+
_Temp_CalculateRightTextBGTop(rtBG,complexText,this.TextHeight);
|
|
56530
|
+
|
|
56462
56531
|
this.Canvas.fillStyle=this.TextBGColor;
|
|
56463
|
-
var showLeft=right-textSize.Width;
|
|
56464
56532
|
this.DrawTextBGRect(rtBG.Left,rtBG.Top,rtBG.Width,rtBG.Height);
|
|
56465
56533
|
this.DrawComplexRightText(rtBG,complexText,textSize);
|
|
56466
56534
|
|
|
@@ -57700,6 +57768,7 @@ function HQPriceStringFormat()
|
|
|
57700
57768
|
this.RComplexText; //{ Space:2 间距, Text:[ {Color:, Text: }] } 支持单行多颜色
|
|
57701
57769
|
this.Point;
|
|
57702
57770
|
this.ClientPos=-1;
|
|
57771
|
+
this.HQChart;
|
|
57703
57772
|
|
|
57704
57773
|
this.ExtendChartPaint;
|
|
57705
57774
|
this.RExtendText=[];
|
|
@@ -57852,6 +57921,32 @@ function HQPriceStringFormat()
|
|
|
57852
57921
|
if (this.DataFormatType==1) this.Text=IFrameSplitOperator.FormatValueThousandsString(this.Value,defaultfloatPrecision);
|
|
57853
57922
|
else this.Text=IFrameSplitOperator.FormatValueString(this.Value,defaultfloatPrecision,this.LanguageID);
|
|
57854
57923
|
if (IFrameSplitOperator.IsNumber(this.RValue)) this.RText=IFrameSplitOperator.FormatValueString(this.RValue,defaultfloatPrecision,this.LanguageID);
|
|
57924
|
+
|
|
57925
|
+
var bCallAuction=false;
|
|
57926
|
+
if (this.HQChart && this.HQChart.IsCallAuctionFrame)
|
|
57927
|
+
bCallAuction=this.HQChart.IsCallAuctionFrame(this.FrameID);
|
|
57928
|
+
|
|
57929
|
+
if (bCallAuction)
|
|
57930
|
+
{
|
|
57931
|
+
if (this.ClientPos==2)
|
|
57932
|
+
{
|
|
57933
|
+
this.GetBeforeOpen();
|
|
57934
|
+
}
|
|
57935
|
+
else if (this.ClientPos==3)
|
|
57936
|
+
{
|
|
57937
|
+
if (this.ShareAfterVol==0 || this.ShareAfterVol==2)
|
|
57938
|
+
this.GetAfterClose();
|
|
57939
|
+
}
|
|
57940
|
+
else if (this.ClientPos>=200 && this.ClientPos<=299)
|
|
57941
|
+
{
|
|
57942
|
+
this.GetMultiDayBeforeOpen();
|
|
57943
|
+
}
|
|
57944
|
+
else if (this.ClientPos>=300 && this.ClientPos<=399 )
|
|
57945
|
+
{
|
|
57946
|
+
if (this.ShareAfterVol==0 || this.ShareAfterVol==2)
|
|
57947
|
+
this.GetMultiDayAfterClose();
|
|
57948
|
+
}
|
|
57949
|
+
}
|
|
57855
57950
|
}
|
|
57856
57951
|
|
|
57857
57952
|
if (this.GetEventCallback)
|
|
@@ -60990,8 +61085,11 @@ function DynamicChartTitlePainting()
|
|
|
60990
61085
|
if (this.IsMinuteFrame && this.PointInfo && ( this.PointInfo.ClientPos==2 || this.PointInfo.ClientPos==3 || (this.PointInfo.ClientPos>=200&& this.PointInfo.ClientPos<=299) || (this.PointInfo.ClientPos>=300&& this.PointInfo.ClientPos<=399) ))
|
|
60991
61086
|
{
|
|
60992
61087
|
var result={ PreventDefault:false }
|
|
60993
|
-
|
|
60994
|
-
if (
|
|
61088
|
+
var yRight=right;
|
|
61089
|
+
if (this.Frame.ToolbarCacheSize && this.Frame.ToolbarCacheSize.RToolbar) yRight=this.Frame.ToolbarCacheSize.RToolbar.Left-2; //右侧按钮宽度要去掉
|
|
61090
|
+
this.DrawMainCallAuction({ Left:left, Right:yRight, Bottom:bottom }, rtText, result);
|
|
61091
|
+
if (result.PreventDefault===false) this.DrawMainIndexTitle({ Left:left, Right:yRight, Bottom:bottom }, isShowLastData, rtText);
|
|
61092
|
+
if (IFrameSplitOperator.IsNumber(rtText.Bottom)) bottom=rtText.Bottom;
|
|
60995
61093
|
}
|
|
60996
61094
|
else
|
|
60997
61095
|
{
|
|
@@ -79252,6 +79350,7 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
79252
79350
|
this.ChartCorssCursor.StringFormatY.GetEventCallback=(id)=> { return this.GetEventCallback(id); }
|
|
79253
79351
|
this.ChartCorssCursor.StringFormatY.LanguageID=this.LanguageID;
|
|
79254
79352
|
this.ChartCorssCursor.StringFormatY.ExtendChartPaint=this.ExtendChartPaint;
|
|
79353
|
+
this.ChartCorssCursor.StringFormatY.HQChart=this;
|
|
79255
79354
|
this.ChartCorssCursor.GetEventCallback=(id)=> { return this.GetEventCallback(id); }
|
|
79256
79355
|
this.ChartCorssCursor.OnChangeStatusCallback=(data, obj)=>{ this.OnChangeCorssCursorStatus(data,obj); }
|
|
79257
79356
|
|
|
@@ -89119,6 +89218,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
89119
89218
|
this.ChartCorssCursor.StringFormatY.GetEventCallback=(id)=> { return this.GetEventCallback(id); }
|
|
89120
89219
|
this.ChartCorssCursor.StringFormatY.LanguageID=this.LanguageID;
|
|
89121
89220
|
this.ChartCorssCursor.StringFormatY.ShareAfterVol=this.ShareAfterVol;
|
|
89221
|
+
this.ChartCorssCursor.StringFormatY.HQChart=this;
|
|
89122
89222
|
this.ChartCorssCursor.CallAcutionXOperator=new CallAcutionXOperator();
|
|
89123
89223
|
this.ChartCorssCursor.GetEventCallback=(id)=> { return this.GetEventCallback(id); }
|
|
89124
89224
|
this.ChartCorssCursor.OnChangeStatusCallback=(data, obj)=>{ this.OnChangeCorssCursorStatus(data,obj); }
|
|
@@ -89236,6 +89336,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
89236
89336
|
frame.YSplitOperator.LanguageID=this.LanguageID;
|
|
89237
89337
|
frame.YSplitOperator.FrameSplitData=this.FrameSplitData.get('double');
|
|
89238
89338
|
frame.YSplitOperator.GetEventCallback=(id)=> { return this.GetEventCallback(id); }
|
|
89339
|
+
frame.YSplitOperator.HQChart=this;
|
|
89239
89340
|
if (i==1) frame.YSplitOperator.ShareAfterVol=this.ShareAfterVol;
|
|
89240
89341
|
}
|
|
89241
89342
|
|
|
@@ -89311,6 +89412,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
89311
89412
|
frame.YSplitOperator.FrameSplitData=this.FrameSplitData.get('double');
|
|
89312
89413
|
frame.YSplitOperator.Frame=frame;
|
|
89313
89414
|
frame.YSplitOperator.ChartBorder=border;
|
|
89415
|
+
frame.YSplitOperator.HQChart=this;
|
|
89314
89416
|
frame.XSplitOperator=new FrameSplitMinuteX();
|
|
89315
89417
|
frame.XSplitOperator.Frame=frame;
|
|
89316
89418
|
frame.XSplitOperator.ChartBorder=border;
|
|
@@ -91707,6 +91809,20 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
91707
91809
|
this.ChartPaint[2].MultiDayBeforeOpenData=multiBeforeOpenData;
|
|
91708
91810
|
this.ChartPaint[2].MultiDayAfterCloseData=multiAfterCloseData;
|
|
91709
91811
|
|
|
91812
|
+
for(var i=0;i<this.ChartPaintEx.length;++i)
|
|
91813
|
+
{
|
|
91814
|
+
var item=this.ChartPaintEx[i];
|
|
91815
|
+
if (item.ClassName=="ChartMinuteBarCallAuction")
|
|
91816
|
+
{
|
|
91817
|
+
item.YClose=yClose;
|
|
91818
|
+
item.Symbol=this.Symbol;
|
|
91819
|
+
item.BeforeOpenData=this.BeforeOpenData;
|
|
91820
|
+
item.AfterCloseData=this.AfterCloseData;
|
|
91821
|
+
item.MultiDayBeforeOpenData=multiBeforeOpenData;
|
|
91822
|
+
item.MultiDayAfterCloseData=multiAfterCloseData;
|
|
91823
|
+
}
|
|
91824
|
+
}
|
|
91825
|
+
|
|
91710
91826
|
for(var i in this.Frame.SubFrame)
|
|
91711
91827
|
{
|
|
91712
91828
|
var item=this.Frame.SubFrame[i];
|
|
@@ -91819,6 +91935,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
91819
91935
|
frame.YSplitOperator.FrameSplitData=this.FrameSplitData.get('double');
|
|
91820
91936
|
frame.YSplitOperator.Frame=frame;
|
|
91821
91937
|
frame.YSplitOperator.ChartBorder=frame.ChartBorder;
|
|
91938
|
+
frame.YSplitOperator.HQChart=this;
|
|
91822
91939
|
frame.YSplitOperator.SplitCount=subFrame.Frame.YSplitOperator.SplitCount;
|
|
91823
91940
|
frame.YSplitOperator.GetEventCallback=(id)=> { return this.GetEventCallback(id); };
|
|
91824
91941
|
frame.YSplitOperator.OverlayIdentify=overlayFrame.Identify;
|
|
@@ -92821,6 +92938,25 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
92821
92938
|
|
|
92822
92939
|
return data;
|
|
92823
92940
|
}
|
|
92941
|
+
|
|
92942
|
+
this.IsCallAuctionFrame=function(frameID)
|
|
92943
|
+
{
|
|
92944
|
+
if (!IFrameSplitOperator.IsNonEmptyArray(this.ChartPaintEx)) return false;
|
|
92945
|
+
if (!IFrameSplitOperator.IsNonEmptyArray(this.Frame.SubFrame)) return false;
|
|
92946
|
+
if (frameID<0 || frameID>=this.Frame.SubFrame.length) return false;
|
|
92947
|
+
var subItem=this.Frame.SubFrame[frameID];
|
|
92948
|
+
if (!subItem || !subItem.Frame) return false;
|
|
92949
|
+
|
|
92950
|
+
var subFrame=subItem.Frame;
|
|
92951
|
+
for(var i=0;i<this.ChartPaintEx.length;++i)
|
|
92952
|
+
{
|
|
92953
|
+
var item=this.ChartPaintEx[i];
|
|
92954
|
+
if (item.ChartFrame && item.ChartFrame.Guid==subFrame.Guid)
|
|
92955
|
+
return true;
|
|
92956
|
+
}
|
|
92957
|
+
|
|
92958
|
+
return false;
|
|
92959
|
+
}
|
|
92824
92960
|
}
|
|
92825
92961
|
|
|
92826
92962
|
//盘前数据
|
|
@@ -94644,6 +94780,7 @@ function KLineChartHScreenContainer(uielement)
|
|
|
94644
94780
|
this.ChartCorssCursor.StringFormatY=g_DivTooltipDataForamt.Create("CorssCursor_YStringFormat");
|
|
94645
94781
|
this.ChartCorssCursor.StringFormatY.LanguageID=this.LanguageID;
|
|
94646
94782
|
this.ChartCorssCursor.StringFormatY.ExtendChartPaint=this.ExtendChartPaint;
|
|
94783
|
+
this.ChartCorssCursor.StringFormatY.HQChart=this;
|
|
94647
94784
|
this.ChartCorssCursor.GetEventCallback=(id)=> { return this.GetEventCallback(id); }
|
|
94648
94785
|
|
|
94649
94786
|
//创建等待提示
|
|
@@ -94825,6 +94962,7 @@ function MinuteChartHScreenContainer(uielement)
|
|
|
94825
94962
|
this.ChartCorssCursor.StringFormatX.GetEventCallback=(id)=> { return this.GetEventCallback(id); }
|
|
94826
94963
|
this.ChartCorssCursor.StringFormatY=g_DivTooltipDataForamt.Create("CorssCursor_YStringFormat");
|
|
94827
94964
|
this.ChartCorssCursor.StringFormatY.GetEventCallback=(id)=> { return this.GetEventCallback(id); }
|
|
94965
|
+
this.ChartCorssCursor.StringFormatY.HQChart=this;
|
|
94828
94966
|
this.ChartCorssCursor.CallAcutionXOperator=new CallAcutionXOperator();
|
|
94829
94967
|
this.ChartCorssCursor.GetEventCallback=(id)=> { return this.GetEventCallback(id); }
|
|
94830
94968
|
|
|
@@ -94902,6 +95040,7 @@ function MinuteChartHScreenContainer(uielement)
|
|
|
94902
95040
|
frame.YSplitOperator.LanguageID=this.LanguageID;
|
|
94903
95041
|
frame.YSplitOperator.FrameSplitData=this.FrameSplitData.get('double');
|
|
94904
95042
|
frame.YSplitOperator.GetEventCallback=(id)=> { return this.GetEventCallback(id); }
|
|
95043
|
+
frame.YSplitOperator.HQChart=this;
|
|
94905
95044
|
}
|
|
94906
95045
|
|
|
94907
95046
|
frame.YSplitOperator.Frame=frame;
|