hqchart 1.1.14489 → 1.1.14496
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.
|
@@ -4784,7 +4784,6 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
|
|
|
4784
4784
|
if (option.DisableMouse==true) chart.DisableMouse=option.DisableMouse;
|
|
4785
4785
|
if (option.ScriptError) chart.ScriptErrorCallback=option.ScriptError; //指标执行错误回调
|
|
4786
4786
|
if (IFrameSplitOperator.IsString(option.SplashTitle)) chart.LoadDataSplashTitle=option.SplashTitle;
|
|
4787
|
-
if (IFrameSplitOperator.IsBool(option.EnableSelectRect)) chart.EnableSelectRect=option.EnableSelectRect; //是否启用区间选择
|
|
4788
4787
|
if (IFrameSplitOperator.IsBool(option.EnableZoomIndexWindow)) chart.EnableZoomIndexWindow=option.EnableZoomIndexWindow;
|
|
4789
4788
|
if (IFrameSplitOperator.IsBool(option.IsDrawPictureXY)) chart.IsDrawPictureXY=option.IsDrawPictureXY;
|
|
4790
4789
|
if (IFrameSplitOperator.IsBool(option.EnableNewIndex)) chart.EnableNewIndex=option.EnableNewIndex;
|
|
@@ -4792,6 +4791,14 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
|
|
|
4792
4791
|
if (IFrameSplitOperator.IsBool(option.EnableVerifyRecvData)) chart.EnableVerifyRecvData=option.EnableVerifyRecvData;
|
|
4793
4792
|
if (IFrameSplitOperator.IsBool(option.EnableNightDayBG)) chart.EnableNightDayBG=option.EnableNightDayBG;
|
|
4794
4793
|
|
|
4794
|
+
//老版本开启左键区间选择
|
|
4795
|
+
if (IFrameSplitOperator.IsBool(option.EnableSelectRect))
|
|
4796
|
+
{
|
|
4797
|
+
if (!option.DragSelectRect) option.DragSelectRect={ };
|
|
4798
|
+
option.DragSelectRect.Enable=true;
|
|
4799
|
+
option.DragSelectRect.EnableLButton=true;
|
|
4800
|
+
}
|
|
4801
|
+
|
|
4795
4802
|
if (option.GlobalOption)
|
|
4796
4803
|
{
|
|
4797
4804
|
var item=option.GlobalOption;
|
|
@@ -4864,7 +4871,7 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
|
|
|
4864
4871
|
{
|
|
4865
4872
|
if (!option.DragSelectRect)
|
|
4866
4873
|
{
|
|
4867
|
-
option.DragSelectRect={
|
|
4874
|
+
option.DragSelectRect={ EnableLButton:true }; //默认开启区间选中画布
|
|
4868
4875
|
}
|
|
4869
4876
|
|
|
4870
4877
|
if (option.DragSelectRect)
|
|
@@ -6768,7 +6775,7 @@ var JSCHART_MENU_ID=
|
|
|
6768
6775
|
CMD_SHOW_STOCKCHIP_ID:20, //筹码分布
|
|
6769
6776
|
CMD_HIDE_STOCKCHIP_ID:21,
|
|
6770
6777
|
|
|
6771
|
-
|
|
6778
|
+
CMD_XXXXXX_NONE_ID:22, //未用!!!!
|
|
6772
6779
|
CMD_CHANGE_DAY_COUNT_ID:23, //切换天数
|
|
6773
6780
|
CMD_SHOW_BEFORE_DATA_ID:24, //显示|隐藏集合竞价
|
|
6774
6781
|
|
|
@@ -6812,6 +6819,9 @@ var JSCHART_MENU_ID=
|
|
|
6812
6819
|
CMD_CORSS_ON_KLINE_ID:51, //十字光标只能画在K线上
|
|
6813
6820
|
CMD_CORSS_POINT_ID:52, //十字光标圆点
|
|
6814
6821
|
|
|
6822
|
+
CMD_RBUTTON_SELECT_RECT_ID:53, //右键区间选择
|
|
6823
|
+
CMD_LBUTTON_SELECT_RECT_ID:54, //左键区间选择
|
|
6824
|
+
|
|
6815
6825
|
|
|
6816
6826
|
|
|
6817
6827
|
CMD_REPORT_CHANGE_BLOCK_ID:100, //报价列表 切换板块ID
|
|
@@ -7064,6 +7074,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
7064
7074
|
|
|
7065
7075
|
|
|
7066
7076
|
this.RestoreFocusTimer=null; //恢复焦点定时器
|
|
7077
|
+
this.DocContextMenuTimer=null; //清空整体的框架
|
|
7067
7078
|
|
|
7068
7079
|
this.RestoreFocus=function(delay)
|
|
7069
7080
|
{
|
|
@@ -7514,7 +7525,9 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
7514
7525
|
|
|
7515
7526
|
if(typeof(this.OnRightMenu)=='function') this.OnRightMenu(x,y,e); //右键菜单事件
|
|
7516
7527
|
|
|
7517
|
-
|
|
7528
|
+
if (e && e.preventDefault) e.preventDefault();
|
|
7529
|
+
if (e && e.stopPropagation) e.stopPropagation();
|
|
7530
|
+
e.returnValue=false;
|
|
7518
7531
|
}
|
|
7519
7532
|
|
|
7520
7533
|
this.UIOnDblClick=function(e)
|
|
@@ -8037,15 +8050,17 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
8037
8050
|
|
|
8038
8051
|
document.onmousemove=(e)=>{ this.DocOnMouseMove(e); }
|
|
8039
8052
|
document.onmouseup=(e)=> { this.DocOnMouseUp(e); }
|
|
8040
|
-
|
|
8041
|
-
|
|
8053
|
+
document.oncontextmenu=(e)=> { this.DocContextMenu(e); }
|
|
8042
8054
|
}
|
|
8043
8055
|
|
|
8044
8056
|
this.DocOnMouseMove=function(e)
|
|
8045
8057
|
{
|
|
8046
8058
|
//加载数据中,禁用鼠标事件
|
|
8047
8059
|
if (this.ChartSplashPaint && this.ChartSplashPaint.IsEnableSplash) return;
|
|
8048
|
-
|
|
8060
|
+
|
|
8061
|
+
var bRButtonSelectRect=this.IsEnableRSelectRect(e, "DocOnMouseMove"); //右键区间选择
|
|
8062
|
+
var bLButtonSelectRect=this.IsEnableLSelectRect(e, "DocOnMouseMove"); //左键区间选择
|
|
8063
|
+
|
|
8049
8064
|
var drag=this.MouseDrag;
|
|
8050
8065
|
if (!drag) return;
|
|
8051
8066
|
|
|
@@ -8084,7 +8099,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
8084
8099
|
drag.LastMove.X=e.clientX;
|
|
8085
8100
|
drag.LastMove.Y=e.clientY;
|
|
8086
8101
|
}
|
|
8087
|
-
else if (this.IndexChartDrag && this.IndexChartDrag.SelectedChart)
|
|
8102
|
+
else if (this.IndexChartDrag && this.IndexChartDrag.SelectedChart) //选中图形移动
|
|
8088
8103
|
{
|
|
8089
8104
|
if(Math.abs(drag.LastMove.Y-e.clientY)<2 && Math.abs(drag.LastMove.X-e.clientX)<2) return;
|
|
8090
8105
|
|
|
@@ -8114,7 +8129,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
8114
8129
|
var sendData={X:x, Y:y, e:e, ChartDrag:this.CustomChartDrag, Drag:drag };
|
|
8115
8130
|
this.TryDragMove_CustomChartDrag(sendData);
|
|
8116
8131
|
}
|
|
8117
|
-
else if (this.CurrentChartDrawPicture && this.CurrentChartDrawPicture.EnableMove===true)
|
|
8132
|
+
else if (this.CurrentChartDrawPicture && this.CurrentChartDrawPicture.EnableMove===true) //画图工具移动
|
|
8118
8133
|
{
|
|
8119
8134
|
var drawPicture=this.CurrentChartDrawPicture;
|
|
8120
8135
|
if (drawPicture.Status==1 || drawPicture.Status==2)
|
|
@@ -8156,11 +8171,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
8156
8171
|
drag.LastMove.X=e.clientX;
|
|
8157
8172
|
drag.LastMove.Y=e.clientY;
|
|
8158
8173
|
}
|
|
8159
|
-
else if (
|
|
8160
|
-
{
|
|
8161
|
-
this.OnDragMode_One({X:moveSetp, Y:moveSetpY}, e);
|
|
8162
|
-
}
|
|
8163
|
-
else if (this.DragMode==2) //区间选择
|
|
8174
|
+
else if ((bLButtonSelectRect || bRButtonSelectRect) && !isDragSelectRect && !isDragSubSelectRect) //左右键区间选择
|
|
8164
8175
|
{
|
|
8165
8176
|
var yMoveSetp=Math.abs(drag.LastMove.Y-e.clientY);
|
|
8166
8177
|
|
|
@@ -8174,7 +8185,10 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
8174
8185
|
|
|
8175
8186
|
drag.LastMove.X=e.clientX;
|
|
8176
8187
|
drag.LastMove.Y=e.clientY;
|
|
8177
|
-
|
|
8188
|
+
}
|
|
8189
|
+
else if (this.DragMode==1 || isDragSelectRect || isDragSubSelectRect) //数据上下左右拖拽 区间选择框左右拖动
|
|
8190
|
+
{
|
|
8191
|
+
this.OnDragMode_One({X:moveSetp, Y:moveSetpY}, e);
|
|
8178
8192
|
}
|
|
8179
8193
|
}
|
|
8180
8194
|
|
|
@@ -8315,11 +8329,32 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
8315
8329
|
return true;
|
|
8316
8330
|
}
|
|
8317
8331
|
|
|
8332
|
+
this.ClearDocContextMenuTimer=function(delay)
|
|
8333
|
+
{
|
|
8334
|
+
var value=5000;
|
|
8335
|
+
if (IFrameSplitOperator.IsNumber(delay)) value=delay;
|
|
8336
|
+
|
|
8337
|
+
if (this.DocContextMenuTimer)
|
|
8338
|
+
{
|
|
8339
|
+
clearTimeout(this.DocContextMenuTimer);
|
|
8340
|
+
this.DocContextMenuTimer = null;
|
|
8341
|
+
}
|
|
8342
|
+
|
|
8343
|
+
this.DocContextMenuTimer=setTimeout(()=>
|
|
8344
|
+
{
|
|
8345
|
+
document.oncontextmenu=null;
|
|
8346
|
+
}, value);
|
|
8347
|
+
}
|
|
8348
|
+
|
|
8318
8349
|
this.DocOnMouseUp=function(e)
|
|
8319
8350
|
{
|
|
8320
8351
|
//清空事件
|
|
8321
8352
|
document.onmousemove=null;
|
|
8322
8353
|
document.onmouseup=null;
|
|
8354
|
+
|
|
8355
|
+
var bRButtonSelectRect=this.IsEnableRSelectRect(e, "DocOnMouseUp"); //右键区间选择
|
|
8356
|
+
var bLButtonSelectRect=this.IsEnableLSelectRect(e, "DocOnMouseUp"); //左键区间选择
|
|
8357
|
+
|
|
8323
8358
|
var IsMinuteChart=(this.ClassName=="MinuteChartContainer" || this.ClassName=="MinuteChartHScreenContainer") ? true:false;
|
|
8324
8359
|
var isDragSelectRect=(this.RectSelectDrag && this.RectSelectDrag.Index>=0);
|
|
8325
8360
|
var isDragSubSelectRect=(this.RectSelectDrag && this.RectSelectDrag.Type==4);
|
|
@@ -8366,7 +8401,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
8366
8401
|
{
|
|
8367
8402
|
if (this.OnMinuteSelectRectMouseUp) this.OnMinuteSelectRectMouseUp(e);
|
|
8368
8403
|
}
|
|
8369
|
-
else if (
|
|
8404
|
+
else if (bLButtonSelectRect || bRButtonSelectRect) //区间选择
|
|
8370
8405
|
{
|
|
8371
8406
|
var drag=this.MouseDrag;
|
|
8372
8407
|
drag.LastMove.X=e.clientX;
|
|
@@ -8382,7 +8417,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
8382
8417
|
selectData.JSChartContainer=this;
|
|
8383
8418
|
selectData.Stock={Symbol:this.Symbol, Name:this.Name};
|
|
8384
8419
|
|
|
8385
|
-
if (
|
|
8420
|
+
if (!this.BorderDrag && this.GetSelectRectData(selectData))
|
|
8386
8421
|
{
|
|
8387
8422
|
var event=this.GetEventCallback(JSCHART_EVENT_ID.ON_SELECT_RECT);
|
|
8388
8423
|
var paint=this.GetRectSelectPaint();
|
|
@@ -8459,6 +8494,13 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
8459
8494
|
this.IndexChartDrag=null;
|
|
8460
8495
|
this.CustomChartDrag=null;
|
|
8461
8496
|
if (bClearDrawPicture===true) this.CurrentChartDrawPicture=null;
|
|
8497
|
+
|
|
8498
|
+
this.ClearDocContextMenuTimer(5000);
|
|
8499
|
+
}
|
|
8500
|
+
|
|
8501
|
+
this.DocContextMenu=function(e)
|
|
8502
|
+
{
|
|
8503
|
+
e.preventDefault();
|
|
8462
8504
|
}
|
|
8463
8505
|
|
|
8464
8506
|
this.UIOnMounseOut=function(e)
|
|
@@ -14018,10 +14060,6 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
14018
14060
|
this.Draw();
|
|
14019
14061
|
}
|
|
14020
14062
|
break;
|
|
14021
|
-
case JSCHART_MENU_ID.CMD_ENABLE_SELECT_RECT_ID:
|
|
14022
|
-
if (IFrameSplitOperator.IsBool(srcParam))
|
|
14023
|
-
this.EnableSelectRect=srcParam;
|
|
14024
|
-
break;
|
|
14025
14063
|
case JSCHART_MENU_ID.CMD_CHANGE_DAY_COUNT_ID:
|
|
14026
14064
|
if (this.ChangeDayCount && param!=null)
|
|
14027
14065
|
this.ChangeDayCount(param);
|
|
@@ -14216,6 +14254,12 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
14216
14254
|
case JSCHART_MENU_ID.CMD_CORSS_POINT_ID:
|
|
14217
14255
|
if (IFrameSplitOperator.IsBool(srcParam) && this.ChartCorssCursor) this.ChartCorssCursor.CorssPointConfig.Enable=srcParam;
|
|
14218
14256
|
break;
|
|
14257
|
+
case JSCHART_MENU_ID.CMD_RBUTTON_SELECT_RECT_ID:
|
|
14258
|
+
if (IFrameSplitOperator.IsBool(srcParam) && this.ChartDragSelectRect) this.ChartDragSelectRect.EnableRButton=srcParam;
|
|
14259
|
+
break;
|
|
14260
|
+
case JSCHART_MENU_ID.CMD_LBUTTON_SELECT_RECT_ID:
|
|
14261
|
+
if (IFrameSplitOperator.IsBool(srcParam) && this.ChartDragSelectRect) this.ChartDragSelectRect.EnableLButton=srcParam;
|
|
14262
|
+
break;
|
|
14219
14263
|
}
|
|
14220
14264
|
}
|
|
14221
14265
|
|
|
@@ -14390,7 +14434,6 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
14390
14434
|
var chart=g_ExtendChartPaintFactory.Create("RectDragPaint",option);
|
|
14391
14435
|
if (!chart) return null;
|
|
14392
14436
|
|
|
14393
|
-
if (option && option.Enable===true) chart.Enable=true;
|
|
14394
14437
|
chart.ChartBorder=this.Frame.ChartBorder;
|
|
14395
14438
|
chart.ChartFrame=this.Frame;
|
|
14396
14439
|
chart.HQChart=this;
|
|
@@ -14625,6 +14668,44 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
14625
14668
|
{
|
|
14626
14669
|
return null;
|
|
14627
14670
|
}
|
|
14671
|
+
|
|
14672
|
+
this.IsEnableRSelectRect=function(event, funcName)
|
|
14673
|
+
{
|
|
14674
|
+
if (!this.ChartDragSelectRect) return false;
|
|
14675
|
+
if (!this.ChartDragSelectRect.EnableRButton) return false;
|
|
14676
|
+
if (!event) return false;
|
|
14677
|
+
|
|
14678
|
+
//两个事件使用不同的变量获取鼠标按键状态
|
|
14679
|
+
if (funcName=="DocOnMouseUp")
|
|
14680
|
+
{
|
|
14681
|
+
if (event.button!=2) return false;
|
|
14682
|
+
}
|
|
14683
|
+
else if (funcName=="DocOnMouseMove")
|
|
14684
|
+
{
|
|
14685
|
+
if (event.buttons!=2) return false;
|
|
14686
|
+
}
|
|
14687
|
+
|
|
14688
|
+
return true;
|
|
14689
|
+
}
|
|
14690
|
+
|
|
14691
|
+
this.IsEnableLSelectRect=function(event, funcName)
|
|
14692
|
+
{
|
|
14693
|
+
if (!this.ChartDragSelectRect) return false;
|
|
14694
|
+
if (!this.ChartDragSelectRect.EnableLButton) return false;
|
|
14695
|
+
if (!event) return false;
|
|
14696
|
+
|
|
14697
|
+
//两个事件使用不同的变量获取鼠标按键状态
|
|
14698
|
+
if (funcName=="DocOnMouseUp")
|
|
14699
|
+
{
|
|
14700
|
+
if (event.button!=0) return false;
|
|
14701
|
+
}
|
|
14702
|
+
else if (funcName=="DocOnMouseMove")
|
|
14703
|
+
{
|
|
14704
|
+
if (event.buttons!=1) return false;
|
|
14705
|
+
}
|
|
14706
|
+
|
|
14707
|
+
return true;
|
|
14708
|
+
}
|
|
14628
14709
|
}
|
|
14629
14710
|
|
|
14630
14711
|
function GetDevicePixelRatio()
|
|
@@ -27311,7 +27392,9 @@ function ChartData()
|
|
|
27311
27392
|
if (this.Data[i] && this.Data[i].Value!=null)
|
|
27312
27393
|
{
|
|
27313
27394
|
var item=this.Data[i].Value;
|
|
27314
|
-
if (
|
|
27395
|
+
if (IFrameSplitOperator.IsNumber(item))
|
|
27396
|
+
result[i]=item;
|
|
27397
|
+
else if (IFrameSplitOperator.IsString(item))
|
|
27315
27398
|
result[i]=item;
|
|
27316
27399
|
else if (item instanceof Array) //支持数组
|
|
27317
27400
|
result[i]=item;
|
|
@@ -37345,7 +37428,7 @@ function ChartIndexTitle()
|
|
|
37345
37428
|
|
|
37346
37429
|
this.GetMaxMin=function()
|
|
37347
37430
|
{
|
|
37348
|
-
return
|
|
37431
|
+
return { Min:null, Max:null };
|
|
37349
37432
|
}
|
|
37350
37433
|
}
|
|
37351
37434
|
|
|
@@ -51987,13 +52070,20 @@ function RectDragPaint()
|
|
|
51987
52070
|
this.LineWidth=g_JSChartResource.RectDrag.LineWidth;
|
|
51988
52071
|
this.BGColor=g_JSChartResource.RectDrag.BGColor;
|
|
51989
52072
|
this.ShowMode=0; //0=只画边框 1=遮挡未选中区域 2=整体全选
|
|
51990
|
-
|
|
52073
|
+
|
|
52074
|
+
this.EnableRButton=false; //右键选择
|
|
52075
|
+
this.EnableLButton=false; //左键选择
|
|
51991
52076
|
|
|
51992
52077
|
this.FirstPoint;
|
|
51993
52078
|
this.SecondPoint;
|
|
51994
52079
|
|
|
51995
52080
|
this.IsClearCanvas=true; //画布是否是清空状态
|
|
51996
52081
|
|
|
52082
|
+
this.IsEnable=function()
|
|
52083
|
+
{
|
|
52084
|
+
return this.EnableRButton || this.EnableLButton;
|
|
52085
|
+
}
|
|
52086
|
+
|
|
51997
52087
|
//设置参数接口
|
|
51998
52088
|
this.SetOption=function(option)
|
|
51999
52089
|
{
|
|
@@ -52002,6 +52092,8 @@ function RectDragPaint()
|
|
|
52002
52092
|
if (option.LineColor) this.LineColor=option.LineColor;
|
|
52003
52093
|
if (option.BGColor) this.BGColor=option.BGColor;
|
|
52004
52094
|
if (IFrameSplitOperator.IsNumber(option.ShowMode)) this.ShowMode=option.ShowMode;
|
|
52095
|
+
if (IFrameSplitOperator.IsBool(option.EnableRButton)) this.EnableRButton=option.EnableRButton;
|
|
52096
|
+
if (IFrameSplitOperator.IsBool(option.EnableLButton)) this.EnableLButton=option.EnableLButton;
|
|
52005
52097
|
}
|
|
52006
52098
|
}
|
|
52007
52099
|
|
|
@@ -52096,7 +52188,7 @@ function RectDragPaint()
|
|
|
52096
52188
|
|
|
52097
52189
|
this.Draw=function()
|
|
52098
52190
|
{
|
|
52099
|
-
if (!this.
|
|
52191
|
+
if (!this.IsEnable()) return;
|
|
52100
52192
|
if (!this.HQChart) return;
|
|
52101
52193
|
|
|
52102
52194
|
var finder=this.HQChart.GetExtraCanvas(JSChart.RectDragCanvasKey);
|
|
@@ -85169,6 +85261,14 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
85169
85261
|
var bPopMinuteChart=false;
|
|
85170
85262
|
if (this.PopMinuteChart) bPopMinuteChart=true;
|
|
85171
85263
|
|
|
85264
|
+
var bRButtonSelectRect=false, bLButtonSelectRect=false;
|
|
85265
|
+
if (this.ChartDragSelectRect)
|
|
85266
|
+
{
|
|
85267
|
+
bRButtonSelectRect=this.ChartDragSelectRect.EnableRButton;
|
|
85268
|
+
bLButtonSelectRect=this.ChartDragSelectRect.EnableLButton;
|
|
85269
|
+
}
|
|
85270
|
+
|
|
85271
|
+
|
|
85172
85272
|
var kItem=null;
|
|
85173
85273
|
if (frameID>=0 && option && IFrameSplitOperator.IsNumber(option.CursorIndex))
|
|
85174
85274
|
{
|
|
@@ -85350,7 +85450,8 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
85350
85450
|
|
|
85351
85451
|
{ Name:"禁止拖拽", Data:{ ID:JSCHART_MENU_ID.CMD_CHANGE_DRAG_MODE_ID, Args:[0]}, Checked:0==this.DragMode },
|
|
85352
85452
|
{ Name:"启动拖拽", Data:{ ID:JSCHART_MENU_ID.CMD_CHANGE_DRAG_MODE_ID, Args:[1]}, Checked:1==this.DragMode },
|
|
85353
|
-
{ Name:"左键区间选择", Data:{ ID:JSCHART_MENU_ID.
|
|
85453
|
+
{ Name:"左键区间选择", Data:{ ID:JSCHART_MENU_ID.CMD_LBUTTON_SELECT_RECT_ID, Args:[!bLButtonSelectRect]}, Checked:bLButtonSelectRect },
|
|
85454
|
+
{ Name:"右键区间选择", Data:{ ID:JSCHART_MENU_ID.CMD_RBUTTON_SELECT_RECT_ID, Args:[!bRButtonSelectRect]}, Checked:bRButtonSelectRect },
|
|
85354
85455
|
{ Name:JSPopMenu.SEPARATOR_LINE_NAME },
|
|
85355
85456
|
|
|
85356
85457
|
{ Name:"背景分割", Data:{ ID:JSCHART_MENU_ID.CMD_CHANGE_BG_SPLIT_ID, Args:[!bBGSpit]}, Checked:bBGSpit},
|
|
@@ -87580,7 +87681,6 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
87580
87681
|
this.HistoryMinuteApiUrl=g_JSChartResource.Domain+'/API/StockMinuteData'; //历史分钟数据
|
|
87581
87682
|
|
|
87582
87683
|
this.ColorLineData; //主图价格线颜色自定义配置
|
|
87583
|
-
this.EnableSelectRect=false; //是否可以区间选择
|
|
87584
87684
|
|
|
87585
87685
|
this.CorssCursorIndex={ DayIndex:-1, DataIndex:-1, Point:{X:-1, Y:-1} ,Type:-1 }; //Type: 单日(1=主图 2=盘前 3=盘后) 多日(10=主图 20=盘前 30=盘后)
|
|
87586
87686
|
this.EnableNewIndex=false //是否使用新的索引版本
|
|
@@ -87941,7 +88041,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
87941
88041
|
}
|
|
87942
88042
|
}
|
|
87943
88043
|
}
|
|
87944
|
-
else if (this.RectSelectDrag && this.RectSelectDrag.Index>=0) //区间选择
|
|
88044
|
+
else if (this.RectSelectDrag && this.RectSelectDrag.Index>=0) //区间选择 左右调整
|
|
87945
88045
|
{
|
|
87946
88046
|
if (moveSetp<5) return;
|
|
87947
88047
|
var obj={ X:e.clientX, Y:e.clientY, PointIndex:this.RectSelectDrag.Index, Name:"MoveRectSelectLine" };
|
|
@@ -87951,10 +88051,10 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
87951
88051
|
bNeedDraw=true;
|
|
87952
88052
|
}
|
|
87953
88053
|
}
|
|
87954
|
-
else
|
|
88054
|
+
else //显示区间选择
|
|
87955
88055
|
{
|
|
87956
88056
|
if (moveSetp<5 && yMoveSetp<5) return;
|
|
87957
|
-
if (!this.
|
|
88057
|
+
if (this.ChartDragSelectRect && !this.ChartDragSelectRect.Enable) return;
|
|
87958
88058
|
|
|
87959
88059
|
//this.UIElement.style.cursor="default";
|
|
87960
88060
|
this.SetCursor({Cursor:"default"});
|
|
@@ -87972,6 +88072,9 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
87972
88072
|
|
|
87973
88073
|
this.OnMinuteSelectRectMouseUp=function(e)
|
|
87974
88074
|
{
|
|
88075
|
+
var bRButtonSelectRect=this.IsEnableRSelectRect(e, "DocOnMouseUp"); //右键区间选择
|
|
88076
|
+
var bLButtonSelectRect=this.IsEnableLSelectRect(e, "DocOnMouseUp"); //左键区间选择
|
|
88077
|
+
|
|
87975
88078
|
var drag=this.MouseDrag;
|
|
87976
88079
|
drag.LastMove.X=e.clientX;
|
|
87977
88080
|
drag.LastMove.Y=e.clientY;
|
|
@@ -87990,7 +88093,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
87990
88093
|
{
|
|
87991
88094
|
|
|
87992
88095
|
}
|
|
87993
|
-
else if (
|
|
88096
|
+
else if ((bRButtonSelectRect || bLButtonSelectRect) && !this.BorderDrag && this.GetSelectRectData(selectData))
|
|
87994
88097
|
{
|
|
87995
88098
|
var event=this.GetEventCallback(JSCHART_EVENT_ID.ON_SELECT_RECT);
|
|
87996
88099
|
var paint=this.GetRectSelectPaint();
|
|
@@ -89329,7 +89432,13 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
89329
89432
|
bCorssDrawPoint=this.ChartCorssCursor.CorssPointConfig.Enable;
|
|
89330
89433
|
}
|
|
89331
89434
|
|
|
89332
|
-
|
|
89435
|
+
var bRButtonSelectRect=false,bLButtonSelectRect=false;
|
|
89436
|
+
if (this.ChartDragSelectRect)
|
|
89437
|
+
{
|
|
89438
|
+
bRButtonSelectRect=this.ChartDragSelectRect.EnableRButton;
|
|
89439
|
+
bLButtonSelectRect=this.ChartDragSelectRect.EnableLButton;
|
|
89440
|
+
}
|
|
89441
|
+
|
|
89333
89442
|
var minItem=null;
|
|
89334
89443
|
if (frameID>=0 && option && IFrameSplitOperator.IsNumber(option.CursorIndex))
|
|
89335
89444
|
{
|
|
@@ -89402,7 +89511,12 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
89402
89511
|
]
|
|
89403
89512
|
},
|
|
89404
89513
|
{
|
|
89405
|
-
Name:"区间选择",
|
|
89514
|
+
Name:"区间选择",
|
|
89515
|
+
SubMenu:
|
|
89516
|
+
[
|
|
89517
|
+
{ Name:"左键区间选择",Data:{ ID:JSCHART_MENU_ID.CMD_LBUTTON_SELECT_RECT_ID, Args:[!bLButtonSelectRect]}, Checked:bLButtonSelectRect },
|
|
89518
|
+
{ Name:"右键区间选择",Data:{ ID:JSCHART_MENU_ID.CMD_RBUTTON_SELECT_RECT_ID, Args:[!bRButtonSelectRect]}, Checked:bRButtonSelectRect },
|
|
89519
|
+
]
|
|
89406
89520
|
},
|
|
89407
89521
|
{
|
|
89408
89522
|
Name:"十字光标",
|
|
@@ -144134,7 +144248,7 @@ function ScrollBarBGChart()
|
|
|
144134
144248
|
|
|
144135
144249
|
|
|
144136
144250
|
|
|
144137
|
-
var HQCHART_VERSION="1.1.
|
|
144251
|
+
var HQCHART_VERSION="1.1.14495";
|
|
144138
144252
|
|
|
144139
144253
|
function PrintHQChartVersion()
|
|
144140
144254
|
{
|