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.
@@ -5,6 +5,20 @@
5
5
  "css_prefix_text": "icon-",
6
6
  "description": "hqchart画图工具",
7
7
  "glyphs": [
8
+ {
9
+ "icon_id": "36812847",
10
+ "name": "画笔",
11
+ "font_class": "Vector",
12
+ "unicode": "e624",
13
+ "unicode_decimal": 58916
14
+ },
15
+ {
16
+ "icon_id": "6337472",
17
+ "name": "字体颜色",
18
+ "font_class": "zitiyanse1",
19
+ "unicode": "ec85",
20
+ "unicode_decimal": 60549
21
+ },
8
22
  {
9
23
  "icon_id": "31206185",
10
24
  "name": "跨周期",
@@ -117,20 +131,6 @@
117
131
  "unicode": "e656",
118
132
  "unicode_decimal": 58966
119
133
  },
120
- {
121
- "icon_id": "12424469",
122
- "name": "字体颜色",
123
- "font_class": "zitiyanse",
124
- "unicode": "e686",
125
- "unicode_decimal": 59014
126
- },
127
- {
128
- "icon_id": "2005644",
129
- "name": "画笔",
130
- "font_class": "huabi",
131
- "unicode": "e663",
132
- "unicode_decimal": 58979
133
- },
134
134
  {
135
135
  "icon_id": "15272275",
136
136
  "name": "拖动",
@@ -4572,6 +4572,17 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
4572
4572
  if (IFrameSplitOperator.IsBool(item.Enable)) chart.FastSlideConfig.Enable=item.Enable;
4573
4573
  }
4574
4574
 
4575
+ if (option.DataMove)
4576
+ {
4577
+ var item=option.DataMove;
4578
+
4579
+ var subItem=item.Touch;
4580
+ if (subItem && IFrameSplitOperator.IsBool(subItem.EnableLR)) chart.DataMoveConfig.Touch.EnableLR=subItem.EnableLR;
4581
+
4582
+ var subItem=item.Mouse;
4583
+ if (subItem && IFrameSplitOperator.IsBool(subItem.EnableLR)) chart.DataMoveConfig.Mouse.EnableLR=subItem.EnableLR;
4584
+ }
4585
+
4575
4586
  if (chart.ClassName=="KLineChartContainer")
4576
4587
  {
4577
4588
  if (!option.DragSelectRect)
@@ -7526,8 +7537,9 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
7526
7537
  //SecondKeyID 1=shiftKey 2=ctrlKey 3=altKey
7527
7538
  this.AryHotKey=[]; //热键 { KeyID:87, SecondKeyID:1, CMD:JSCHART_MENU_ID.CMD_FULLSCREEN_SUMMARY_ID, Args:null, Description:"Alt+W 全屏区间统计" },
7528
7539
 
7529
- this.FastSlideConfig={ MinDistance:500, MinSpeed:3, MaxTime:250, Enable:false }; //快速滑动配置 MinDistance=最小的距离 MinSpeed=最小速度 MaxTime=最大间隔时间(ms)
7530
- this.KeyboardMove={ Timer:null, Delay:100 , PressTime:500, Enable:false, Event:null }; //键盘左右移动 PressTime=长按时间
7540
+ this.FastSlideConfig={ MinDistance:500, MinSpeed:3, MaxTime:250, Enable:false }; //快速滑动配置 MinDistance=最小的距离 MinSpeed=最小速度 MaxTime=最大间隔时间(ms)
7541
+ this.KeyboardMove={ Timer:null, Delay:100 , PressTime:500, Enable:false, Event:null }; //键盘左右移动 PressTime=长按时间
7542
+ this.DataMoveConfig={ Touch:{ EnableLR: true}, Mouse:{ EnableLR:true } }; //数据移动配置
7531
7543
 
7532
7544
  this.MapEventListenerCache=new Map(); //addEventListener 监听事件 key=type:"keydown|keyup ....", value:{ Callback:, Option: }
7533
7545
 
@@ -9028,7 +9040,8 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
9028
9040
  }
9029
9041
  else if (this.DragMode==1 || isDragSelectRect || isDragSubSelectRect) //数据上下左右拖拽 区间选择框左右拖动
9030
9042
  {
9031
- this.OnDragMode_One({X:moveSetp, Y:moveSetpY}, e);
9043
+ if (this.DataMoveConfig.Mouse.EnableLR)
9044
+ this.OnDragMode_One({X:moveSetp, Y:moveSetpY}, e);
9032
9045
  }
9033
9046
  }
9034
9047
 
@@ -10207,18 +10220,21 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
10207
10220
  var oneStepWidth=this.GetMoveOneStepWidth();
10208
10221
  if (moveSetp<oneStepWidth) return;
10209
10222
 
10210
- if(this.DataMove(moveSetp,isLeft))
10223
+ if (this.DataMoveConfig.Touch.EnableLR)
10211
10224
  {
10212
- this.UpdataDataoffset();
10213
- this.UpdatePointByCursorIndex();
10214
- this.UpdateFrameMaxMin();
10215
- this.ResetFrameXYSplit();
10216
- this.Draw();
10217
- this.OnKLinePageChange("OnTouchMove");
10218
- }
10219
- else
10220
- {
10221
- if (this.DragDownloadData) this.DragDownloadData();
10225
+ if(this.DataMove(moveSetp,isLeft))
10226
+ {
10227
+ this.UpdataDataoffset();
10228
+ this.UpdatePointByCursorIndex();
10229
+ this.UpdateFrameMaxMin();
10230
+ this.ResetFrameXYSplit();
10231
+ this.Draw();
10232
+ this.OnKLinePageChange("OnTouchMove");
10233
+ }
10234
+ else
10235
+ {
10236
+ if (this.DragDownloadData) this.DragDownloadData();
10237
+ }
10222
10238
  }
10223
10239
 
10224
10240
  drag.LastMove.X=touches[0].clientX;
@@ -14594,6 +14610,12 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
14594
14610
  if (IFrameSplitOperator.IsBool(frameItem.IsShowIndexTitle)) frame.IsShowIndexTitle=frameItem.IsShowIndexTitle;
14595
14611
  if (frameItem.ClientBGColor) frame.ClientBGColor=frameItem.ClientBGColor;
14596
14612
 
14613
+ if (frameItem.Toolbar)
14614
+ {
14615
+ var subItem=frameItem.Toolbar.Margin;
14616
+ if (subItem && IFrameSplitOperator.IsNumber(subItem.Right)) frame.ToolbarConfig.Margin.Right=subItem.Right;
14617
+ }
14618
+
14597
14619
  //分时图属性
14598
14620
  if (IFrameSplitOperator.IsBool(frameItem.CloseBeforeButton)) frameItem.IsShowCloseButton=frameItem.CloseBeforeButton;
14599
14621
  if (frame.YSplitOperator.RightTextConfig) //主图右侧坐标设置
@@ -17920,6 +17942,8 @@ function AverageWidthFrame()
17920
17942
  this.ExportDataButton=CloneData(g_JSChartResource.Buttons.ExportData);
17921
17943
  this.AddIndexWindowButton=CloneData(g_JSChartResource.Buttons.AddIndexWindow);
17922
17944
  this.IndexHelpButton=CloneData(g_JSChartResource.Buttons.IndexHelp);
17945
+
17946
+ this.ToolbarConfig={ Margin:{ Right:3 } },
17923
17947
 
17924
17948
  this.ButtonTooltip=CloneData(g_JSChartResource.Buttons.Tooltip);
17925
17949
 
@@ -17989,7 +18013,7 @@ function AverageWidthFrame()
17989
18013
  var border=this.GetBorder();
17990
18014
  if (this.IsHScreen)
17991
18015
  {
17992
- var y=border.Bottom-3;
18016
+ var y=border.Bottom-this.ToolbarConfig.Margin.Right;
17993
18017
  var x=border.RightTitle+this.ChartBorder.TitleHeight/2;
17994
18018
 
17995
18019
  this.ToolbarCacheSize={ RToolbar:{ Right:y, Left:y }}; //相当于额 Top, Bottom
@@ -18028,7 +18052,7 @@ function AverageWidthFrame()
18028
18052
  }
18029
18053
  else
18030
18054
  {
18031
- var right=border.RightEx-3;
18055
+ var right=border.RightEx-this.ToolbarConfig.Margin.Right;
18032
18056
  var left=border.Left;
18033
18057
  var yButton=border.Top+this.ChartBorder.TitleHeight/2;
18034
18058
 
@@ -70244,7 +70268,6 @@ IChartDrawPicture.ColorToRGBA=function(color,opacity)
70244
70268
  var reg = /^(rgb|RGB)/;
70245
70269
  if (reg.test(color))
70246
70270
  {
70247
- var strHex = "#";
70248
70271
  var aryColor = color.replace(/(?:\(|\)|rgb|RGB)*/g, "").split(","); // 把RGB的3个数值变成数组
70249
70272
  var r = parseInt(aryColor[0]);
70250
70273
  var g = parseInt(aryColor[1]);
@@ -109719,6 +109742,7 @@ function JSDivFrameToolbar()
109719
109742
  var pixelTatio = GetDevicePixelRatio();
109720
109743
  var frame=this.HQChart.Frame.SubFrame[this.FrameID].Frame;
109721
109744
  var border=frame.GetBorder();
109745
+ var rtClient=this.HQChart.UIElement.getBoundingClientRect();
109722
109746
 
109723
109747
  var top=border.Top/pixelTatio;
109724
109748
  var right=border.RightEx/pixelTatio;
@@ -109751,10 +109775,13 @@ function JSDivFrameToolbar()
109751
109775
  if (!this.HQChart.JSToolbarTooltip) return;
109752
109776
  if (!item.Div) return;
109753
109777
 
109778
+
109754
109779
  var rtButton=item.Div.getBoundingClientRect();
109755
109780
  var rtHQChart=this.DivHQChart.getBoundingClientRect();
109781
+ var left=rtButton.left;
109782
+ var top=rtButton.bottom+2;
109756
109783
  var left=rtButton.left-rtHQChart.left;
109757
- var top=rtButton.bottom-rtHQChart.top+2;
109784
+ var top=this.DivToolbar.offsetHeight+this.DivToolbar.offsetTop;
109758
109785
  this.HQChart.JSToolbarTooltip.Show(top, left, { Text:item.Tooltip.Text });
109759
109786
  }
109760
109787
  }
@@ -154117,7 +154144,7 @@ function ScrollBarBGChart()
154117
154144
 
154118
154145
 
154119
154146
 
154120
- var HQCHART_VERSION="1.1.15197";
154147
+ var HQCHART_VERSION="1.1.15214";
154121
154148
 
154122
154149
  function PrintHQChartVersion()
154123
154150
  {
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var HQCHART_VERSION="1.1.15197";
8
+ var HQCHART_VERSION="1.1.15214";
9
9
 
10
10
  function PrintHQChartVersion()
11
11
  {