hqchart 1.1.15821 → 1.1.15823

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.
@@ -206,6 +206,8 @@ function JSTooltipKLineChart()
206
206
  if (!this.DivDialog) return;
207
207
  if (this.DivDialog.style.visibility!='hidden')
208
208
  this.DivDialog.style.visibility='hidden';
209
+
210
+ if (this.KLine.JSChart) this.KLine.JSChart.HideDivFrameToolbar()
209
211
  }
210
212
 
211
213
 
@@ -291,8 +293,8 @@ JSTooltipKLineChart.GetKLineOption=function()
291
293
  Type:'历史K线图', //创建图形类型
292
294
  Windows: //窗口指标
293
295
  [
294
- { Index:"MA",Change:false, Modify:false },
295
- { Index:"MACD", Close:false, Change:false, Modify:false,MaxMin:false,TitleWindow:false },
296
+ { Index:"MA", Change:false, Modify:false, TitleWindow:false },
297
+ { Index:"MACD", Close:false, Change:false, Modify:false, MaxMin:false, TitleWindow:false },
296
298
  ],
297
299
 
298
300
  //Language:'EN',
@@ -2364,6 +2364,15 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
2364
2364
  return this.JSChartContainer.GetGraphicsDescription(option);
2365
2365
  }
2366
2366
  }
2367
+
2368
+ this.HideDivFrameToolbar=function()
2369
+ {
2370
+ if(this.JSChartContainer && typeof(this.JSChartContainer.HideDivFrameToolbar)=='function')
2371
+ {
2372
+ JSConsole.Chart.Log('[JSChart:HideDivFrameToolbar] ');
2373
+ return this.JSChartContainer.HideDivFrameToolbar();
2374
+ }
2375
+ }
2367
2376
  }
2368
2377
 
2369
2378
  JSChart.LastVersion=null; //最新的版本号
@@ -13368,6 +13377,11 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
13368
13377
 
13369
13378
  return false;
13370
13379
  }
13380
+
13381
+ this.HideDivFrameToolbar=function()
13382
+ {
13383
+ this.Frame.HideDivFrameToolbar();
13384
+ }
13371
13385
  }
13372
13386
 
13373
13387
  function GetDevicePixelRatio()
@@ -17371,8 +17385,15 @@ function MinuteFrame()
17371
17385
  if (g_JSChartResource.IsDOMFrameToolbar===true) bDraw=false;
17372
17386
  if (!this.DivFrameToolbar) return;
17373
17387
 
17374
- if (!bDraw) this.HideToolbar();
17375
- else this.DivFrameToolbar.Show(this.Identify);
17388
+ if (!bDraw)
17389
+ {
17390
+ this.HideToolbar();
17391
+ }
17392
+ else
17393
+ {
17394
+ if (this.DivFrameToolbar.IsParentShow()) this.DivFrameToolbar.Show(this.Identify);
17395
+ else this.HideToolbar();
17396
+ }
17376
17397
  }
17377
17398
 
17378
17399
  //手绘,不用DOM,使用DOM太麻烦了
@@ -19629,8 +19650,15 @@ function KLineFrame()
19629
19650
  if (g_JSChartResource.IsDOMFrameToolbar===true) bDraw=false;
19630
19651
  if (!this.DivFrameToolbar) return;
19631
19652
 
19632
- if (!bDraw) this.HideToolbar();
19633
- else this.DivFrameToolbar.Show(this.Identify);
19653
+ if (!bDraw)
19654
+ {
19655
+ this.HideToolbar();
19656
+ }
19657
+ else
19658
+ {
19659
+ if (this.DivFrameToolbar.IsParentShow()) this.DivFrameToolbar.Show(this.Identify);
19660
+ else this.HideToolbar();
19661
+ }
19634
19662
  }
19635
19663
 
19636
19664
  //手绘,不用DOM,使用DOM太麻烦了
@@ -24115,6 +24143,20 @@ function HQTradeFrame()
24115
24143
  if (IFrameSplitOperator.IsNumber(obj.Right)) item.Frame.ChartBorder.MultiDayMinute.Right=obj.Right;
24116
24144
  }
24117
24145
  }
24146
+
24147
+
24148
+ this.HideDivFrameToolbar=function()
24149
+ {
24150
+ for(var i=0;i<this.SubFrame.length;++i)
24151
+ {
24152
+ var item=this.SubFrame[i];
24153
+ if (!item.Frame) continue;
24154
+ if (item.Frame.ToolbarButtonStyle==1) continue;
24155
+ if (!item.Frame.DivFrameToolbar) continue;
24156
+
24157
+ item.Frame.DivFrameToolbar.Hide();
24158
+ }
24159
+ }
24118
24160
  }
24119
24161
 
24120
24162
  //行情框架横屏
@@ -110600,7 +110642,6 @@ Path2DHelper.PtInRect=function(x, y, rect)
110600
110642
  //
110601
110643
  ///////////////////////////////////////////////////////////////////////////////////
110602
110644
 
110603
-
110604
110645
  function JSDivFrameToolbar()
110605
110646
  {
110606
110647
  this.DivToolbar=null;
@@ -110753,6 +110794,15 @@ function JSDivFrameToolbar()
110753
110794
  }
110754
110795
  }
110755
110796
 
110797
+ this.IsParentShow=function()
110798
+ {
110799
+ if (!this.DivHQChart) return false;
110800
+ const style=window.getComputedStyle(this.DivHQChart);
110801
+
110802
+ // 判断:display 不是 none,且 visibility 不是 hidden,且 opacity 不是 0
110803
+ return style.display !== 'none' && style.visibility !== 'hidden' && parseFloat(style.opacity) !== 0;
110804
+ }
110805
+
110756
110806
  this.UpdateStyle=function()
110757
110807
  {
110758
110808
  if (!this.DivToolbar) return;
@@ -6477,6 +6477,15 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
6477
6477
  return this.JSChartContainer.GetGraphicsDescription(option);
6478
6478
  }
6479
6479
  }
6480
+
6481
+ this.HideDivFrameToolbar=function()
6482
+ {
6483
+ if(this.JSChartContainer && typeof(this.JSChartContainer.HideDivFrameToolbar)=='function')
6484
+ {
6485
+ JSConsole.Chart.Log('[JSChart:HideDivFrameToolbar] ');
6486
+ return this.JSChartContainer.HideDivFrameToolbar();
6487
+ }
6488
+ }
6480
6489
  }
6481
6490
 
6482
6491
  JSChart.LastVersion=null; //最新的版本号
@@ -17481,6 +17490,11 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
17481
17490
 
17482
17491
  return false;
17483
17492
  }
17493
+
17494
+ this.HideDivFrameToolbar=function()
17495
+ {
17496
+ this.Frame.HideDivFrameToolbar();
17497
+ }
17484
17498
  }
17485
17499
 
17486
17500
  function GetDevicePixelRatio()
@@ -21484,8 +21498,15 @@ function MinuteFrame()
21484
21498
  if (g_JSChartResource.IsDOMFrameToolbar===true) bDraw=false;
21485
21499
  if (!this.DivFrameToolbar) return;
21486
21500
 
21487
- if (!bDraw) this.HideToolbar();
21488
- else this.DivFrameToolbar.Show(this.Identify);
21501
+ if (!bDraw)
21502
+ {
21503
+ this.HideToolbar();
21504
+ }
21505
+ else
21506
+ {
21507
+ if (this.DivFrameToolbar.IsParentShow()) this.DivFrameToolbar.Show(this.Identify);
21508
+ else this.HideToolbar();
21509
+ }
21489
21510
  }
21490
21511
 
21491
21512
  //手绘,不用DOM,使用DOM太麻烦了
@@ -23742,8 +23763,15 @@ function KLineFrame()
23742
23763
  if (g_JSChartResource.IsDOMFrameToolbar===true) bDraw=false;
23743
23764
  if (!this.DivFrameToolbar) return;
23744
23765
 
23745
- if (!bDraw) this.HideToolbar();
23746
- else this.DivFrameToolbar.Show(this.Identify);
23766
+ if (!bDraw)
23767
+ {
23768
+ this.HideToolbar();
23769
+ }
23770
+ else
23771
+ {
23772
+ if (this.DivFrameToolbar.IsParentShow()) this.DivFrameToolbar.Show(this.Identify);
23773
+ else this.HideToolbar();
23774
+ }
23747
23775
  }
23748
23776
 
23749
23777
  //手绘,不用DOM,使用DOM太麻烦了
@@ -28228,6 +28256,20 @@ function HQTradeFrame()
28228
28256
  if (IFrameSplitOperator.IsNumber(obj.Right)) item.Frame.ChartBorder.MultiDayMinute.Right=obj.Right;
28229
28257
  }
28230
28258
  }
28259
+
28260
+
28261
+ this.HideDivFrameToolbar=function()
28262
+ {
28263
+ for(var i=0;i<this.SubFrame.length;++i)
28264
+ {
28265
+ var item=this.SubFrame[i];
28266
+ if (!item.Frame) continue;
28267
+ if (item.Frame.ToolbarButtonStyle==1) continue;
28268
+ if (!item.Frame.DivFrameToolbar) continue;
28269
+
28270
+ item.Frame.DivFrameToolbar.Hide();
28271
+ }
28272
+ }
28231
28273
  }
28232
28274
 
28233
28275
  //行情框架横屏
@@ -114713,7 +114755,6 @@ Path2DHelper.PtInRect=function(x, y, rect)
114713
114755
  //
114714
114756
  ///////////////////////////////////////////////////////////////////////////////////
114715
114757
 
114716
-
114717
114758
  function JSDivFrameToolbar()
114718
114759
  {
114719
114760
  this.DivToolbar=null;
@@ -114866,6 +114907,15 @@ function JSDivFrameToolbar()
114866
114907
  }
114867
114908
  }
114868
114909
 
114910
+ this.IsParentShow=function()
114911
+ {
114912
+ if (!this.DivHQChart) return false;
114913
+ const style=window.getComputedStyle(this.DivHQChart);
114914
+
114915
+ // 判断:display 不是 none,且 visibility 不是 hidden,且 opacity 不是 0
114916
+ return style.display !== 'none' && style.visibility !== 'hidden' && parseFloat(style.opacity) !== 0;
114917
+ }
114918
+
114869
114919
  this.UpdateStyle=function()
114870
114920
  {
114871
114921
  if (!this.DivToolbar) return;
@@ -160881,7 +160931,7 @@ function ScrollBarBGChart()
160881
160931
 
160882
160932
 
160883
160933
 
160884
- var HQCHART_VERSION="1.1.15820";
160934
+ var HQCHART_VERSION="1.1.15822";
160885
160935
 
160886
160936
  function PrintHQChartVersion()
160887
160937
  {
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var HQCHART_VERSION="1.1.15820";
8
+ var HQCHART_VERSION="1.1.15822";
9
9
 
10
10
  function PrintHQChartVersion()
11
11
  {
@@ -6521,6 +6521,15 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
6521
6521
  return this.JSChartContainer.GetGraphicsDescription(option);
6522
6522
  }
6523
6523
  }
6524
+
6525
+ this.HideDivFrameToolbar=function()
6526
+ {
6527
+ if(this.JSChartContainer && typeof(this.JSChartContainer.HideDivFrameToolbar)=='function')
6528
+ {
6529
+ JSConsole.Chart.Log('[JSChart:HideDivFrameToolbar] ');
6530
+ return this.JSChartContainer.HideDivFrameToolbar();
6531
+ }
6532
+ }
6524
6533
  }
6525
6534
 
6526
6535
  JSChart.LastVersion=null; //最新的版本号
@@ -17525,6 +17534,11 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
17525
17534
 
17526
17535
  return false;
17527
17536
  }
17537
+
17538
+ this.HideDivFrameToolbar=function()
17539
+ {
17540
+ this.Frame.HideDivFrameToolbar();
17541
+ }
17528
17542
  }
17529
17543
 
17530
17544
  function GetDevicePixelRatio()
@@ -21528,8 +21542,15 @@ function MinuteFrame()
21528
21542
  if (g_JSChartResource.IsDOMFrameToolbar===true) bDraw=false;
21529
21543
  if (!this.DivFrameToolbar) return;
21530
21544
 
21531
- if (!bDraw) this.HideToolbar();
21532
- else this.DivFrameToolbar.Show(this.Identify);
21545
+ if (!bDraw)
21546
+ {
21547
+ this.HideToolbar();
21548
+ }
21549
+ else
21550
+ {
21551
+ if (this.DivFrameToolbar.IsParentShow()) this.DivFrameToolbar.Show(this.Identify);
21552
+ else this.HideToolbar();
21553
+ }
21533
21554
  }
21534
21555
 
21535
21556
  //手绘,不用DOM,使用DOM太麻烦了
@@ -23786,8 +23807,15 @@ function KLineFrame()
23786
23807
  if (g_JSChartResource.IsDOMFrameToolbar===true) bDraw=false;
23787
23808
  if (!this.DivFrameToolbar) return;
23788
23809
 
23789
- if (!bDraw) this.HideToolbar();
23790
- else this.DivFrameToolbar.Show(this.Identify);
23810
+ if (!bDraw)
23811
+ {
23812
+ this.HideToolbar();
23813
+ }
23814
+ else
23815
+ {
23816
+ if (this.DivFrameToolbar.IsParentShow()) this.DivFrameToolbar.Show(this.Identify);
23817
+ else this.HideToolbar();
23818
+ }
23791
23819
  }
23792
23820
 
23793
23821
  //手绘,不用DOM,使用DOM太麻烦了
@@ -28272,6 +28300,20 @@ function HQTradeFrame()
28272
28300
  if (IFrameSplitOperator.IsNumber(obj.Right)) item.Frame.ChartBorder.MultiDayMinute.Right=obj.Right;
28273
28301
  }
28274
28302
  }
28303
+
28304
+
28305
+ this.HideDivFrameToolbar=function()
28306
+ {
28307
+ for(var i=0;i<this.SubFrame.length;++i)
28308
+ {
28309
+ var item=this.SubFrame[i];
28310
+ if (!item.Frame) continue;
28311
+ if (item.Frame.ToolbarButtonStyle==1) continue;
28312
+ if (!item.Frame.DivFrameToolbar) continue;
28313
+
28314
+ item.Frame.DivFrameToolbar.Hide();
28315
+ }
28316
+ }
28275
28317
  }
28276
28318
 
28277
28319
  //行情框架横屏
@@ -114757,7 +114799,6 @@ Path2DHelper.PtInRect=function(x, y, rect)
114757
114799
  //
114758
114800
  ///////////////////////////////////////////////////////////////////////////////////
114759
114801
 
114760
-
114761
114802
  function JSDivFrameToolbar()
114762
114803
  {
114763
114804
  this.DivToolbar=null;
@@ -114910,6 +114951,15 @@ function JSDivFrameToolbar()
114910
114951
  }
114911
114952
  }
114912
114953
 
114954
+ this.IsParentShow=function()
114955
+ {
114956
+ if (!this.DivHQChart) return false;
114957
+ const style=window.getComputedStyle(this.DivHQChart);
114958
+
114959
+ // 判断:display 不是 none,且 visibility 不是 hidden,且 opacity 不是 0
114960
+ return style.display !== 'none' && style.visibility !== 'hidden' && parseFloat(style.opacity) !== 0;
114961
+ }
114962
+
114913
114963
  this.UpdateStyle=function()
114914
114964
  {
114915
114965
  if (!this.DivToolbar) return;
@@ -167228,6 +167278,8 @@ function JSTooltipKLineChart()
167228
167278
  if (!this.DivDialog) return;
167229
167279
  if (this.DivDialog.style.visibility!='hidden')
167230
167280
  this.DivDialog.style.visibility='hidden';
167281
+
167282
+ if (this.KLine.JSChart) this.KLine.JSChart.HideDivFrameToolbar()
167231
167283
  }
167232
167284
 
167233
167285
 
@@ -167313,8 +167365,8 @@ JSTooltipKLineChart.GetKLineOption=function()
167313
167365
  Type:'历史K线图', //创建图形类型
167314
167366
  Windows: //窗口指标
167315
167367
  [
167316
- { Index:"MA",Change:false, Modify:false },
167317
- { Index:"MACD", Close:false, Change:false, Modify:false,MaxMin:false,TitleWindow:false },
167368
+ { Index:"MA", Change:false, Modify:false, TitleWindow:false },
167369
+ { Index:"MACD", Close:false, Change:false, Modify:false, MaxMin:false, TitleWindow:false },
167318
167370
  ],
167319
167371
 
167320
167372
  //Language:'EN',
@@ -177327,7 +177379,7 @@ function ChartScrollText()
177327
177379
 
177328
177380
 
177329
177381
 
177330
- var HQCHART_VERSION="1.1.15820";
177382
+ var HQCHART_VERSION="1.1.15822";
177331
177383
 
177332
177384
  function PrintHQChartVersion()
177333
177385
  {