hqchart 1.1.13238 → 1.1.13245

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.
@@ -5537,6 +5537,9 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
5537
5537
  //内置菜单
5538
5538
  if (option.EnablePopMenuV2===true) chart.InitalPopMenu();
5539
5539
 
5540
+ //画图工具
5541
+ if (option.EnableDrawToolDialogV2===true) chart.InitalDrawToolDialog();
5542
+
5540
5543
  //注册事件
5541
5544
  if (option.EventCallback)
5542
5545
  {
@@ -6787,6 +6790,8 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
6787
6790
  this.JSPopMenu; //内置菜单
6788
6791
  this.IsShowRightMenu=true; //显示右键菜单
6789
6792
 
6793
+ this.DialogDrawTool; //画图工具
6794
+
6790
6795
 
6791
6796
  this.ClearStockCache=function()
6792
6797
  {
@@ -6801,6 +6806,37 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
6801
6806
  this.JSPopMenu.Inital();
6802
6807
  }
6803
6808
 
6809
+ this.InitalDrawToolDialog=function()
6810
+ {
6811
+ if (this.DialogDrawTool) return;
6812
+
6813
+ this.DialogDrawTool=new JSDialogDrawTool();
6814
+ this.DialogDrawTool.Inital(this);
6815
+ this.DialogDrawTool.Create();
6816
+ }
6817
+
6818
+ this.ShowDrawToolDialog=function(x,y)
6819
+ {
6820
+ if (!this.DialogDrawTool) return;
6821
+
6822
+ var rtClient=this.UIElement.getBoundingClientRect();
6823
+ var rtScroll=GetScrollPosition();
6824
+
6825
+ var top=this.UIElement.offsetTop+15;
6826
+ var left=this.UIElement.offsetWidth-this.DialogDrawTool.DivDialog.offsetWidth-15;
6827
+ left+=rtClient.left+rtScroll.Left;
6828
+ top+=rtClient.top+rtScroll.Top;
6829
+
6830
+ this.DialogDrawTool.Show(left,top);
6831
+ }
6832
+
6833
+ this.IsShowDrawToolDialog=function()
6834
+ {
6835
+ if (!this.DialogDrawTool) return false;
6836
+
6837
+ return this.DialogDrawTool.IsShow();
6838
+ }
6839
+
6804
6840
  //obj={ Element:, Canvas: }
6805
6841
  this.SetCorssCursorElement=function(obj)
6806
6842
  {
@@ -11827,6 +11863,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
11827
11863
  if (drawPicture.PointCount!=drawPicture.Point.length) return false;
11828
11864
  if (drawPicture.ClassName=="ChartDrawRuler") //尺子不用保存的
11829
11865
  {
11866
+ if (drawPicture.FinishedCallback) drawPicture.FinishedCallback(drawPicture);
11830
11867
  this.CurrentChartDrawPicture=null;
11831
11868
  return true;
11832
11869
  }
@@ -12012,7 +12049,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
12012
12049
  {
12013
12050
  var item=this.ExtendChartPaint[i];
12014
12051
  if (!item) continue;
12015
- if (item.ClassName=="StockChip" || item.ClassName=="DrawToolsButton")
12052
+ if (item.ClassName=="StockChip")
12016
12053
  {
12017
12054
  if (IFrameSplitOperator.IsNumber(item.Width))
12018
12055
  width+=item.Width;
@@ -13102,30 +13139,8 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
13102
13139
  }
13103
13140
  break;
13104
13141
  case JSCHART_MENU_ID.CMD_SHOW_DRAWTOOL_ID:
13105
- var option={Name:'画图工具', Top:this.Frame.ChartBorder.Top };
13106
- var extendChart=this.CreateExtendChart(option.Name, option); //创建扩展图形
13107
- this.SetSizeChange(true);
13108
- this.Draw();
13109
- break;
13110
- case JSCHART_MENU_ID.CMD_HIDE_DRAWTOOL_ID:
13111
- var drawTools=this.GetExtendChartByClassName('DrawToolsButton');
13112
- if (drawTools)
13113
- {
13114
- var toolsWidth=drawTools.Chart.Width;
13115
- var toolsIndex=parseInt(drawTools.Index);
13116
- for(var i=toolsIndex+1; i<this.ExtendChartPaint.length; ++i) //在画图工具后面创建的需要减去工具的宽度
13117
- {
13118
- var item=this.ExtendChartPaint[i];
13119
- if (item.ClassName=='StockChip')
13120
- {
13121
- item.Left-=toolsWidth;
13122
- }
13123
- }
13124
- this.DeleteExtendChart(drawTools);
13125
- this.Frame.ChartBorder.Right-=toolsWidth;
13126
- this.SetSizeChange(true);
13127
- this.Draw();
13128
- }
13142
+ if (!this.IsShowDrawToolDialog())
13143
+ this.ShowDrawToolDialog();
13129
13144
  break;
13130
13145
  case JSCHART_MENU_ID.CMD_SHOW_STOCKCHIP_ID:
13131
13146
  var option={Name:'筹码分布', ShowType:1, Width:230 };
@@ -45857,235 +45872,6 @@ function StockChip()
45857
45872
  }
45858
45873
  }
45859
45874
 
45860
- //画图工具条
45861
- function DrawToolsButton()
45862
- {
45863
- this.newMethod=IExtendChartPainting; //派生
45864
- this.newMethod();
45865
- delete this.newMethod;
45866
-
45867
- this.ClassName='DrawToolsButton';
45868
- this.HQChart;
45869
- this.ID=Guid();
45870
- this.ToolsDiv;
45871
- // this.Color='rgb(105,105,105)'; //颜色
45872
- this.Color = "#696969"; //input type="color"不支持rgb的颜色格式
45873
-
45874
- //this.Left=5;
45875
- this.Top=5*GetDevicePixelRatio();
45876
- this.Width=45*GetDevicePixelRatio(); //宽度
45877
-
45878
- this.SetOption=function(option)
45879
- {
45880
- var pixelRatio=GetDevicePixelRatio();
45881
- if (!option) return;
45882
- if (option.Width>10) this.Width=option.Width*pixelRatio;
45883
- }
45884
-
45885
- this.Clear=function()
45886
- {
45887
- if (this.ToolsDiv) this.ChartBorder.UIElement.parentNode.removeChild(this.ToolsDiv);
45888
- }
45889
-
45890
- this.Draw = function () {
45891
- if (this.SizeChange == false) return;
45892
-
45893
- //工具列表
45894
- const TOOL_LIST =
45895
- [
45896
- [
45897
- { HTML: { Title: '线段', IClass: 'iconfont icon-draw_line', ID: 'icon-segment' }, Name: '线段' },
45898
- { HTML: { Title: '尺子', IClass: 'iconfont icon-ruler', ID: 'icon_ruler' }, Name: '尺子' },
45899
- { HTML: { Title: '射线', IClass: 'iconfont icon-draw_rays', ID: 'icon-beam' }, Name: '射线' },
45900
- { HTML: { Title: '标价线', IClass: 'iconfont icon-price_line', ID: 'icon-price-line' }, Name: '标价线' },
45901
- { HTML: { Title: '垂直线', IClass: 'iconfont icon-vertical_line', ID: 'icon-vertical-line' }, Name: '垂直线' },
45902
- { HTML: { Title: '箭头', IClass: 'iconfont icon-draw_rays', ID: 'icon-beam2' }, Name: '箭头' },
45903
- { HTML: { Title: '趋势线', IClass: 'iconfont icon-draw_trendline', ID: 'icon-trendline' }, Name: '趋势线' },
45904
- { HTML: { Title: '水平线', IClass: 'iconfont icon-draw_hline', ID: 'icon-hline' }, Name: '水平线' },
45905
- { HTML: { Title: '水平线段', IClass: 'iconfont icon-draw_hlinesegment', ID: 'icon-hlineseg' }, Name: '水平线段' },
45906
- { HTML: { Title: '平行射线', IClass: 'iconfont icon-draw_p_rays_lines', ID: 'icon-rayslineseg' }, Name: '平行射线' },
45907
- { HTML: { Title: '平行线', IClass: 'iconfont icon-draw_parallel_lines', ID: 'icon-parallellines' }, Name: '平行线' },
45908
- { HTML: { Title: '平行通道', IClass: 'iconfont icon-draw_parallelchannel', ID: 'icon-parallelchannel' }, Name: '平行通道' },
45909
- { HTML: { Title: '价格通道线', IClass: 'iconfont icon-draw_pricechannel', ID: 'icon-pricechannel' }, Name: '价格通道线' },
45910
- { HTML: { Title: 'M头W底', IClass: 'iconfont icon-draw_wavemw', ID: 'icon-wavemw' }, Name: 'M头W底' },
45911
- { HTML: { Title: '头肩型', IClass: 'iconfont icon-draw_head_shoulders_bt', ID: 'icon-Head-Shoulders' }, Name: '头肩型' },
45912
- { HTML: { Title: '波浪尺', IClass: 'iconfont icon-waveruler', ID: 'icon-wave-ruler' }, Name: '波浪尺' },
45913
- { HTML: { Title: 'AB波浪尺', IClass: 'iconfont icon-waveruler', ID: 'icon-wave-ruler2' }, Name: 'AB波浪尺' },
45914
- { HTML: { Title: '箱型线', IClass: 'iconfont icon-draw_box', ID: 'icon-drawbox' }, Name: '箱型线' },
45915
- { HTML: { Title: '涂鸦线段', IClass: 'iconfont icon-draw_line', ID: 'icon-segment2' }, Name: '涂鸦线段' },
45916
-
45917
- ],
45918
- [
45919
- { HTML: { Title: '圆弧', IClass: 'iconfont icon-draw_arc', ID: 'icon-arc' }, Name: '圆弧线' },
45920
- { HTML: { Title: '矩形', IClass: 'iconfont icon-rectangle', ID: 'icon-rect' }, Name: '矩形' },
45921
- { HTML: { Title: '平行四边形', IClass: 'iconfont icon-draw_quadrangle', ID: 'icon-quad' }, Name: '平行四边形' },
45922
- { HTML: { Title: '三角形', IClass: 'iconfont icon-draw_triangle', ID: 'icon-triangle' }, Name: '三角形' },
45923
- { HTML: { Title: '圆', IClass: 'iconfont icon-draw_circle', ID: 'icon-circle' }, Name: '圆' },
45924
- { HTML: { Title: '对称角度', IClass: 'iconfont icon-draw_symangle', ID: 'icon-symangle' }, Name: '对称角度' },
45925
- ],
45926
- [
45927
- { HTML: { Title: '文本', IClass: 'iconfont icon-draw_text', ID: 'icon-text' }, Name: '文本' },
45928
- { HTML: { Title: '向上箭头', IClass: 'iconfont icon-arrow_up', ID: 'icon-arrowup' }, Name: 'icon-arrow_up' },
45929
- { HTML: { Title: '向下箭头', IClass: 'iconfont icon-arrow_down', ID: 'icon-arrowdown' }, Name: 'icon-arrow_down' },
45930
- { HTML: { Title: '向左箭头', IClass: 'iconfont icon-arrow_left', ID: 'icon-arrowleft' }, Name: 'icon-arrow_left' },
45931
- { HTML: { Title: '向右箭头', IClass: 'iconfont icon-arrow_right', ID: 'icon-arrowright' }, Name: 'icon-arrow_right' },
45932
- ],
45933
- [
45934
- { HTML: { Title: '江恩角度线', IClass: 'iconfont icon-draw_gannfan', ID: 'icon-gannfan' }, Name: '江恩角度线' },
45935
- { HTML: { Title: '斐波那契周期线', IClass: 'iconfont icon-draw_fibonacci', ID: 'icon-fibonacci' }, Name: '斐波那契周期线' },
45936
- { HTML: { Title: '阻速线', IClass: 'iconfont icon-draw_resline', ID: 'icon-resline' }, Name: '阻速线' },
45937
- { HTML: { Title: '黄金分割', IClass: 'iconfont icon-draw_goldensection', ID: 'icon-goldensection' }, Name: '黄金分割' },
45938
- { HTML: { Title: '百分比线', IClass: 'iconfont icon-draw_percentage', ID: 'icon-percentage' }, Name: '百分比线' },
45939
- { HTML: { Title: '波段线', IClass: 'iconfont icon-draw_waveband', ID: 'icon-waveband' }, Name: '波段线' },
45940
- { HTML: { Title: '线形回归线', IClass: 'iconfont icon-linear_3', ID: 'icon-waveband2' }, Name: '线形回归线' },
45941
- { HTML: { Title: '线形回归带', IClass: 'iconfont icon-linear_1', ID: 'icon-waveband3' }, Name: '线形回归带' },
45942
- { HTML: { Title: '延长线形回归带', IClass: 'iconfont icon-linear_2', ID: 'icon-waveband5' }, Name: '延长线形回归带' },
45943
- ],
45944
- [{ HTML: { Title: '全部删除', IClass: 'iconfont icon-recycle_bin', ID: 'icon-delete' }, Name: '全部删除' }]
45945
- ];
45946
-
45947
- var hqChart = this.HQChart;
45948
-
45949
- if (!this.ToolsDiv) {
45950
- var div = document.createElement("div");
45951
- div.className = 'drawtools';
45952
- div.id = this.ID;
45953
-
45954
- var spanList = ""; //一层菜单
45955
- var menuTwoList = ""; //二层菜单
45956
- var menuOne = new Array();
45957
- TOOL_LIST.forEach(function(item,index){
45958
- menuOne.push(item[0]);
45959
- });
45960
- for (var i = 0; i < TOOL_LIST.length; i++) {
45961
- var itemOut = menuOne[i];
45962
- var itemIn = TOOL_LIST[i];
45963
- var menuTwoStr = "";
45964
- var contentArrow = "";
45965
- for (var j = 0; j < itemIn.length; j++) {
45966
- var currentItem = itemIn[j];
45967
- var menuTwoName = currentItem.Name;
45968
- if(menuTwoName.indexOf('up') > -1){
45969
- menuTwoName = "向上箭头";
45970
- }else if(menuTwoName.indexOf('down') > -1){
45971
- menuTwoName = "向下箭头";
45972
- }else if(menuTwoName.indexOf('left') > -1){
45973
- menuTwoName = "向左箭头";
45974
- }else if(menuTwoName.indexOf('right') > -1){
45975
- menuTwoName = "向右箭头";
45976
- }
45977
- menuTwoStr += '<p class="menuTwoItem ' + currentItem.HTML.ID + '">' + menuTwoName + '<i class="' + currentItem.HTML.IClass + '" title="' + currentItem.HTML.Title + '"></i></p>';
45978
- }
45979
- if (i !== TOOL_LIST.length - 1) { //不是“全部删除”项
45980
- menuTwoList = '<div class="menuTwo">' + menuTwoStr + '</div>';
45981
- contentArrow = '<i class="contentArrow iconfont icon-menu_arraw_left"></i>';
45982
- } else {
45983
- menuTwoList = "";
45984
- contentArrow = "";
45985
- }
45986
-
45987
- var spanNode = '<div class="icon-image ' + 'first-' + itemOut.HTML.ID + '"><i class="' + itemOut.HTML.IClass + '" title="' + itemOut.HTML.Title + '"></i>' + menuTwoList + contentArrow +'</div>';
45988
- spanList += spanNode;
45989
- }
45990
- this.ChartBorder.UIElement.parentNode.appendChild(div);
45991
-
45992
- div.innerHTML = spanList;
45993
- this.ToolsDiv = div;
45994
-
45995
- for (var i in TOOL_LIST) {
45996
- var item = TOOL_LIST[i][0];
45997
- $('#' + this.ID + " .first-" + item.HTML.ID).hover(function(){ //箭头的旋转过渡
45998
- $(".drawtools").find(".contentArrow").hide();
45999
- $(this).find(".contentArrow").removeClass("trans").show();
46000
- });
46001
- $('#' + this.ID + " .first-" + item.HTML.ID+" .contentArrow").click(function(event){ //点击三角展示二级菜单
46002
- event.stopPropagation();
46003
- $(".drawtools").find(".menuTwo").hide();
46004
- $(this).siblings('.menuTwo').show();
46005
- });
46006
- $('#' + this.ID + " .first-" + item.HTML.ID+" .trans").click(function(){ //点击三角隐藏二级菜单
46007
- event.stopPropagation();
46008
- $(this).siblings('.menuTwo').hide();
46009
- });
46010
-
46011
-
46012
- if (item.Name == '全部删除') {
46013
- $('#' + this.ID + " .first-icon-delete").click(function () {
46014
- $(".drawtools").find(".menuTwo").hide();
46015
- $(this).siblings().removeClass('active');
46016
- $(this).addClass('active');
46017
- hqChart.ClearChartDrawPicture();
46018
- $(".subTolls").css("display", "none");
46019
- });
46020
- }
46021
- else {
46022
- $('#' + this.ID + " .first-" + menuOne[i].HTML.ID).click( //一层菜单类名是:“first-”+item.HTML.ID
46023
- {
46024
- // DrawName: menuOne[i].Name, //把画法名字传进去
46025
- CurrentIndex:i
46026
- },
46027
- function (event) {
46028
- $(".drawtools").find(".menuTwo").hide();
46029
- $(this).siblings().removeClass('active');
46030
- $(this).addClass('active');
46031
- hqChart.CreateChartDrawPicture(menuOne[event.data.CurrentIndex].Name);
46032
- }
46033
- );
46034
- for (var j in TOOL_LIST[i]) {
46035
- var itemTwo = TOOL_LIST[i][j];
46036
- let classname = itemTwo.HTML.IClass; //闭包问题
46037
- $('#' + this.ID + ' .' + itemTwo.HTML.ID).hover(function(event){
46038
- event.stopPropagation();
46039
- $(this).closest('.icon-image').find(".contentArrow").addClass("trans");
46040
- });
46041
- $('#' + this.ID + ' .' + itemTwo.HTML.ID).click(//二层菜单
46042
- {
46043
- DrawName: itemTwo.Name, //把画法名字传进去
46044
- CurrentIndex:i,
46045
- CurrentData:itemTwo
46046
- },
46047
- function (event) {
46048
- event.stopPropagation();
46049
- $(this).closest('.icon-image').find(".contentArrow").hide();
46050
- $(this).siblings().removeClass("current");
46051
- $(this).addClass("current");
46052
- $(this).closest('.icon-image').children('i').eq(0).removeClass().addClass(classname,"active").attr('title',event.data.CurrentData.HTML.Title);
46053
- menuOne.splice(event.data.CurrentIndex,1,event.data.CurrentData);
46054
- $(this).parent().hide();
46055
- hqChart.CreateChartDrawPicture(event.data.DrawName);
46056
- }
46057
- );
46058
- }
46059
- }
46060
- }
46061
-
46062
- }
46063
- var curID = this.ID;
46064
- $(document).click(function(event){
46065
- if(!($("#"+curID).is(event.target)) && ($("#"+curID).has(event.target).length === 0)){
46066
- $("#"+curID+" .menuTwo").hide();
46067
- $("#"+curID+" .contentArrow").hide();
46068
- }
46069
- });
46070
- var scrollPos = GetScrollPosition();
46071
- var pixelRatio=GetDevicePixelRatio();
46072
- // var left=this.ChartBorder.GetChartWidth()-this.Right-this.ToolsWidth;
46073
- var left=ToFixedPoint(this.ChartBorder.GetRight()+this.Left);
46074
- // var top = this.Top+this.ChartBorder.UIElement.getBoundingClientRect().top+scrollPos.Top;
46075
- var top = this.ChartBorder.GetTop();
46076
- this.ToolsDiv.style.left = left/pixelRatio + "px";
46077
- this.ToolsDiv.style.top = top/pixelRatio + "px";
46078
- this.ToolsDiv.style.width = (this.Width-5)/pixelRatio + "px";
46079
- this.ToolsDiv.style.height = 'auto';
46080
- this.ToolsDiv.style.position = "absolute";
46081
- this.ToolsDiv.style.display = "block";
46082
- // this.ToolsDiv.style.paddingLeft = "10px";
46083
-
46084
- this.SizeChange == true;
46085
- }
46086
- }
46087
-
46088
-
46089
45875
  //窗口分割
46090
45876
  function FrameSplitPaint()
46091
45877
  {
@@ -59310,7 +59096,7 @@ IChartDrawPicture.ArrayDrawPricture=
59310
59096
  { Name:"固定范围成交量分布图", ClassName:"ChartDrawVolProfile", Create:function() { return new ChartDrawVolProfile(); }},
59311
59097
 
59312
59098
  { Name:"DisjointChannel", ClassName:"ChartDrawDisjontChannel", Create:function() { return new ChartDrawDisjontChannel();}},
59313
- { Name:"FlatTop", ClassName:"ChartDrawDisjontChannel", Create:function() { return new ChartDrawFlatTop();}},
59099
+ { Name:"FlatTop", ClassName:"ChartDrawFlatTop", Create:function() { return new ChartDrawFlatTop();}},
59314
59100
 
59315
59101
  { Name:"水平线2", ClassName:"ChartDrawHLine", Create:function() { return new ChartDrawHLine(); }},
59316
59102
 
@@ -61481,7 +61267,7 @@ function ChartDrawPictureParallelLines()
61481
61267
  }
61482
61268
 
61483
61269
 
61484
- //FlatTop/Bottom
61270
+ //FlatTop/Bottom 平滑顶/底
61485
61271
  function ChartDrawFlatTop()
61486
61272
  {
61487
61273
  this.newMethod=IChartDrawPicture; //派生
@@ -61568,7 +61354,7 @@ function ChartDrawFlatTop()
61568
61354
  }
61569
61355
  }
61570
61356
 
61571
- //Disjont Channel
61357
+ //Disjont Channel 不相交通道 (未完成)
61572
61358
  function ChartDrawDisjontChannel()
61573
61359
  {
61574
61360
  this.newMethod=ChartDrawFlatTop; //派生
@@ -75556,17 +75342,6 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
75556
75342
  this.ExtendChartPaint.push(chart);
75557
75343
  this.Frame.ChartBorder.Right+=chart.Width; //创建筹码需要增加右边的间距
75558
75344
  return chart;
75559
- case '画图工具':
75560
- chart=new DrawToolsButton();
75561
- chart.Canvas=this.Canvas;
75562
- chart.ChartBorder=this.Frame.ChartBorder;
75563
- chart.ChartFrame=this.Frame;
75564
- chart.HQChart=this;
75565
- chart.Left=this.Frame.ChartBorder.Right; //左边间距使用当前框架间距
75566
- chart.SetOption(option);
75567
- this.ExtendChartPaint.push(chart);
75568
- this.Frame.ChartBorder.Right+=chart.Width; //创建筹码需要增加右边的间距
75569
- return chart;
75570
75345
  case 'KLineTooltip':
75571
75346
  if (option.Create && typeof(option.Create)=='function') chart=option.Create();
75572
75347
  else chart=new KLineTooltipPaint();
@@ -76580,6 +76355,11 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
76580
76355
  return true;
76581
76356
  }
76582
76357
 
76358
+ this.ClearCurrnetDrawPicture=function()
76359
+ {
76360
+ this.CurrentChartDrawPicture=null;
76361
+ }
76362
+
76583
76363
  this.AddChartDrawPicture=function(obj)
76584
76364
  {
76585
76365
  if (!obj) return null;
@@ -76767,9 +76547,8 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
76767
76547
  if (item && item.Symbol) aryOverlaySymbol.push(item.Symbol)
76768
76548
  }
76769
76549
 
76770
- var bBGSpit=false, bShowDrawTool=false, bShowStockChip=false;
76550
+ var bBGSpit=false, bShowStockChip=false;
76771
76551
  if (this.GetExtendChartByClassName("SessionBreaksPaint")) bBGSpit=true;
76772
- if (this.GetExtendChartByClassName('DrawToolsButton')) bShowDrawTool=true; //画图工具
76773
76552
  if (this.GetExtendChartByClassName('StockChip')) bShowStockChip=true; //筹码
76774
76553
 
76775
76554
  var aryMenu=
@@ -76927,7 +76706,7 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
76927
76706
 
76928
76707
  { Name:"背景分割", Data:{ ID:JSCHART_MENU_ID.CMD_CHANGE_BG_SPLIT_ID, Args:[!bBGSpit]}, Checked:bBGSpit},
76929
76708
 
76930
- { Name:"画图工具", Data:{ ID:bShowDrawTool?JSCHART_MENU_ID.CMD_HIDE_DRAWTOOL_ID:JSCHART_MENU_ID.CMD_SHOW_DRAWTOOL_ID, Args:[]}, Checked:bShowDrawTool},
76709
+ { Name:"画图工具", Data:{ ID:JSCHART_MENU_ID.CMD_SHOW_DRAWTOOL_ID, Args:[]}, Checked:this.IsShowDrawToolDialog()},
76931
76710
 
76932
76711
  { Name:"移动筹码图", Data:{ ID:bShowStockChip?JSCHART_MENU_ID.CMD_HIDE_STOCKCHIP_ID:JSCHART_MENU_ID.CMD_SHOW_STOCKCHIP_ID, Args:[]}, Checked:bShowStockChip},
76933
76712
  ]
@@ -80405,9 +80184,6 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
80405
80184
  if (item && item.Symbol) aryOverlaySymbol.push(item.Symbol)
80406
80185
  }
80407
80186
 
80408
- var bShowDrawTool=false;
80409
- if (this.GetExtendChartByClassName('DrawToolsButton')) bShowDrawTool=true; //画图工具
80410
-
80411
80187
  var aryMenu=
80412
80188
  [
80413
80189
  {
@@ -80465,7 +80241,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
80465
80241
  Name:"其他设置",
80466
80242
  SubMenu:
80467
80243
  [
80468
- { Name:"画图工具", Data:{ ID:bShowDrawTool?JSCHART_MENU_ID.CMD_HIDE_DRAWTOOL_ID:JSCHART_MENU_ID.CMD_SHOW_DRAWTOOL_ID, Args:[]}, Checked:bShowDrawTool},
80244
+ { Name:"画图工具", Data:{ ID:JSCHART_MENU_ID.CMD_SHOW_DRAWTOOL_ID, Args:[]}, Checked:this.IsShowDrawToolDialog()},
80469
80245
  ]
80470
80246
  }
80471
80247
 
@@ -83630,17 +83406,6 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
83630
83406
  chart.SetOption(option);
83631
83407
  this.ExtendChartPaint.push(chart);
83632
83408
  return chart;
83633
- case '画图工具':
83634
- chart=new DrawToolsButton();
83635
- chart.Canvas=this.Canvas;
83636
- chart.ChartBorder=this.Frame.ChartBorder;
83637
- chart.ChartFrame=this.Frame;
83638
- chart.HQChart=this;
83639
- chart.Left=this.Frame.ChartBorder.Right; //左边间距使用当前框架间距
83640
- chart.SetOption(option);
83641
- this.ExtendChartPaint.push(chart);
83642
- this.Frame.ChartBorder.Right+=chart.Width; //创建筹码需要增加右边的间距
83643
- return chart;
83644
83409
  case "MinuteBackgroundPaint":
83645
83410
  chart=new MinuteBackgroundPaint();
83646
83411
  chart.Canvas=this.Canvas;
@@ -105806,7 +105571,7 @@ function JSDraw(errorHandler,symbolData)
105806
105571
  {
105807
105572
  for(var i in condition)
105808
105573
  {
105809
- drawData[i]=null;
105574
+ drawData.Data[i]=null;
105810
105575
  if (!condition[i]) continue;
105811
105576
 
105812
105577
  if (isNumber)
@@ -105831,7 +105596,7 @@ function JSDraw(errorHandler,symbolData)
105831
105596
  var count=this.SymbolData.Data.Data.length;
105832
105597
  for(var i=0; i<count; ++i)
105833
105598
  {
105834
- drawData[i]=null;
105599
+ drawData.Data[i]=null;
105835
105600
  if (isNumber)
105836
105601
  {
105837
105602
  drawData.Data[i]=data;
@@ -132110,7 +131875,7 @@ function ScrollBarBGChart()
132110
131875
 
132111
131876
 
132112
131877
 
132113
- var HQCHART_VERSION="1.1.13237";
131878
+ var HQCHART_VERSION="1.1.13244";
132114
131879
 
132115
131880
  function PrintHQChartVersion()
132116
131881
  {
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var HQCHART_VERSION="1.1.13237";
8
+ var HQCHART_VERSION="1.1.13244";
9
9
 
10
10
  function PrintHQChartVersion()
11
11
  {