hqchart 1.1.14026 → 1.1.14033

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.
@@ -6584,6 +6584,7 @@ var JSCHART_EVENT_ID=
6584
6584
  ON_RCLICK_TREPORT_HEADER:125, //右键点击T型报价表头
6585
6585
  ON_TREPORT_LOCAL_SORT:126, //T型报价列表本地排序
6586
6586
  ON_CLICK_TREPORT_ROW:127, //左键点击点击T型报价列表
6587
+ ON_MOVE_SELECTED_TREPORT_ROW:128, //选中行变动
6587
6588
 
6588
6589
  ON_DRAW_REPORT_ROW_BG:140, //报价列表整行背景
6589
6590
  ON_CLICK_REPORT_CHECKBOX:141, //报价列表checkbox
@@ -52295,6 +52296,11 @@ IFrameSplitOperator.IsUndefined=function(value)
52295
52296
  return value===undefined;
52296
52297
  }
52297
52298
 
52299
+ IFrameSplitOperator.IsObject=function(value)
52300
+ {
52301
+ return value instanceof Object;
52302
+ }
52303
+
52298
52304
  IFrameSplitOperator.RemoveZero=function(strValue)
52299
52305
  {
52300
52306
  while(strValue.length>0)
@@ -73269,6 +73275,12 @@ function JSChartResource()
73269
73275
  BorderColor:'rgb(20,20,20)', //边框颜色
73270
73276
  TitleColor:'rgb(0,0,0)', //对话框标题颜色
73271
73277
  TitleBGColor:"rgb(200, 66, 69)", //标题背景颜色
73278
+
73279
+ Input:
73280
+ {
73281
+ BGColor:"rgb(250,250,250)",
73282
+ TextColor:"rgb(0,0,0)",
73283
+ }
73272
73284
  };
73273
73285
 
73274
73286
  //弹幕
@@ -74311,6 +74323,13 @@ function JSChartResource()
74311
74323
  if (item.BorderColor) this.DialogPopKeyboard.BorderColor=item.BorderColor;
74312
74324
  if (item.TitleColor) this.DialogPopKeyboard.TitleColor=item.TitleColor;
74313
74325
  if (item.TitleBGColor) this.DialogTooltip.TitleBGColor=item.TitleBGColor;
74326
+
74327
+ if (item.Input)
74328
+ {
74329
+ var subItem=item.Input;
74330
+ if (subItem.BGColor) this.DialogPopKeyboard.Input.BGColor=subItem.BGColor;
74331
+ if (subItem.TextColor) this.DialogPopKeyboard.Input.TextColor=subItem.TextColor;
74332
+ }
74314
74333
  }
74315
74334
 
74316
74335
  if (style.MinuteInfo)
@@ -74765,6 +74784,79 @@ function JSChartResource()
74765
74784
 
74766
74785
  if (style.FrameButtomToolbar)
74767
74786
  this.SetFrameButtomToolbar(style.FrameButtomToolbar);
74787
+
74788
+
74789
+ if (style.Keyboard) this.SetKeyboardStyle(style.Keyboard);
74790
+ }
74791
+
74792
+
74793
+ this.SetKeyboardStyle=function(style)
74794
+ {
74795
+ var item=style;
74796
+ var dest=this.Keyboard;
74797
+
74798
+ if (item.BorderColor) dest.BorderColor=item.BorderColor;
74799
+ if (item.SelectedColor) dest.SelectedColor=item.SelectedColor;
74800
+ if (item.TextColor) dest.TextColor=item.TextColor;
74801
+
74802
+ if (item.Item)
74803
+ {
74804
+ var row=item.Item;
74805
+ if (row.Mergin)
74806
+ {
74807
+ var mergin=row.Mergin;
74808
+ if (IFrameSplitOperator.IsNumber(mergin.Left)) dest.Item.Mergin.Left=mergin.Left;
74809
+ if (IFrameSplitOperator.IsNumber(mergin.Right)) dest.Item.Mergin.Right=mergin.Right;
74810
+ if (IFrameSplitOperator.IsNumber(mergin.Top)) dest.Item.Mergin.Top=mergin.Top;
74811
+ if (IFrameSplitOperator.IsNumber(mergin.Bottom)) dest.Item.Mergin.Bottom=mergin.Bottom;
74812
+ }
74813
+
74814
+ if (row.Font)
74815
+ {
74816
+ var font=row.Font;
74817
+ if (font.Name) dest.Item.Font.Name=font.Name;
74818
+ if (IFrameSplitOperator.IsNumber(font.Size)) dest.Item.Font.Size=font.Size;
74819
+ }
74820
+
74821
+ if (row.BarMergin)
74822
+ {
74823
+ var mergin=row.BarMergin;
74824
+ if (IFrameSplitOperator.IsNumber(mergin.Left)) dest.Item.BarMergin.Left=mergin.Left;
74825
+ if (IFrameSplitOperator.IsNumber(mergin.Top)) dest.Item.BarMergin.Top=mergin.Top;
74826
+ if (IFrameSplitOperator.IsNumber(mergin.Right)) dest.Item.BarMergin.Right=mergin.Right;
74827
+ if (IFrameSplitOperator.IsNumber(mergin.Bottom)) dest.Item.BarMergin.Bottom=mergin.Bottom;
74828
+ }
74829
+
74830
+ if (row.NameFont)
74831
+ {
74832
+ var font=row.NameFont;
74833
+ if (font.Name) dest.Item.NameFont.Name=font.Name;
74834
+ if (IFrameSplitOperator.IsNumber(font.Size)) dest.Item.NameFont.Size=font.Size;
74835
+ }
74836
+
74837
+ if (row.SymbolFont)
74838
+ {
74839
+ var font=row.SymbolFont;
74840
+ if (font.Name) dest.Item.SymbolFont.Name=font.Name;
74841
+ if (IFrameSplitOperator.IsNumber(font.Size)) dest.Item.SymbolFont.Size=font.Size;
74842
+ }
74843
+
74844
+ }
74845
+
74846
+ if (item.VScrollbar)
74847
+ {
74848
+ var scroll=item.VScrollbar;
74849
+ if (IFrameSplitOperator.IsNumber(scroll.ScrollBarHeight)) dest.VScrollbar.ScrollBarHeight=scroll.ScrollBarHeight;
74850
+ if (scroll.ButtonColor) dest.VScrollbar.ButtonColor=scroll.ButtonColor;
74851
+ if (scroll.BarColor) dest.VScrollbar.BarColor=scroll.BarColor;
74852
+ if (scroll.BorderColor) dest.VScrollbar.BorderColor=scroll.BorderColor;
74853
+ if (scroll.BGColor) dest.VScrollbar.BGColor=scroll.BGColor;
74854
+ if (scroll.BarWidth)
74855
+ {
74856
+ var subItem=scroll.BarWidth;
74857
+ if (IFrameSplitOperator.IsNumber(subItem.Size)) dest.VScrollbar.BarWidth.Size=subItem.Size;
74858
+ }
74859
+ }
74768
74860
  }
74769
74861
 
74770
74862
  this.SetReportStyle=function(style)
@@ -125231,6 +125323,19 @@ function GetBlackStyle()
125231
125323
  TurnoverRateColor:'rgb(43,54,69)', //换手率
125232
125324
  PositionColor:"rgb(255,0,255)" //持仓
125233
125325
  },
125326
+
125327
+ DialogPopKeyboard:
125328
+ {
125329
+ BGColor:'rgb(20,20,20)', //背景色
125330
+ BorderColor:'rgb(170,170,170)', //边框颜色
125331
+ TitleColor:'rgb(240,240,240)', //标题颜色
125332
+
125333
+ Input:
125334
+ {
125335
+ BGColor:"rgb(20,20,20)",
125336
+ TextColor:"rgb(250,250,250)",
125337
+ }
125338
+ },
125234
125339
 
125235
125340
  //走势图 信息地雷
125236
125341
  MinuteInfo:
@@ -125566,6 +125671,33 @@ function GetBlackStyle()
125566
125671
  },
125567
125672
  },
125568
125673
 
125674
+ //键盘精灵
125675
+ Keyboard:
125676
+ {
125677
+ BorderColor:'rgb(38,38,41)', //边框线
125678
+ SelectedColor:"rgb(49,48,56)", //选中行
125679
+ TextColor:"rgb(245,245,245)",
125680
+
125681
+ Item:
125682
+ {
125683
+ Mergin:{ Top:2, Bottom:0,Left:1, Right:1 }, //单元格四周间距
125684
+ Font:{ Size:15, Name:"微软雅黑"},
125685
+ BarMergin:{ Top:2, Left:0, Right:0, Bottom:2 },//单元格字体
125686
+ NameFont:{ Size:14, Name:"微软雅黑" },
125687
+ SymbolFont:{ Size:12, Name:"微软雅黑" }
125688
+ },
125689
+
125690
+ VScrollbar:
125691
+ {
125692
+ ScrollBarHeight:50,
125693
+ ButtonColor:"rgba(13,12,15,0.8)",
125694
+ BarColor:"rgba(48,48,48,0.9)",
125695
+ BorderColor:'rgba(48,48,48,0.9)',
125696
+ BGColor:"rgba(211,211,211,0.5)",
125697
+ BarWidth:{ Size:8 }
125698
+ },
125699
+ },
125700
+
125569
125701
  ScrollBar:
125570
125702
  {
125571
125703
  BorderColor:'rgb(38,38,41)', //边框线
@@ -136638,16 +136770,16 @@ function JSTReportChartContainer(uielement)
136638
136770
 
136639
136771
 
136640
136772
  //10个字符型 201-299
136641
- if (IFrameSplitOperator.IsString(item[201])) stock.ReserveString1=item[201];
136642
- if (IFrameSplitOperator.IsString(item[202])) stock.ReserveString2=item[202];
136643
- if (IFrameSplitOperator.IsString(item[203])) stock.ReserveString3=item[203];
136644
- if (IFrameSplitOperator.IsString(item[204])) stock.ReserveString4=item[204];
136645
- if (IFrameSplitOperator.IsString(item[205])) stock.ReserveString5=item[205];
136646
- if (IFrameSplitOperator.IsString(item[206])) stock.ReserveString6=item[206];
136647
- if (IFrameSplitOperator.IsString(item[207])) stock.ReserveString7=item[207];
136648
- if (IFrameSplitOperator.IsString(item[208])) stock.ReserveString8=item[208];
136649
- if (IFrameSplitOperator.IsString(item[209])) stock.ReserveString9=item[209];
136650
- if (IFrameSplitOperator.IsString(item[210])) stock.ReserveString10=item[210];
136773
+ if (IFrameSplitOperator.IsString(item[201]) || IFrameSplitOperator.IsObject(item[201])) stock.ReserveString1=item[201];
136774
+ if (IFrameSplitOperator.IsString(item[202]) || IFrameSplitOperator.IsObject(item[202])) stock.ReserveString2=item[202];
136775
+ if (IFrameSplitOperator.IsString(item[203]) || IFrameSplitOperator.IsObject(item[203])) stock.ReserveString3=item[203];
136776
+ if (IFrameSplitOperator.IsString(item[204]) || IFrameSplitOperator.IsObject(item[204])) stock.ReserveString4=item[204];
136777
+ if (IFrameSplitOperator.IsString(item[205]) || IFrameSplitOperator.IsObject(item[205])) stock.ReserveString5=item[205];
136778
+ if (IFrameSplitOperator.IsString(item[206]) || IFrameSplitOperator.IsObject(item[206])) stock.ReserveString6=item[206];
136779
+ if (IFrameSplitOperator.IsString(item[207]) || IFrameSplitOperator.IsObject(item[207])) stock.ReserveString7=item[207];
136780
+ if (IFrameSplitOperator.IsString(item[208]) || IFrameSplitOperator.IsObject(item[208])) stock.ReserveString8=item[208];
136781
+ if (IFrameSplitOperator.IsString(item[209]) || IFrameSplitOperator.IsObject(item[209])) stock.ReserveString9=item[209];
136782
+ if (IFrameSplitOperator.IsString(item[210]) || IFrameSplitOperator.IsObject(item[210])) stock.ReserveString10=item[210];
136651
136783
  }
136652
136784
 
136653
136785
 
@@ -137014,6 +137146,43 @@ function JSTReportChartContainer(uielement)
137014
137146
  else e.returnValue = false;
137015
137147
  }
137016
137148
 
137149
+ this.MoveSelectedRowEvent=function(oldData, nowData)
137150
+ {
137151
+ var chart=this.ChartPaint[0];
137152
+ if (!chart) return null;
137153
+
137154
+ var event=this.GetEventCallback(JSCHART_EVENT_ID.ON_MOVE_SELECTED_TREPORT_ROW);
137155
+ if (!event || !event.Callback) return;
137156
+
137157
+ if (oldData && nowData)
137158
+ {
137159
+ if (oldData.ExePrice==nowData.ExePrice && oldData.CellType==nowData.CellType) return;
137160
+ }
137161
+
137162
+ if (oldData)
137163
+ {
137164
+ if (chart.GetExePriceDataCallback) oldData.TData=chart.GetExePriceDataCallback(oldData.ExePrice);
137165
+ if (oldData.TData)
137166
+ {
137167
+ if (oldData.CellType==1) oldData.Item=oldData.TData.LeftData;
137168
+ else if (oldData.CellType==2) oldData.Item=oldData.TData.RightData;
137169
+ }
137170
+ }
137171
+
137172
+ if (nowData)
137173
+ {
137174
+ if (chart.GetExePriceDataCallback) nowData.TData=chart.GetExePriceDataCallback(nowData.ExePrice);
137175
+ if (nowData.TData)
137176
+ {
137177
+ if (nowData.CellType==1) nowData.Item=nowData.TData.LeftData;
137178
+ else if (nowData.CellType==2) nowData.Item=nowData.TData.RightData;
137179
+ }
137180
+ }
137181
+
137182
+ var endData={ Old:oldData, Now:nowData, Symbol:this.Symbol };
137183
+ event.Callback(event, endData, this);
137184
+ }
137185
+
137017
137186
  //是否循环翻页 { EnablePageCycle: true/false }
137018
137187
  this.MoveSelectedRow=function(step, option)
137019
137188
  {
@@ -137045,13 +137214,19 @@ function JSTReportChartContainer(uielement)
137045
137214
  }
137046
137215
  }
137047
137216
  }
137048
-
137217
+
137218
+ var oldData=null, nowData=null;
137219
+ if (chart.SelectedRow) oldData=CloneData(chart.SelectedRow); //上一个数据保存下
137220
+
137049
137221
  if (step>0)
137050
137222
  {
137051
137223
  if (selectedIndex<0 || selectedIndex<pageStatus.Start || selectedIndex>pageStatus.End)
137052
137224
  {
137053
137225
  chart.SelectedRow={ ExePrice:this.Data.Data[pageStatus.Start], CellType:cellType };
137054
137226
  result.Redraw=true;
137227
+
137228
+ nowData=CloneData(chart.SelectedRow);
137229
+ this.MoveSelectedRowEvent(oldData,nowData);
137055
137230
  return result;
137056
137231
  }
137057
137232
 
@@ -137077,6 +137252,8 @@ function JSTReportChartContainer(uielement)
137077
137252
  chart.SelectedRow={ ExePrice:this.Data.Data[selectedIndex], CellType:cellType };
137078
137253
  this.Data.YOffset=offset;
137079
137254
 
137255
+ nowData=CloneData(chart.SelectedRow);
137256
+ this.MoveSelectedRowEvent(oldData,nowData);
137080
137257
  return result;
137081
137258
  }
137082
137259
  else if (step<0)
@@ -137085,6 +137262,9 @@ function JSTReportChartContainer(uielement)
137085
137262
  {
137086
137263
  chart.SelectedRow={ ExePrice:this.Data.Data[pageStatus.End], CellType:cellType };
137087
137264
  result.Redraw=true;
137265
+
137266
+ nowData=CloneData(chart.SelectedRow);
137267
+ this.MoveSelectedRowEvent(oldData,nowData);
137088
137268
  return result;
137089
137269
  }
137090
137270
 
@@ -137112,6 +137292,8 @@ function JSTReportChartContainer(uielement)
137112
137292
  chart.SelectedRow={ ExePrice:this.Data.Data[selectedIndex], CellType:cellType };
137113
137293
  this.Data.YOffset=offset;
137114
137294
 
137295
+ nowData=CloneData(chart.SelectedRow);
137296
+ this.MoveSelectedRowEvent(oldData,nowData);
137115
137297
  return result;
137116
137298
  }
137117
137299
 
@@ -138165,10 +138347,17 @@ function ChartTReport()
138165
138347
  var fieldName=MAP_TREPORT_COLUMN_FIELD.get(column.Type);
138166
138348
  if (!fieldName) return;
138167
138349
 
138168
- var text=data[fieldName];
138169
- if (!IFrameSplitOperator.IsString(text)) return;
138170
-
138171
- drawInfo.Text=text;
138350
+ var item=data[fieldName];
138351
+ if (IFrameSplitOperator.IsObject(item))
138352
+ {
138353
+ if (item.Text) drawInfo.Text=item.Text;
138354
+ if (item.TextColor) drawInfo.TextColor=item.TextColor;
138355
+ if (item.BGColor) drawInfo.BGColor=item.BGColor;
138356
+ }
138357
+ else if (IFrameSplitOperator.IsString(item))
138358
+ {
138359
+ drawInfo.Text=item;
138360
+ }
138172
138361
  }
138173
138362
 
138174
138363
  this.GetFlashBGData=function(drawInfo, exePriceData, columnType, cellType)
@@ -143542,12 +143731,22 @@ function JSPopKeyboard()
143542
143731
  {
143543
143732
  this.DivDialog=null;
143544
143733
  this.DragTitle=null;
143734
+ this.TitleBox=null; //{ DivTitle, DivName, }
143545
143735
  this.InputDOM=null;
143546
143736
  this.Title="HQChart 键盘精灵"
143547
143737
  this.ID=Guid();
143548
143738
  this.ActiveDOM=null; //启动键盘精灵是的控件
143549
143739
  this.InputStatus=0; //0=空闲 1=输入中
143550
143740
 
143741
+
143742
+ this.BGColor=g_JSChartResource.DialogPopKeyboard.BGColor;
143743
+ this.TitleColor=g_JSChartResource.DialogPopKeyboard.TitleColor;
143744
+ this.TitleBGColor=g_JSChartResource.DialogPopKeyboard.TitleBGColor;
143745
+ this.BorderColor=g_JSChartResource.DialogPopKeyboard.BorderColor;
143746
+
143747
+ this.InputBGColor=g_JSChartResource.DialogPopKeyboard.Input.BGColor;
143748
+ this.InputTextColor=g_JSChartResource.DialogPopKeyboard.Input.TextColor;
143749
+
143551
143750
  this.Keyboard=
143552
143751
  {
143553
143752
  Option:JSPopKeyboard.GetOption(),
@@ -143594,6 +143793,8 @@ function JSPopKeyboard()
143594
143793
  divClose.onmousedown=(e)=>{ this.Hide(); }
143595
143794
  divTitle.appendChild(divClose);
143596
143795
 
143796
+ this.TitleBox={ DivTitle:divTitle, DivName:divInfoText, DivClose:divClose };
143797
+
143597
143798
  var divInput=document.createElement("div");
143598
143799
  divInput.className='jschart_keyboard_Input_Div';
143599
143800
  divDom.appendChild(divInput);
@@ -143629,6 +143830,9 @@ function JSPopKeyboard()
143629
143830
  }
143630
143831
  )
143631
143832
 
143833
+
143834
+ this.UpdateStyle();
143835
+
143632
143836
  document.body.appendChild(divDom);
143633
143837
  }
143634
143838
 
@@ -143823,6 +144027,47 @@ function JSPopKeyboard()
143823
144027
  {
143824
144028
  this.InputDOM.focus();
143825
144029
  }
144030
+
144031
+
144032
+ this.UpdateStyle=function()
144033
+ {
144034
+ if (!this.DivDialog) return;
144035
+
144036
+ if (this.BGColor) this.DivDialog.style['background-color']=this.BGColor;
144037
+ if (this.BorderColor) this.DivDialog.style['border-color']=this.BorderColor;
144038
+
144039
+ if (this.InputBGColor) this.InputDOM.style['background-color']=this.InputBGColor;
144040
+ if (this.InputTextColor) this.InputDOM.style['color']=this.InputTextColor;
144041
+
144042
+
144043
+ if (this.TitleBGColor) this.TitleBox.DivTitle.style['background-color']=this.TitleBGColor;
144044
+ if (this.TitleColor)
144045
+ {
144046
+ this.TitleBox.DivName.style['color']=this.TitleColor;
144047
+ this.TitleBox.DivClose.style['color']=this.TitleColor;
144048
+ }
144049
+
144050
+ }
144051
+
144052
+ this.ReloadResource=function(option)
144053
+ {
144054
+ this.BGColor=g_JSChartResource.DialogPopKeyboard.BGColor;
144055
+ this.TitleColor=g_JSChartResource.DialogPopKeyboard.TitleColor;
144056
+ this.TitleBGColor=g_JSChartResource.DialogPopKeyboard.TitleBGColor;
144057
+ this.BorderColor=g_JSChartResource.DialogPopKeyboard.BorderColor;
144058
+
144059
+ this.InputBGColor=g_JSChartResource.DialogPopKeyboard.Input.BGColor;
144060
+ this.InputTextColor=g_JSChartResource.DialogPopKeyboard.Input.TextColor;
144061
+
144062
+ if (this.Keyboard.JSChart)
144063
+ {
144064
+ this.Keyboard.JSChart.ReloadResource();
144065
+ this.Keyboard.JSChart.Draw();
144066
+ }
144067
+
144068
+ if (!this.DivDialog) return;
144069
+ this.UpdateStyle();
144070
+ }
143826
144071
  }
143827
144072
 
143828
144073
  JSPopKeyboard.GetOption=function()
@@ -144715,6 +144960,7 @@ function JSDialogSelectRect()
144715
144960
  this.TitleColor=g_JSChartResource.DialogSelectRect.TitleColor;
144716
144961
  this.TitleBGColor=g_JSChartResource.DialogSelectRect.TitleBGColor;
144717
144962
  this.BGColor=g_JSChartResource.DialogSelectRect.BGColor;
144963
+ this.BorderColor=g_JSChartResource.DialogSelectRect.BorderColor;
144718
144964
 
144719
144965
  this.TextColor=g_JSChartResource.DialogSelectRect.TextColor;
144720
144966
  this.ValueColor=g_JSChartResource.DialogSelectRect.ValueColor;
@@ -145672,7 +145918,7 @@ function HQChartScriptWorker()
145672
145918
 
145673
145919
 
145674
145920
 
145675
- var HQCHART_VERSION="1.1.14025";
145921
+ var HQCHART_VERSION="1.1.14032";
145676
145922
 
145677
145923
  function PrintHQChartVersion()
145678
145924
  {