hqchart 1.1.14370 → 1.1.14375

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hqchart",
3
- "version": "1.1.14370",
3
+ "version": "1.1.14375",
4
4
  "description": "HQChart - H5, 微信小程序 沪深/港股/数字货币/期货/美股 K线图(kline),走势图,缩放,拖拽,十字光标,画图工具,截图,筹码图. 分析家语法,通达信语法,(麦语法),第3方数据对接",
5
5
  "main": "lib/main.js",
6
6
  "scripts": {
@@ -162,6 +162,8 @@ function JSDialogDrawTool()
162
162
 
163
163
  this.DragTitle=null;
164
164
 
165
+ this.RestoreFocusDelay=800;
166
+
165
167
  this.Inital=function(hqchart)
166
168
  {
167
169
  this.LineColor=g_JSChartResource.DrawPicture.LineColor[0];
@@ -501,6 +503,8 @@ function JSDialogDrawTool()
501
503
  if (!this.DivDialog) return;
502
504
 
503
505
  this.DivDialog.style.visibility='hidden';
506
+
507
+ if (this.HQChart) this.HQChart.RestoreFocus(this.RestoreFocusDelay);
504
508
  }
505
509
 
506
510
  this.IsShow=function()
@@ -637,6 +641,8 @@ function JSDialogModifyDraw()
637
641
  { Title:"删除图形", ClassName: 'hqchart_drawtool icon-recycle_bin', Type:2, Data:{ ID:JS_DRAWTOOL_MENU_ID.CMD_DELETE_DRAW_CHART_ID }},
638
642
 
639
643
  ];
644
+
645
+ this.RestoreFocusDelay=800;
640
646
 
641
647
  this.Inital=function(hqchart)
642
648
  {
@@ -776,6 +782,8 @@ function JSDialogModifyDraw()
776
782
 
777
783
  this.ChartPicture=null;
778
784
  this.DivDialog.style.visibility='hidden';
785
+
786
+ if (this.HQChart) this.HQChart.RestoreFocus(this.RestoreFocusDelay);
779
787
  }
780
788
 
781
789
  this.IsShow=function()
@@ -41,6 +41,8 @@ function JSDialogSearchIndex()
41
41
  this.AryGroup=[]; //分类
42
42
  this.IndexData=JSDialogSearchIndex.GetDefaultIndexData();
43
43
 
44
+ this.RestoreFocusDelay=800;
45
+
44
46
  this.Inital=function(hqchart, option)
45
47
  {
46
48
  this.HQChart=hqchart;
@@ -84,6 +86,8 @@ function JSDialogSearchIndex()
84
86
  if (!this.DivDialog) return;
85
87
 
86
88
  this.DivDialog.style.visibility='hidden';
89
+
90
+ if (this.HQChart) this.HQChart.RestoreFocus(this.RestoreFocusDelay);
87
91
  }
88
92
 
89
93
  this.OnMouseDownTitle=function(e)
@@ -129,6 +133,8 @@ function JSDialogSearchIndex()
129
133
  {
130
134
  if (!this.DivDialog) return;
131
135
 
136
+ if (this.HQChart) this.HQChart.ClearRestoreFocusTimer();
137
+
132
138
  if (!groupID) groupID=this.IndexData.Data[0].Group.ID;
133
139
 
134
140
  this.UpdateGroupData();
@@ -724,6 +730,8 @@ function JSDialogModifyIndexParam()
724
730
  this.IndexData=null; //指标数据 { WindowsIndex:, Type:1=主图 2=叠加, Identify, IndexScript: }
725
731
  this.Arguments=[]; //参数备份
726
732
 
733
+ this.RestoreFocusDelay=800;
734
+
727
735
  this.Inital=function(hqchart, option)
728
736
  {
729
737
  this.HQChart=hqchart;
@@ -750,7 +758,8 @@ function JSDialogModifyIndexParam()
750
758
  this.Show=function(x,y)
751
759
  {
752
760
  if (!this.DivDialog) return;
753
- //if (!this.HQChart) return;
761
+
762
+ if (this.HQChart) this.HQChart.ClearRestoreFocusTimer();
754
763
 
755
764
  this.UpdateParam();
756
765
 
@@ -794,6 +803,8 @@ function JSDialogModifyIndexParam()
794
803
  if (!this.DivDialog) return;
795
804
 
796
805
  this.DivDialog.style.visibility='hidden';
806
+
807
+ if (this.HQChart) this.HQChart.RestoreFocus(this.RestoreFocusDelay);
797
808
  }
798
809
 
799
810
  this.SetIndexData=function(data)
@@ -43,6 +43,8 @@ function JSDialogSelectRect()
43
43
  this.ShowData;
44
44
  this.SelectData;
45
45
 
46
+ this.RestoreFocusDelay=800;
47
+
46
48
  this.Inital=function(hqchart, option)
47
49
  {
48
50
  this.HQChart=hqchart;
@@ -207,6 +209,8 @@ function JSDialogSelectRect()
207
209
  this.DivDialog.style.visibility='hidden';
208
210
  this.ShowData=null;
209
211
  this.SelectData=null;
212
+
213
+ if (this.HQChart) this.HQChart.RestoreFocus(this.RestoreFocusDelay);
210
214
  }
211
215
 
212
216
  this.MoveStartDate=function(step)
@@ -315,6 +319,8 @@ function JSDialogSelectRect()
315
319
  }
316
320
  */
317
321
 
322
+ if (this.HQChart) this.HQChart.ClearRestoreFocusTimer();
323
+
318
324
  var top=this.HQChart.Frame.ChartBorder.GetTop();
319
325
  var left=this.HQChart.Frame.ChartBorder.GetLeft();
320
326
  var rtClient=this.HQChart.UIElement.getBoundingClientRect();
@@ -49,6 +49,8 @@ function JSDialogTooltip()
49
49
  this.LastValueCacheID=null; //鼠标信息
50
50
  this.DataID=null; //当前显示的数据时间{ Symbol:, Date:, Time: }
51
51
 
52
+ this.RestoreFocusDelay=800;
53
+
52
54
  this.Inital=function(hqchart, option)
53
55
  {
54
56
  this.HQChart=hqchart;
@@ -414,6 +416,8 @@ function JSDialogTooltip()
414
416
  if (!this.DivDialog) return;
415
417
 
416
418
  this.DivDialog.style.visibility='hidden';
419
+
420
+ if (this.HQChart) this.HQChart.RestoreFocus(this.RestoreFocusDelay);
417
421
  }
418
422
 
419
423
  this.OnMouseDownTitle=function(e)
@@ -3097,6 +3097,29 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
3097
3097
  this.DialogModifyIndexParam; //指标参数修改
3098
3098
 
3099
3099
 
3100
+ this.RestoreFocusTimer=null; //恢复焦点定时器
3101
+
3102
+ this.RestoreFocus=function(delay)
3103
+ {
3104
+ var value=1000;
3105
+ if (IFrameSplitOperator.IsNumber(delay)) value=delay;
3106
+
3107
+ this.ClearRestoreFocusTimer();
3108
+ this.RestoreFocusTimer=setTimeout(()=>
3109
+ {
3110
+ this.SetFocus();
3111
+ }, value);
3112
+ }
3113
+
3114
+ this.ClearRestoreFocusTimer=function()
3115
+ {
3116
+ if (this.RestoreFocusTimer)
3117
+ {
3118
+ clearTimeout(this.RestoreFocusTimer);
3119
+ this.RestoreFocusTimer = null;
3120
+ }
3121
+ }
3122
+
3100
3123
  this.GetVolUnit=function() //成交量单位
3101
3124
  {
3102
3125
  var upperSymbol=this.Symbol?this.Symbol.toUpperCase():null;
@@ -3114,7 +3137,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
3114
3137
  if (this.JSPopMenu) return;
3115
3138
 
3116
3139
  this.JSPopMenu=new JSPopMenu(); //内置菜单
3117
- this.JSPopMenu.Inital();
3140
+ this.JSPopMenu.Inital(this);
3118
3141
  }
3119
3142
 
3120
3143
  this.InitalDrawToolDialog=function()
@@ -11118,7 +11141,7 @@ function ChartFrameFactory()
11118
11141
  {
11119
11142
  if (!this.DataMap.has(name))
11120
11143
  {
11121
- JSConsole.Warn(`[ChartFrameFactory::Create] can't find class=${name}.`);
11144
+ JSConsole.Chart.Warn(`[ChartFrameFactory::Create] can't find class=${name}.`);
11122
11145
  return null;
11123
11146
  }
11124
11147
 
@@ -24419,7 +24442,7 @@ function ChartPaintFactory()
24419
24442
  {
24420
24443
  if (!this.DataMap.has(name))
24421
24444
  {
24422
- JSConsole.Warn(`[ChartPaintFactory::Create] can't find class=${name}.`);
24445
+ JSConsole.Chart.Warn(`[ChartPaintFactory::Create] can't find class=${name}.`);
24423
24446
  return null;
24424
24447
  }
24425
24448
 
@@ -93141,7 +93164,7 @@ function DialogFactory()
93141
93164
  {
93142
93165
  if (!this.DataMap.has(name))
93143
93166
  {
93144
- JSConsole.Warn(`[DialogFactory::Create] can't find class=${name}.`);
93167
+ JSConsole.Chart.Warn(`[DialogFactory::Create] can't find class=${name}.`);
93145
93168
  return null;
93146
93169
  }
93147
93170
 
@@ -19,10 +19,13 @@ function JSPopMenu()
19
19
  this.ArySubRootDOM=[];
20
20
 
21
21
  this.ClickCallback=null; //点击回调
22
+ this.RestoreFocusCallback=null;
22
23
  this.CheckedClassName="UMyChart_MenuItem_Span_Checked iconfont icon-checked"; //选中图标
23
24
  this.RightArrowClassName="UMyChart_MenuItem_Span_Arrow iconfont icon-menu_arraw_right"; //右侧箭头
24
25
  this.SelectedClassName="UMyChart_MenuItem_Tr_Selected";
25
26
 
27
+ this.RestoreFocusDelay=1000;
28
+
26
29
  this.AryTDClassName=
27
30
  [
28
31
  "UMyChart_MenuItem_Td_Status", //图标
@@ -31,8 +34,9 @@ function JSPopMenu()
31
34
  "UMyChart_MenuItem_Td_Arrow" //箭头
32
35
  ];
33
36
 
34
- this.Inital=function()
37
+ this.Inital=function(hqchart, option)
35
38
  {
39
+ this.HQChart=hqchart;
36
40
  window.addEventListener('mousedown', (e)=>{ this.OnWindowMouseDown(e)});
37
41
  }
38
42
 
@@ -77,6 +81,7 @@ function JSPopMenu()
77
81
 
78
82
  if (IFrameSplitOperator.IsNumber(data.Position)) this.Data.Position=data.Position;
79
83
  if (data.ClickCallback) this.ClickCallback=data.ClickCallback;
84
+ if (data.RestoreFocusCallback) this.RestoreFocusCallback=data.RestoreFocusCallback;
80
85
 
81
86
  }
82
87
 
@@ -226,6 +231,8 @@ function JSPopMenu()
226
231
  if (!this.RootDOM) return;
227
232
  if (!rtTab) return;
228
233
 
234
+ if (this.HQChart) this.HQChart.ClearRestoreFocusTimer();
235
+
229
236
  var xLeft=rtTab.Left;
230
237
  var yTop=rtTab.Top-this.RootDOM.offsetHeight;
231
238
 
@@ -240,6 +247,8 @@ function JSPopMenu()
240
247
  if (!this.RootDOM) return;
241
248
  if (!IFrameSplitOperator.IsNumber(x) || !IFrameSplitOperator.IsNumber(y)) return;
242
249
 
250
+ if (this.HQChart) this.HQChart.ClearRestoreFocusTimer();
251
+
243
252
  //菜单在当前屏幕无法显示需要调整
244
253
  var menuHeight=this.RootDOM.offsetHeight;
245
254
  var yMenuBottom=y+menuHeight;
@@ -262,6 +271,8 @@ function JSPopMenu()
262
271
  if (!this.RootDOM) return;
263
272
  if (!rtButton) return;
264
273
 
274
+ if (this.HQChart) this.HQChart.ClearRestoreFocusTimer();
275
+
265
276
  var xLeft=rtButton.Left;
266
277
  var yTop=rtButton.Bottom;
267
278
  var menuHeight=this.RootDOM.offsetHeight;
@@ -369,6 +380,8 @@ function JSPopMenu()
369
380
  console.log("[JSPopMenu::OnWindowMouseDown] e=", e);
370
381
 
371
382
  this.Clear();
383
+
384
+ if (this.HQChart) this.HQChart.RestoreFocus(this.RestoreFocusDelay);
372
385
  }
373
386
  }
374
387
 
@@ -7022,6 +7022,29 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
7022
7022
  this.DialogModifyIndexParam; //指标参数修改
7023
7023
 
7024
7024
 
7025
+ this.RestoreFocusTimer=null; //恢复焦点定时器
7026
+
7027
+ this.RestoreFocus=function(delay)
7028
+ {
7029
+ var value=1000;
7030
+ if (IFrameSplitOperator.IsNumber(delay)) value=delay;
7031
+
7032
+ this.ClearRestoreFocusTimer();
7033
+ this.RestoreFocusTimer=setTimeout(()=>
7034
+ {
7035
+ this.SetFocus();
7036
+ }, value);
7037
+ }
7038
+
7039
+ this.ClearRestoreFocusTimer=function()
7040
+ {
7041
+ if (this.RestoreFocusTimer)
7042
+ {
7043
+ clearTimeout(this.RestoreFocusTimer);
7044
+ this.RestoreFocusTimer = null;
7045
+ }
7046
+ }
7047
+
7025
7048
  this.GetVolUnit=function() //成交量单位
7026
7049
  {
7027
7050
  var upperSymbol=this.Symbol?this.Symbol.toUpperCase():null;
@@ -7039,7 +7062,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
7039
7062
  if (this.JSPopMenu) return;
7040
7063
 
7041
7064
  this.JSPopMenu=new JSPopMenu(); //内置菜单
7042
- this.JSPopMenu.Inital();
7065
+ this.JSPopMenu.Inital(this);
7043
7066
  }
7044
7067
 
7045
7068
  this.InitalDrawToolDialog=function()
@@ -15043,7 +15066,7 @@ function ChartFrameFactory()
15043
15066
  {
15044
15067
  if (!this.DataMap.has(name))
15045
15068
  {
15046
- JSConsole.Warn(`[ChartFrameFactory::Create] can't find class=${name}.`);
15069
+ JSConsole.Chart.Warn(`[ChartFrameFactory::Create] can't find class=${name}.`);
15047
15070
  return null;
15048
15071
  }
15049
15072
 
@@ -28344,7 +28367,7 @@ function ChartPaintFactory()
28344
28367
  {
28345
28368
  if (!this.DataMap.has(name))
28346
28369
  {
28347
- JSConsole.Warn(`[ChartPaintFactory::Create] can't find class=${name}.`);
28370
+ JSConsole.Chart.Warn(`[ChartPaintFactory::Create] can't find class=${name}.`);
28348
28371
  return null;
28349
28372
  }
28350
28373
 
@@ -97066,7 +97089,7 @@ function DialogFactory()
97066
97089
  {
97067
97090
  if (!this.DataMap.has(name))
97068
97091
  {
97069
- JSConsole.Warn(`[DialogFactory::Create] can't find class=${name}.`);
97092
+ JSConsole.Chart.Warn(`[DialogFactory::Create] can't find class=${name}.`);
97070
97093
  return null;
97071
97094
  }
97072
97095
 
@@ -143049,7 +143072,7 @@ function ScrollBarBGChart()
143049
143072
 
143050
143073
 
143051
143074
 
143052
- var HQCHART_VERSION="1.1.14369";
143075
+ var HQCHART_VERSION="1.1.14374";
143053
143076
 
143054
143077
  function PrintHQChartVersion()
143055
143078
  {
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var HQCHART_VERSION="1.1.14369";
8
+ var HQCHART_VERSION="1.1.14374";
9
9
 
10
10
  function PrintHQChartVersion()
11
11
  {
@@ -7066,6 +7066,29 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
7066
7066
  this.DialogModifyIndexParam; //指标参数修改
7067
7067
 
7068
7068
 
7069
+ this.RestoreFocusTimer=null; //恢复焦点定时器
7070
+
7071
+ this.RestoreFocus=function(delay)
7072
+ {
7073
+ var value=1000;
7074
+ if (IFrameSplitOperator.IsNumber(delay)) value=delay;
7075
+
7076
+ this.ClearRestoreFocusTimer();
7077
+ this.RestoreFocusTimer=setTimeout(()=>
7078
+ {
7079
+ this.SetFocus();
7080
+ }, value);
7081
+ }
7082
+
7083
+ this.ClearRestoreFocusTimer=function()
7084
+ {
7085
+ if (this.RestoreFocusTimer)
7086
+ {
7087
+ clearTimeout(this.RestoreFocusTimer);
7088
+ this.RestoreFocusTimer = null;
7089
+ }
7090
+ }
7091
+
7069
7092
  this.GetVolUnit=function() //成交量单位
7070
7093
  {
7071
7094
  var upperSymbol=this.Symbol?this.Symbol.toUpperCase():null;
@@ -7083,7 +7106,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
7083
7106
  if (this.JSPopMenu) return;
7084
7107
 
7085
7108
  this.JSPopMenu=new JSPopMenu(); //内置菜单
7086
- this.JSPopMenu.Inital();
7109
+ this.JSPopMenu.Inital(this);
7087
7110
  }
7088
7111
 
7089
7112
  this.InitalDrawToolDialog=function()
@@ -15087,7 +15110,7 @@ function ChartFrameFactory()
15087
15110
  {
15088
15111
  if (!this.DataMap.has(name))
15089
15112
  {
15090
- JSConsole.Warn(`[ChartFrameFactory::Create] can't find class=${name}.`);
15113
+ JSConsole.Chart.Warn(`[ChartFrameFactory::Create] can't find class=${name}.`);
15091
15114
  return null;
15092
15115
  }
15093
15116
 
@@ -28388,7 +28411,7 @@ function ChartPaintFactory()
28388
28411
  {
28389
28412
  if (!this.DataMap.has(name))
28390
28413
  {
28391
- JSConsole.Warn(`[ChartPaintFactory::Create] can't find class=${name}.`);
28414
+ JSConsole.Chart.Warn(`[ChartPaintFactory::Create] can't find class=${name}.`);
28392
28415
  return null;
28393
28416
  }
28394
28417
 
@@ -97110,7 +97133,7 @@ function DialogFactory()
97110
97133
  {
97111
97134
  if (!this.DataMap.has(name))
97112
97135
  {
97113
- JSConsole.Warn(`[DialogFactory::Create] can't find class=${name}.`);
97136
+ JSConsole.Chart.Warn(`[DialogFactory::Create] can't find class=${name}.`);
97114
97137
  return null;
97115
97138
  }
97116
97139
 
@@ -146268,10 +146291,13 @@ function JSPopMenu()
146268
146291
  this.ArySubRootDOM=[];
146269
146292
 
146270
146293
  this.ClickCallback=null; //点击回调
146294
+ this.RestoreFocusCallback=null;
146271
146295
  this.CheckedClassName="UMyChart_MenuItem_Span_Checked iconfont icon-checked"; //选中图标
146272
146296
  this.RightArrowClassName="UMyChart_MenuItem_Span_Arrow iconfont icon-menu_arraw_right"; //右侧箭头
146273
146297
  this.SelectedClassName="UMyChart_MenuItem_Tr_Selected";
146274
146298
 
146299
+ this.RestoreFocusDelay=1000;
146300
+
146275
146301
  this.AryTDClassName=
146276
146302
  [
146277
146303
  "UMyChart_MenuItem_Td_Status", //图标
@@ -146280,8 +146306,9 @@ function JSPopMenu()
146280
146306
  "UMyChart_MenuItem_Td_Arrow" //箭头
146281
146307
  ];
146282
146308
 
146283
- this.Inital=function()
146309
+ this.Inital=function(hqchart, option)
146284
146310
  {
146311
+ this.HQChart=hqchart;
146285
146312
  window.addEventListener('mousedown', (e)=>{ this.OnWindowMouseDown(e)});
146286
146313
  }
146287
146314
 
@@ -146326,6 +146353,7 @@ function JSPopMenu()
146326
146353
 
146327
146354
  if (IFrameSplitOperator.IsNumber(data.Position)) this.Data.Position=data.Position;
146328
146355
  if (data.ClickCallback) this.ClickCallback=data.ClickCallback;
146356
+ if (data.RestoreFocusCallback) this.RestoreFocusCallback=data.RestoreFocusCallback;
146329
146357
 
146330
146358
  }
146331
146359
 
@@ -146475,6 +146503,8 @@ function JSPopMenu()
146475
146503
  if (!this.RootDOM) return;
146476
146504
  if (!rtTab) return;
146477
146505
 
146506
+ if (this.HQChart) this.HQChart.ClearRestoreFocusTimer();
146507
+
146478
146508
  var xLeft=rtTab.Left;
146479
146509
  var yTop=rtTab.Top-this.RootDOM.offsetHeight;
146480
146510
 
@@ -146489,6 +146519,8 @@ function JSPopMenu()
146489
146519
  if (!this.RootDOM) return;
146490
146520
  if (!IFrameSplitOperator.IsNumber(x) || !IFrameSplitOperator.IsNumber(y)) return;
146491
146521
 
146522
+ if (this.HQChart) this.HQChart.ClearRestoreFocusTimer();
146523
+
146492
146524
  //菜单在当前屏幕无法显示需要调整
146493
146525
  var menuHeight=this.RootDOM.offsetHeight;
146494
146526
  var yMenuBottom=y+menuHeight;
@@ -146511,6 +146543,8 @@ function JSPopMenu()
146511
146543
  if (!this.RootDOM) return;
146512
146544
  if (!rtButton) return;
146513
146545
 
146546
+ if (this.HQChart) this.HQChart.ClearRestoreFocusTimer();
146547
+
146514
146548
  var xLeft=rtButton.Left;
146515
146549
  var yTop=rtButton.Bottom;
146516
146550
  var menuHeight=this.RootDOM.offsetHeight;
@@ -146618,6 +146652,8 @@ function JSPopMenu()
146618
146652
  console.log("[JSPopMenu::OnWindowMouseDown] e=", e);
146619
146653
 
146620
146654
  this.Clear();
146655
+
146656
+ if (this.HQChart) this.HQChart.RestoreFocus(this.RestoreFocusDelay);
146621
146657
  }
146622
146658
  }
146623
146659
 
@@ -146792,6 +146828,8 @@ function JSDialogDrawTool()
146792
146828
 
146793
146829
  this.DragTitle=null;
146794
146830
 
146831
+ this.RestoreFocusDelay=800;
146832
+
146795
146833
  this.Inital=function(hqchart)
146796
146834
  {
146797
146835
  this.LineColor=g_JSChartResource.DrawPicture.LineColor[0];
@@ -147131,6 +147169,8 @@ function JSDialogDrawTool()
147131
147169
  if (!this.DivDialog) return;
147132
147170
 
147133
147171
  this.DivDialog.style.visibility='hidden';
147172
+
147173
+ if (this.HQChart) this.HQChart.RestoreFocus(this.RestoreFocusDelay);
147134
147174
  }
147135
147175
 
147136
147176
  this.IsShow=function()
@@ -147267,6 +147307,8 @@ function JSDialogModifyDraw()
147267
147307
  { Title:"删除图形", ClassName: 'hqchart_drawtool icon-recycle_bin', Type:2, Data:{ ID:JS_DRAWTOOL_MENU_ID.CMD_DELETE_DRAW_CHART_ID }},
147268
147308
 
147269
147309
  ];
147310
+
147311
+ this.RestoreFocusDelay=800;
147270
147312
 
147271
147313
  this.Inital=function(hqchart)
147272
147314
  {
@@ -147406,6 +147448,8 @@ function JSDialogModifyDraw()
147406
147448
 
147407
147449
  this.ChartPicture=null;
147408
147450
  this.DivDialog.style.visibility='hidden';
147451
+
147452
+ if (this.HQChart) this.HQChart.RestoreFocus(this.RestoreFocusDelay);
147409
147453
  }
147410
147454
 
147411
147455
  this.IsShow=function()
@@ -148669,6 +148713,8 @@ function JSDialogTooltip()
148669
148713
  this.LastValueCacheID=null; //鼠标信息
148670
148714
  this.DataID=null; //当前显示的数据时间{ Symbol:, Date:, Time: }
148671
148715
 
148716
+ this.RestoreFocusDelay=800;
148717
+
148672
148718
  this.Inital=function(hqchart, option)
148673
148719
  {
148674
148720
  this.HQChart=hqchart;
@@ -149034,6 +149080,8 @@ function JSDialogTooltip()
149034
149080
  if (!this.DivDialog) return;
149035
149081
 
149036
149082
  this.DivDialog.style.visibility='hidden';
149083
+
149084
+ if (this.HQChart) this.HQChart.RestoreFocus(this.RestoreFocusDelay);
149037
149085
  }
149038
149086
 
149039
149087
  this.OnMouseDownTitle=function(e)
@@ -150752,6 +150800,8 @@ function JSDialogSelectRect()
150752
150800
  this.ShowData;
150753
150801
  this.SelectData;
150754
150802
 
150803
+ this.RestoreFocusDelay=800;
150804
+
150755
150805
  this.Inital=function(hqchart, option)
150756
150806
  {
150757
150807
  this.HQChart=hqchart;
@@ -150916,6 +150966,8 @@ function JSDialogSelectRect()
150916
150966
  this.DivDialog.style.visibility='hidden';
150917
150967
  this.ShowData=null;
150918
150968
  this.SelectData=null;
150969
+
150970
+ if (this.HQChart) this.HQChart.RestoreFocus(this.RestoreFocusDelay);
150919
150971
  }
150920
150972
 
150921
150973
  this.MoveStartDate=function(step)
@@ -151024,6 +151076,8 @@ function JSDialogSelectRect()
151024
151076
  }
151025
151077
  */
151026
151078
 
151079
+ if (this.HQChart) this.HQChart.ClearRestoreFocusTimer();
151080
+
151027
151081
  var top=this.HQChart.Frame.ChartBorder.GetTop();
151028
151082
  var left=this.HQChart.Frame.ChartBorder.GetLeft();
151029
151083
  var rtClient=this.HQChart.UIElement.getBoundingClientRect();
@@ -151615,6 +151669,8 @@ function JSDialogSearchIndex()
151615
151669
  this.AryGroup=[]; //分类
151616
151670
  this.IndexData=JSDialogSearchIndex.GetDefaultIndexData();
151617
151671
 
151672
+ this.RestoreFocusDelay=800;
151673
+
151618
151674
  this.Inital=function(hqchart, option)
151619
151675
  {
151620
151676
  this.HQChart=hqchart;
@@ -151658,6 +151714,8 @@ function JSDialogSearchIndex()
151658
151714
  if (!this.DivDialog) return;
151659
151715
 
151660
151716
  this.DivDialog.style.visibility='hidden';
151717
+
151718
+ if (this.HQChart) this.HQChart.RestoreFocus(this.RestoreFocusDelay);
151661
151719
  }
151662
151720
 
151663
151721
  this.OnMouseDownTitle=function(e)
@@ -151703,6 +151761,8 @@ function JSDialogSearchIndex()
151703
151761
  {
151704
151762
  if (!this.DivDialog) return;
151705
151763
 
151764
+ if (this.HQChart) this.HQChart.ClearRestoreFocusTimer();
151765
+
151706
151766
  if (!groupID) groupID=this.IndexData.Data[0].Group.ID;
151707
151767
 
151708
151768
  this.UpdateGroupData();
@@ -152298,6 +152358,8 @@ function JSDialogModifyIndexParam()
152298
152358
  this.IndexData=null; //指标数据 { WindowsIndex:, Type:1=主图 2=叠加, Identify, IndexScript: }
152299
152359
  this.Arguments=[]; //参数备份
152300
152360
 
152361
+ this.RestoreFocusDelay=800;
152362
+
152301
152363
  this.Inital=function(hqchart, option)
152302
152364
  {
152303
152365
  this.HQChart=hqchart;
@@ -152324,7 +152386,8 @@ function JSDialogModifyIndexParam()
152324
152386
  this.Show=function(x,y)
152325
152387
  {
152326
152388
  if (!this.DivDialog) return;
152327
- //if (!this.HQChart) return;
152389
+
152390
+ if (this.HQChart) this.HQChart.ClearRestoreFocusTimer();
152328
152391
 
152329
152392
  this.UpdateParam();
152330
152393
 
@@ -152368,6 +152431,8 @@ function JSDialogModifyIndexParam()
152368
152431
  if (!this.DivDialog) return;
152369
152432
 
152370
152433
  this.DivDialog.style.visibility='hidden';
152434
+
152435
+ if (this.HQChart) this.HQChart.RestoreFocus(this.RestoreFocusDelay);
152371
152436
  }
152372
152437
 
152373
152438
  this.SetIndexData=function(data)
@@ -152802,7 +152867,7 @@ function HQChartScriptWorker()
152802
152867
 
152803
152868
 
152804
152869
 
152805
- var HQCHART_VERSION="1.1.14369";
152870
+ var HQCHART_VERSION="1.1.14374";
152806
152871
 
152807
152872
  function PrintHQChartVersion()
152808
152873
  {