hqchart 1.1.14372 → 1.1.14381
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/lib/umychart.vue.js +214 -213
- package/package.json +1 -1
- package/src/jscommon/umychart.DialogDrawTool.js +8 -0
- package/src/jscommon/umychart.DialogSearchIndex.js +12 -1
- package/src/jscommon/umychart.DialogSelectRect.js +6 -0
- package/src/jscommon/umychart.DialogTooltip.js +4 -0
- package/src/jscommon/umychart.js +39 -2
- package/src/jscommon/umychart.popMenu.js +14 -1
- package/src/jscommon/umychart.uniapp.h5/umychart.uniapp.h5.js +40 -3
- package/src/jscommon/umychart.version.js +1 -1
- package/src/jscommon/umychart.vue/umychart.vue.js +84 -5
package/package.json
CHANGED
|
@@ -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
|
-
|
|
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)
|
package/src/jscommon/umychart.js
CHANGED
|
@@ -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()
|
|
@@ -9030,6 +9053,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
9030
9053
|
this.TitlePaint[index+1]=titlePaint;
|
|
9031
9054
|
|
|
9032
9055
|
this.SetSubFrameOption(subFrame,option);
|
|
9056
|
+
this.UpdateSubFrameDataWidth(subFrame.Frame);
|
|
9033
9057
|
|
|
9034
9058
|
//最后一个显示X轴坐标
|
|
9035
9059
|
for(var i=0;i<this.Frame.SubFrame.length;++i)
|
|
@@ -9049,6 +9073,18 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
9049
9073
|
return index;
|
|
9050
9074
|
}
|
|
9051
9075
|
|
|
9076
|
+
this.UpdateSubFrameDataWidth=function(frame)
|
|
9077
|
+
{
|
|
9078
|
+
//同步柱子宽度
|
|
9079
|
+
var mainFrame=this.Frame.SubFrame[0].Frame;
|
|
9080
|
+
frame.XPointCount= mainFrame.XPointCount;
|
|
9081
|
+
frame.ZoomIndex= mainFrame.ZoomIndex;
|
|
9082
|
+
frame.DataWidth= mainFrame.DataWidth;
|
|
9083
|
+
frame.DistanceWidth= mainFrame.DistanceWidth;
|
|
9084
|
+
frame.LastCalculateStatus.Width=mainFrame.LastCalculateStatus.Width;
|
|
9085
|
+
frame.LastCalculateStatus.XPointCount=mainFrame.LastCalculateStatus.XPointCount;
|
|
9086
|
+
}
|
|
9087
|
+
|
|
9052
9088
|
//增加一个指标窗口
|
|
9053
9089
|
this.AddIndexWindow=function(indexName,option)
|
|
9054
9090
|
{
|
|
@@ -52207,7 +52243,7 @@ function FrameSplitKLineX()
|
|
|
52207
52243
|
var event=this.GetEventCallback(JSCHART_EVENT_ID.ON_SPLIT_XCOORDINATE);
|
|
52208
52244
|
if (event && event.Callback)
|
|
52209
52245
|
{
|
|
52210
|
-
var data={ID:this.Frame.Identify, Frame:this.Frame };
|
|
52246
|
+
var data={ID:this.Frame.Identify, Frame:this.Frame, IsShowText:this.ShowText };
|
|
52211
52247
|
event.Callback(event,data,this);
|
|
52212
52248
|
}
|
|
52213
52249
|
}
|
|
@@ -85276,6 +85312,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
85276
85312
|
this.TitlePaint[index+1]=titlePaint;
|
|
85277
85313
|
|
|
85278
85314
|
this.SetSubFrameOption(subFrame,option);
|
|
85315
|
+
this.UpdateSubFrameDataWidth(subFrame.Frame);
|
|
85279
85316
|
|
|
85280
85317
|
//最后一个显示X轴坐标
|
|
85281
85318
|
for(var i=0;i<this.Frame.SubFrame.length;++i)
|
|
@@ -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()
|
|
@@ -12955,6 +12978,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
12955
12978
|
this.TitlePaint[index+1]=titlePaint;
|
|
12956
12979
|
|
|
12957
12980
|
this.SetSubFrameOption(subFrame,option);
|
|
12981
|
+
this.UpdateSubFrameDataWidth(subFrame.Frame);
|
|
12958
12982
|
|
|
12959
12983
|
//最后一个显示X轴坐标
|
|
12960
12984
|
for(var i=0;i<this.Frame.SubFrame.length;++i)
|
|
@@ -12974,6 +12998,18 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
12974
12998
|
return index;
|
|
12975
12999
|
}
|
|
12976
13000
|
|
|
13001
|
+
this.UpdateSubFrameDataWidth=function(frame)
|
|
13002
|
+
{
|
|
13003
|
+
//同步柱子宽度
|
|
13004
|
+
var mainFrame=this.Frame.SubFrame[0].Frame;
|
|
13005
|
+
frame.XPointCount= mainFrame.XPointCount;
|
|
13006
|
+
frame.ZoomIndex= mainFrame.ZoomIndex;
|
|
13007
|
+
frame.DataWidth= mainFrame.DataWidth;
|
|
13008
|
+
frame.DistanceWidth= mainFrame.DistanceWidth;
|
|
13009
|
+
frame.LastCalculateStatus.Width=mainFrame.LastCalculateStatus.Width;
|
|
13010
|
+
frame.LastCalculateStatus.XPointCount=mainFrame.LastCalculateStatus.XPointCount;
|
|
13011
|
+
}
|
|
13012
|
+
|
|
12977
13013
|
//增加一个指标窗口
|
|
12978
13014
|
this.AddIndexWindow=function(indexName,option)
|
|
12979
13015
|
{
|
|
@@ -56132,7 +56168,7 @@ function FrameSplitKLineX()
|
|
|
56132
56168
|
var event=this.GetEventCallback(JSCHART_EVENT_ID.ON_SPLIT_XCOORDINATE);
|
|
56133
56169
|
if (event && event.Callback)
|
|
56134
56170
|
{
|
|
56135
|
-
var data={ID:this.Frame.Identify, Frame:this.Frame };
|
|
56171
|
+
var data={ID:this.Frame.Identify, Frame:this.Frame, IsShowText:this.ShowText };
|
|
56136
56172
|
event.Callback(event,data,this);
|
|
56137
56173
|
}
|
|
56138
56174
|
}
|
|
@@ -89201,6 +89237,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
89201
89237
|
this.TitlePaint[index+1]=titlePaint;
|
|
89202
89238
|
|
|
89203
89239
|
this.SetSubFrameOption(subFrame,option);
|
|
89240
|
+
this.UpdateSubFrameDataWidth(subFrame.Frame);
|
|
89204
89241
|
|
|
89205
89242
|
//最后一个显示X轴坐标
|
|
89206
89243
|
for(var i=0;i<this.Frame.SubFrame.length;++i)
|
|
@@ -143049,7 +143086,7 @@ function ScrollBarBGChart()
|
|
|
143049
143086
|
|
|
143050
143087
|
|
|
143051
143088
|
|
|
143052
|
-
var HQCHART_VERSION="1.1.
|
|
143089
|
+
var HQCHART_VERSION="1.1.14380";
|
|
143053
143090
|
|
|
143054
143091
|
function PrintHQChartVersion()
|
|
143055
143092
|
{
|
|
@@ -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()
|
|
@@ -12999,6 +13022,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
12999
13022
|
this.TitlePaint[index+1]=titlePaint;
|
|
13000
13023
|
|
|
13001
13024
|
this.SetSubFrameOption(subFrame,option);
|
|
13025
|
+
this.UpdateSubFrameDataWidth(subFrame.Frame);
|
|
13002
13026
|
|
|
13003
13027
|
//最后一个显示X轴坐标
|
|
13004
13028
|
for(var i=0;i<this.Frame.SubFrame.length;++i)
|
|
@@ -13018,6 +13042,18 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
13018
13042
|
return index;
|
|
13019
13043
|
}
|
|
13020
13044
|
|
|
13045
|
+
this.UpdateSubFrameDataWidth=function(frame)
|
|
13046
|
+
{
|
|
13047
|
+
//同步柱子宽度
|
|
13048
|
+
var mainFrame=this.Frame.SubFrame[0].Frame;
|
|
13049
|
+
frame.XPointCount= mainFrame.XPointCount;
|
|
13050
|
+
frame.ZoomIndex= mainFrame.ZoomIndex;
|
|
13051
|
+
frame.DataWidth= mainFrame.DataWidth;
|
|
13052
|
+
frame.DistanceWidth= mainFrame.DistanceWidth;
|
|
13053
|
+
frame.LastCalculateStatus.Width=mainFrame.LastCalculateStatus.Width;
|
|
13054
|
+
frame.LastCalculateStatus.XPointCount=mainFrame.LastCalculateStatus.XPointCount;
|
|
13055
|
+
}
|
|
13056
|
+
|
|
13021
13057
|
//增加一个指标窗口
|
|
13022
13058
|
this.AddIndexWindow=function(indexName,option)
|
|
13023
13059
|
{
|
|
@@ -56176,7 +56212,7 @@ function FrameSplitKLineX()
|
|
|
56176
56212
|
var event=this.GetEventCallback(JSCHART_EVENT_ID.ON_SPLIT_XCOORDINATE);
|
|
56177
56213
|
if (event && event.Callback)
|
|
56178
56214
|
{
|
|
56179
|
-
var data={ID:this.Frame.Identify, Frame:this.Frame };
|
|
56215
|
+
var data={ID:this.Frame.Identify, Frame:this.Frame, IsShowText:this.ShowText };
|
|
56180
56216
|
event.Callback(event,data,this);
|
|
56181
56217
|
}
|
|
56182
56218
|
}
|
|
@@ -89245,6 +89281,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
89245
89281
|
this.TitlePaint[index+1]=titlePaint;
|
|
89246
89282
|
|
|
89247
89283
|
this.SetSubFrameOption(subFrame,option);
|
|
89284
|
+
this.UpdateSubFrameDataWidth(subFrame.Frame);
|
|
89248
89285
|
|
|
89249
89286
|
//最后一个显示X轴坐标
|
|
89250
89287
|
for(var i=0;i<this.Frame.SubFrame.length;++i)
|
|
@@ -146268,10 +146305,13 @@ function JSPopMenu()
|
|
|
146268
146305
|
this.ArySubRootDOM=[];
|
|
146269
146306
|
|
|
146270
146307
|
this.ClickCallback=null; //点击回调
|
|
146308
|
+
this.RestoreFocusCallback=null;
|
|
146271
146309
|
this.CheckedClassName="UMyChart_MenuItem_Span_Checked iconfont icon-checked"; //选中图标
|
|
146272
146310
|
this.RightArrowClassName="UMyChart_MenuItem_Span_Arrow iconfont icon-menu_arraw_right"; //右侧箭头
|
|
146273
146311
|
this.SelectedClassName="UMyChart_MenuItem_Tr_Selected";
|
|
146274
146312
|
|
|
146313
|
+
this.RestoreFocusDelay=1000;
|
|
146314
|
+
|
|
146275
146315
|
this.AryTDClassName=
|
|
146276
146316
|
[
|
|
146277
146317
|
"UMyChart_MenuItem_Td_Status", //图标
|
|
@@ -146280,8 +146320,9 @@ function JSPopMenu()
|
|
|
146280
146320
|
"UMyChart_MenuItem_Td_Arrow" //箭头
|
|
146281
146321
|
];
|
|
146282
146322
|
|
|
146283
|
-
this.Inital=function()
|
|
146323
|
+
this.Inital=function(hqchart, option)
|
|
146284
146324
|
{
|
|
146325
|
+
this.HQChart=hqchart;
|
|
146285
146326
|
window.addEventListener('mousedown', (e)=>{ this.OnWindowMouseDown(e)});
|
|
146286
146327
|
}
|
|
146287
146328
|
|
|
@@ -146326,6 +146367,7 @@ function JSPopMenu()
|
|
|
146326
146367
|
|
|
146327
146368
|
if (IFrameSplitOperator.IsNumber(data.Position)) this.Data.Position=data.Position;
|
|
146328
146369
|
if (data.ClickCallback) this.ClickCallback=data.ClickCallback;
|
|
146370
|
+
if (data.RestoreFocusCallback) this.RestoreFocusCallback=data.RestoreFocusCallback;
|
|
146329
146371
|
|
|
146330
146372
|
}
|
|
146331
146373
|
|
|
@@ -146475,6 +146517,8 @@ function JSPopMenu()
|
|
|
146475
146517
|
if (!this.RootDOM) return;
|
|
146476
146518
|
if (!rtTab) return;
|
|
146477
146519
|
|
|
146520
|
+
if (this.HQChart) this.HQChart.ClearRestoreFocusTimer();
|
|
146521
|
+
|
|
146478
146522
|
var xLeft=rtTab.Left;
|
|
146479
146523
|
var yTop=rtTab.Top-this.RootDOM.offsetHeight;
|
|
146480
146524
|
|
|
@@ -146489,6 +146533,8 @@ function JSPopMenu()
|
|
|
146489
146533
|
if (!this.RootDOM) return;
|
|
146490
146534
|
if (!IFrameSplitOperator.IsNumber(x) || !IFrameSplitOperator.IsNumber(y)) return;
|
|
146491
146535
|
|
|
146536
|
+
if (this.HQChart) this.HQChart.ClearRestoreFocusTimer();
|
|
146537
|
+
|
|
146492
146538
|
//菜单在当前屏幕无法显示需要调整
|
|
146493
146539
|
var menuHeight=this.RootDOM.offsetHeight;
|
|
146494
146540
|
var yMenuBottom=y+menuHeight;
|
|
@@ -146511,6 +146557,8 @@ function JSPopMenu()
|
|
|
146511
146557
|
if (!this.RootDOM) return;
|
|
146512
146558
|
if (!rtButton) return;
|
|
146513
146559
|
|
|
146560
|
+
if (this.HQChart) this.HQChart.ClearRestoreFocusTimer();
|
|
146561
|
+
|
|
146514
146562
|
var xLeft=rtButton.Left;
|
|
146515
146563
|
var yTop=rtButton.Bottom;
|
|
146516
146564
|
var menuHeight=this.RootDOM.offsetHeight;
|
|
@@ -146618,6 +146666,8 @@ function JSPopMenu()
|
|
|
146618
146666
|
console.log("[JSPopMenu::OnWindowMouseDown] e=", e);
|
|
146619
146667
|
|
|
146620
146668
|
this.Clear();
|
|
146669
|
+
|
|
146670
|
+
if (this.HQChart) this.HQChart.RestoreFocus(this.RestoreFocusDelay);
|
|
146621
146671
|
}
|
|
146622
146672
|
}
|
|
146623
146673
|
|
|
@@ -146792,6 +146842,8 @@ function JSDialogDrawTool()
|
|
|
146792
146842
|
|
|
146793
146843
|
this.DragTitle=null;
|
|
146794
146844
|
|
|
146845
|
+
this.RestoreFocusDelay=800;
|
|
146846
|
+
|
|
146795
146847
|
this.Inital=function(hqchart)
|
|
146796
146848
|
{
|
|
146797
146849
|
this.LineColor=g_JSChartResource.DrawPicture.LineColor[0];
|
|
@@ -147131,6 +147183,8 @@ function JSDialogDrawTool()
|
|
|
147131
147183
|
if (!this.DivDialog) return;
|
|
147132
147184
|
|
|
147133
147185
|
this.DivDialog.style.visibility='hidden';
|
|
147186
|
+
|
|
147187
|
+
if (this.HQChart) this.HQChart.RestoreFocus(this.RestoreFocusDelay);
|
|
147134
147188
|
}
|
|
147135
147189
|
|
|
147136
147190
|
this.IsShow=function()
|
|
@@ -147267,6 +147321,8 @@ function JSDialogModifyDraw()
|
|
|
147267
147321
|
{ Title:"删除图形", ClassName: 'hqchart_drawtool icon-recycle_bin', Type:2, Data:{ ID:JS_DRAWTOOL_MENU_ID.CMD_DELETE_DRAW_CHART_ID }},
|
|
147268
147322
|
|
|
147269
147323
|
];
|
|
147324
|
+
|
|
147325
|
+
this.RestoreFocusDelay=800;
|
|
147270
147326
|
|
|
147271
147327
|
this.Inital=function(hqchart)
|
|
147272
147328
|
{
|
|
@@ -147406,6 +147462,8 @@ function JSDialogModifyDraw()
|
|
|
147406
147462
|
|
|
147407
147463
|
this.ChartPicture=null;
|
|
147408
147464
|
this.DivDialog.style.visibility='hidden';
|
|
147465
|
+
|
|
147466
|
+
if (this.HQChart) this.HQChart.RestoreFocus(this.RestoreFocusDelay);
|
|
147409
147467
|
}
|
|
147410
147468
|
|
|
147411
147469
|
this.IsShow=function()
|
|
@@ -148669,6 +148727,8 @@ function JSDialogTooltip()
|
|
|
148669
148727
|
this.LastValueCacheID=null; //鼠标信息
|
|
148670
148728
|
this.DataID=null; //当前显示的数据时间{ Symbol:, Date:, Time: }
|
|
148671
148729
|
|
|
148730
|
+
this.RestoreFocusDelay=800;
|
|
148731
|
+
|
|
148672
148732
|
this.Inital=function(hqchart, option)
|
|
148673
148733
|
{
|
|
148674
148734
|
this.HQChart=hqchart;
|
|
@@ -149034,6 +149094,8 @@ function JSDialogTooltip()
|
|
|
149034
149094
|
if (!this.DivDialog) return;
|
|
149035
149095
|
|
|
149036
149096
|
this.DivDialog.style.visibility='hidden';
|
|
149097
|
+
|
|
149098
|
+
if (this.HQChart) this.HQChart.RestoreFocus(this.RestoreFocusDelay);
|
|
149037
149099
|
}
|
|
149038
149100
|
|
|
149039
149101
|
this.OnMouseDownTitle=function(e)
|
|
@@ -150752,6 +150814,8 @@ function JSDialogSelectRect()
|
|
|
150752
150814
|
this.ShowData;
|
|
150753
150815
|
this.SelectData;
|
|
150754
150816
|
|
|
150817
|
+
this.RestoreFocusDelay=800;
|
|
150818
|
+
|
|
150755
150819
|
this.Inital=function(hqchart, option)
|
|
150756
150820
|
{
|
|
150757
150821
|
this.HQChart=hqchart;
|
|
@@ -150916,6 +150980,8 @@ function JSDialogSelectRect()
|
|
|
150916
150980
|
this.DivDialog.style.visibility='hidden';
|
|
150917
150981
|
this.ShowData=null;
|
|
150918
150982
|
this.SelectData=null;
|
|
150983
|
+
|
|
150984
|
+
if (this.HQChart) this.HQChart.RestoreFocus(this.RestoreFocusDelay);
|
|
150919
150985
|
}
|
|
150920
150986
|
|
|
150921
150987
|
this.MoveStartDate=function(step)
|
|
@@ -151024,6 +151090,8 @@ function JSDialogSelectRect()
|
|
|
151024
151090
|
}
|
|
151025
151091
|
*/
|
|
151026
151092
|
|
|
151093
|
+
if (this.HQChart) this.HQChart.ClearRestoreFocusTimer();
|
|
151094
|
+
|
|
151027
151095
|
var top=this.HQChart.Frame.ChartBorder.GetTop();
|
|
151028
151096
|
var left=this.HQChart.Frame.ChartBorder.GetLeft();
|
|
151029
151097
|
var rtClient=this.HQChart.UIElement.getBoundingClientRect();
|
|
@@ -151615,6 +151683,8 @@ function JSDialogSearchIndex()
|
|
|
151615
151683
|
this.AryGroup=[]; //分类
|
|
151616
151684
|
this.IndexData=JSDialogSearchIndex.GetDefaultIndexData();
|
|
151617
151685
|
|
|
151686
|
+
this.RestoreFocusDelay=800;
|
|
151687
|
+
|
|
151618
151688
|
this.Inital=function(hqchart, option)
|
|
151619
151689
|
{
|
|
151620
151690
|
this.HQChart=hqchart;
|
|
@@ -151658,6 +151728,8 @@ function JSDialogSearchIndex()
|
|
|
151658
151728
|
if (!this.DivDialog) return;
|
|
151659
151729
|
|
|
151660
151730
|
this.DivDialog.style.visibility='hidden';
|
|
151731
|
+
|
|
151732
|
+
if (this.HQChart) this.HQChart.RestoreFocus(this.RestoreFocusDelay);
|
|
151661
151733
|
}
|
|
151662
151734
|
|
|
151663
151735
|
this.OnMouseDownTitle=function(e)
|
|
@@ -151703,6 +151775,8 @@ function JSDialogSearchIndex()
|
|
|
151703
151775
|
{
|
|
151704
151776
|
if (!this.DivDialog) return;
|
|
151705
151777
|
|
|
151778
|
+
if (this.HQChart) this.HQChart.ClearRestoreFocusTimer();
|
|
151779
|
+
|
|
151706
151780
|
if (!groupID) groupID=this.IndexData.Data[0].Group.ID;
|
|
151707
151781
|
|
|
151708
151782
|
this.UpdateGroupData();
|
|
@@ -152298,6 +152372,8 @@ function JSDialogModifyIndexParam()
|
|
|
152298
152372
|
this.IndexData=null; //指标数据 { WindowsIndex:, Type:1=主图 2=叠加, Identify, IndexScript: }
|
|
152299
152373
|
this.Arguments=[]; //参数备份
|
|
152300
152374
|
|
|
152375
|
+
this.RestoreFocusDelay=800;
|
|
152376
|
+
|
|
152301
152377
|
this.Inital=function(hqchart, option)
|
|
152302
152378
|
{
|
|
152303
152379
|
this.HQChart=hqchart;
|
|
@@ -152324,7 +152400,8 @@ function JSDialogModifyIndexParam()
|
|
|
152324
152400
|
this.Show=function(x,y)
|
|
152325
152401
|
{
|
|
152326
152402
|
if (!this.DivDialog) return;
|
|
152327
|
-
|
|
152403
|
+
|
|
152404
|
+
if (this.HQChart) this.HQChart.ClearRestoreFocusTimer();
|
|
152328
152405
|
|
|
152329
152406
|
this.UpdateParam();
|
|
152330
152407
|
|
|
@@ -152368,6 +152445,8 @@ function JSDialogModifyIndexParam()
|
|
|
152368
152445
|
if (!this.DivDialog) return;
|
|
152369
152446
|
|
|
152370
152447
|
this.DivDialog.style.visibility='hidden';
|
|
152448
|
+
|
|
152449
|
+
if (this.HQChart) this.HQChart.RestoreFocus(this.RestoreFocusDelay);
|
|
152371
152450
|
}
|
|
152372
152451
|
|
|
152373
152452
|
this.SetIndexData=function(data)
|
|
@@ -152802,7 +152881,7 @@ function HQChartScriptWorker()
|
|
|
152802
152881
|
|
|
152803
152882
|
|
|
152804
152883
|
|
|
152805
|
-
var HQCHART_VERSION="1.1.
|
|
152884
|
+
var HQCHART_VERSION="1.1.14380";
|
|
152806
152885
|
|
|
152807
152886
|
function PrintHQChartVersion()
|
|
152808
152887
|
{
|