hqchart 1.1.13709 → 1.1.13717

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.
@@ -39939,6 +39939,303 @@ function ChartMACD()
39939
39939
  }
39940
39940
  }
39941
39941
 
39942
+ function ChartClipColorStick()
39943
+ {
39944
+ this.newMethod=IChartPainting; //派生
39945
+ this.newMethod();
39946
+ delete this.newMethod;
39947
+
39948
+ this.ClassName="ChartClipColorStick";
39949
+ this.UpColor=g_JSChartResource.UpBarColor;
39950
+ this.DownColor=g_JSChartResource.DownBarColor;
39951
+ this.LineWidth=1;
39952
+ //差值线
39953
+ this.DownDiffColor=g_JSChartResource.DownBarColor;
39954
+ this.UpDiffColor=g_JSChartResource.UpBarColor;
39955
+
39956
+ this.BaseLineColor; //基准线
39957
+
39958
+ this.BaseValue=0;
39959
+ this.Super_GetMaxMin=this.GetMaxMin; //父类的方法
39960
+
39961
+ this.SetOption=function(option)
39962
+ {
39963
+ if (!option) return;
39964
+
39965
+ if (option.UpColor) this.UpColor=option.UpColor;
39966
+ if (option.DownColor) this.DownColor=option.DownColor;
39967
+ if (option.DownDiffColor) this.DownDiffColor=option.DownDiffColor;
39968
+ if (option.UpDiffColor) this.UpDiffColor=option.UpDiffColor;
39969
+ if (option.BaseLineColor) this.BaseLineColor=option.BaseLineColor;
39970
+ if (IFrameSplitOperator.IsNumber(option.BaseValue)) this.BaseValue=option.BaseValue;
39971
+ }
39972
+
39973
+ this.Draw=function()
39974
+ {
39975
+ if (!this.IsShow || this.ChartFrame.IsMinSize || !this.IsVisible) return;
39976
+ if (this.IsShowIndexTitleOnly()) return;
39977
+ if (this.IsHideScriptIndex()) return;
39978
+
39979
+ if (this.NotSupportMessage)
39980
+ {
39981
+ this.DrawNotSupportmessage();
39982
+ return;
39983
+ }
39984
+
39985
+ this.Canvas.save();
39986
+ var dataWidth=this.ChartFrame.DataWidth;
39987
+ var lineWidth=this.LineWidth*GetDevicePixelRatio();
39988
+ if (this.LineWidth==50) lineWidth=dataWidth;
39989
+ else if (lineWidth>dataWidth) lineWidth=dataWidth;
39990
+
39991
+ if (IFrameSplitOperator.IsNumber(this.BaseValue) && this.BaseValue!=0)
39992
+ {
39993
+ this.DrawBaseLine();
39994
+
39995
+ if (this.BaseValue>0) this.DrawBars(lineWidth, true);
39996
+ else this.DrawBars(lineWidth, false);
39997
+ }
39998
+ else
39999
+ {
40000
+ //上下分开画
40001
+ this.DrawBars(lineWidth, true);
40002
+ this.DrawBars(lineWidth, false);
40003
+ }
40004
+
40005
+
40006
+ this.Canvas.restore();
40007
+ }
40008
+
40009
+ this.DrawBars=function(lineWidth, bUpBar)
40010
+ {
40011
+ var isMinute=this.IsMinuteFrame();
40012
+ var dataWidth=this.ChartFrame.DataWidth;
40013
+ var distanceWidth=this.ChartFrame.DistanceWidth;
40014
+ var xPointCount=this.ChartFrame.XPointCount;
40015
+ var isHSCreen=this.ChartFrame.IsHScreen===true;
40016
+
40017
+ if (isHSCreen)
40018
+ {
40019
+ var border=this.ChartBorder.GetHScreenBorder();
40020
+ var xOffset=border.TopEx+distanceWidth/2.0+g_JSChartResource.FrameLeftMargin;
40021
+ var chartright=border.BottomEx;
40022
+ var lockRect=this.GetLockRect();
40023
+ if (lockRect) chartright=lockRect.Top;
40024
+ }
40025
+ else
40026
+ {
40027
+ var border=this.ChartBorder.GetBorder();
40028
+ var xOffset=border.LeftEx+distanceWidth/2.0+g_JSChartResource.FrameLeftMargin;
40029
+
40030
+ var chartright=border.RightEx;
40031
+ var lockRect=this.GetLockRect();
40032
+ if (lockRect) chartright=lockRect.Left;
40033
+ }
40034
+
40035
+ var yBottom=this.ChartFrame.GetYFromData(this.BaseValue);
40036
+ var aryBar=[], aryDiffBar=[];
40037
+ for(var i=this.Data.DataOffset,j=0;i<this.Data.Data.length && j<xPointCount;++i,++j,xOffset+=(dataWidth+distanceWidth))
40038
+ {
40039
+ var value=this.Data.Data[i];
40040
+ if (value==null) continue;
40041
+ if (bUpBar)
40042
+ {
40043
+ if (value<0) continue;
40044
+ }
40045
+ else
40046
+ {
40047
+ if (value>=0) continue;
40048
+ }
40049
+
40050
+ if (isMinute)
40051
+ {
40052
+ var x=this.ChartFrame.GetXFromIndex(j);
40053
+ }
40054
+ else
40055
+ {
40056
+ var left=xOffset;
40057
+ var right=xOffset+dataWidth;
40058
+ if (right>chartright) break;
40059
+ var x=left+(right-left)/2;
40060
+ }
40061
+
40062
+ if (x>chartright) break;
40063
+
40064
+ var bDiffBar=false;
40065
+ var diffValue=null;
40066
+ if (this.BaseValue>0)
40067
+ {
40068
+ if (value<this.BaseValue)
40069
+ {
40070
+ bDiffBar=true;
40071
+ diffValue=this.BaseValue-(this.BaseValue-value);
40072
+ }
40073
+ }
40074
+ else if (this.BaseValue<0)
40075
+ {
40076
+ if (value>this.BaseValue)
40077
+ {
40078
+ bDiffBar=true;
40079
+ diffValue=this.BaseValue+(value-this.BaseValue)
40080
+ }
40081
+ }
40082
+
40083
+ if (!bDiffBar)
40084
+ {
40085
+ var y=this.ChartFrame.GetYFromData(value);
40086
+ aryBar.push({X:x, Y:y});
40087
+ }
40088
+ else
40089
+ {
40090
+ var y=this.ChartFrame.GetYFromData(diffValue);
40091
+ aryDiffBar.push({X:x, Y:y});
40092
+ }
40093
+ }
40094
+
40095
+ this.Canvas.lineWidth=lineWidth;
40096
+ if (bUpBar) this.Canvas.strokeStyle=this.UpColor;
40097
+ else this.Canvas.strokeStyle=this.DownColor;
40098
+
40099
+ this.DrawStick(aryBar,lineWidth,yBottom);
40100
+
40101
+ if (this.BaseValue>0)
40102
+ {
40103
+ this.Canvas.strokeStyle=this.UpDiffColor;
40104
+ this.DrawStick(aryDiffBar,lineWidth,yBottom);
40105
+ }
40106
+ else if (this.BaseValue<0)
40107
+ {
40108
+ this.Canvas.strokeStyle=this.DownDiffColor;
40109
+ this.DrawStick(aryDiffBar,lineWidth,yBottom);
40110
+ }
40111
+
40112
+ }
40113
+
40114
+ this.DrawStick=function(aryData, lineWidth, yBottom)
40115
+ {
40116
+ if (!IFrameSplitOperator.IsNonEmptyArray(aryData)) return;
40117
+
40118
+ var isHSCreen=this.ChartFrame.IsHScreen===true;
40119
+ var drawCount=0;
40120
+ this.Canvas.beginPath();
40121
+ for(var i=0; i<aryData.length; ++i)
40122
+ {
40123
+ var item=aryData[i];
40124
+ var y=item.Y;
40125
+ var xFix=ToFixedPoint2(lineWidth, item.X); //毛边修正
40126
+
40127
+ if (isHSCreen)
40128
+ {
40129
+ this.Canvas.moveTo(yBottom,ToFixedPoint(x));
40130
+ this.Canvas.lineTo(y,ToFixedPoint(x));
40131
+ }
40132
+ else
40133
+ {
40134
+ this.Canvas.moveTo(xFix,yBottom);
40135
+ this.Canvas.lineTo(xFix,y);
40136
+ }
40137
+
40138
+ ++drawCount;
40139
+ }
40140
+
40141
+ if (drawCount>0) this.Canvas.stroke();
40142
+ }
40143
+
40144
+ this.DrawBaseLine=function()
40145
+ {
40146
+ if (!IFrameSplitOperator.IsNumber(this.BaseValue) || this.BaseValue==0) return;
40147
+ if (!this.BaseLineColor) return;
40148
+
40149
+ var isHSCreen=this.ChartFrame.IsHScreen===true;
40150
+ var border=this.ChartFrame.GetBorder();
40151
+ var y=this.ChartFrame.GetYFromData(this.BaseValue);
40152
+
40153
+ this.Canvas.strokeStyle=this.BaseLineColor;
40154
+ this.Canvas.lineWidth=1*GetDevicePixelRatio();
40155
+
40156
+ if (isHSCreen)
40157
+ {
40158
+
40159
+ }
40160
+ else
40161
+ {
40162
+ var yFix=ToFixedPoint(y);
40163
+ this.Canvas.beginPath();
40164
+ this.Canvas.moveTo(border.Left,yFix);
40165
+ this.Canvas.lineTo(border.Right,yFix);
40166
+ this.Canvas.stroke();
40167
+ }
40168
+ }
40169
+
40170
+ this.GetMaxMin=function()
40171
+ {
40172
+ if (!IFrameSplitOperator.IsNumber(this.BaseValue) || this.BaseValue==0)
40173
+ return this.Super_GetMaxMin();
40174
+
40175
+ var xPointCount=this.ChartFrame.XPointCount;
40176
+ var start=this.Data.DataOffset;
40177
+ if (this.ChartFrame.GlobalOption && this.ChartFrame.GlobalOption.IsValueFullRange)
40178
+ {
40179
+ start=0;
40180
+ xPointCount=this.Data.Data.length;
40181
+ }
40182
+
40183
+ var range={ Min:null, Max:null }, maxDiffValue=null; //基准值的差值
40184
+ if(!this.Data || !this.Data.Data) return range;
40185
+
40186
+ if (this.BaseValue>0) range.Min=this.BaseValue;
40187
+ else range.Max=this.BaseValue;
40188
+
40189
+ for(var i=start,j=0;i<this.Data.Data.length && j<xPointCount;++i,++j)
40190
+ {
40191
+ var value=this.Data.Data[i];
40192
+ if (value==null || isNaN(value)) continue;
40193
+
40194
+ if (this.BaseValue>0)
40195
+ {
40196
+ if (value<0) continue;
40197
+
40198
+ if (value<this.BaseValue)
40199
+ {
40200
+ var diffValue=this.BaseValue-value;
40201
+ if (maxDiffValue==null || maxDiffValue<diffValue) maxDiffValue=diffValue;
40202
+ continue;
40203
+ }
40204
+ }
40205
+ else
40206
+ {
40207
+ if (value>0) continue;
40208
+
40209
+ if (value>this.BaseValue)
40210
+ {
40211
+ var diffValue=value-this.BaseValue;
40212
+ if (maxDiffValue==null || maxDiffValue<diffValue) maxDiffValue=diffValue;
40213
+ continue;
40214
+ }
40215
+ }
40216
+
40217
+ if (range.Max==null) range.Max=value;
40218
+ if (range.Min==null) range.Min=value;
40219
+
40220
+ if (range.Max<value) range.Max=value;
40221
+ if (range.Min>value) range.Min=value;
40222
+ }
40223
+
40224
+ if (this.BaseValue>0)
40225
+ {
40226
+ if (IFrameSplitOperator.IsNumber(maxDiffValue) && IFrameSplitOperator.IsNumber(range.Min))
40227
+ range.Min-=maxDiffValue;
40228
+ }
40229
+ else
40230
+ {
40231
+ if (IFrameSplitOperator.IsNumber(maxDiffValue) && IFrameSplitOperator.IsNumber(range.Max))
40232
+ range.Max+=maxDiffValue;
40233
+ }
40234
+
40235
+ return range;
40236
+ }
40237
+ }
40238
+
39942
40239
  //柱子
39943
40240
  function ChartBar()
39944
40241
  {
@@ -118068,6 +118365,8 @@ var SCRIPT_CHART_NAME=
118068
118365
  OVERLAY_BARS:"OVERLAY_BARS", //叠加柱子图
118069
118366
  KLINE_TABLE:"KLINE_TABLE",
118070
118367
  SCATTER_PLOT:"SCATTER_PLOT", //散点图
118368
+
118369
+ CLIP_COLOR_STICK:"CLIP_COLOR_STICK", //上下柱子 裁剪
118071
118370
  }
118072
118371
 
118073
118372
 
@@ -119826,6 +120125,33 @@ function ScriptIndex(name,script,args,option)
119826
120125
  hqChart.ChartPaint.push(chart);
119827
120126
  }
119828
120127
 
120128
+ this.CreateClipColorStick=function(hqChart,windowIndex,varItem,id)
120129
+ {
120130
+ var chart=new ChartClipColorStick();
120131
+ chart.Canvas=hqChart.Canvas;
120132
+ chart.Name=varItem.Name;
120133
+ chart.ChartBorder=hqChart.Frame.SubFrame[windowIndex].Frame.ChartBorder;
120134
+ chart.ChartFrame=hqChart.Frame.SubFrame[windowIndex].Frame;
120135
+ chart.HQChart=hqChart;
120136
+ chart.Identify=this.Guid;
120137
+
120138
+ chart.Data.Data=varItem.Draw.DrawData;
120139
+ if (varItem.Option && chart.SetOption) chart.SetOption(varItem.Option);
120140
+ hqChart.ChartPaint.push(chart);
120141
+
120142
+ var titleIndex=windowIndex+1;
120143
+ if (varItem.IsShowTitle===false)
120144
+ {
120145
+
120146
+ }
120147
+ else
120148
+ {
120149
+ var clrTitle=this.GetDefaultColor(id);
120150
+ if (varItem.Option && varItem.Option.TitleColor) clrTitle=this.GetColor(varItem.Option.TitleColor);
120151
+ hqChart.TitlePaint[titleIndex].Data[id]=new DynamicTitleData(chart.Data,varItem.Name,clrTitle);
120152
+ }
120153
+ }
120154
+
119829
120155
  this.CreateColorKLine=function(hqChart,windowIndex,varItem,i)
119830
120156
  {
119831
120157
  let chart=new ChartColorKline();
@@ -120143,6 +120469,9 @@ function ScriptIndex(name,script,args,option)
120143
120469
  case SCRIPT_CHART_NAME.SCATTER_PLOT:
120144
120470
  this.CreateScatterPlot(hqChart,windowIndex,item,i);
120145
120471
  break;
120472
+ case SCRIPT_CHART_NAME.CLIP_COLOR_STICK:
120473
+ this.CreateClipColorStick(hqChart,windowIndex,item,i);
120474
+ break;
120146
120475
  default:
120147
120476
  {
120148
120477
  var find=g_ScriptIndexChartFactory.Get(item.Draw.DrawType); //外部挂接
@@ -122578,6 +122907,20 @@ function APIScriptIndex(name,script,args,option, isOverlay)
122578
122907
 
122579
122908
  result.push(outVarItem);
122580
122909
  }
122910
+ else if (draw.DrawType==SCRIPT_CHART_NAME.CLIP_COLOR_STICK)
122911
+ {
122912
+ drawItem.Name=draw.Name;
122913
+ drawItem.Type=draw.Type;
122914
+ drawItem.DrawType=draw.DrawType;
122915
+ drawItem.DrawData=this.FittingArray(draw.Data,date,time,hqChart);
122916
+
122917
+ outVarItem.Draw=drawItem;
122918
+ if (draw.LineWidth) outVarItem.LineWidth=draw.LineWidth;
122919
+ if (draw.UpColor) outVarItem.UpColor=draw.UpColor;
122920
+ if (draw.DownColor) outVarItem.DownColor=draw.DownColor;
122921
+
122922
+ result.push(outVarItem);
122923
+ }
122581
122924
  else
122582
122925
  {
122583
122926
  var find=g_ScriptIndexChartFactory.Get(draw.DrawType); //外部挂接
@@ -122843,6 +123186,17 @@ function APIScriptIndex(name,script,args,option, isOverlay)
122843
123186
 
122844
123187
  result.push(outVarItem);
122845
123188
  }
123189
+ else if (draw.DrawType==SCRIPT_CHART_NAME.CLIP_COLOR_STICK)
123190
+ {
123191
+ drawItem.Name=draw.Name;
123192
+ drawItem.Type=draw.Type;
123193
+ drawItem.DrawType=draw.DrawType;
123194
+ drawItem.DrawData=this.FittingMinuteArray(draw.Data,date,time,hqChart);
123195
+
123196
+ outVarItem.Draw=drawItem;
123197
+ if (draw.Option) outVarItem.Option=draw.Option;
123198
+ result.push(outVarItem);
123199
+ }
122846
123200
  else if (draw.DrawType=='MULTI_LINE')
122847
123201
  {
122848
123202
  drawItem.Text=draw.Text;
@@ -137233,7 +137587,8 @@ function JSKeyboardChartContainer(uielement)
137233
137587
  this.NetworkFilter; //数据回调接口
137234
137588
  this.Data={ XOffset:0, YOffset:0, Data:[] }; //股票列表
137235
137589
  this.MapSymbol=new Map();
137236
- this.SourceData={ Data:[] } //码表数据 Data:[ { Symbol:, Spell, Name:, Color:}]
137590
+ this.SourceData={ Data:[] } //码表数据 Data:[ { Symbol:, Spell, Name:, Color: TypeName:, TypeID } ]
137591
+ this.FunctionKeyData=[]; //功能键 { Priority:, Data:[ { Symbol:, Spell, Name:, Color:, TypeName:, TypeID } ]
137237
137592
 
137238
137593
  //事件回调
137239
137594
  this.mapEvent=new Map(); //通知外部调用 key:JSCHART_EVENT_ID value:{Callback:回调,}
@@ -137260,10 +137615,44 @@ function JSKeyboardChartContainer(uielement)
137260
137615
  if (option && option.Redraw==true) this.Draw();
137261
137616
  }
137262
137617
 
137618
+ this.SearchFunctionKeyData=function(strSearch)
137619
+ {
137620
+ if (strSearch.length<=0) return null;
137621
+ if (!IFrameSplitOperator.IsNonEmptyArray(this.FunctionKeyData)) return null;
137622
+
137623
+ var aryData=[];
137624
+ for(var i=0; i<this.FunctionKeyData.length; ++i)
137625
+ {
137626
+ var groupData=this.FunctionKeyData[i];
137627
+ if (!groupData) continue;
137628
+ if (!IFrameSplitOperator.IsNonEmptyArray(groupData.Data)) continue;
137629
+
137630
+ var aryExactQuery=[]; //精确查询
137631
+ var aryFuzzyQuery=[]; //模糊查询
137632
+ var aryEqualQuery=[]; //相等
137633
+
137634
+ for(var j=0;j<groupData.Data.length;++j)
137635
+ {
137636
+ var item=groupData.Data[j];
137637
+ if (this.SearchSymbol(item, strSearch, aryExactQuery, aryFuzzyQuery,aryEqualQuery)) continue;
137638
+ }
137639
+
137640
+ if (IFrameSplitOperator.IsNonEmptyArray(aryEqualQuery)) aryData.push(...aryEqualQuery);
137641
+ if (IFrameSplitOperator.IsNonEmptyArray(aryExactQuery)) aryData.push(...aryExactQuery);
137642
+ if (IFrameSplitOperator.IsNonEmptyArray(aryFuzzyQuery)) aryData.push(...aryFuzzyQuery);
137643
+ }
137644
+
137645
+ if (aryData.length>0) return aryData;
137646
+
137647
+ return null;
137648
+ }
137649
+
137263
137650
  this.Search=function(strText)
137264
137651
  {
137265
137652
  var aryExactQuery=[]; //精确查询
137266
137653
  var aryFuzzyQuery=[]; //模糊查询
137654
+ var aryEqualQuery=[]; //相等
137655
+ var aryFuncKeyQuery=null;
137267
137656
  this.MapSymbol.clear();
137268
137657
  this.Data.Data=[];
137269
137658
  this.Data.XOffset=0;
@@ -137272,17 +137661,21 @@ function JSKeyboardChartContainer(uielement)
137272
137661
  var strSearch=strText.trim();
137273
137662
  if (strSearch.length>0)
137274
137663
  {
137664
+ aryFuncKeyQuery=this.SearchFunctionKeyData(strSearch);
137665
+
137275
137666
  for(var i=0;i<this.SourceData.Data.length;++i)
137276
137667
  {
137277
137668
  var item=this.SourceData.Data[i];
137278
- if (this.SearchSymbol(item, strSearch, aryExactQuery, aryFuzzyQuery)) continue;
137669
+ if (this.SearchSymbol(item, strSearch, aryExactQuery, aryFuzzyQuery, aryEqualQuery)) continue;
137279
137670
  else if (this.SearchSpell(item, strSearch, aryExactQuery, aryFuzzyQuery)) continue;
137280
137671
  }
137281
137672
  }
137282
-
137283
- if (IFrameSplitOperator.IsNonEmptyArray(aryExactQuery) || IFrameSplitOperator.IsNonEmptyArray(aryFuzzyQuery))
137284
- this.Data.Data=aryExactQuery.concat(aryFuzzyQuery);
137285
137673
 
137674
+ if (IFrameSplitOperator.IsNonEmptyArray(aryFuncKeyQuery)) this.Data.Data.push(...aryFuncKeyQuery);
137675
+ if (IFrameSplitOperator.IsNonEmptyArray(aryEqualQuery)) this.Data.Data.push(...aryEqualQuery);
137676
+ if (IFrameSplitOperator.IsNonEmptyArray(aryExactQuery)) this.Data.Data.push(...aryExactQuery);
137677
+ if (IFrameSplitOperator.IsNonEmptyArray(aryFuzzyQuery)) this.Data.Data.push(...aryFuzzyQuery);
137678
+
137286
137679
  this.ChartPaint[0].SelectedRow=0;
137287
137680
  this.ChartPaint[0].SizeChange=true;
137288
137681
 
@@ -137291,12 +137684,13 @@ function JSKeyboardChartContainer(uielement)
137291
137684
  this.Draw();
137292
137685
  }
137293
137686
 
137294
- this.SearchSymbol=function(item, strText, aryExactQuery, aryFuzzyQuery)
137687
+ this.SearchSymbol=function(item, strText, aryExactQuery, aryFuzzyQuery, aryEqualQuery)
137295
137688
  {
137296
137689
  var find=item.Symbol.indexOf(strText);
137297
137690
  if (find<0) return false;
137298
137691
 
137299
- if (find==0) aryExactQuery.push(item.Symbol);
137692
+ if (item.Symbol==strText) aryEqualQuery.push(item.Symbol);
137693
+ else if (find==0) aryExactQuery.push(item.Symbol);
137300
137694
  else aryFuzzyQuery.push(item.Symbol);
137301
137695
 
137302
137696
  this.MapSymbol.set(item.Symbol, item);
@@ -137321,8 +137715,21 @@ function JSKeyboardChartContainer(uielement)
137321
137715
 
137322
137716
  this.SetSymbolData=function(arySymbol)
137323
137717
  {
137324
- this.SourceData.Data=arySymbol;
137325
-
137718
+ this.SourceData.Data=[];
137719
+ for(var i=0;i<arySymbol.length;++i)
137720
+ {
137721
+ var item=arySymbol[i];
137722
+ if (IFrameSplitOperator.IsNumber(item.Priority))
137723
+ {
137724
+ if (!this.FunctionKeyData[item.Priority]) this.FunctionKeyData[item.Priority]={ Priority:item.Priority, Data:[] };
137725
+ this.FunctionKeyData[item.Priority].Data.push(item);
137726
+ }
137727
+ else
137728
+ {
137729
+ this.SourceData.Data.push(item);
137730
+ }
137731
+ }
137732
+
137326
137733
  /*
137327
137734
  //测试
137328
137735
  this.MapSymbol.clear();
@@ -137595,11 +138002,13 @@ function JSKeyboardChartContainer(uielement)
137595
138002
  if (!chart) return false;
137596
138003
 
137597
138004
  var data=chart.GetSelectedSymbol();
138005
+ var selItem=this.MapSymbol.get(data.Symbol);
138006
+ if (!selItem) return false;
137598
138007
 
137599
138008
  var event=this.GetEventCallback(JSCHART_EVENT_ID.ON_KEYBOARD_SELECTED)
137600
138009
  if (event && event.Callback)
137601
138010
  {
137602
- event.Callback(event, { Data:data }, this);
138011
+ event.Callback(event, { Data:data, RowData:selItem }, this);
137603
138012
  }
137604
138013
  }
137605
138014
 
@@ -138209,6 +138618,38 @@ function ChartSymbolList()
138209
138618
  this.SetColumn=function(aryColumn)
138210
138619
  {
138211
138620
  if (!IFrameSplitOperator.IsNonEmptyArray(aryColumn)) return;
138621
+
138622
+ this.Column=[];
138623
+ for(var i=0;i<aryColumn.length;++i)
138624
+ {
138625
+ var item=aryColumn[i];
138626
+ var colItem=this.GetDefaultColunm(item.Type);
138627
+ if (!colItem) continue;
138628
+
138629
+ if (item.Title) colItem.Title=item.Title;
138630
+ if (item.TextAlign) colItem.TextAlign=item.TextAlign;
138631
+ if (item.MaxText) colItem.MaxText=item.MaxText;
138632
+
138633
+ this.Column.push(colItem);
138634
+ }
138635
+ }
138636
+
138637
+ this.GetDefaultColunm=function(id)
138638
+ {
138639
+ var DEFAULT_COLUMN=
138640
+ [
138641
+ { Type:KEYBOARD_COLUMN_ID.SHORT_SYMBOL_ID, Title:"代码", TextAlign:"left", Width:null, MaxText:"888888" },
138642
+ { Type:KEYBOARD_COLUMN_ID.NAME_ID, Title:"名称", TextAlign:"left", Width:null, MaxText:"擎擎擎擎擎擎" },
138643
+ { Type:KEYBOARD_COLUMN_ID.TYPE_NAME_ID, Title:"类型", TextAlign:"right", Width:null, MaxText:"擎擎擎擎" },
138644
+ ];
138645
+
138646
+ for(var i=0;i<DEFAULT_COLUMN.length;++i)
138647
+ {
138648
+ var item=DEFAULT_COLUMN[i];
138649
+ if (item.Type==id) return item;
138650
+ }
138651
+
138652
+ return null;
138212
138653
  }
138213
138654
 
138214
138655
  this.Draw=function()
@@ -142171,7 +142612,15 @@ JSPopKeyboard.GetOption=function()
142171
142612
  },
142172
142613
 
142173
142614
  BorderLine:1|2|4|8,
142174
- EnableResize:true
142615
+ EnableResize:true,
142616
+
142617
+ //{ Type:列id, Title:标题, TextAlign:文字对齐方式, MaxText:文字最大宽度 , TextColor:文字颜色, Sort:0=不支持排序 1=本地排序 0=远程排序 }
142618
+ Column:
142619
+ [
142620
+ { Type:KEYBOARD_COLUMN_ID.SHORT_SYMBOL_ID, Title:"代码", TextAlign:"left", Width:null, MaxText:"888888" },
142621
+ { Type:KEYBOARD_COLUMN_ID.NAME_ID, Title:"名称", TextAlign:"left", Width:null, MaxText:"擎擎擎擎擎擎擎擎" },
142622
+ { Type:KEYBOARD_COLUMN_ID.TYPE_NAME_ID, Title:"类型", TextAlign:"right", Width:null, MaxText:"擎擎擎擎擎" },
142623
+ ]
142175
142624
  };
142176
142625
 
142177
142626
  return option;
@@ -142300,7 +142749,7 @@ function HQChartScriptWorker()
142300
142749
 
142301
142750
 
142302
142751
 
142303
- var HQCHART_VERSION="1.1.13708";
142752
+ var HQCHART_VERSION="1.1.13716";
142304
142753
 
142305
142754
  function PrintHQChartVersion()
142306
142755
  {