hqchart 1.1.14820 → 1.1.14827
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 +91 -97
- package/package.json +1 -1
- package/src/jscommon/umychart.js +88 -74
- package/src/jscommon/umychart.popMenu.js +13 -1
- package/src/jscommon/umychart.uniapp.h5/umychart.uniapp.h5.js +117 -75
- package/src/jscommon/umychart.version.js +1 -1
- package/src/jscommon/umychart.vue/umychart.vue.js +103 -77
package/package.json
CHANGED
package/src/jscommon/umychart.js
CHANGED
|
@@ -3273,6 +3273,73 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
3273
3273
|
this.FastSlideConfig={ MinDistance:500, MinSpeed:3, MaxTime:250, Enable:false }; //快速滑动配置 MinDistance=最小的距离 MinSpeed=最小速度 MaxTime=最大间隔时间(ms)
|
|
3274
3274
|
this.KeyboardMove={ Timer:null, Delay:100 , Enable:false, Event:null }; //键盘左右移动
|
|
3275
3275
|
|
|
3276
|
+
this.MapEventListenerCache=new Map(); //addEventListener 监听事件 key=type:"keydown|keyup ....", value:{ Callback:, Option: }
|
|
3277
|
+
|
|
3278
|
+
this.AddEventListener=function(eventTarget, type, listener, option)
|
|
3279
|
+
{
|
|
3280
|
+
if (!eventTarget || !type || !listener) return false;
|
|
3281
|
+
|
|
3282
|
+
var callback=listener.bind(this);
|
|
3283
|
+
var item={ Callback:callback, Option:option, Type:type, Element:eventTarget };
|
|
3284
|
+
|
|
3285
|
+
eventTarget.addEventListener(type, callback, option);
|
|
3286
|
+
|
|
3287
|
+
this.MapEventListenerCache.set(item.Type, item);
|
|
3288
|
+
|
|
3289
|
+
return true;
|
|
3290
|
+
}
|
|
3291
|
+
|
|
3292
|
+
this.RemoveEventListener=function(eventTarget, type)
|
|
3293
|
+
{
|
|
3294
|
+
if (!eventTarget || !type) return false;
|
|
3295
|
+
if (!this.MapEventListenerCache.has(type)) return false;
|
|
3296
|
+
|
|
3297
|
+
var item=this.MapEventListenerCache.get(type);
|
|
3298
|
+
if (!item.Element || !item.Callback) return false;
|
|
3299
|
+
|
|
3300
|
+
this.MapEventListenerCache.delete(item.Type);
|
|
3301
|
+
item.Element.removeEventListener(item.Type, item.Callback, item.Option);
|
|
3302
|
+
}
|
|
3303
|
+
|
|
3304
|
+
//option={ KeyDown:, Wheel }
|
|
3305
|
+
this.AddDefaultEventListener=function(option)
|
|
3306
|
+
{
|
|
3307
|
+
var bRegisterKeydown=true;
|
|
3308
|
+
var bRegisterWheel=true;
|
|
3309
|
+
|
|
3310
|
+
if (option)
|
|
3311
|
+
{
|
|
3312
|
+
if (IFrameSplitOperator.IsBool(option.KeyDown)) bRegisterKeydown=option.KeyDown;
|
|
3313
|
+
if (IFrameSplitOperator.IsBool(option.Wheel)) bRegisterWheel=option.Wheel;
|
|
3314
|
+
}
|
|
3315
|
+
|
|
3316
|
+
if (bRegisterKeydown)
|
|
3317
|
+
{
|
|
3318
|
+
this.AddEventListener(this.UIElement,"keydown", this.OnKeyDown, true);
|
|
3319
|
+
this.AddEventListener(this.UIElement,"keyup", this.OnKeyUp, true);
|
|
3320
|
+
}
|
|
3321
|
+
|
|
3322
|
+
if (bRegisterWheel)
|
|
3323
|
+
{
|
|
3324
|
+
this.AddEventListener(this.UIElement,"wheel", this.OnWheel, true);
|
|
3325
|
+
}
|
|
3326
|
+
|
|
3327
|
+
JSConsole.Chart.Log(`[JSChartContainer::AddDefaultEventListener] [keydown,keyup]=${bRegisterKeydown}, [wheel]=${bRegisterWheel}`);
|
|
3328
|
+
}
|
|
3329
|
+
|
|
3330
|
+
this.RemoveAllEventListener=function()
|
|
3331
|
+
{
|
|
3332
|
+
for(var mapItem of this.MapEventListenerCache)
|
|
3333
|
+
{
|
|
3334
|
+
var item=mapItem[1];
|
|
3335
|
+
if (!item.Element || !item.Callback) continue;
|
|
3336
|
+
|
|
3337
|
+
item.Element.removeEventListener(item.Type, item.Callback, item.Option);
|
|
3338
|
+
}
|
|
3339
|
+
|
|
3340
|
+
this.MapEventListenerCache.clear();
|
|
3341
|
+
}
|
|
3342
|
+
|
|
3276
3343
|
this.RestoreFocus=function(delay)
|
|
3277
3344
|
{
|
|
3278
3345
|
var value=1000;
|
|
@@ -3576,6 +3643,14 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
3576
3643
|
this.DialogModifyDraw=null;
|
|
3577
3644
|
}
|
|
3578
3645
|
|
|
3646
|
+
this.DestroyPopMenu=function()
|
|
3647
|
+
{
|
|
3648
|
+
if (!this.JSPopMenu) return;
|
|
3649
|
+
|
|
3650
|
+
this.JSPopMenu.Destroy();
|
|
3651
|
+
this.JSPopMenu=null;
|
|
3652
|
+
}
|
|
3653
|
+
|
|
3579
3654
|
//隐藏内置的弹框div
|
|
3580
3655
|
this.HideAllPopDiv=function()
|
|
3581
3656
|
{
|
|
@@ -3651,6 +3726,11 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
3651
3726
|
this.DestroyDialogModifyDraw();
|
|
3652
3727
|
|
|
3653
3728
|
this.DestroyDialogSelectRect();
|
|
3729
|
+
|
|
3730
|
+
this.DestroyPopMenu();
|
|
3731
|
+
|
|
3732
|
+
document.oncontextmenu=null;
|
|
3733
|
+
this.RemoveAllEventListener();
|
|
3654
3734
|
}
|
|
3655
3735
|
|
|
3656
3736
|
this.ChartDestory=this.ChartDestroy; //老版本写错了,需要兼容下
|
|
@@ -79913,32 +79993,7 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
79913
79993
|
this.ChartCorssCursor.StringFormatX.Frame=this.Frame.SubFrame[0].Frame;
|
|
79914
79994
|
this.ChartCorssCursor.StringFormatY.Frame=this.Frame;
|
|
79915
79995
|
|
|
79916
|
-
|
|
79917
|
-
var bRegisterWheel=true;
|
|
79918
|
-
|
|
79919
|
-
if (option && option.Listener)
|
|
79920
|
-
{
|
|
79921
|
-
var item=option.Listener;
|
|
79922
|
-
if (item.KeyDown===false)
|
|
79923
|
-
{
|
|
79924
|
-
bRegisterKeydown=false;
|
|
79925
|
-
JSConsole.Chart.Log('[KLineChartContainer::Create] not register keydown event.');
|
|
79926
|
-
}
|
|
79927
|
-
|
|
79928
|
-
if (item.Wheel===false)
|
|
79929
|
-
{
|
|
79930
|
-
bRegisterWheel=false;
|
|
79931
|
-
JSConsole.Chart.Log('[KLineChartContainer::Create] not register wheel event.');
|
|
79932
|
-
}
|
|
79933
|
-
}
|
|
79934
|
-
|
|
79935
|
-
if (bRegisterKeydown)
|
|
79936
|
-
{
|
|
79937
|
-
this.UIElement.addEventListener("keydown", (e)=>{ this.OnKeyDown(e); }, true); //键盘消息
|
|
79938
|
-
this.UIElement.addEventListener("keyup", (e)=>{ this.OnKeyUp(e);}, true);
|
|
79939
|
-
}
|
|
79940
|
-
|
|
79941
|
-
if (bRegisterWheel) this.UIElement.addEventListener("wheel", (e)=>{ this.OnWheel(e); }, true); //上下滚动消息
|
|
79996
|
+
if (option) this.AddDefaultEventListener(option.Listener);
|
|
79942
79997
|
|
|
79943
79998
|
this.InitalPopMinuteChart(option);
|
|
79944
79999
|
}
|
|
@@ -82548,7 +82603,8 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
82548
82603
|
if (IFrameSplitOperator.IsNumber(item.DataWidth)) this.KLineSize={ DataWidth:item.DataWidth };
|
|
82549
82604
|
}
|
|
82550
82605
|
|
|
82551
|
-
if (option.Reload
|
|
82606
|
+
if (IFrameSplitOperator.IsBool(option.Reload)) isReload=option.Reload;
|
|
82607
|
+
if (IFrameSplitOperator.IsBool(option.IsApiPeriod)) this.IsApiPeriod=option.IsApiPeriod;
|
|
82552
82608
|
};
|
|
82553
82609
|
|
|
82554
82610
|
if (this.Period==period && isReload==false)
|
|
@@ -89820,31 +89876,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
89820
89876
|
if (this.ChartCorssCursor.CallAcutionXOperator)
|
|
89821
89877
|
this.ChartCorssCursor.CallAcutionXOperator.Frame=this.Frame.SubFrame[0].Frame;
|
|
89822
89878
|
|
|
89823
|
-
|
|
89824
|
-
var bRegisterWheel=true;
|
|
89825
|
-
|
|
89826
|
-
if (option && option.Listener)
|
|
89827
|
-
{
|
|
89828
|
-
var item=option.Listener;
|
|
89829
|
-
if (item.KeyDown===false)
|
|
89830
|
-
{
|
|
89831
|
-
bRegisterKeydown=false;
|
|
89832
|
-
JSConsole.Chart.Log('[MinuteChartContainer::Create] not register keydown event.');
|
|
89833
|
-
}
|
|
89834
|
-
|
|
89835
|
-
if (item.Wheel===false)
|
|
89836
|
-
{
|
|
89837
|
-
bRegisterWheel=false;
|
|
89838
|
-
JSConsole.Chart.Log('[MinuteChartContainer::Create] not register wheel event.');
|
|
89839
|
-
}
|
|
89840
|
-
}
|
|
89841
|
-
|
|
89842
|
-
if (bRegisterKeydown)
|
|
89843
|
-
{
|
|
89844
|
-
this.UIElement.addEventListener("keydown", (e)=>{ this.OnKeyDown(e);} , true); //键盘消息
|
|
89845
|
-
this.UIElement.addEventListener("keyup", (e)=>{ this.OnKeyUp(e);}, true);
|
|
89846
|
-
}
|
|
89847
|
-
if (bRegisterWheel) this.UIElement.addEventListener("wheel", (e)=>{ this.OnWheel(e); }, true); //上下滚动消息
|
|
89879
|
+
if (option) this.AddDefaultEventListener(option.Listener);
|
|
89848
89880
|
}
|
|
89849
89881
|
|
|
89850
89882
|
//创建子窗口
|
|
@@ -95373,8 +95405,7 @@ function KLineChartHScreenContainer(uielement)
|
|
|
95373
95405
|
this.TitlePaint.push(titlePaint);
|
|
95374
95406
|
}
|
|
95375
95407
|
|
|
95376
|
-
this.
|
|
95377
|
-
this.UIElement.addEventListener("keyup", OnKeyUp, true);
|
|
95408
|
+
this.AddDefaultEventListener({ KeyDown:true, Wheel:false });
|
|
95378
95409
|
}
|
|
95379
95410
|
|
|
95380
95411
|
//创建子窗口
|
|
@@ -95562,8 +95593,7 @@ function MinuteChartHScreenContainer(uielement)
|
|
|
95562
95593
|
this.ChartCorssCursor.StringFormatY.Frame=this.Frame;
|
|
95563
95594
|
this.ChartCorssCursor.CallAcutionXOperator.Frame=this.Frame.SubFrame[0].Frame;
|
|
95564
95595
|
|
|
95565
|
-
this.
|
|
95566
|
-
this.UIElement.addEventListener("keyup", OnKeyUp, true);
|
|
95596
|
+
this.AddDefaultEventListener({ KeyDown:false, Wheel:false });
|
|
95567
95597
|
}
|
|
95568
95598
|
|
|
95569
95599
|
//创建子窗口
|
|
@@ -95721,28 +95751,12 @@ function DepthChartContainer(uielement)
|
|
|
95721
95751
|
chartItem.Name="深度图"
|
|
95722
95752
|
this.ChartPaint.push(chartItem);
|
|
95723
95753
|
|
|
95724
|
-
|
|
95725
|
-
var bRegisterWheel=true;
|
|
95726
|
-
if (option)
|
|
95727
|
-
{
|
|
95728
|
-
if (option.Wheel===false)
|
|
95729
|
-
{
|
|
95730
|
-
bRegisterWheel=false;
|
|
95731
|
-
JSConsole.Chart.Log('[DepthChartContainer::Create] not register wheel event.');
|
|
95732
|
-
}
|
|
95733
|
-
}
|
|
95734
|
-
|
|
95735
|
-
if (bRegisterKeydown)
|
|
95736
|
-
{
|
|
95737
|
-
this.UIElement.addEventListener("keydown", (e)=>{ this.OnKeyDown(e); }, true); //键盘消息
|
|
95738
|
-
this.UIElement.addEventListener("keyup", (e)=>{ this.OnKeyUp(e);}, true);
|
|
95739
|
-
}
|
|
95740
|
-
if (bRegisterWheel) this.UIElement.addEventListener("wheel", (e)=>{ this.OnWheel(e); }, true); //上下滚动消息
|
|
95754
|
+
if (option) this.AddDefaultEventListener(option.Listener);
|
|
95741
95755
|
}
|
|
95742
95756
|
|
|
95743
95757
|
this.OnWheel=function(e)
|
|
95744
95758
|
{
|
|
95745
|
-
JSConsole.Chart.Log('[
|
|
95759
|
+
JSConsole.Chart.Log('[DepthChartContainer::OnWheel]',e);
|
|
95746
95760
|
var x = e.clientX-this.UIElement.getBoundingClientRect().left;
|
|
95747
95761
|
var y = e.clientY-this.UIElement.getBoundingClientRect().top;
|
|
95748
95762
|
|
|
@@ -26,6 +26,8 @@ function JSPopMenu()
|
|
|
26
26
|
|
|
27
27
|
this.RestoreFocusDelay=1000;
|
|
28
28
|
|
|
29
|
+
this.MouseDownlistenerPtr=null;
|
|
30
|
+
|
|
29
31
|
this.AryTDClassName=
|
|
30
32
|
[
|
|
31
33
|
"UMyChart_MenuItem_Td_Status", //图标
|
|
@@ -37,7 +39,17 @@ function JSPopMenu()
|
|
|
37
39
|
this.Inital=function(hqchart, option)
|
|
38
40
|
{
|
|
39
41
|
this.HQChart=hqchart;
|
|
40
|
-
|
|
42
|
+
this.MouseDownlistenerPtr=this.OnWindowMouseDown.bind(this);
|
|
43
|
+
window.addEventListener('mousedown', this.MouseDownlistenerPtr);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
this.Destroy=function()
|
|
47
|
+
{
|
|
48
|
+
if (this.MouseDownlistenerPtr)
|
|
49
|
+
{
|
|
50
|
+
window.removeEventListener('mousedown', this.MouseDownlistenerPtr);
|
|
51
|
+
this.MouseDownlistenerPtr=null;
|
|
52
|
+
}
|
|
41
53
|
}
|
|
42
54
|
|
|
43
55
|
//创建菜单
|
|
@@ -7369,6 +7369,73 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
7369
7369
|
this.FastSlideConfig={ MinDistance:500, MinSpeed:3, MaxTime:250, Enable:false }; //快速滑动配置 MinDistance=最小的距离 MinSpeed=最小速度 MaxTime=最大间隔时间(ms)
|
|
7370
7370
|
this.KeyboardMove={ Timer:null, Delay:100 , Enable:false, Event:null }; //键盘左右移动
|
|
7371
7371
|
|
|
7372
|
+
this.MapEventListenerCache=new Map(); //addEventListener 监听事件 key=type:"keydown|keyup ....", value:{ Callback:, Option: }
|
|
7373
|
+
|
|
7374
|
+
this.AddEventListener=function(eventTarget, type, listener, option)
|
|
7375
|
+
{
|
|
7376
|
+
if (!eventTarget || !type || !listener) return false;
|
|
7377
|
+
|
|
7378
|
+
var callback=listener.bind(this);
|
|
7379
|
+
var item={ Callback:callback, Option:option, Type:type, Element:eventTarget };
|
|
7380
|
+
|
|
7381
|
+
eventTarget.addEventListener(type, callback, option);
|
|
7382
|
+
|
|
7383
|
+
this.MapEventListenerCache.set(item.Type, item);
|
|
7384
|
+
|
|
7385
|
+
return true;
|
|
7386
|
+
}
|
|
7387
|
+
|
|
7388
|
+
this.RemoveEventListener=function(eventTarget, type)
|
|
7389
|
+
{
|
|
7390
|
+
if (!eventTarget || !type) return false;
|
|
7391
|
+
if (!this.MapEventListenerCache.has(type)) return false;
|
|
7392
|
+
|
|
7393
|
+
var item=this.MapEventListenerCache.get(type);
|
|
7394
|
+
if (!item.Element || !item.Callback) return false;
|
|
7395
|
+
|
|
7396
|
+
this.MapEventListenerCache.delete(item.Type);
|
|
7397
|
+
item.Element.removeEventListener(item.Type, item.Callback, item.Option);
|
|
7398
|
+
}
|
|
7399
|
+
|
|
7400
|
+
//option={ KeyDown:, Wheel }
|
|
7401
|
+
this.AddDefaultEventListener=function(option)
|
|
7402
|
+
{
|
|
7403
|
+
var bRegisterKeydown=true;
|
|
7404
|
+
var bRegisterWheel=true;
|
|
7405
|
+
|
|
7406
|
+
if (option)
|
|
7407
|
+
{
|
|
7408
|
+
if (IFrameSplitOperator.IsBool(option.KeyDown)) bRegisterKeydown=option.KeyDown;
|
|
7409
|
+
if (IFrameSplitOperator.IsBool(option.Wheel)) bRegisterWheel=option.Wheel;
|
|
7410
|
+
}
|
|
7411
|
+
|
|
7412
|
+
if (bRegisterKeydown)
|
|
7413
|
+
{
|
|
7414
|
+
this.AddEventListener(this.UIElement,"keydown", this.OnKeyDown, true);
|
|
7415
|
+
this.AddEventListener(this.UIElement,"keyup", this.OnKeyUp, true);
|
|
7416
|
+
}
|
|
7417
|
+
|
|
7418
|
+
if (bRegisterWheel)
|
|
7419
|
+
{
|
|
7420
|
+
this.AddEventListener(this.UIElement,"wheel", this.OnWheel, true);
|
|
7421
|
+
}
|
|
7422
|
+
|
|
7423
|
+
JSConsole.Chart.Log(`[JSChartContainer::AddDefaultEventListener] [keydown,keyup]=${bRegisterKeydown}, [wheel]=${bRegisterWheel}`);
|
|
7424
|
+
}
|
|
7425
|
+
|
|
7426
|
+
this.RemoveAllEventListener=function()
|
|
7427
|
+
{
|
|
7428
|
+
for(var mapItem of this.MapEventListenerCache)
|
|
7429
|
+
{
|
|
7430
|
+
var item=mapItem[1];
|
|
7431
|
+
if (!item.Element || !item.Callback) continue;
|
|
7432
|
+
|
|
7433
|
+
item.Element.removeEventListener(item.Type, item.Callback, item.Option);
|
|
7434
|
+
}
|
|
7435
|
+
|
|
7436
|
+
this.MapEventListenerCache.clear();
|
|
7437
|
+
}
|
|
7438
|
+
|
|
7372
7439
|
this.RestoreFocus=function(delay)
|
|
7373
7440
|
{
|
|
7374
7441
|
var value=1000;
|
|
@@ -7672,6 +7739,14 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
7672
7739
|
this.DialogModifyDraw=null;
|
|
7673
7740
|
}
|
|
7674
7741
|
|
|
7742
|
+
this.DestroyPopMenu=function()
|
|
7743
|
+
{
|
|
7744
|
+
if (!this.JSPopMenu) return;
|
|
7745
|
+
|
|
7746
|
+
this.JSPopMenu.Destroy();
|
|
7747
|
+
this.JSPopMenu=null;
|
|
7748
|
+
}
|
|
7749
|
+
|
|
7675
7750
|
//隐藏内置的弹框div
|
|
7676
7751
|
this.HideAllPopDiv=function()
|
|
7677
7752
|
{
|
|
@@ -7747,6 +7822,11 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
7747
7822
|
this.DestroyDialogModifyDraw();
|
|
7748
7823
|
|
|
7749
7824
|
this.DestroyDialogSelectRect();
|
|
7825
|
+
|
|
7826
|
+
this.DestroyPopMenu();
|
|
7827
|
+
|
|
7828
|
+
document.oncontextmenu=null;
|
|
7829
|
+
this.RemoveAllEventListener();
|
|
7750
7830
|
}
|
|
7751
7831
|
|
|
7752
7832
|
this.ChartDestory=this.ChartDestroy; //老版本写错了,需要兼容下
|
|
@@ -84009,32 +84089,7 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
84009
84089
|
this.ChartCorssCursor.StringFormatX.Frame=this.Frame.SubFrame[0].Frame;
|
|
84010
84090
|
this.ChartCorssCursor.StringFormatY.Frame=this.Frame;
|
|
84011
84091
|
|
|
84012
|
-
|
|
84013
|
-
var bRegisterWheel=true;
|
|
84014
|
-
|
|
84015
|
-
if (option && option.Listener)
|
|
84016
|
-
{
|
|
84017
|
-
var item=option.Listener;
|
|
84018
|
-
if (item.KeyDown===false)
|
|
84019
|
-
{
|
|
84020
|
-
bRegisterKeydown=false;
|
|
84021
|
-
JSConsole.Chart.Log('[KLineChartContainer::Create] not register keydown event.');
|
|
84022
|
-
}
|
|
84023
|
-
|
|
84024
|
-
if (item.Wheel===false)
|
|
84025
|
-
{
|
|
84026
|
-
bRegisterWheel=false;
|
|
84027
|
-
JSConsole.Chart.Log('[KLineChartContainer::Create] not register wheel event.');
|
|
84028
|
-
}
|
|
84029
|
-
}
|
|
84030
|
-
|
|
84031
|
-
if (bRegisterKeydown)
|
|
84032
|
-
{
|
|
84033
|
-
this.UIElement.addEventListener("keydown", (e)=>{ this.OnKeyDown(e); }, true); //键盘消息
|
|
84034
|
-
this.UIElement.addEventListener("keyup", (e)=>{ this.OnKeyUp(e);}, true);
|
|
84035
|
-
}
|
|
84036
|
-
|
|
84037
|
-
if (bRegisterWheel) this.UIElement.addEventListener("wheel", (e)=>{ this.OnWheel(e); }, true); //上下滚动消息
|
|
84092
|
+
if (option) this.AddDefaultEventListener(option.Listener);
|
|
84038
84093
|
|
|
84039
84094
|
this.InitalPopMinuteChart(option);
|
|
84040
84095
|
}
|
|
@@ -86644,7 +86699,8 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
86644
86699
|
if (IFrameSplitOperator.IsNumber(item.DataWidth)) this.KLineSize={ DataWidth:item.DataWidth };
|
|
86645
86700
|
}
|
|
86646
86701
|
|
|
86647
|
-
if (option.Reload
|
|
86702
|
+
if (IFrameSplitOperator.IsBool(option.Reload)) isReload=option.Reload;
|
|
86703
|
+
if (IFrameSplitOperator.IsBool(option.IsApiPeriod)) this.IsApiPeriod=option.IsApiPeriod;
|
|
86648
86704
|
};
|
|
86649
86705
|
|
|
86650
86706
|
if (this.Period==period && isReload==false)
|
|
@@ -93916,31 +93972,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
93916
93972
|
if (this.ChartCorssCursor.CallAcutionXOperator)
|
|
93917
93973
|
this.ChartCorssCursor.CallAcutionXOperator.Frame=this.Frame.SubFrame[0].Frame;
|
|
93918
93974
|
|
|
93919
|
-
|
|
93920
|
-
var bRegisterWheel=true;
|
|
93921
|
-
|
|
93922
|
-
if (option && option.Listener)
|
|
93923
|
-
{
|
|
93924
|
-
var item=option.Listener;
|
|
93925
|
-
if (item.KeyDown===false)
|
|
93926
|
-
{
|
|
93927
|
-
bRegisterKeydown=false;
|
|
93928
|
-
JSConsole.Chart.Log('[MinuteChartContainer::Create] not register keydown event.');
|
|
93929
|
-
}
|
|
93930
|
-
|
|
93931
|
-
if (item.Wheel===false)
|
|
93932
|
-
{
|
|
93933
|
-
bRegisterWheel=false;
|
|
93934
|
-
JSConsole.Chart.Log('[MinuteChartContainer::Create] not register wheel event.');
|
|
93935
|
-
}
|
|
93936
|
-
}
|
|
93937
|
-
|
|
93938
|
-
if (bRegisterKeydown)
|
|
93939
|
-
{
|
|
93940
|
-
this.UIElement.addEventListener("keydown", (e)=>{ this.OnKeyDown(e);} , true); //键盘消息
|
|
93941
|
-
this.UIElement.addEventListener("keyup", (e)=>{ this.OnKeyUp(e);}, true);
|
|
93942
|
-
}
|
|
93943
|
-
if (bRegisterWheel) this.UIElement.addEventListener("wheel", (e)=>{ this.OnWheel(e); }, true); //上下滚动消息
|
|
93975
|
+
if (option) this.AddDefaultEventListener(option.Listener);
|
|
93944
93976
|
}
|
|
93945
93977
|
|
|
93946
93978
|
//创建子窗口
|
|
@@ -99469,8 +99501,7 @@ function KLineChartHScreenContainer(uielement)
|
|
|
99469
99501
|
this.TitlePaint.push(titlePaint);
|
|
99470
99502
|
}
|
|
99471
99503
|
|
|
99472
|
-
this.
|
|
99473
|
-
this.UIElement.addEventListener("keyup", OnKeyUp, true);
|
|
99504
|
+
this.AddDefaultEventListener({ KeyDown:true, Wheel:false });
|
|
99474
99505
|
}
|
|
99475
99506
|
|
|
99476
99507
|
//创建子窗口
|
|
@@ -99658,8 +99689,7 @@ function MinuteChartHScreenContainer(uielement)
|
|
|
99658
99689
|
this.ChartCorssCursor.StringFormatY.Frame=this.Frame;
|
|
99659
99690
|
this.ChartCorssCursor.CallAcutionXOperator.Frame=this.Frame.SubFrame[0].Frame;
|
|
99660
99691
|
|
|
99661
|
-
this.
|
|
99662
|
-
this.UIElement.addEventListener("keyup", OnKeyUp, true);
|
|
99692
|
+
this.AddDefaultEventListener({ KeyDown:false, Wheel:false });
|
|
99663
99693
|
}
|
|
99664
99694
|
|
|
99665
99695
|
//创建子窗口
|
|
@@ -99817,28 +99847,12 @@ function DepthChartContainer(uielement)
|
|
|
99817
99847
|
chartItem.Name="深度图"
|
|
99818
99848
|
this.ChartPaint.push(chartItem);
|
|
99819
99849
|
|
|
99820
|
-
|
|
99821
|
-
var bRegisterWheel=true;
|
|
99822
|
-
if (option)
|
|
99823
|
-
{
|
|
99824
|
-
if (option.Wheel===false)
|
|
99825
|
-
{
|
|
99826
|
-
bRegisterWheel=false;
|
|
99827
|
-
JSConsole.Chart.Log('[DepthChartContainer::Create] not register wheel event.');
|
|
99828
|
-
}
|
|
99829
|
-
}
|
|
99830
|
-
|
|
99831
|
-
if (bRegisterKeydown)
|
|
99832
|
-
{
|
|
99833
|
-
this.UIElement.addEventListener("keydown", (e)=>{ this.OnKeyDown(e); }, true); //键盘消息
|
|
99834
|
-
this.UIElement.addEventListener("keyup", (e)=>{ this.OnKeyUp(e);}, true);
|
|
99835
|
-
}
|
|
99836
|
-
if (bRegisterWheel) this.UIElement.addEventListener("wheel", (e)=>{ this.OnWheel(e); }, true); //上下滚动消息
|
|
99850
|
+
if (option) this.AddDefaultEventListener(option.Listener);
|
|
99837
99851
|
}
|
|
99838
99852
|
|
|
99839
99853
|
this.OnWheel=function(e)
|
|
99840
99854
|
{
|
|
99841
|
-
JSConsole.Chart.Log('[
|
|
99855
|
+
JSConsole.Chart.Log('[DepthChartContainer::OnWheel]',e);
|
|
99842
99856
|
var x = e.clientX-this.UIElement.getBoundingClientRect().left;
|
|
99843
99857
|
var y = e.clientY-this.UIElement.getBoundingClientRect().top;
|
|
99844
99858
|
|
|
@@ -149569,7 +149583,7 @@ function ScrollBarBGChart()
|
|
|
149569
149583
|
|
|
149570
149584
|
|
|
149571
149585
|
|
|
149572
|
-
var HQCHART_VERSION="1.1.
|
|
149586
|
+
var HQCHART_VERSION="1.1.14826";
|
|
149573
149587
|
|
|
149574
149588
|
function PrintHQChartVersion()
|
|
149575
149589
|
{
|
|
@@ -149697,5 +149711,33 @@ export default {
|
|
|
149697
149711
|
JSScrollBarChart:JSScrollBarChart,
|
|
149698
149712
|
|
|
149699
149713
|
JSCHART_WORKER_MESSAGE_ID:JSCHART_WORKER_MESSAGE_ID,
|
|
149714
|
+
|
|
149715
|
+
JS_Frame:
|
|
149716
|
+
{
|
|
149717
|
+
KLineFrame:KLineFrame,
|
|
149718
|
+
KLineHScreenFrame:KLineHScreenFrame,
|
|
149719
|
+
},
|
|
149720
|
+
|
|
149721
|
+
//新个导出 根据大类分组
|
|
149722
|
+
JS_ChangeStringFormat:
|
|
149723
|
+
{
|
|
149724
|
+
IChangeStringFormat:IChangeStringFormat, //数据格式化
|
|
149725
|
+
HQMinuteTimeStringFormat:HQMinuteTimeStringFormat, //分时图X轴 十字光标输出格式化
|
|
149726
|
+
HQDateStringFormat:HQDateStringFormat, //K线图X轴 十字光标输出格式化
|
|
149727
|
+
HQPriceStringFormat:HQPriceStringFormat, //分时图,K线图Y轴 十字光标输出格式化
|
|
149728
|
+
},
|
|
149729
|
+
|
|
149730
|
+
//所有的枚举
|
|
149731
|
+
JS_ID:
|
|
149732
|
+
{
|
|
149733
|
+
JSCHART_EVENT_ID:JSCHART_EVENT_ID,
|
|
149734
|
+
JSCHART_OPERATOR_ID:JSCHART_OPERATOR_ID,
|
|
149735
|
+
JSCHART_DRAG_ID:JSCHART_DRAG_ID,
|
|
149736
|
+
JSCHART_BUTTON_ID:JSCHART_BUTTON_ID,
|
|
149737
|
+
JSCHART_DATA_FIELD_ID:JSCHART_DATA_FIELD_ID,
|
|
149738
|
+
JSCHART_WORKER_MESSAGE_ID:JSCHART_WORKER_MESSAGE_ID,
|
|
149739
|
+
JSCHART_MENU_ID:JSCHART_MENU_ID,
|
|
149740
|
+
JSCHART_TRADE_STATUS_ID:JSCHART_TRADE_STATUS_ID, //交易状态
|
|
149741
|
+
},
|
|
149700
149742
|
}
|
|
149701
149743
|
|