hqchart 1.1.14829 → 1.1.14831

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.14829",
3
+ "version": "1.1.14831",
4
4
  "description": "HQChart - H5, 微信小程序 沪深/港股/数字货币/期货/美股 K线图(kline),走势图,缩放,拖拽,十字光标,画图工具,截图,筹码图. 分析家语法,通达信语法,(麦语法),第3方数据对接",
5
5
  "main": "lib/main.js",
6
6
  "scripts": {
@@ -3331,13 +3331,13 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
3331
3331
 
3332
3332
  if (bRegisterKeydown)
3333
3333
  {
3334
- this.AddEventListener(this.UIElement,"keydown", this.OnKeyDown, true);
3335
- this.AddEventListener(this.UIElement,"keyup", this.OnKeyUp, true);
3334
+ this.AddEventListener(this.UIElement,"keydown", (e)=>{ this.OnKeyDown(e); }, true);
3335
+ this.AddEventListener(this.UIElement,"keyup", (e)=>{ this.OnKeyUp(e); }, true);
3336
3336
  }
3337
3337
 
3338
3338
  if (bRegisterWheel)
3339
3339
  {
3340
- this.AddEventListener(this.UIElement,"wheel", this.OnWheel, true);
3340
+ this.AddEventListener(this.UIElement,"wheel", (e)=>{ this.OnWheel(e); }, true);
3341
3341
  }
3342
3342
 
3343
3343
  JSConsole.Chart.Log(`[JSChartContainer::AddDefaultEventListener] [keydown,keyup]=${bRegisterKeydown}, [wheel]=${bRegisterWheel}`);
@@ -90847,6 +90847,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
90847
90847
  this.ChangeSymbol=function(symbol,option)
90848
90848
  {
90849
90849
  this.StopDisplayLatest();
90850
+ this.ClearGlobalOption();
90850
90851
  this.CancelAutoUpdate();
90851
90852
  this.AutoUpdateEvent(false, "MinuteChartContainer::ChangeSymbol");
90852
90853
  this.Symbol=symbol;
@@ -90989,6 +90990,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
90989
90990
  if (count<0) return;
90990
90991
 
90991
90992
  this.StopDisplayLatest();
90993
+ this.ClearGlobalOption();
90992
90994
  this.CancelAutoUpdate();
90993
90995
  this.AutoUpdateEvent(false, "MinuteChartContainer::ChangeDayCount");
90994
90996
  this.DayCount=count;
@@ -7427,13 +7427,13 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
7427
7427
 
7428
7428
  if (bRegisterKeydown)
7429
7429
  {
7430
- this.AddEventListener(this.UIElement,"keydown", this.OnKeyDown, true);
7431
- this.AddEventListener(this.UIElement,"keyup", this.OnKeyUp, true);
7430
+ this.AddEventListener(this.UIElement,"keydown", (e)=>{ this.OnKeyDown(e); }, true);
7431
+ this.AddEventListener(this.UIElement,"keyup", (e)=>{ this.OnKeyUp(e); }, true);
7432
7432
  }
7433
7433
 
7434
7434
  if (bRegisterWheel)
7435
7435
  {
7436
- this.AddEventListener(this.UIElement,"wheel", this.OnWheel, true);
7436
+ this.AddEventListener(this.UIElement,"wheel", (e)=>{ this.OnWheel(e); }, true);
7437
7437
  }
7438
7438
 
7439
7439
  JSConsole.Chart.Log(`[JSChartContainer::AddDefaultEventListener] [keydown,keyup]=${bRegisterKeydown}, [wheel]=${bRegisterWheel}`);
@@ -94943,6 +94943,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
94943
94943
  this.ChangeSymbol=function(symbol,option)
94944
94944
  {
94945
94945
  this.StopDisplayLatest();
94946
+ this.ClearGlobalOption();
94946
94947
  this.CancelAutoUpdate();
94947
94948
  this.AutoUpdateEvent(false, "MinuteChartContainer::ChangeSymbol");
94948
94949
  this.Symbol=symbol;
@@ -95085,6 +95086,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
95085
95086
  if (count<0) return;
95086
95087
 
95087
95088
  this.StopDisplayLatest();
95089
+ this.ClearGlobalOption();
95088
95090
  this.CancelAutoUpdate();
95089
95091
  this.AutoUpdateEvent(false, "MinuteChartContainer::ChangeDayCount");
95090
95092
  this.DayCount=count;
@@ -149772,7 +149774,7 @@ function ScrollBarBGChart()
149772
149774
 
149773
149775
 
149774
149776
 
149775
- var HQCHART_VERSION="1.1.14828";
149777
+ var HQCHART_VERSION="1.1.14830";
149776
149778
 
149777
149779
  function PrintHQChartVersion()
149778
149780
  {
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var HQCHART_VERSION="1.1.14828";
8
+ var HQCHART_VERSION="1.1.14830";
9
9
 
10
10
  function PrintHQChartVersion()
11
11
  {
@@ -7471,13 +7471,13 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
7471
7471
 
7472
7472
  if (bRegisterKeydown)
7473
7473
  {
7474
- this.AddEventListener(this.UIElement,"keydown", this.OnKeyDown, true);
7475
- this.AddEventListener(this.UIElement,"keyup", this.OnKeyUp, true);
7474
+ this.AddEventListener(this.UIElement,"keydown", (e)=>{ this.OnKeyDown(e); }, true);
7475
+ this.AddEventListener(this.UIElement,"keyup", (e)=>{ this.OnKeyUp(e); }, true);
7476
7476
  }
7477
7477
 
7478
7478
  if (bRegisterWheel)
7479
7479
  {
7480
- this.AddEventListener(this.UIElement,"wheel", this.OnWheel, true);
7480
+ this.AddEventListener(this.UIElement,"wheel", (e)=>{ this.OnWheel(e); }, true);
7481
7481
  }
7482
7482
 
7483
7483
  JSConsole.Chart.Log(`[JSChartContainer::AddDefaultEventListener] [keydown,keyup]=${bRegisterKeydown}, [wheel]=${bRegisterWheel}`);
@@ -94987,6 +94987,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
94987
94987
  this.ChangeSymbol=function(symbol,option)
94988
94988
  {
94989
94989
  this.StopDisplayLatest();
94990
+ this.ClearGlobalOption();
94990
94991
  this.CancelAutoUpdate();
94991
94992
  this.AutoUpdateEvent(false, "MinuteChartContainer::ChangeSymbol");
94992
94993
  this.Symbol=symbol;
@@ -95129,6 +95130,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
95129
95130
  if (count<0) return;
95130
95131
 
95131
95132
  this.StopDisplayLatest();
95133
+ this.ClearGlobalOption();
95132
95134
  this.CancelAutoUpdate();
95133
95135
  this.AutoUpdateEvent(false, "MinuteChartContainer::ChangeDayCount");
95134
95136
  this.DayCount=count;
@@ -160795,7 +160797,7 @@ function HQChartScriptWorker()
160795
160797
 
160796
160798
 
160797
160799
 
160798
- var HQCHART_VERSION="1.1.14828";
160800
+ var HQCHART_VERSION="1.1.14830";
160799
160801
 
160800
160802
  function PrintHQChartVersion()
160801
160803
  {