hqchart 1.1.14817 → 1.1.14824
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 +94 -99
- package/package.json +1 -1
- package/src/jscommon/umychart.DialogDrawTool.js +1 -1
- package/src/jscommon/umychart.DialogSearchIndex.js +1 -1
- package/src/jscommon/umychart.js +93 -68
- package/src/jscommon/umychart.popMenu.js +9 -1
- package/src/jscommon/umychart.uniapp.h5/umychart.uniapp.h5.js +94 -69
- package/src/jscommon/umychart.version.js +1 -1
- package/src/jscommon/umychart.vue/umychart.vue.js +105 -72
package/package.json
CHANGED
|
@@ -899,7 +899,7 @@ function JSDialogModifyIndexParam()
|
|
|
899
899
|
|
|
900
900
|
if (this.DivDialog)
|
|
901
901
|
{
|
|
902
|
-
document.body.removeChild(this.DivDialog);
|
|
902
|
+
if (document && document.body && document.body.removeChild) document.body.removeChild(this.DivDialog);
|
|
903
903
|
this.DivDialog=null;
|
|
904
904
|
}
|
|
905
905
|
}
|
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; //老版本写错了,需要兼容下
|
|
@@ -11988,6 +12068,12 @@ function OnKeyDown(e) //键盘事件
|
|
|
11988
12068
|
this.JSChartContainer.OnKeyDown(e);
|
|
11989
12069
|
}
|
|
11990
12070
|
|
|
12071
|
+
function OnKeyUp(e) //键盘事件
|
|
12072
|
+
{
|
|
12073
|
+
if(this.JSChartContainer && this.JSChartContainer.OnKeyUp)
|
|
12074
|
+
this.JSChartContainer.OnKeyUp(e);
|
|
12075
|
+
}
|
|
12076
|
+
|
|
11991
12077
|
function OnWheel(e) //上下滚动事件
|
|
11992
12078
|
{
|
|
11993
12079
|
if(this.JSChartContainer && this.JSChartContainer.OnWheel)
|
|
@@ -79907,32 +79993,7 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
79907
79993
|
this.ChartCorssCursor.StringFormatX.Frame=this.Frame.SubFrame[0].Frame;
|
|
79908
79994
|
this.ChartCorssCursor.StringFormatY.Frame=this.Frame;
|
|
79909
79995
|
|
|
79910
|
-
|
|
79911
|
-
var bRegisterWheel=true;
|
|
79912
|
-
|
|
79913
|
-
if (option && option.Listener)
|
|
79914
|
-
{
|
|
79915
|
-
var item=option.Listener;
|
|
79916
|
-
if (item.KeyDown===false)
|
|
79917
|
-
{
|
|
79918
|
-
bRegisterKeydown=false;
|
|
79919
|
-
JSConsole.Chart.Log('[KLineChartContainer::Create] not register keydown event.');
|
|
79920
|
-
}
|
|
79921
|
-
|
|
79922
|
-
if (item.Wheel===false)
|
|
79923
|
-
{
|
|
79924
|
-
bRegisterWheel=false;
|
|
79925
|
-
JSConsole.Chart.Log('[KLineChartContainer::Create] not register wheel event.');
|
|
79926
|
-
}
|
|
79927
|
-
}
|
|
79928
|
-
|
|
79929
|
-
if (bRegisterKeydown)
|
|
79930
|
-
{
|
|
79931
|
-
this.UIElement.addEventListener("keydown", (e)=>{ this.OnKeyDown(e); }, true); //键盘消息
|
|
79932
|
-
this.UIElement.addEventListener("keyup", (e)=>{ this.OnKeyUp(e);}, true);
|
|
79933
|
-
}
|
|
79934
|
-
|
|
79935
|
-
if (bRegisterWheel) this.UIElement.addEventListener("wheel", (e)=>{ this.OnWheel(e); }, true); //上下滚动消息
|
|
79996
|
+
if (option) this.AddDefaultEventListener(option.Listener);
|
|
79936
79997
|
|
|
79937
79998
|
this.InitalPopMinuteChart(option);
|
|
79938
79999
|
}
|
|
@@ -89814,27 +89875,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
89814
89875
|
if (this.ChartCorssCursor.CallAcutionXOperator)
|
|
89815
89876
|
this.ChartCorssCursor.CallAcutionXOperator.Frame=this.Frame.SubFrame[0].Frame;
|
|
89816
89877
|
|
|
89817
|
-
|
|
89818
|
-
var bRegisterWheel=true;
|
|
89819
|
-
|
|
89820
|
-
if (option && option.Listener)
|
|
89821
|
-
{
|
|
89822
|
-
var item=option.Listener;
|
|
89823
|
-
if (item.KeyDown===false)
|
|
89824
|
-
{
|
|
89825
|
-
bRegisterKeydown=false;
|
|
89826
|
-
JSConsole.Chart.Log('[MinuteChartContainer::Create] not register keydown event.');
|
|
89827
|
-
}
|
|
89828
|
-
|
|
89829
|
-
if (item.Wheel===false)
|
|
89830
|
-
{
|
|
89831
|
-
bRegisterWheel=false;
|
|
89832
|
-
JSConsole.Chart.Log('[MinuteChartContainer::Create] not register wheel event.');
|
|
89833
|
-
}
|
|
89834
|
-
}
|
|
89835
|
-
|
|
89836
|
-
if (bRegisterKeydown) this.UIElement.addEventListener("keydown", (e)=>{ this.OnKeyDown(e);} , true); //键盘消息
|
|
89837
|
-
if (bRegisterWheel) this.UIElement.addEventListener("wheel", (e)=>{ this.OnWheel(e); }, true); //上下滚动消息
|
|
89878
|
+
if (option) this.AddDefaultEventListener(option.Listener);
|
|
89838
89879
|
}
|
|
89839
89880
|
|
|
89840
89881
|
//创建子窗口
|
|
@@ -91730,7 +91771,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
91730
91771
|
return;
|
|
91731
91772
|
}
|
|
91732
91773
|
|
|
91733
|
-
if (this.IsOnTouch==true) //正在操作中不更新数据
|
|
91774
|
+
if (this.IsOnTouch==true || this.IsPressKeyboard==true) //正在操作中不更新数据
|
|
91734
91775
|
{
|
|
91735
91776
|
if (this.SourceData && IFrameSplitOperator.IsNonEmptyArray(this.SourceData.Data))
|
|
91736
91777
|
{
|
|
@@ -95363,7 +95404,7 @@ function KLineChartHScreenContainer(uielement)
|
|
|
95363
95404
|
this.TitlePaint.push(titlePaint);
|
|
95364
95405
|
}
|
|
95365
95406
|
|
|
95366
|
-
this.
|
|
95407
|
+
this.AddDefaultEventListener({ KeyDown:true, Wheel:false });
|
|
95367
95408
|
}
|
|
95368
95409
|
|
|
95369
95410
|
//创建子窗口
|
|
@@ -95551,7 +95592,7 @@ function MinuteChartHScreenContainer(uielement)
|
|
|
95551
95592
|
this.ChartCorssCursor.StringFormatY.Frame=this.Frame;
|
|
95552
95593
|
this.ChartCorssCursor.CallAcutionXOperator.Frame=this.Frame.SubFrame[0].Frame;
|
|
95553
95594
|
|
|
95554
|
-
this.
|
|
95595
|
+
this.AddDefaultEventListener({ KeyDown:false, Wheel:false });
|
|
95555
95596
|
}
|
|
95556
95597
|
|
|
95557
95598
|
//创建子窗口
|
|
@@ -95709,28 +95750,12 @@ function DepthChartContainer(uielement)
|
|
|
95709
95750
|
chartItem.Name="深度图"
|
|
95710
95751
|
this.ChartPaint.push(chartItem);
|
|
95711
95752
|
|
|
95712
|
-
|
|
95713
|
-
var bRegisterWheel=true;
|
|
95714
|
-
if (option)
|
|
95715
|
-
{
|
|
95716
|
-
if (option.Wheel===false)
|
|
95717
|
-
{
|
|
95718
|
-
bRegisterWheel=false;
|
|
95719
|
-
JSConsole.Chart.Log('[DepthChartContainer::Create] not register wheel event.');
|
|
95720
|
-
}
|
|
95721
|
-
}
|
|
95722
|
-
|
|
95723
|
-
if (bRegisterKeydown)
|
|
95724
|
-
{
|
|
95725
|
-
this.UIElement.addEventListener("keydown", (e)=>{ this.OnKeyDown(e); }, true); //键盘消息
|
|
95726
|
-
this.UIElement.addEventListener("keyup", (e)=>{ this.OnKeyUp(e);}, true);
|
|
95727
|
-
}
|
|
95728
|
-
if (bRegisterWheel) this.UIElement.addEventListener("wheel", (e)=>{ this.OnWheel(e); }, true); //上下滚动消息
|
|
95753
|
+
if (option) this.AddDefaultEventListener(option.Listener);
|
|
95729
95754
|
}
|
|
95730
95755
|
|
|
95731
95756
|
this.OnWheel=function(e)
|
|
95732
95757
|
{
|
|
95733
|
-
JSConsole.Chart.Log('[
|
|
95758
|
+
JSConsole.Chart.Log('[DepthChartContainer::OnWheel]',e);
|
|
95734
95759
|
var x = e.clientX-this.UIElement.getBoundingClientRect().left;
|
|
95735
95760
|
var y = e.clientY-this.UIElement.getBoundingClientRect().top;
|
|
95736
95761
|
|
|
@@ -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,13 @@ 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) window.removeEventListener('mousedown', this.MouseDownlistenerPtr);
|
|
41
49
|
}
|
|
42
50
|
|
|
43
51
|
//创建菜单
|
|
@@ -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; //老版本写错了,需要兼容下
|
|
@@ -16084,6 +16164,12 @@ function OnKeyDown(e) //键盘事件
|
|
|
16084
16164
|
this.JSChartContainer.OnKeyDown(e);
|
|
16085
16165
|
}
|
|
16086
16166
|
|
|
16167
|
+
function OnKeyUp(e) //键盘事件
|
|
16168
|
+
{
|
|
16169
|
+
if(this.JSChartContainer && this.JSChartContainer.OnKeyUp)
|
|
16170
|
+
this.JSChartContainer.OnKeyUp(e);
|
|
16171
|
+
}
|
|
16172
|
+
|
|
16087
16173
|
function OnWheel(e) //上下滚动事件
|
|
16088
16174
|
{
|
|
16089
16175
|
if(this.JSChartContainer && this.JSChartContainer.OnWheel)
|
|
@@ -84003,32 +84089,7 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
84003
84089
|
this.ChartCorssCursor.StringFormatX.Frame=this.Frame.SubFrame[0].Frame;
|
|
84004
84090
|
this.ChartCorssCursor.StringFormatY.Frame=this.Frame;
|
|
84005
84091
|
|
|
84006
|
-
|
|
84007
|
-
var bRegisterWheel=true;
|
|
84008
|
-
|
|
84009
|
-
if (option && option.Listener)
|
|
84010
|
-
{
|
|
84011
|
-
var item=option.Listener;
|
|
84012
|
-
if (item.KeyDown===false)
|
|
84013
|
-
{
|
|
84014
|
-
bRegisterKeydown=false;
|
|
84015
|
-
JSConsole.Chart.Log('[KLineChartContainer::Create] not register keydown event.');
|
|
84016
|
-
}
|
|
84017
|
-
|
|
84018
|
-
if (item.Wheel===false)
|
|
84019
|
-
{
|
|
84020
|
-
bRegisterWheel=false;
|
|
84021
|
-
JSConsole.Chart.Log('[KLineChartContainer::Create] not register wheel event.');
|
|
84022
|
-
}
|
|
84023
|
-
}
|
|
84024
|
-
|
|
84025
|
-
if (bRegisterKeydown)
|
|
84026
|
-
{
|
|
84027
|
-
this.UIElement.addEventListener("keydown", (e)=>{ this.OnKeyDown(e); }, true); //键盘消息
|
|
84028
|
-
this.UIElement.addEventListener("keyup", (e)=>{ this.OnKeyUp(e);}, true);
|
|
84029
|
-
}
|
|
84030
|
-
|
|
84031
|
-
if (bRegisterWheel) this.UIElement.addEventListener("wheel", (e)=>{ this.OnWheel(e); }, true); //上下滚动消息
|
|
84092
|
+
if (option) this.AddDefaultEventListener(option.Listener);
|
|
84032
84093
|
|
|
84033
84094
|
this.InitalPopMinuteChart(option);
|
|
84034
84095
|
}
|
|
@@ -93910,27 +93971,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
93910
93971
|
if (this.ChartCorssCursor.CallAcutionXOperator)
|
|
93911
93972
|
this.ChartCorssCursor.CallAcutionXOperator.Frame=this.Frame.SubFrame[0].Frame;
|
|
93912
93973
|
|
|
93913
|
-
|
|
93914
|
-
var bRegisterWheel=true;
|
|
93915
|
-
|
|
93916
|
-
if (option && option.Listener)
|
|
93917
|
-
{
|
|
93918
|
-
var item=option.Listener;
|
|
93919
|
-
if (item.KeyDown===false)
|
|
93920
|
-
{
|
|
93921
|
-
bRegisterKeydown=false;
|
|
93922
|
-
JSConsole.Chart.Log('[MinuteChartContainer::Create] not register keydown event.');
|
|
93923
|
-
}
|
|
93924
|
-
|
|
93925
|
-
if (item.Wheel===false)
|
|
93926
|
-
{
|
|
93927
|
-
bRegisterWheel=false;
|
|
93928
|
-
JSConsole.Chart.Log('[MinuteChartContainer::Create] not register wheel event.');
|
|
93929
|
-
}
|
|
93930
|
-
}
|
|
93931
|
-
|
|
93932
|
-
if (bRegisterKeydown) this.UIElement.addEventListener("keydown", (e)=>{ this.OnKeyDown(e);} , true); //键盘消息
|
|
93933
|
-
if (bRegisterWheel) this.UIElement.addEventListener("wheel", (e)=>{ this.OnWheel(e); }, true); //上下滚动消息
|
|
93974
|
+
if (option) this.AddDefaultEventListener(option.Listener);
|
|
93934
93975
|
}
|
|
93935
93976
|
|
|
93936
93977
|
//创建子窗口
|
|
@@ -95826,7 +95867,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
95826
95867
|
return;
|
|
95827
95868
|
}
|
|
95828
95869
|
|
|
95829
|
-
if (this.IsOnTouch==true) //正在操作中不更新数据
|
|
95870
|
+
if (this.IsOnTouch==true || this.IsPressKeyboard==true) //正在操作中不更新数据
|
|
95830
95871
|
{
|
|
95831
95872
|
if (this.SourceData && IFrameSplitOperator.IsNonEmptyArray(this.SourceData.Data))
|
|
95832
95873
|
{
|
|
@@ -99459,7 +99500,7 @@ function KLineChartHScreenContainer(uielement)
|
|
|
99459
99500
|
this.TitlePaint.push(titlePaint);
|
|
99460
99501
|
}
|
|
99461
99502
|
|
|
99462
|
-
this.
|
|
99503
|
+
this.AddDefaultEventListener({ KeyDown:true, Wheel:false });
|
|
99463
99504
|
}
|
|
99464
99505
|
|
|
99465
99506
|
//创建子窗口
|
|
@@ -99647,7 +99688,7 @@ function MinuteChartHScreenContainer(uielement)
|
|
|
99647
99688
|
this.ChartCorssCursor.StringFormatY.Frame=this.Frame;
|
|
99648
99689
|
this.ChartCorssCursor.CallAcutionXOperator.Frame=this.Frame.SubFrame[0].Frame;
|
|
99649
99690
|
|
|
99650
|
-
this.
|
|
99691
|
+
this.AddDefaultEventListener({ KeyDown:false, Wheel:false });
|
|
99651
99692
|
}
|
|
99652
99693
|
|
|
99653
99694
|
//创建子窗口
|
|
@@ -99805,28 +99846,12 @@ function DepthChartContainer(uielement)
|
|
|
99805
99846
|
chartItem.Name="深度图"
|
|
99806
99847
|
this.ChartPaint.push(chartItem);
|
|
99807
99848
|
|
|
99808
|
-
|
|
99809
|
-
var bRegisterWheel=true;
|
|
99810
|
-
if (option)
|
|
99811
|
-
{
|
|
99812
|
-
if (option.Wheel===false)
|
|
99813
|
-
{
|
|
99814
|
-
bRegisterWheel=false;
|
|
99815
|
-
JSConsole.Chart.Log('[DepthChartContainer::Create] not register wheel event.');
|
|
99816
|
-
}
|
|
99817
|
-
}
|
|
99818
|
-
|
|
99819
|
-
if (bRegisterKeydown)
|
|
99820
|
-
{
|
|
99821
|
-
this.UIElement.addEventListener("keydown", (e)=>{ this.OnKeyDown(e); }, true); //键盘消息
|
|
99822
|
-
this.UIElement.addEventListener("keyup", (e)=>{ this.OnKeyUp(e);}, true);
|
|
99823
|
-
}
|
|
99824
|
-
if (bRegisterWheel) this.UIElement.addEventListener("wheel", (e)=>{ this.OnWheel(e); }, true); //上下滚动消息
|
|
99849
|
+
if (option) this.AddDefaultEventListener(option.Listener);
|
|
99825
99850
|
}
|
|
99826
99851
|
|
|
99827
99852
|
this.OnWheel=function(e)
|
|
99828
99853
|
{
|
|
99829
|
-
JSConsole.Chart.Log('[
|
|
99854
|
+
JSConsole.Chart.Log('[DepthChartContainer::OnWheel]',e);
|
|
99830
99855
|
var x = e.clientX-this.UIElement.getBoundingClientRect().left;
|
|
99831
99856
|
var y = e.clientY-this.UIElement.getBoundingClientRect().top;
|
|
99832
99857
|
|
|
@@ -149557,7 +149582,7 @@ function ScrollBarBGChart()
|
|
|
149557
149582
|
|
|
149558
149583
|
|
|
149559
149584
|
|
|
149560
|
-
var HQCHART_VERSION="1.1.
|
|
149585
|
+
var HQCHART_VERSION="1.1.14823";
|
|
149561
149586
|
|
|
149562
149587
|
function PrintHQChartVersion()
|
|
149563
149588
|
{
|