hqchart 1.1.15198 → 1.1.15210

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))
10211
- {
10212
- this.UpdataDataoffset();
10213
- this.UpdatePointByCursorIndex();
10214
- this.UpdateFrameMaxMin();
10215
- this.ResetFrameXYSplit();
10216
- this.Draw();
10217
- this.OnKLinePageChange("OnTouchMove");
10218
- }
10219
- else
10223
+ if (this.DataMoveConfig.Touch.EnableLR)
10220
10224
  {
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]);
@@ -154117,7 +154140,7 @@ function ScrollBarBGChart()
154117
154140
 
154118
154141
 
154119
154142
 
154120
- var HQCHART_VERSION="1.1.15197";
154143
+ var HQCHART_VERSION="1.1.15209";
154121
154144
 
154122
154145
  function PrintHQChartVersion()
154123
154146
  {
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var HQCHART_VERSION="1.1.15197";
8
+ var HQCHART_VERSION="1.1.15209";
9
9
 
10
10
  function PrintHQChartVersion()
11
11
  {
@@ -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))
10255
- {
10256
- this.UpdataDataoffset();
10257
- this.UpdatePointByCursorIndex();
10258
- this.UpdateFrameMaxMin();
10259
- this.ResetFrameXYSplit();
10260
- this.Draw();
10261
- this.OnKLinePageChange("OnTouchMove");
10262
- }
10263
- else
10267
+ if (this.DataMoveConfig.Touch.EnableLR)
10264
10268
  {
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]);
@@ -158536,17 +158559,17 @@ function JSDialogModifyDraw()
158536
158559
 
158537
158560
  this.AryButton=
158538
158561
  [
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 }},
158562
+ { 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 }},
158563
+ { 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 }},
158564
+ { 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 }},
158565
+ { 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 }},
158566
+ { Title:"字体放大", ClassName: 'hqchart_drawtool icon-zoomin UMyChart_Draw_Modify_Dialog_Button_Span', Type:2, Data:{ ID:JS_DRAWTOOL_MENU_ID.CMD_ZOOM_FONT_ID }},
158567
+ { 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 }},
158568
+ { Title:"随机生成文字内容", ClassName: 'hqchart_drawtool icon-bianji UMyChart_Draw_Modify_Dialog_Button_Span', Type:2, Data:{ ID:JS_DRAWTOOL_MENU_ID.CMD_MODIFY_TEXT_ID }},
158569
+ { 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
158570
 
158548
158571
  { 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 }},
158572
+ { 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
158573
  ];
158551
158574
 
158552
158575
  this.RestoreFocusDelay=800;
@@ -158602,10 +158625,9 @@ function JSDialogModifyDraw()
158602
158625
  spanTooltip.innerText=item.Title;
158603
158626
  divItem.appendChild(spanTooltip);
158604
158627
 
158605
-
158606
158628
  var spanDom=document.createElement("span");
158607
158629
  spanDom.className=item.ClassName;
158608
- spanDom.classList.add("UMyChart_Draw_Modify_Dialog_Button_Span");
158630
+ //spanDom.classList.add("UMyChart_Draw_Modify_Dialog_Button_Span");
158609
158631
  divItem.appendChild(spanDom);
158610
158632
 
158611
158633
 
@@ -158619,23 +158641,31 @@ function JSDialogModifyDraw()
158619
158641
  {
158620
158642
  case JS_DRAWTOOL_MENU_ID.CMD_CHANGE_LINE_COLOR_ID:
158621
158643
  this.ColorButton=data;
158644
+ var divColorBar=this.CreateColorBar(data);
158645
+ divItem.appendChild(divColorBar);
158622
158646
  var inputColor=this.CreateInputColor(data);
158623
158647
  divItem.appendChild(inputColor);
158624
158648
  break;
158625
158649
  case JS_DRAWTOOL_MENU_ID.CMD_CHANGE_BG_COLOR_ID:
158626
158650
  this.BGColorButton=data;
158651
+ var divColorBar=this.CreateColorBar(data);
158652
+ divItem.appendChild(divColorBar);
158627
158653
  var inputColor=this.CreateInputColor(data);
158628
158654
  divItem.appendChild(inputColor);
158629
158655
  divItem.style.display="none";
158630
158656
  break;
158631
158657
  case JS_DRAWTOOL_MENU_ID.CMD_CHANGE_FONT_COLOR_ID:
158632
158658
  this.FontColorButton=data;
158659
+ var divColorBar=this.CreateColorBar(data);
158660
+ divItem.appendChild(divColorBar);
158633
158661
  var inputColor=this.CreateInputColor(data);
158634
158662
  divItem.appendChild(inputColor);
158635
158663
  divItem.style.display="none";
158636
158664
  break;
158637
158665
  case JS_DRAWTOOL_MENU_ID.CMD_CHANGE_BORDER_COLOR_ID:
158638
158666
  this.BorderColorButton=data;
158667
+ var divColorBar=this.CreateColorBar(data);
158668
+ divItem.appendChild(divColorBar);
158639
158669
  var inputColor=this.CreateInputColor(data);
158640
158670
  divItem.appendChild(inputColor);
158641
158671
  divItem.style.display="none";
@@ -158675,6 +158705,16 @@ function JSDialogModifyDraw()
158675
158705
  return inputColor;
158676
158706
  }
158677
158707
 
158708
+ //颜色块
158709
+ this.CreateColorBar=function(data)
158710
+ {
158711
+ var divColor=document.createElement("div");
158712
+ divColor.className="UMyChart_Draw_Modify_Dialog_Button_ColorBar_Div";
158713
+ data.DivColorBar=divColor;
158714
+
158715
+ return divColor;
158716
+ }
158717
+
158678
158718
  this.OnClickButton=function(e, data)
158679
158719
  {
158680
158720
  console.log('[JSDialogModifyDraw::OnClickButton] ', data);
@@ -158783,7 +158823,7 @@ function JSDialogModifyDraw()
158783
158823
  if (data.Item.Data.ID==JS_DRAWTOOL_MENU_ID.CMD_CHANGE_LINE_COLOR_ID)
158784
158824
  {
158785
158825
  this.ChartPicture.LineColor=color;
158786
- if (this.ColorButton) this.ColorButton.Span.style['color']=color;
158826
+ if (this.ColorButton) this.ColorButton.DivColorBar.style['background-color']=color;
158787
158827
  if (this.HQChart.ChartDrawStorage) this.HQChart.ChartDrawStorage.SaveDrawData(this.ChartPicture); //保存下
158788
158828
 
158789
158829
  this.HQChart.Draw();
@@ -158793,7 +158833,7 @@ function JSDialogModifyDraw()
158793
158833
  if (this.ChartPicture.ClassName=="ChartDrawNote") this.ChartPicture.NoteBorderColor=color;
158794
158834
  else this.ChartPicture.BorderColor=color;
158795
158835
 
158796
- if (this.BorderColorButton) this.BorderColorButton.Span.style['color']=color;
158836
+ if (this.BorderColorButton) this.BorderColorButton.DivColorBar.style['background-color']=color;
158797
158837
  if (this.HQChart.ChartDrawStorage) this.HQChart.ChartDrawStorage.SaveDrawData(this.ChartPicture); //保存下
158798
158838
 
158799
158839
  this.HQChart.Draw();
@@ -158803,7 +158843,7 @@ function JSDialogModifyDraw()
158803
158843
  if (this.ChartPicture.ClassName=="ChartDrawNote") this.ChartPicture.NoteTextColor=color;
158804
158844
  else this.ChartPicture.TextColor=color;
158805
158845
 
158806
- if (this.FontColorButton) this.FontColorButton.Span.style['color']=color;
158846
+ if (this.FontColorButton) this.FontColorButton.DivColorBar.style['background-color']=color;
158807
158847
  if (this.HQChart.ChartDrawStorage) this.HQChart.ChartDrawStorage.SaveDrawData(this.ChartPicture); //保存下
158808
158848
 
158809
158849
  this.HQChart.Draw();
@@ -158814,7 +158854,7 @@ function JSDialogModifyDraw()
158814
158854
  if (this.ChartPicture.ClassName=="ChartDrawNote") this.ChartPicture.NoteBGColor=color;
158815
158855
  else this.ChartPicture.BGColor=color;
158816
158856
 
158817
- if (this.BGColorButton) this.BGColorButton.Span.style['color']=color;
158857
+ if (this.BGColorButton) this.BGColorButton.DivColorBar.style['background-color']=color;
158818
158858
  if (this.HQChart.ChartDrawStorage) this.HQChart.ChartDrawStorage.SaveDrawData(this.ChartPicture); //保存下
158819
158859
 
158820
158860
  this.HQChart.Draw();
@@ -159016,7 +159056,7 @@ function JSDialogModifyDraw()
159016
159056
  this.ShowButton(item.Div, bShowLineColor?"inline":"none");
159017
159057
  if (bShowLineColor)
159018
159058
  {
159019
- item.Span.style['color']=chart.LineColor;
159059
+ item.DivColorBar.style['background-color']=chart.LineColor;
159020
159060
  }
159021
159061
  }
159022
159062
 
@@ -159026,7 +159066,7 @@ function JSDialogModifyDraw()
159026
159066
  this.ShowButton(item.Div, bShowBGColor?"inline":"none");
159027
159067
  if (bShowBGColor)
159028
159068
  {
159029
- item.Span.style['color']=bgColor;
159069
+ item.DivColorBar.style['background-color']=bgColor;
159030
159070
  }
159031
159071
  }
159032
159072
 
@@ -159036,7 +159076,7 @@ function JSDialogModifyDraw()
159036
159076
  this.ShowButton(item.Div, bShowFontColor?"inline":"none");
159037
159077
  if (bShowFontColor)
159038
159078
  {
159039
- item.Span.style['color']=fontColor;
159079
+ item.DivColorBar.style['background-color']=fontColor;
159040
159080
  }
159041
159081
  }
159042
159082
 
@@ -159046,7 +159086,7 @@ function JSDialogModifyDraw()
159046
159086
  this.ShowButton(item.Div, bShowBorderColor?"inline":"none");
159047
159087
  if (bShowBorderColor)
159048
159088
  {
159049
- item.Span.style['color']=borderColor;
159089
+ item.DivColorBar.style['background-color']=borderColor;
159050
159090
  }
159051
159091
  }
159052
159092
 
@@ -166146,7 +166186,7 @@ function HQChartScriptWorker()
166146
166186
 
166147
166187
 
166148
166188
 
166149
- var HQCHART_VERSION="1.1.15197";
166189
+ var HQCHART_VERSION="1.1.15209";
166150
166190
 
166151
166191
  function PrintHQChartVersion()
166152
166192
  {