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.
|
@@ -4828,7 +4828,6 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
|
|
|
4828
4828
|
if (option.DisableMouse==true) chart.DisableMouse=option.DisableMouse;
|
|
4829
4829
|
if (option.ScriptError) chart.ScriptErrorCallback=option.ScriptError; //指标执行错误回调
|
|
4830
4830
|
if (IFrameSplitOperator.IsString(option.SplashTitle)) chart.LoadDataSplashTitle=option.SplashTitle;
|
|
4831
|
-
if (IFrameSplitOperator.IsBool(option.EnableSelectRect)) chart.EnableSelectRect=option.EnableSelectRect; //是否启用区间选择
|
|
4832
4831
|
if (IFrameSplitOperator.IsBool(option.EnableZoomIndexWindow)) chart.EnableZoomIndexWindow=option.EnableZoomIndexWindow;
|
|
4833
4832
|
if (IFrameSplitOperator.IsBool(option.IsDrawPictureXY)) chart.IsDrawPictureXY=option.IsDrawPictureXY;
|
|
4834
4833
|
if (IFrameSplitOperator.IsBool(option.EnableNewIndex)) chart.EnableNewIndex=option.EnableNewIndex;
|
|
@@ -4836,6 +4835,14 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
|
|
|
4836
4835
|
if (IFrameSplitOperator.IsBool(option.EnableVerifyRecvData)) chart.EnableVerifyRecvData=option.EnableVerifyRecvData;
|
|
4837
4836
|
if (IFrameSplitOperator.IsBool(option.EnableNightDayBG)) chart.EnableNightDayBG=option.EnableNightDayBG;
|
|
4838
4837
|
|
|
4838
|
+
//老版本开启左键区间选择
|
|
4839
|
+
if (IFrameSplitOperator.IsBool(option.EnableSelectRect))
|
|
4840
|
+
{
|
|
4841
|
+
if (!option.DragSelectRect) option.DragSelectRect={ };
|
|
4842
|
+
option.DragSelectRect.Enable=true;
|
|
4843
|
+
option.DragSelectRect.EnableLButton=true;
|
|
4844
|
+
}
|
|
4845
|
+
|
|
4839
4846
|
if (option.GlobalOption)
|
|
4840
4847
|
{
|
|
4841
4848
|
var item=option.GlobalOption;
|
|
@@ -6812,7 +6819,7 @@ var JSCHART_MENU_ID=
|
|
|
6812
6819
|
CMD_SHOW_STOCKCHIP_ID:20, //筹码分布
|
|
6813
6820
|
CMD_HIDE_STOCKCHIP_ID:21,
|
|
6814
6821
|
|
|
6815
|
-
|
|
6822
|
+
CMD_XXXXXX_NONE_ID:22, //未用!!!!
|
|
6816
6823
|
CMD_CHANGE_DAY_COUNT_ID:23, //切换天数
|
|
6817
6824
|
CMD_SHOW_BEFORE_DATA_ID:24, //显示|隐藏集合竞价
|
|
6818
6825
|
|
|
@@ -6856,6 +6863,9 @@ var JSCHART_MENU_ID=
|
|
|
6856
6863
|
CMD_CORSS_ON_KLINE_ID:51, //十字光标只能画在K线上
|
|
6857
6864
|
CMD_CORSS_POINT_ID:52, //十字光标圆点
|
|
6858
6865
|
|
|
6866
|
+
CMD_RBUTTON_SELECT_RECT_ID:53, //右键区间选择
|
|
6867
|
+
CMD_LBUTTON_SELECT_RECT_ID:54, //左键区间选择
|
|
6868
|
+
|
|
6859
6869
|
|
|
6860
6870
|
|
|
6861
6871
|
CMD_REPORT_CHANGE_BLOCK_ID:100, //报价列表 切换板块ID
|
|
@@ -7108,6 +7118,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
7108
7118
|
|
|
7109
7119
|
|
|
7110
7120
|
this.RestoreFocusTimer=null; //恢复焦点定时器
|
|
7121
|
+
this.DocContextMenuTimer=null; //清空整体的框架
|
|
7111
7122
|
|
|
7112
7123
|
this.RestoreFocus=function(delay)
|
|
7113
7124
|
{
|
|
@@ -7558,7 +7569,9 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
7558
7569
|
|
|
7559
7570
|
if(typeof(this.OnRightMenu)=='function') this.OnRightMenu(x,y,e); //右键菜单事件
|
|
7560
7571
|
|
|
7561
|
-
|
|
7572
|
+
if (e && e.preventDefault) e.preventDefault();
|
|
7573
|
+
if (e && e.stopPropagation) e.stopPropagation();
|
|
7574
|
+
e.returnValue=false;
|
|
7562
7575
|
}
|
|
7563
7576
|
|
|
7564
7577
|
this.UIOnDblClick=function(e)
|
|
@@ -8081,15 +8094,17 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
8081
8094
|
|
|
8082
8095
|
document.onmousemove=(e)=>{ this.DocOnMouseMove(e); }
|
|
8083
8096
|
document.onmouseup=(e)=> { this.DocOnMouseUp(e); }
|
|
8084
|
-
|
|
8085
|
-
|
|
8097
|
+
document.oncontextmenu=(e)=> { this.DocContextMenu(e); }
|
|
8086
8098
|
}
|
|
8087
8099
|
|
|
8088
8100
|
this.DocOnMouseMove=function(e)
|
|
8089
8101
|
{
|
|
8090
8102
|
//加载数据中,禁用鼠标事件
|
|
8091
8103
|
if (this.ChartSplashPaint && this.ChartSplashPaint.IsEnableSplash) return;
|
|
8092
|
-
|
|
8104
|
+
|
|
8105
|
+
var bRButtonSelectRect=this.IsEnableRSelectRect(e, "DocOnMouseMove"); //右键区间选择
|
|
8106
|
+
var bLButtonSelectRect=this.IsEnableLSelectRect(e, "DocOnMouseMove"); //左键区间选择
|
|
8107
|
+
|
|
8093
8108
|
var drag=this.MouseDrag;
|
|
8094
8109
|
if (!drag) return;
|
|
8095
8110
|
|
|
@@ -8128,7 +8143,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
8128
8143
|
drag.LastMove.X=e.clientX;
|
|
8129
8144
|
drag.LastMove.Y=e.clientY;
|
|
8130
8145
|
}
|
|
8131
|
-
else if (this.IndexChartDrag && this.IndexChartDrag.SelectedChart)
|
|
8146
|
+
else if (this.IndexChartDrag && this.IndexChartDrag.SelectedChart) //选中图形移动
|
|
8132
8147
|
{
|
|
8133
8148
|
if(Math.abs(drag.LastMove.Y-e.clientY)<2 && Math.abs(drag.LastMove.X-e.clientX)<2) return;
|
|
8134
8149
|
|
|
@@ -8158,7 +8173,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
8158
8173
|
var sendData={X:x, Y:y, e:e, ChartDrag:this.CustomChartDrag, Drag:drag };
|
|
8159
8174
|
this.TryDragMove_CustomChartDrag(sendData);
|
|
8160
8175
|
}
|
|
8161
|
-
else if (this.CurrentChartDrawPicture && this.CurrentChartDrawPicture.EnableMove===true)
|
|
8176
|
+
else if (this.CurrentChartDrawPicture && this.CurrentChartDrawPicture.EnableMove===true) //画图工具移动
|
|
8162
8177
|
{
|
|
8163
8178
|
var drawPicture=this.CurrentChartDrawPicture;
|
|
8164
8179
|
if (drawPicture.Status==1 || drawPicture.Status==2)
|
|
@@ -8200,11 +8215,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
8200
8215
|
drag.LastMove.X=e.clientX;
|
|
8201
8216
|
drag.LastMove.Y=e.clientY;
|
|
8202
8217
|
}
|
|
8203
|
-
else if (
|
|
8204
|
-
{
|
|
8205
|
-
this.OnDragMode_One({X:moveSetp, Y:moveSetpY}, e);
|
|
8206
|
-
}
|
|
8207
|
-
else if (this.DragMode==2) //区间选择
|
|
8218
|
+
else if ((bLButtonSelectRect || bRButtonSelectRect) && !isDragSelectRect && !isDragSubSelectRect) //左右键区间选择
|
|
8208
8219
|
{
|
|
8209
8220
|
var yMoveSetp=Math.abs(drag.LastMove.Y-e.clientY);
|
|
8210
8221
|
|
|
@@ -8218,7 +8229,10 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
8218
8229
|
|
|
8219
8230
|
drag.LastMove.X=e.clientX;
|
|
8220
8231
|
drag.LastMove.Y=e.clientY;
|
|
8221
|
-
|
|
8232
|
+
}
|
|
8233
|
+
else if (this.DragMode==1 || isDragSelectRect || isDragSubSelectRect) //数据上下左右拖拽 区间选择框左右拖动
|
|
8234
|
+
{
|
|
8235
|
+
this.OnDragMode_One({X:moveSetp, Y:moveSetpY}, e);
|
|
8222
8236
|
}
|
|
8223
8237
|
}
|
|
8224
8238
|
|
|
@@ -8359,11 +8373,32 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
8359
8373
|
return true;
|
|
8360
8374
|
}
|
|
8361
8375
|
|
|
8376
|
+
this.ClearDocContextMenuTimer=function(delay)
|
|
8377
|
+
{
|
|
8378
|
+
var value=5000;
|
|
8379
|
+
if (IFrameSplitOperator.IsNumber(delay)) value=delay;
|
|
8380
|
+
|
|
8381
|
+
if (this.DocContextMenuTimer)
|
|
8382
|
+
{
|
|
8383
|
+
clearTimeout(this.DocContextMenuTimer);
|
|
8384
|
+
this.DocContextMenuTimer = null;
|
|
8385
|
+
}
|
|
8386
|
+
|
|
8387
|
+
this.DocContextMenuTimer=setTimeout(()=>
|
|
8388
|
+
{
|
|
8389
|
+
document.oncontextmenu=null;
|
|
8390
|
+
}, value);
|
|
8391
|
+
}
|
|
8392
|
+
|
|
8362
8393
|
this.DocOnMouseUp=function(e)
|
|
8363
8394
|
{
|
|
8364
8395
|
//清空事件
|
|
8365
8396
|
document.onmousemove=null;
|
|
8366
8397
|
document.onmouseup=null;
|
|
8398
|
+
|
|
8399
|
+
var bRButtonSelectRect=this.IsEnableRSelectRect(e, "DocOnMouseUp"); //右键区间选择
|
|
8400
|
+
var bLButtonSelectRect=this.IsEnableLSelectRect(e, "DocOnMouseUp"); //左键区间选择
|
|
8401
|
+
|
|
8367
8402
|
var IsMinuteChart=(this.ClassName=="MinuteChartContainer" || this.ClassName=="MinuteChartHScreenContainer") ? true:false;
|
|
8368
8403
|
var isDragSelectRect=(this.RectSelectDrag && this.RectSelectDrag.Index>=0);
|
|
8369
8404
|
var isDragSubSelectRect=(this.RectSelectDrag && this.RectSelectDrag.Type==4);
|
|
@@ -8410,7 +8445,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
8410
8445
|
{
|
|
8411
8446
|
if (this.OnMinuteSelectRectMouseUp) this.OnMinuteSelectRectMouseUp(e);
|
|
8412
8447
|
}
|
|
8413
|
-
else if (
|
|
8448
|
+
else if (bLButtonSelectRect || bRButtonSelectRect) //区间选择
|
|
8414
8449
|
{
|
|
8415
8450
|
var drag=this.MouseDrag;
|
|
8416
8451
|
drag.LastMove.X=e.clientX;
|
|
@@ -8426,7 +8461,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
8426
8461
|
selectData.JSChartContainer=this;
|
|
8427
8462
|
selectData.Stock={Symbol:this.Symbol, Name:this.Name};
|
|
8428
8463
|
|
|
8429
|
-
if (
|
|
8464
|
+
if (!this.BorderDrag && this.GetSelectRectData(selectData))
|
|
8430
8465
|
{
|
|
8431
8466
|
var event=this.GetEventCallback(JSCHART_EVENT_ID.ON_SELECT_RECT);
|
|
8432
8467
|
var paint=this.GetRectSelectPaint();
|
|
@@ -8503,6 +8538,13 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
8503
8538
|
this.IndexChartDrag=null;
|
|
8504
8539
|
this.CustomChartDrag=null;
|
|
8505
8540
|
if (bClearDrawPicture===true) this.CurrentChartDrawPicture=null;
|
|
8541
|
+
|
|
8542
|
+
this.ClearDocContextMenuTimer(5000);
|
|
8543
|
+
}
|
|
8544
|
+
|
|
8545
|
+
this.DocContextMenu=function(e)
|
|
8546
|
+
{
|
|
8547
|
+
e.preventDefault();
|
|
8506
8548
|
}
|
|
8507
8549
|
|
|
8508
8550
|
this.UIOnMounseOut=function(e)
|
|
@@ -14062,10 +14104,6 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
14062
14104
|
this.Draw();
|
|
14063
14105
|
}
|
|
14064
14106
|
break;
|
|
14065
|
-
case JSCHART_MENU_ID.CMD_ENABLE_SELECT_RECT_ID:
|
|
14066
|
-
if (IFrameSplitOperator.IsBool(srcParam))
|
|
14067
|
-
this.EnableSelectRect=srcParam;
|
|
14068
|
-
break;
|
|
14069
14107
|
case JSCHART_MENU_ID.CMD_CHANGE_DAY_COUNT_ID:
|
|
14070
14108
|
if (this.ChangeDayCount && param!=null)
|
|
14071
14109
|
this.ChangeDayCount(param);
|
|
@@ -14260,6 +14298,12 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
14260
14298
|
case JSCHART_MENU_ID.CMD_CORSS_POINT_ID:
|
|
14261
14299
|
if (IFrameSplitOperator.IsBool(srcParam) && this.ChartCorssCursor) this.ChartCorssCursor.CorssPointConfig.Enable=srcParam;
|
|
14262
14300
|
break;
|
|
14301
|
+
case JSCHART_MENU_ID.CMD_RBUTTON_SELECT_RECT_ID:
|
|
14302
|
+
if (IFrameSplitOperator.IsBool(srcParam) && this.ChartDragSelectRect) this.ChartDragSelectRect.EnableRButton=srcParam;
|
|
14303
|
+
break;
|
|
14304
|
+
case JSCHART_MENU_ID.CMD_LBUTTON_SELECT_RECT_ID:
|
|
14305
|
+
if (IFrameSplitOperator.IsBool(srcParam) && this.ChartDragSelectRect) this.ChartDragSelectRect.EnableLButton=srcParam;
|
|
14306
|
+
break;
|
|
14263
14307
|
}
|
|
14264
14308
|
}
|
|
14265
14309
|
|
|
@@ -14434,7 +14478,6 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
14434
14478
|
var chart=g_ExtendChartPaintFactory.Create("RectDragPaint",option);
|
|
14435
14479
|
if (!chart) return null;
|
|
14436
14480
|
|
|
14437
|
-
if (option && option.Enable===true) chart.Enable=true;
|
|
14438
14481
|
chart.ChartBorder=this.Frame.ChartBorder;
|
|
14439
14482
|
chart.ChartFrame=this.Frame;
|
|
14440
14483
|
chart.HQChart=this;
|
|
@@ -14669,6 +14712,44 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
14669
14712
|
{
|
|
14670
14713
|
return null;
|
|
14671
14714
|
}
|
|
14715
|
+
|
|
14716
|
+
this.IsEnableRSelectRect=function(event, funcName)
|
|
14717
|
+
{
|
|
14718
|
+
if (!this.ChartDragSelectRect) return false;
|
|
14719
|
+
if (!this.ChartDragSelectRect.EnableRButton) return false;
|
|
14720
|
+
if (!event) return false;
|
|
14721
|
+
|
|
14722
|
+
//两个事件使用不同的变量获取鼠标按键状态
|
|
14723
|
+
if (funcName=="DocOnMouseUp")
|
|
14724
|
+
{
|
|
14725
|
+
if (event.button!=2) return false;
|
|
14726
|
+
}
|
|
14727
|
+
else if (funcName=="DocOnMouseMove")
|
|
14728
|
+
{
|
|
14729
|
+
if (event.buttons!=2) return false;
|
|
14730
|
+
}
|
|
14731
|
+
|
|
14732
|
+
return true;
|
|
14733
|
+
}
|
|
14734
|
+
|
|
14735
|
+
this.IsEnableLSelectRect=function(event, funcName)
|
|
14736
|
+
{
|
|
14737
|
+
if (!this.ChartDragSelectRect) return false;
|
|
14738
|
+
if (!this.ChartDragSelectRect.EnableLButton) return false;
|
|
14739
|
+
if (!event) return false;
|
|
14740
|
+
|
|
14741
|
+
//两个事件使用不同的变量获取鼠标按键状态
|
|
14742
|
+
if (funcName=="DocOnMouseUp")
|
|
14743
|
+
{
|
|
14744
|
+
if (event.button!=0) return false;
|
|
14745
|
+
}
|
|
14746
|
+
else if (funcName=="DocOnMouseMove")
|
|
14747
|
+
{
|
|
14748
|
+
if (event.buttons!=1) return false;
|
|
14749
|
+
}
|
|
14750
|
+
|
|
14751
|
+
return true;
|
|
14752
|
+
}
|
|
14672
14753
|
}
|
|
14673
14754
|
|
|
14674
14755
|
function GetDevicePixelRatio()
|
|
@@ -52033,13 +52114,20 @@ function RectDragPaint()
|
|
|
52033
52114
|
this.LineWidth=g_JSChartResource.RectDrag.LineWidth;
|
|
52034
52115
|
this.BGColor=g_JSChartResource.RectDrag.BGColor;
|
|
52035
52116
|
this.ShowMode=0; //0=只画边框 1=遮挡未选中区域 2=整体全选
|
|
52036
|
-
|
|
52117
|
+
|
|
52118
|
+
this.EnableRButton=false; //右键选择
|
|
52119
|
+
this.EnableLButton=false; //左键选择
|
|
52037
52120
|
|
|
52038
52121
|
this.FirstPoint;
|
|
52039
52122
|
this.SecondPoint;
|
|
52040
52123
|
|
|
52041
52124
|
this.IsClearCanvas=true; //画布是否是清空状态
|
|
52042
52125
|
|
|
52126
|
+
this.IsEnable=function()
|
|
52127
|
+
{
|
|
52128
|
+
return this.EnableRButton || this.EnableLButton;
|
|
52129
|
+
}
|
|
52130
|
+
|
|
52043
52131
|
//设置参数接口
|
|
52044
52132
|
this.SetOption=function(option)
|
|
52045
52133
|
{
|
|
@@ -52048,6 +52136,8 @@ function RectDragPaint()
|
|
|
52048
52136
|
if (option.LineColor) this.LineColor=option.LineColor;
|
|
52049
52137
|
if (option.BGColor) this.BGColor=option.BGColor;
|
|
52050
52138
|
if (IFrameSplitOperator.IsNumber(option.ShowMode)) this.ShowMode=option.ShowMode;
|
|
52139
|
+
if (IFrameSplitOperator.IsBool(option.EnableRButton)) this.EnableRButton=option.EnableRButton;
|
|
52140
|
+
if (IFrameSplitOperator.IsBool(option.EnableLButton)) this.EnableLButton=option.EnableLButton;
|
|
52051
52141
|
}
|
|
52052
52142
|
}
|
|
52053
52143
|
|
|
@@ -52142,7 +52232,7 @@ function RectDragPaint()
|
|
|
52142
52232
|
|
|
52143
52233
|
this.Draw=function()
|
|
52144
52234
|
{
|
|
52145
|
-
if (!this.
|
|
52235
|
+
if (!this.IsEnable()) return;
|
|
52146
52236
|
if (!this.HQChart) return;
|
|
52147
52237
|
|
|
52148
52238
|
var finder=this.HQChart.GetExtraCanvas(JSChart.RectDragCanvasKey);
|
|
@@ -85215,6 +85305,14 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
85215
85305
|
var bPopMinuteChart=false;
|
|
85216
85306
|
if (this.PopMinuteChart) bPopMinuteChart=true;
|
|
85217
85307
|
|
|
85308
|
+
var bRButtonSelectRect=false, bLButtonSelectRect=false;
|
|
85309
|
+
if (this.ChartDragSelectRect)
|
|
85310
|
+
{
|
|
85311
|
+
bRButtonSelectRect=this.ChartDragSelectRect.EnableRButton;
|
|
85312
|
+
bLButtonSelectRect=this.ChartDragSelectRect.EnableLButton;
|
|
85313
|
+
}
|
|
85314
|
+
|
|
85315
|
+
|
|
85218
85316
|
var kItem=null;
|
|
85219
85317
|
if (frameID>=0 && option && IFrameSplitOperator.IsNumber(option.CursorIndex))
|
|
85220
85318
|
{
|
|
@@ -85396,7 +85494,8 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
85396
85494
|
|
|
85397
85495
|
{ Name:"禁止拖拽", Data:{ ID:JSCHART_MENU_ID.CMD_CHANGE_DRAG_MODE_ID, Args:[0]}, Checked:0==this.DragMode },
|
|
85398
85496
|
{ Name:"启动拖拽", Data:{ ID:JSCHART_MENU_ID.CMD_CHANGE_DRAG_MODE_ID, Args:[1]}, Checked:1==this.DragMode },
|
|
85399
|
-
{ Name:"左键区间选择", Data:{ ID:JSCHART_MENU_ID.
|
|
85497
|
+
{ Name:"左键区间选择", Data:{ ID:JSCHART_MENU_ID.CMD_LBUTTON_SELECT_RECT_ID, Args:[!bLButtonSelectRect]}, Checked:bLButtonSelectRect },
|
|
85498
|
+
{ Name:"右键区间选择", Data:{ ID:JSCHART_MENU_ID.CMD_RBUTTON_SELECT_RECT_ID, Args:[!bRButtonSelectRect]}, Checked:bRButtonSelectRect },
|
|
85400
85499
|
{ Name:JSPopMenu.SEPARATOR_LINE_NAME },
|
|
85401
85500
|
|
|
85402
85501
|
{ Name:"背景分割", Data:{ ID:JSCHART_MENU_ID.CMD_CHANGE_BG_SPLIT_ID, Args:[!bBGSpit]}, Checked:bBGSpit},
|
|
@@ -87626,7 +87725,6 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
87626
87725
|
this.HistoryMinuteApiUrl=g_JSChartResource.Domain+'/API/StockMinuteData'; //历史分钟数据
|
|
87627
87726
|
|
|
87628
87727
|
this.ColorLineData; //主图价格线颜色自定义配置
|
|
87629
|
-
this.EnableSelectRect=false; //是否可以区间选择
|
|
87630
87728
|
|
|
87631
87729
|
this.CorssCursorIndex={ DayIndex:-1, DataIndex:-1, Point:{X:-1, Y:-1} ,Type:-1 }; //Type: 单日(1=主图 2=盘前 3=盘后) 多日(10=主图 20=盘前 30=盘后)
|
|
87632
87730
|
this.EnableNewIndex=false //是否使用新的索引版本
|
|
@@ -87987,7 +88085,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
87987
88085
|
}
|
|
87988
88086
|
}
|
|
87989
88087
|
}
|
|
87990
|
-
else if (this.RectSelectDrag && this.RectSelectDrag.Index>=0) //区间选择
|
|
88088
|
+
else if (this.RectSelectDrag && this.RectSelectDrag.Index>=0) //区间选择 左右调整
|
|
87991
88089
|
{
|
|
87992
88090
|
if (moveSetp<5) return;
|
|
87993
88091
|
var obj={ X:e.clientX, Y:e.clientY, PointIndex:this.RectSelectDrag.Index, Name:"MoveRectSelectLine" };
|
|
@@ -87997,10 +88095,10 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
87997
88095
|
bNeedDraw=true;
|
|
87998
88096
|
}
|
|
87999
88097
|
}
|
|
88000
|
-
else
|
|
88098
|
+
else //显示区间选择
|
|
88001
88099
|
{
|
|
88002
88100
|
if (moveSetp<5 && yMoveSetp<5) return;
|
|
88003
|
-
if (!this.
|
|
88101
|
+
if (this.ChartDragSelectRect && !this.ChartDragSelectRect.Enable) return;
|
|
88004
88102
|
|
|
88005
88103
|
//this.UIElement.style.cursor="default";
|
|
88006
88104
|
this.SetCursor({Cursor:"default"});
|
|
@@ -88018,6 +88116,9 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
88018
88116
|
|
|
88019
88117
|
this.OnMinuteSelectRectMouseUp=function(e)
|
|
88020
88118
|
{
|
|
88119
|
+
var bRButtonSelectRect=this.IsEnableRSelectRect(e, "DocOnMouseUp"); //右键区间选择
|
|
88120
|
+
var bLButtonSelectRect=this.IsEnableLSelectRect(e, "DocOnMouseUp"); //左键区间选择
|
|
88121
|
+
|
|
88021
88122
|
var drag=this.MouseDrag;
|
|
88022
88123
|
drag.LastMove.X=e.clientX;
|
|
88023
88124
|
drag.LastMove.Y=e.clientY;
|
|
@@ -88036,7 +88137,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
88036
88137
|
{
|
|
88037
88138
|
|
|
88038
88139
|
}
|
|
88039
|
-
else if (
|
|
88140
|
+
else if ((bRButtonSelectRect || bLButtonSelectRect) && !this.BorderDrag && this.GetSelectRectData(selectData))
|
|
88040
88141
|
{
|
|
88041
88142
|
var event=this.GetEventCallback(JSCHART_EVENT_ID.ON_SELECT_RECT);
|
|
88042
88143
|
var paint=this.GetRectSelectPaint();
|
|
@@ -89375,7 +89476,13 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
89375
89476
|
bCorssDrawPoint=this.ChartCorssCursor.CorssPointConfig.Enable;
|
|
89376
89477
|
}
|
|
89377
89478
|
|
|
89378
|
-
|
|
89479
|
+
var bRButtonSelectRect=false,bLButtonSelectRect=false;
|
|
89480
|
+
if (this.ChartDragSelectRect)
|
|
89481
|
+
{
|
|
89482
|
+
bRButtonSelectRect=this.ChartDragSelectRect.EnableRButton;
|
|
89483
|
+
bLButtonSelectRect=this.ChartDragSelectRect.EnableLButton;
|
|
89484
|
+
}
|
|
89485
|
+
|
|
89379
89486
|
var minItem=null;
|
|
89380
89487
|
if (frameID>=0 && option && IFrameSplitOperator.IsNumber(option.CursorIndex))
|
|
89381
89488
|
{
|
|
@@ -89448,7 +89555,12 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
89448
89555
|
]
|
|
89449
89556
|
},
|
|
89450
89557
|
{
|
|
89451
|
-
Name:"区间选择",
|
|
89558
|
+
Name:"区间选择",
|
|
89559
|
+
SubMenu:
|
|
89560
|
+
[
|
|
89561
|
+
{ Name:"左键区间选择",Data:{ ID:JSCHART_MENU_ID.CMD_LBUTTON_SELECT_RECT_ID, Args:[!bLButtonSelectRect]}, Checked:bLButtonSelectRect },
|
|
89562
|
+
{ Name:"右键区间选择",Data:{ ID:JSCHART_MENU_ID.CMD_RBUTTON_SELECT_RECT_ID, Args:[!bRButtonSelectRect]}, Checked:bRButtonSelectRect },
|
|
89563
|
+
]
|
|
89452
89564
|
},
|
|
89453
89565
|
{
|
|
89454
89566
|
Name:"十字光标",
|
|
@@ -153965,7 +154077,7 @@ function HQChartScriptWorker()
|
|
|
153965
154077
|
|
|
153966
154078
|
|
|
153967
154079
|
|
|
153968
|
-
var HQCHART_VERSION="1.1.
|
|
154080
|
+
var HQCHART_VERSION="1.1.14497";
|
|
153969
154081
|
|
|
153970
154082
|
function PrintHQChartVersion()
|
|
153971
154083
|
{
|