hqchart 1.1.15198 → 1.1.15215

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.
@@ -4616,6 +4616,17 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
4616
4616
  if (IFrameSplitOperator.IsBool(item.Enable)) chart.FastSlideConfig.Enable=item.Enable;
4617
4617
  }
4618
4618
 
4619
+ if (option.DataMove)
4620
+ {
4621
+ var item=option.DataMove;
4622
+
4623
+ var subItem=item.Touch;
4624
+ if (subItem && IFrameSplitOperator.IsBool(subItem.EnableLR)) chart.DataMoveConfig.Touch.EnableLR=subItem.EnableLR;
4625
+
4626
+ var subItem=item.Mouse;
4627
+ if (subItem && IFrameSplitOperator.IsBool(subItem.EnableLR)) chart.DataMoveConfig.Mouse.EnableLR=subItem.EnableLR;
4628
+ }
4629
+
4619
4630
  if (chart.ClassName=="KLineChartContainer")
4620
4631
  {
4621
4632
  if (!option.DragSelectRect)
@@ -7570,8 +7581,9 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
7570
7581
  //SecondKeyID 1=shiftKey 2=ctrlKey 3=altKey
7571
7582
  this.AryHotKey=[]; //热键 { KeyID:87, SecondKeyID:1, CMD:JSCHART_MENU_ID.CMD_FULLSCREEN_SUMMARY_ID, Args:null, Description:"Alt+W 全屏区间统计" },
7572
7583
 
7573
- this.FastSlideConfig={ MinDistance:500, MinSpeed:3, MaxTime:250, Enable:false }; //快速滑动配置 MinDistance=最小的距离 MinSpeed=最小速度 MaxTime=最大间隔时间(ms)
7574
- this.KeyboardMove={ Timer:null, Delay:100 , PressTime:500, Enable:false, Event:null }; //键盘左右移动 PressTime=长按时间
7584
+ this.FastSlideConfig={ MinDistance:500, MinSpeed:3, MaxTime:250, Enable:false }; //快速滑动配置 MinDistance=最小的距离 MinSpeed=最小速度 MaxTime=最大间隔时间(ms)
7585
+ this.KeyboardMove={ Timer:null, Delay:100 , PressTime:500, Enable:false, Event:null }; //键盘左右移动 PressTime=长按时间
7586
+ this.DataMoveConfig={ Touch:{ EnableLR: true}, Mouse:{ EnableLR:true } }; //数据移动配置
7575
7587
 
7576
7588
  this.MapEventListenerCache=new Map(); //addEventListener 监听事件 key=type:"keydown|keyup ....", value:{ Callback:, Option: }
7577
7589
 
@@ -9072,7 +9084,8 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
9072
9084
  }
9073
9085
  else if (this.DragMode==1 || isDragSelectRect || isDragSubSelectRect) //数据上下左右拖拽 区间选择框左右拖动
9074
9086
  {
9075
- this.OnDragMode_One({X:moveSetp, Y:moveSetpY}, e);
9087
+ if (this.DataMoveConfig.Mouse.EnableLR)
9088
+ this.OnDragMode_One({X:moveSetp, Y:moveSetpY}, e);
9076
9089
  }
9077
9090
  }
9078
9091
 
@@ -10251,18 +10264,21 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
10251
10264
  var oneStepWidth=this.GetMoveOneStepWidth();
10252
10265
  if (moveSetp<oneStepWidth) return;
10253
10266
 
10254
- if(this.DataMove(moveSetp,isLeft))
10267
+ if (this.DataMoveConfig.Touch.EnableLR)
10255
10268
  {
10256
- this.UpdataDataoffset();
10257
- this.UpdatePointByCursorIndex();
10258
- this.UpdateFrameMaxMin();
10259
- this.ResetFrameXYSplit();
10260
- this.Draw();
10261
- this.OnKLinePageChange("OnTouchMove");
10262
- }
10263
- else
10264
- {
10265
- if (this.DragDownloadData) this.DragDownloadData();
10269
+ if(this.DataMove(moveSetp,isLeft))
10270
+ {
10271
+ this.UpdataDataoffset();
10272
+ this.UpdatePointByCursorIndex();
10273
+ this.UpdateFrameMaxMin();
10274
+ this.ResetFrameXYSplit();
10275
+ this.Draw();
10276
+ this.OnKLinePageChange("OnTouchMove");
10277
+ }
10278
+ else
10279
+ {
10280
+ if (this.DragDownloadData) this.DragDownloadData();
10281
+ }
10266
10282
  }
10267
10283
 
10268
10284
  drag.LastMove.X=touches[0].clientX;
@@ -14638,6 +14654,12 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
14638
14654
  if (IFrameSplitOperator.IsBool(frameItem.IsShowIndexTitle)) frame.IsShowIndexTitle=frameItem.IsShowIndexTitle;
14639
14655
  if (frameItem.ClientBGColor) frame.ClientBGColor=frameItem.ClientBGColor;
14640
14656
 
14657
+ if (frameItem.Toolbar)
14658
+ {
14659
+ var subItem=frameItem.Toolbar.Margin;
14660
+ if (subItem && IFrameSplitOperator.IsNumber(subItem.Right)) frame.ToolbarConfig.Margin.Right=subItem.Right;
14661
+ }
14662
+
14641
14663
  //分时图属性
14642
14664
  if (IFrameSplitOperator.IsBool(frameItem.CloseBeforeButton)) frameItem.IsShowCloseButton=frameItem.CloseBeforeButton;
14643
14665
  if (frame.YSplitOperator.RightTextConfig) //主图右侧坐标设置
@@ -17964,6 +17986,8 @@ function AverageWidthFrame()
17964
17986
  this.ExportDataButton=CloneData(g_JSChartResource.Buttons.ExportData);
17965
17987
  this.AddIndexWindowButton=CloneData(g_JSChartResource.Buttons.AddIndexWindow);
17966
17988
  this.IndexHelpButton=CloneData(g_JSChartResource.Buttons.IndexHelp);
17989
+
17990
+ this.ToolbarConfig={ Margin:{ Right:3 } },
17967
17991
 
17968
17992
  this.ButtonTooltip=CloneData(g_JSChartResource.Buttons.Tooltip);
17969
17993
 
@@ -18033,7 +18057,7 @@ function AverageWidthFrame()
18033
18057
  var border=this.GetBorder();
18034
18058
  if (this.IsHScreen)
18035
18059
  {
18036
- var y=border.Bottom-3;
18060
+ var y=border.Bottom-this.ToolbarConfig.Margin.Right;
18037
18061
  var x=border.RightTitle+this.ChartBorder.TitleHeight/2;
18038
18062
 
18039
18063
  this.ToolbarCacheSize={ RToolbar:{ Right:y, Left:y }}; //相当于额 Top, Bottom
@@ -18072,7 +18096,7 @@ function AverageWidthFrame()
18072
18096
  }
18073
18097
  else
18074
18098
  {
18075
- var right=border.RightEx-3;
18099
+ var right=border.RightEx-this.ToolbarConfig.Margin.Right;
18076
18100
  var left=border.Left;
18077
18101
  var yButton=border.Top+this.ChartBorder.TitleHeight/2;
18078
18102
 
@@ -70288,7 +70312,6 @@ IChartDrawPicture.ColorToRGBA=function(color,opacity)
70288
70312
  var reg = /^(rgb|RGB)/;
70289
70313
  if (reg.test(color))
70290
70314
  {
70291
- var strHex = "#";
70292
70315
  var aryColor = color.replace(/(?:\(|\)|rgb|RGB)*/g, "").split(","); // 把RGB的3个数值变成数组
70293
70316
  var r = parseInt(aryColor[0]);
70294
70317
  var g = parseInt(aryColor[1]);
@@ -109763,6 +109786,7 @@ function JSDivFrameToolbar()
109763
109786
  var pixelTatio = GetDevicePixelRatio();
109764
109787
  var frame=this.HQChart.Frame.SubFrame[this.FrameID].Frame;
109765
109788
  var border=frame.GetBorder();
109789
+ var rtClient=this.HQChart.UIElement.getBoundingClientRect();
109766
109790
 
109767
109791
  var top=border.Top/pixelTatio;
109768
109792
  var right=border.RightEx/pixelTatio;
@@ -109795,10 +109819,13 @@ function JSDivFrameToolbar()
109795
109819
  if (!this.HQChart.JSToolbarTooltip) return;
109796
109820
  if (!item.Div) return;
109797
109821
 
109822
+
109798
109823
  var rtButton=item.Div.getBoundingClientRect();
109799
109824
  var rtHQChart=this.DivHQChart.getBoundingClientRect();
109825
+ var left=rtButton.left;
109826
+ var top=rtButton.bottom+2;
109800
109827
  var left=rtButton.left-rtHQChart.left;
109801
- var top=rtButton.bottom-rtHQChart.top+2;
109828
+ var top=this.DivToolbar.offsetHeight+this.DivToolbar.offsetTop;
109802
109829
  this.HQChart.JSToolbarTooltip.Show(top, left, { Text:item.Tooltip.Text });
109803
109830
  }
109804
109831
  }
@@ -157705,10 +157732,11 @@ function JSPopMenu()
157705
157732
  if (this.HQChart) this.HQChart.ClearRestoreFocusTimer();
157706
157733
 
157707
157734
  //菜单在当前屏幕无法显示需要调整
157735
+ var scrollPos=GetScrollPosition();
157708
157736
  var menuHeight=this.RootDOM.offsetHeight;
157709
157737
  var yMenuBottom=y+menuHeight;
157710
- var yBottom=window.innerHeight-15;
157711
- if (yMenuBottom>yBottom) y=yBottom-menuHeight;
157738
+ var yBottom=window.innerHeight-15+scrollPos.Top;
157739
+ if (yMenuBottom>yBottom) y=(yBottom-menuHeight)
157712
157740
 
157713
157741
  var menuWidth=this.RootDOM.offsetWidth;
157714
157742
  var yMenuRight=x+menuWidth;
@@ -157785,10 +157813,11 @@ function JSPopMenu()
157785
157813
  else
157786
157814
  {
157787
157815
  var rtParent=trDom.getBoundingClientRect();
157788
- var x=rtParent.right, y=rtParent.top;
157816
+ var scrollPos=GetScrollPosition();
157817
+ var x=rtParent.right, y=rtParent.top+scrollPos.Top;
157789
157818
 
157790
157819
  //菜单在当前屏幕无法显示需要调整
157791
- var yBottom=window.innerHeight-15;
157820
+ var yBottom=window.innerHeight-15+scrollPos.Top;
157792
157821
  var yRight=window.innerWidth-15;
157793
157822
  var menuHeight=subMenu.offsetHeight;
157794
157823
  var menuWidth=subMenu.offsetWidth;
@@ -158536,17 +158565,17 @@ function JSDialogModifyDraw()
158536
158565
 
158537
158566
  this.AryButton=
158538
158567
  [
158539
- { Title:"修改图形颜色", ClassName: 'hqchart_drawtool icon-huabi', Type:2, Data:{ ID:JS_DRAWTOOL_MENU_ID.CMD_CHANGE_LINE_COLOR_ID }},
158540
- { Title:"修改字体颜色", ClassName: 'hqchart_drawtool icon-zitiyanse', Type:2, Data:{ ID:JS_DRAWTOOL_MENU_ID.CMD_CHANGE_FONT_COLOR_ID }},
158541
- { Title:"修改背景颜色", ClassName: 'hqchart_drawtool icon-zitibeijingse', Type:2, Data:{ ID:JS_DRAWTOOL_MENU_ID.CMD_CHANGE_BG_COLOR_ID }},
158542
- { Title:"修改边框颜色", ClassName: 'hqchart_drawtool icon-biankuang', Type:2, Data:{ ID:JS_DRAWTOOL_MENU_ID.CMD_CHANGE_BORDER_COLOR_ID }},
158543
- { Title:"字体放大", ClassName: 'hqchart_drawtool icon-zoomin', Type:2, Data:{ ID:JS_DRAWTOOL_MENU_ID.CMD_ZOOM_FONT_ID }},
158544
- { Title:"字体缩小", ClassName: 'hqchart_drawtool icon-zoomout', Type:2, Data:{ ID:JS_DRAWTOOL_MENU_ID.CMD_ZOOM_OUT_FONT_ID }},
158545
- { Title:"随机生成文字内容", ClassName: 'hqchart_drawtool icon-bianji', Type:2, Data:{ ID:JS_DRAWTOOL_MENU_ID.CMD_MODIFY_TEXT_ID }},
158546
- { Title:"高级设置", ClassName: 'hqchart_drawtool icon-setting', Type:2, Data:{ ID:JS_DRAWTOOL_MENU_ID.CMD_ADVANCED_SETTING_ID }},
158568
+ { Title:"修改图形颜色", ClassName: 'hqchart_drawtool icon-Vector UMyChart_Draw_Modify_Dialog_Button_Color_Span', Type:2, Data:{ ID:JS_DRAWTOOL_MENU_ID.CMD_CHANGE_LINE_COLOR_ID }},
158569
+ { Title:"修改字体颜色", ClassName: 'hqchart_drawtool icon-zitiyanse1 UMyChart_Draw_Modify_Dialog_Button_Color_Span ', Type:2, Data:{ ID:JS_DRAWTOOL_MENU_ID.CMD_CHANGE_FONT_COLOR_ID }},
158570
+ { Title:"修改背景颜色", ClassName: 'hqchart_drawtool icon-zitibeijingse UMyChart_Draw_Modify_Dialog_Button_Color_Span', Type:2, Data:{ ID:JS_DRAWTOOL_MENU_ID.CMD_CHANGE_BG_COLOR_ID }},
158571
+ { Title:"修改边框颜色", ClassName: 'hqchart_drawtool icon-biankuang UMyChart_Draw_Modify_Dialog_Button_Color_Span', Type:2, Data:{ ID:JS_DRAWTOOL_MENU_ID.CMD_CHANGE_BORDER_COLOR_ID }},
158572
+ { Title:"字体放大", ClassName: 'hqchart_drawtool icon-zoomin UMyChart_Draw_Modify_Dialog_Button_Span', Type:2, Data:{ ID:JS_DRAWTOOL_MENU_ID.CMD_ZOOM_FONT_ID }},
158573
+ { Title:"字体缩小", ClassName: 'hqchart_drawtool icon-zoomout UMyChart_Draw_Modify_Dialog_Button_Span', Type:2, Data:{ ID:JS_DRAWTOOL_MENU_ID.CMD_ZOOM_OUT_FONT_ID }},
158574
+ { Title:"随机生成文字内容", ClassName: 'hqchart_drawtool icon-bianji UMyChart_Draw_Modify_Dialog_Button_Span', Type:2, Data:{ ID:JS_DRAWTOOL_MENU_ID.CMD_MODIFY_TEXT_ID }},
158575
+ { Title:"高级设置", ClassName: 'hqchart_drawtool icon-setting UMyChart_Draw_Modify_Dialog_Button_Span', Type:2, Data:{ ID:JS_DRAWTOOL_MENU_ID.CMD_ADVANCED_SETTING_ID }},
158547
158576
 
158548
158577
  { Title:"上锁", ClassName: 'hqchart_drawtool icon-lock', Type:2, Data:{ ID:JS_DRAWTOOL_MENU_ID.CMD_LOCK_DRAW_CHART_ID }},
158549
- { Title:"删除图形", ClassName: 'hqchart_drawtool icon-recycle_bin', Type:2, Data:{ ID:JS_DRAWTOOL_MENU_ID.CMD_DELETE_DRAW_CHART_ID }},
158578
+ { Title:"删除图形", ClassName: 'hqchart_drawtool icon-recycle_bin UMyChart_Draw_Modify_Dialog_Button_Span', Type:2, Data:{ ID:JS_DRAWTOOL_MENU_ID.CMD_DELETE_DRAW_CHART_ID }},
158550
158579
  ];
158551
158580
 
158552
158581
  this.RestoreFocusDelay=800;
@@ -158602,10 +158631,9 @@ function JSDialogModifyDraw()
158602
158631
  spanTooltip.innerText=item.Title;
158603
158632
  divItem.appendChild(spanTooltip);
158604
158633
 
158605
-
158606
158634
  var spanDom=document.createElement("span");
158607
158635
  spanDom.className=item.ClassName;
158608
- spanDom.classList.add("UMyChart_Draw_Modify_Dialog_Button_Span");
158636
+ //spanDom.classList.add("UMyChart_Draw_Modify_Dialog_Button_Span");
158609
158637
  divItem.appendChild(spanDom);
158610
158638
 
158611
158639
 
@@ -158619,23 +158647,31 @@ function JSDialogModifyDraw()
158619
158647
  {
158620
158648
  case JS_DRAWTOOL_MENU_ID.CMD_CHANGE_LINE_COLOR_ID:
158621
158649
  this.ColorButton=data;
158650
+ var divColorBar=this.CreateColorBar(data);
158651
+ divItem.appendChild(divColorBar);
158622
158652
  var inputColor=this.CreateInputColor(data);
158623
158653
  divItem.appendChild(inputColor);
158624
158654
  break;
158625
158655
  case JS_DRAWTOOL_MENU_ID.CMD_CHANGE_BG_COLOR_ID:
158626
158656
  this.BGColorButton=data;
158657
+ var divColorBar=this.CreateColorBar(data);
158658
+ divItem.appendChild(divColorBar);
158627
158659
  var inputColor=this.CreateInputColor(data);
158628
158660
  divItem.appendChild(inputColor);
158629
158661
  divItem.style.display="none";
158630
158662
  break;
158631
158663
  case JS_DRAWTOOL_MENU_ID.CMD_CHANGE_FONT_COLOR_ID:
158632
158664
  this.FontColorButton=data;
158665
+ var divColorBar=this.CreateColorBar(data);
158666
+ divItem.appendChild(divColorBar);
158633
158667
  var inputColor=this.CreateInputColor(data);
158634
158668
  divItem.appendChild(inputColor);
158635
158669
  divItem.style.display="none";
158636
158670
  break;
158637
158671
  case JS_DRAWTOOL_MENU_ID.CMD_CHANGE_BORDER_COLOR_ID:
158638
158672
  this.BorderColorButton=data;
158673
+ var divColorBar=this.CreateColorBar(data);
158674
+ divItem.appendChild(divColorBar);
158639
158675
  var inputColor=this.CreateInputColor(data);
158640
158676
  divItem.appendChild(inputColor);
158641
158677
  divItem.style.display="none";
@@ -158675,6 +158711,16 @@ function JSDialogModifyDraw()
158675
158711
  return inputColor;
158676
158712
  }
158677
158713
 
158714
+ //颜色块
158715
+ this.CreateColorBar=function(data)
158716
+ {
158717
+ var divColor=document.createElement("div");
158718
+ divColor.className="UMyChart_Draw_Modify_Dialog_Button_ColorBar_Div";
158719
+ data.DivColorBar=divColor;
158720
+
158721
+ return divColor;
158722
+ }
158723
+
158678
158724
  this.OnClickButton=function(e, data)
158679
158725
  {
158680
158726
  console.log('[JSDialogModifyDraw::OnClickButton] ', data);
@@ -158783,7 +158829,7 @@ function JSDialogModifyDraw()
158783
158829
  if (data.Item.Data.ID==JS_DRAWTOOL_MENU_ID.CMD_CHANGE_LINE_COLOR_ID)
158784
158830
  {
158785
158831
  this.ChartPicture.LineColor=color;
158786
- if (this.ColorButton) this.ColorButton.Span.style['color']=color;
158832
+ if (this.ColorButton) this.ColorButton.DivColorBar.style['background-color']=color;
158787
158833
  if (this.HQChart.ChartDrawStorage) this.HQChart.ChartDrawStorage.SaveDrawData(this.ChartPicture); //保存下
158788
158834
 
158789
158835
  this.HQChart.Draw();
@@ -158793,7 +158839,7 @@ function JSDialogModifyDraw()
158793
158839
  if (this.ChartPicture.ClassName=="ChartDrawNote") this.ChartPicture.NoteBorderColor=color;
158794
158840
  else this.ChartPicture.BorderColor=color;
158795
158841
 
158796
- if (this.BorderColorButton) this.BorderColorButton.Span.style['color']=color;
158842
+ if (this.BorderColorButton) this.BorderColorButton.DivColorBar.style['background-color']=color;
158797
158843
  if (this.HQChart.ChartDrawStorage) this.HQChart.ChartDrawStorage.SaveDrawData(this.ChartPicture); //保存下
158798
158844
 
158799
158845
  this.HQChart.Draw();
@@ -158803,7 +158849,7 @@ function JSDialogModifyDraw()
158803
158849
  if (this.ChartPicture.ClassName=="ChartDrawNote") this.ChartPicture.NoteTextColor=color;
158804
158850
  else this.ChartPicture.TextColor=color;
158805
158851
 
158806
- if (this.FontColorButton) this.FontColorButton.Span.style['color']=color;
158852
+ if (this.FontColorButton) this.FontColorButton.DivColorBar.style['background-color']=color;
158807
158853
  if (this.HQChart.ChartDrawStorage) this.HQChart.ChartDrawStorage.SaveDrawData(this.ChartPicture); //保存下
158808
158854
 
158809
158855
  this.HQChart.Draw();
@@ -158814,7 +158860,7 @@ function JSDialogModifyDraw()
158814
158860
  if (this.ChartPicture.ClassName=="ChartDrawNote") this.ChartPicture.NoteBGColor=color;
158815
158861
  else this.ChartPicture.BGColor=color;
158816
158862
 
158817
- if (this.BGColorButton) this.BGColorButton.Span.style['color']=color;
158863
+ if (this.BGColorButton) this.BGColorButton.DivColorBar.style['background-color']=color;
158818
158864
  if (this.HQChart.ChartDrawStorage) this.HQChart.ChartDrawStorage.SaveDrawData(this.ChartPicture); //保存下
158819
158865
 
158820
158866
  this.HQChart.Draw();
@@ -159016,7 +159062,7 @@ function JSDialogModifyDraw()
159016
159062
  this.ShowButton(item.Div, bShowLineColor?"inline":"none");
159017
159063
  if (bShowLineColor)
159018
159064
  {
159019
- item.Span.style['color']=chart.LineColor;
159065
+ item.DivColorBar.style['background-color']=chart.LineColor;
159020
159066
  }
159021
159067
  }
159022
159068
 
@@ -159026,7 +159072,7 @@ function JSDialogModifyDraw()
159026
159072
  this.ShowButton(item.Div, bShowBGColor?"inline":"none");
159027
159073
  if (bShowBGColor)
159028
159074
  {
159029
- item.Span.style['color']=bgColor;
159075
+ item.DivColorBar.style['background-color']=bgColor;
159030
159076
  }
159031
159077
  }
159032
159078
 
@@ -159036,7 +159082,7 @@ function JSDialogModifyDraw()
159036
159082
  this.ShowButton(item.Div, bShowFontColor?"inline":"none");
159037
159083
  if (bShowFontColor)
159038
159084
  {
159039
- item.Span.style['color']=fontColor;
159085
+ item.DivColorBar.style['background-color']=fontColor;
159040
159086
  }
159041
159087
  }
159042
159088
 
@@ -159046,7 +159092,7 @@ function JSDialogModifyDraw()
159046
159092
  this.ShowButton(item.Div, bShowBorderColor?"inline":"none");
159047
159093
  if (bShowBorderColor)
159048
159094
  {
159049
- item.Span.style['color']=borderColor;
159095
+ item.DivColorBar.style['background-color']=borderColor;
159050
159096
  }
159051
159097
  }
159052
159098
 
@@ -159345,15 +159391,15 @@ function JSPopMinuteChart()
159345
159391
  if (this.Minute.JSChart) this.Minute.JSChart.OnSize();
159346
159392
  }
159347
159393
 
159348
-
159394
+ var scrollPos=GetScrollPosition();
159349
159395
 
159350
159396
  //超出窗口调整位置
159351
159397
  var height=this.DivDialog.offsetHeight;
159352
159398
  var width=this.DivDialog.offsetWidth;
159353
159399
  var xRight=window.innerWidth-5;
159354
- var ybottom=window.innerHeight-5;
159400
+ var ybottom=window.innerHeight-5+scrollPos.Top;
159355
159401
  if (x+width>xRight) x=xRight-width;
159356
- if (y+height>ybottom) y=ybottom-height;
159402
+ if (y+height>ybottom) y=(ybottom-height);
159357
159403
 
159358
159404
  this.DivDialog.style.visibility='visible';
159359
159405
  this.DivDialog.style.top = y + "px";
@@ -159392,6 +159438,7 @@ function JSPopMinuteChart()
159392
159438
  {
159393
159439
  if (!this.DragTitle) return;
159394
159440
 
159441
+ var scrollPos=GetScrollPosition();
159395
159442
  var left = e.clientX - this.DragTitle.YOffset;
159396
159443
  var top = e.clientY - this.DragTitle.XOffset;
159397
159444
 
@@ -159399,7 +159446,7 @@ function JSPopMinuteChart()
159399
159446
  var bottom=top+ this.DivDialog.offsetHeight;
159400
159447
 
159401
159448
  if ((right+5)>=window.innerWidth) left=window.innerWidth-this.DivDialog.offsetWidth-5;
159402
- if ((bottom+5)>=window.innerHeight) top=window.innerHeight-this.DivDialog.offsetHeight-5;
159449
+ if ((bottom+5)>=window.innerHeight+scrollPos.Top) top=(window.innerHeight-this.DivDialog.offsetHeight-5)+scrollPos.Top;
159403
159450
 
159404
159451
  this.DivDialog.style.left = left + 'px';
159405
159452
  this.DivDialog.style.top = top + 'px';
@@ -161482,6 +161529,7 @@ function JSDialogTooltip()
161482
161529
  {
161483
161530
  if (!this.DragTitle) return;
161484
161531
 
161532
+ var scrollPos=GetScrollPosition();
161485
161533
  var left = e.clientX - this.DragTitle.YOffset;
161486
161534
  var top = e.clientY - this.DragTitle.XOffset;
161487
161535
 
@@ -161489,7 +161537,7 @@ function JSDialogTooltip()
161489
161537
  var bottom=top+ this.DivDialog.offsetHeight;
161490
161538
 
161491
161539
  if ((right+5)>=window.innerWidth) left=window.innerWidth-this.DivDialog.offsetWidth-5;
161492
- if ((bottom+5)>=window.innerHeight) top=window.innerHeight-this.DivDialog.offsetHeight-5;
161540
+ if ((bottom+5)>=(window.innerHeight+scrollPos.Top)) top=(window.innerHeight-this.DivDialog.offsetHeight-5)+scrollPos.Top;
161493
161541
 
161494
161542
  this.DivDialog.style.left = left + 'px';
161495
161543
  this.DivDialog.style.top = top + 'px';
@@ -161511,8 +161559,8 @@ function JSDialogTooltip()
161511
161559
  if (!this.DivDialog) return;
161512
161560
  if (!this.HQChart) return;
161513
161561
 
161514
-
161515
- var top=this.HQChart.Frame.ChartBorder.GetTop();
161562
+ var scrollPos=GetScrollPosition();
161563
+ var top=this.HQChart.Frame.ChartBorder.GetTop()+scrollPos.Top;
161516
161564
  var left=this.HQChart.Frame.ChartBorder.GetLeft();
161517
161565
  var rtClient=this.HQChart.UIElement.getBoundingClientRect();
161518
161566
 
@@ -162144,17 +162192,19 @@ function JSFloatTooltip()
162144
162192
  if (!this.HQChart) return;
162145
162193
 
162146
162194
  var rtClient=this.HQChart.UIElement.getBoundingClientRect();
162195
+ var scrollPos=GetScrollPosition();
162147
162196
  var yMove=0;
162148
162197
  if (option && IFrameSplitOperator.IsNumber(option.YMove)) yMove=option.YMove;
162149
162198
 
162150
- var left=x+rtClient.left,top=y+rtClient.top+yMove;
162199
+ var left=x+rtClient.left,top=y+rtClient.top+yMove+scrollPos.Top;
162151
162200
  var right=left+this.DivDialog.offsetWidth;
162152
162201
  var bottom=top+this.DivDialog.offsetHeight;
162153
162202
 
162154
162203
  if ((right+5)>=window.innerWidth) left=left-this.DivDialog.offsetWidth;
162155
- if ((bottom+5)>=window.innerHeight)
162204
+ if ((bottom+5)>=window.innerHeight+scrollPos.Top)
162156
162205
  {
162157
162206
  top=(y+rtClient.top)-this.DivDialog.offsetHeight;
162207
+ top+=scrollPos.Top;
162158
162208
  }
162159
162209
 
162160
162210
  this.DivDialog.style.top = top + "px";
@@ -163378,6 +163428,7 @@ function JSSmallFloatTooltip()
163378
163428
  if (!this.DivDialog) return;
163379
163429
  if (!this.HQChart) return;
163380
163430
 
163431
+ var scrollPos=GetScrollPosition();
163381
163432
  var rtClient=this.HQChart.UIElement.getBoundingClientRect();
163382
163433
  var yMove=0;
163383
163434
  if (option && IFrameSplitOperator.IsNumber(option.YMove)) yMove=option.YMove;
@@ -164717,9 +164768,10 @@ function JSDialogSearchIndex()
164717
164768
 
164718
164769
  var right=left+this.DivDialog.offsetWidth;
164719
164770
  var bottom=top+ this.DivDialog.offsetHeight;
164720
-
164771
+ var scrollPos=GetScrollPosition();
164772
+
164721
164773
  if ((right+5)>=window.innerWidth) left=window.innerWidth-this.DivDialog.offsetWidth-5;
164722
- if ((bottom+5)>=window.innerHeight) top=window.innerHeight-this.DivDialog.offsetHeight-5;
164774
+ if ((bottom+5)>=window.innerHeight+scrollPos.Top) top=(window.innerHeight-this.DivDialog.offsetHeight-5)+scrollPos.Top;
164723
164775
 
164724
164776
  this.DivDialog.style.left = left + 'px';
164725
164777
  this.DivDialog.style.top = top + 'px';
@@ -164750,8 +164802,9 @@ function JSDialogSearchIndex()
164750
164802
  if (!IFrameSplitOperator.IsNumber(x) || !IFrameSplitOperator.IsNumber(y)) //默认居中显示
164751
164803
  {
164752
164804
  var rtClient=this.HQChart.UIElement.getBoundingClientRect();
164805
+ var scrollPos=GetScrollPosition();
164753
164806
  x=rtClient.left+(rtClient.right-rtClient.left-this.DivDialog.offsetWidth)/2;
164754
- y=rtClient.top+(rtClient.bottom-rtClient.top-this.DivDialog.offsetHeight)/2;
164807
+ y=rtClient.top+(rtClient.bottom-rtClient.top-this.DivDialog.offsetHeight)/2+scrollPos.Top;
164755
164808
  }
164756
164809
 
164757
164810
  this.InputDom.value="";
@@ -165511,8 +165564,9 @@ function JSDialogModifyIndexParam()
165511
165564
  if (!IFrameSplitOperator.IsNumber(x) || !IFrameSplitOperator.IsNumber(y)) //默认居中显示
165512
165565
  {
165513
165566
  var rtClient=this.HQChart.UIElement.getBoundingClientRect();
165567
+ var scrollPos=GetScrollPosition();
165514
165568
  x=rtClient.left+(rtClient.right-rtClient.left-this.DivDialog.offsetWidth)/2;
165515
- y=rtClient.top+(rtClient.bottom-rtClient.top-this.DivDialog.offsetHeight)/2;
165569
+ y=rtClient.top+(rtClient.bottom-rtClient.top-this.DivDialog.offsetHeight)/2+scrollPos.Top;
165516
165570
  }
165517
165571
 
165518
165572
  this.DivDialog.style.visibility='visible';
@@ -165579,9 +165633,10 @@ function JSDialogModifyIndexParam()
165579
165633
 
165580
165634
  var right=left+this.DivDialog.offsetWidth;
165581
165635
  var bottom=top+ this.DivDialog.offsetHeight;
165582
-
165636
+ var scrollPos=GetScrollPosition();
165637
+
165583
165638
  if ((right+5)>=window.innerWidth) left=window.innerWidth-this.DivDialog.offsetWidth-5;
165584
- if ((bottom+5)>=window.innerHeight) top=window.innerHeight-this.DivDialog.offsetHeight-5;
165639
+ if ((bottom+5)>=window.innerHeight+scrollPos.Top) top=(window.innerHeight-this.DivDialog.offsetHeight-5)+scrollPos.Top;
165585
165640
 
165586
165641
  this.DivDialog.style.left = left + 'px';
165587
165642
  this.DivDialog.style.top = top + 'px';
@@ -166146,7 +166201,7 @@ function HQChartScriptWorker()
166146
166201
 
166147
166202
 
166148
166203
 
166149
- var HQCHART_VERSION="1.1.15197";
166204
+ var HQCHART_VERSION="1.1.15214";
166150
166205
 
166151
166206
  function PrintHQChartVersion()
166152
166207
  {