hqchart 1.1.14492 → 1.1.14498
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;
|
|
@@ -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()
|
|
@@ -51989,13 +52070,20 @@ function RectDragPaint()
|
|
|
51989
52070
|
this.LineWidth=g_JSChartResource.RectDrag.LineWidth;
|
|
51990
52071
|
this.BGColor=g_JSChartResource.RectDrag.BGColor;
|
|
51991
52072
|
this.ShowMode=0; //0=只画边框 1=遮挡未选中区域 2=整体全选
|
|
51992
|
-
|
|
52073
|
+
|
|
52074
|
+
this.EnableRButton=false; //右键选择
|
|
52075
|
+
this.EnableLButton=false; //左键选择
|
|
51993
52076
|
|
|
51994
52077
|
this.FirstPoint;
|
|
51995
52078
|
this.SecondPoint;
|
|
51996
52079
|
|
|
51997
52080
|
this.IsClearCanvas=true; //画布是否是清空状态
|
|
51998
52081
|
|
|
52082
|
+
this.IsEnable=function()
|
|
52083
|
+
{
|
|
52084
|
+
return this.EnableRButton || this.EnableLButton;
|
|
52085
|
+
}
|
|
52086
|
+
|
|
51999
52087
|
//设置参数接口
|
|
52000
52088
|
this.SetOption=function(option)
|
|
52001
52089
|
{
|
|
@@ -52004,6 +52092,8 @@ function RectDragPaint()
|
|
|
52004
52092
|
if (option.LineColor) this.LineColor=option.LineColor;
|
|
52005
52093
|
if (option.BGColor) this.BGColor=option.BGColor;
|
|
52006
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;
|
|
52007
52097
|
}
|
|
52008
52098
|
}
|
|
52009
52099
|
|
|
@@ -52098,7 +52188,7 @@ function RectDragPaint()
|
|
|
52098
52188
|
|
|
52099
52189
|
this.Draw=function()
|
|
52100
52190
|
{
|
|
52101
|
-
if (!this.
|
|
52191
|
+
if (!this.IsEnable()) return;
|
|
52102
52192
|
if (!this.HQChart) return;
|
|
52103
52193
|
|
|
52104
52194
|
var finder=this.HQChart.GetExtraCanvas(JSChart.RectDragCanvasKey);
|
|
@@ -85171,6 +85261,14 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
85171
85261
|
var bPopMinuteChart=false;
|
|
85172
85262
|
if (this.PopMinuteChart) bPopMinuteChart=true;
|
|
85173
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
|
+
|
|
85174
85272
|
var kItem=null;
|
|
85175
85273
|
if (frameID>=0 && option && IFrameSplitOperator.IsNumber(option.CursorIndex))
|
|
85176
85274
|
{
|
|
@@ -85352,7 +85450,8 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
85352
85450
|
|
|
85353
85451
|
{ Name:"禁止拖拽", Data:{ ID:JSCHART_MENU_ID.CMD_CHANGE_DRAG_MODE_ID, Args:[0]}, Checked:0==this.DragMode },
|
|
85354
85452
|
{ Name:"启动拖拽", Data:{ ID:JSCHART_MENU_ID.CMD_CHANGE_DRAG_MODE_ID, Args:[1]}, Checked:1==this.DragMode },
|
|
85355
|
-
{ 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 },
|
|
85356
85455
|
{ Name:JSPopMenu.SEPARATOR_LINE_NAME },
|
|
85357
85456
|
|
|
85358
85457
|
{ Name:"背景分割", Data:{ ID:JSCHART_MENU_ID.CMD_CHANGE_BG_SPLIT_ID, Args:[!bBGSpit]}, Checked:bBGSpit},
|
|
@@ -87582,7 +87681,6 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
87582
87681
|
this.HistoryMinuteApiUrl=g_JSChartResource.Domain+'/API/StockMinuteData'; //历史分钟数据
|
|
87583
87682
|
|
|
87584
87683
|
this.ColorLineData; //主图价格线颜色自定义配置
|
|
87585
|
-
this.EnableSelectRect=false; //是否可以区间选择
|
|
87586
87684
|
|
|
87587
87685
|
this.CorssCursorIndex={ DayIndex:-1, DataIndex:-1, Point:{X:-1, Y:-1} ,Type:-1 }; //Type: 单日(1=主图 2=盘前 3=盘后) 多日(10=主图 20=盘前 30=盘后)
|
|
87588
87686
|
this.EnableNewIndex=false //是否使用新的索引版本
|
|
@@ -87943,7 +88041,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
87943
88041
|
}
|
|
87944
88042
|
}
|
|
87945
88043
|
}
|
|
87946
|
-
else if (this.RectSelectDrag && this.RectSelectDrag.Index>=0) //区间选择
|
|
88044
|
+
else if (this.RectSelectDrag && this.RectSelectDrag.Index>=0) //区间选择 左右调整
|
|
87947
88045
|
{
|
|
87948
88046
|
if (moveSetp<5) return;
|
|
87949
88047
|
var obj={ X:e.clientX, Y:e.clientY, PointIndex:this.RectSelectDrag.Index, Name:"MoveRectSelectLine" };
|
|
@@ -87953,10 +88051,10 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
87953
88051
|
bNeedDraw=true;
|
|
87954
88052
|
}
|
|
87955
88053
|
}
|
|
87956
|
-
else
|
|
88054
|
+
else //显示区间选择
|
|
87957
88055
|
{
|
|
87958
88056
|
if (moveSetp<5 && yMoveSetp<5) return;
|
|
87959
|
-
if (!this.
|
|
88057
|
+
if (this.ChartDragSelectRect && !this.ChartDragSelectRect.Enable) return;
|
|
87960
88058
|
|
|
87961
88059
|
//this.UIElement.style.cursor="default";
|
|
87962
88060
|
this.SetCursor({Cursor:"default"});
|
|
@@ -87974,6 +88072,9 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
87974
88072
|
|
|
87975
88073
|
this.OnMinuteSelectRectMouseUp=function(e)
|
|
87976
88074
|
{
|
|
88075
|
+
var bRButtonSelectRect=this.IsEnableRSelectRect(e, "DocOnMouseUp"); //右键区间选择
|
|
88076
|
+
var bLButtonSelectRect=this.IsEnableLSelectRect(e, "DocOnMouseUp"); //左键区间选择
|
|
88077
|
+
|
|
87977
88078
|
var drag=this.MouseDrag;
|
|
87978
88079
|
drag.LastMove.X=e.clientX;
|
|
87979
88080
|
drag.LastMove.Y=e.clientY;
|
|
@@ -87992,7 +88093,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
87992
88093
|
{
|
|
87993
88094
|
|
|
87994
88095
|
}
|
|
87995
|
-
else if (
|
|
88096
|
+
else if ((bRButtonSelectRect || bLButtonSelectRect) && !this.BorderDrag && this.GetSelectRectData(selectData))
|
|
87996
88097
|
{
|
|
87997
88098
|
var event=this.GetEventCallback(JSCHART_EVENT_ID.ON_SELECT_RECT);
|
|
87998
88099
|
var paint=this.GetRectSelectPaint();
|
|
@@ -89331,7 +89432,13 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
89331
89432
|
bCorssDrawPoint=this.ChartCorssCursor.CorssPointConfig.Enable;
|
|
89332
89433
|
}
|
|
89333
89434
|
|
|
89334
|
-
|
|
89435
|
+
var bRButtonSelectRect=false,bLButtonSelectRect=false;
|
|
89436
|
+
if (this.ChartDragSelectRect)
|
|
89437
|
+
{
|
|
89438
|
+
bRButtonSelectRect=this.ChartDragSelectRect.EnableRButton;
|
|
89439
|
+
bLButtonSelectRect=this.ChartDragSelectRect.EnableLButton;
|
|
89440
|
+
}
|
|
89441
|
+
|
|
89335
89442
|
var minItem=null;
|
|
89336
89443
|
if (frameID>=0 && option && IFrameSplitOperator.IsNumber(option.CursorIndex))
|
|
89337
89444
|
{
|
|
@@ -89404,7 +89511,12 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
89404
89511
|
]
|
|
89405
89512
|
},
|
|
89406
89513
|
{
|
|
89407
|
-
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
|
+
]
|
|
89408
89520
|
},
|
|
89409
89521
|
{
|
|
89410
89522
|
Name:"十字光标",
|
|
@@ -144136,7 +144248,7 @@ function ScrollBarBGChart()
|
|
|
144136
144248
|
|
|
144137
144249
|
|
|
144138
144250
|
|
|
144139
|
-
var HQCHART_VERSION="1.1.
|
|
144251
|
+
var HQCHART_VERSION="1.1.14497";
|
|
144140
144252
|
|
|
144141
144253
|
function PrintHQChartVersion()
|
|
144142
144254
|
{
|