hqchart 1.1.12754 → 1.1.12760
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.
package/lib/umychart.vue.js
CHANGED
|
@@ -2886,7 +2886,8 @@ if(x>=left&&x<=right&&y>bottom&&y<chartHeight)return-3;return-1;};this.PtInChart
|
|
|
2886
2886
|
{for(var i=0;i<this.SubFrame.length;++i){var item=this.SubFrame[i];var left=item.Frame.ChartBorder.GetLeft();var top=item.Frame.ChartBorder.GetTopEx();var width=item.Frame.ChartBorder.GetWidth();var height=item.Frame.ChartBorder.GetHeightEx();item.Frame.Canvas.beginPath();item.Frame.Canvas.rect(left,top,width,height);if(item.Frame.Canvas.isPointInPath(x,y)){return i;//转成整形
|
|
2887
2887
|
}}return-1;};this.PtInButtons=function(x,y){for(var i=0;i<this.SubFrame.length;++i){var item=this.SubFrame[i];if(item.Height<=0)continue;var button=item.Frame.PtInButtons(x,y);if(button){button.Frame=item.Frame;button.FrameID=i;return button;}for(var j=0;j<item.OverlayIndex.length;++j){var overlayItem=item.OverlayIndex[j];var overlayFrame=overlayItem.Frame;if(!overlayFrame||!overlayFrame.PtInButtons)continue;var button=overlayFrame.PtInButtons(x,y);if(button){button.IndexID=overlayItem.Identify;button.FrameID=i;button.OverlayFrame=overlayFrame;button.Frame=item.Frame;return button;}}}return null;};//是否在X轴坐标上
|
|
2888
2888
|
this.PtInFrameBottom=function(x,y){var left=this.ChartBorder.GetLeft();var top=this.ChartBorder.GetBottom();var width=this.ChartBorder.GetWidth();var height=this.ChartBorder.Bottom;this.Canvas.beginPath();this.Canvas.rect(left,top,width,height);if(this.Canvas.isPointInPath(x,y))return true;return false;};this.PtInFrameVertical=function(x,y){for(var i=0;i<this.SubFrame.length;++i){var item=this.SubFrame[i];if(item.Height<=0)continue;if(!item.Frame.PtInVertical)continue;if(item.Frame.PtInVertical(x,y)){return{Frame:item.Frame};}}return null;};this.GetXFromIndex=function(index){return this.SubFrame[0].Frame.GetXFromIndex(index);};this.GetYFromData=function(value){return this.SubFrame[0].Frame.GetYFromData(value);};this.ZoomUp=function(cursorIndex){var result=this.SubFrame[0].Frame.ZoomUp(cursorIndex);this.UpdateAllFrame();return result;};this.ZoomDown=function(cursorIndex,option){var result=this.SubFrame[0].Frame.ZoomDown(cursorIndex,option);this.UpdateAllFrame();return result;};this.SetXShowCount=function(showCount){var result=this.SubFrame[0].Frame.SetXShowCount(showCount);this.UpdateAllFrame();return result;};this.XCoordinateZoom=function(step,isMoveLeft){var result=this.SubFrame[0].Frame.XCoordinateZoom(step,isMoveLeft);this.UpdateAllFrame();return result;};//设置重新计算刻度坐标
|
|
2889
|
-
this.ResetXYSplit=function(){for(var _i in this.SubFrame){this.SubFrame[_i].Frame.XYSplit=true;}};this.ResetXSplit=function(){for(var _i2 in this.SubFrame){this.SubFrame[_i2].Frame.XSplit=true;}}
|
|
2889
|
+
this.ResetXYSplit=function(){for(var _i in this.SubFrame){this.SubFrame[_i].Frame.XYSplit=true;}};this.ResetXSplit=function(){for(var _i2 in this.SubFrame){this.SubFrame[_i2].Frame.XSplit=true;}};//清空Y轴坐标的最大最小值
|
|
2890
|
+
this.ClearYCoordinateMaxMin=function(){for(var i=0;i<this.SubFrame.length;++i){var subItem=this.SubFrame[i];var frame=subItem.Frame;if(frame.YMaxMin){frame.YMaxMin.Max=null;frame.YMaxMin.Min=null;}}};this.SetLanguage=function(languageID){for(var _i3 in this.SubFrame){var item=this.SubFrame[_i3];if(item&&item.Frame){if(item.Frame.YSplitOperator)item.Frame.YSplitOperator.LanguageID=languageID;if(item.Frame.XSplitOperator)item.Frame.XSplitOperator.LanguageID=languageID;}}};this.GetCurrentPageSize=function()//获取当前页显示的数据个数
|
|
2890
2891
|
{if(this.SubFrame.length<=0)return null;var item=this.SubFrame[0];if(!item||!item.Frame)return null;return item.Frame.XPointCount;};this.OnSize=function(){var obj={};this.SubFrame[0].Frame.OnSize(obj);this.UpdateAllFrame();return obj;};this.SetDataWidth=function(dataWidth){var obj=this.SubFrame[0].Frame.SetDataWidth(dataWidth);this.UpdateAllFrame();return obj;};this.UpdateAllFrame=function(){var mainFrame=this.SubFrame[0].Frame;for(var i=0;i<this.SubFrame.length;++i){var item=this.SubFrame[i];if(i>0)//第1个窗口主坐标已经算好了
|
|
2891
2892
|
{item.Frame.XPointCount=mainFrame.XPointCount;item.Frame.ZoomIndex=mainFrame.ZoomIndex;item.Frame.DataWidth=mainFrame.DataWidth;item.Frame.DistanceWidth=mainFrame.DistanceWidth;item.Frame.LastCalculateStatus.Width=mainFrame.LastCalculateStatus.Width;item.Frame.LastCalculateStatus.XPointCount=mainFrame.LastCalculateStatus.XPointCount;}for(var j in item.OverlayIndex){var overlayItem=this.SubFrame[i].OverlayIndex[j];overlayItem.Frame.XPointCount=mainFrame.XPointCount;overlayItem.Frame.ZoomIndex=mainFrame.ZoomIndex;overlayItem.Frame.DataWidth=mainFrame.DataWidth;overlayItem.Frame.DistanceWidth=mainFrame.DistanceWidth;overlayItem.Frame.LastCalculateStatus.Width=mainFrame.LastCalculateStatus.Width;overlayItem.Frame.LastCalculateStatus.XPointCount=mainFrame.LastCalculateStatus.XPointCount;}}};//鼠标是否在边框上
|
|
2892
2893
|
this.PtInFrameBorder=function(x,y){var height=this.DragBorderHeight;for(var i=0;i<this.SubFrame.length-1;++i){var item=this.SubFrame[i];if(item.Frame.Heigh<=0)continue;var bottom=item.Frame.ChartBorder.GetBottom();var left=item.Frame.ChartBorder.GetLeft();var right=item.Frame.ChartBorder.GetRight();item.Frame.Canvas.beginPath();item.Frame.Canvas.rect(left,bottom-height/2,right-left,height);if(item.Frame.Canvas.isPointInPath(x,y)){return{Index:i,Bottom:true};}}return null;};this.IsEnableDragY=function(index){if(!this.SubFrame)return false;var item=this.SubFrame[index];if(!item||!item.Frame||!item.Frame.YSplitOperator)return false;var split=item.Frame.YSplitOperator;if(typeof split.IsEnableDragY!='function')return false;return split.IsEnableDragY();};this.PtInFrameY=function(x,y){var rightExtendWith=0;if(this.GetExtendChartByClassName){var finder=this.GetExtendChartByClassName("StockChip");if(finder&&finder.Chart)rightExtendWith=finder.Chart.Width;}for(var i=0;i<this.SubFrame.length;++i){var item=this.SubFrame[i];if(item.Frame.Heigh<=0)continue;var rightWidth=item.Frame.ChartBorder.Right;rightWidth-=rightExtendWith;var border=item.Frame.ChartBorder.GetBorder();var bottom=border.Bottom;var top=border.TopTitle;var left=border.Left;var right=border.Right;var maxTopHegith=30;var barHegith=bottom-top;if(barHegith/3>maxTopHegith){var barTop=top+maxTopHegith;var barBottom=bottom-maxTopHegith;}else{var internal=barHegith/3;var barTop=top+internal;var barBottom=bottom-internal;}var position=0;if(y<barTop)position=1;else if(y>barBottom)position=2;if(rightWidth>=10){if(IFrameSplitOperator.IsNonEmptyArray(item.OverlayIndex)){var overlayItem=item.OverlayIndex[0];var rightOffset=overlayItem.Frame.RightOffset;item.Frame.Canvas.beginPath();item.Frame.Canvas.rect(right,top,rightOffset,bottom-top);if(item.Frame.Canvas.isPointInPath(x,y)){return{Index:i,Right:true,Left:false,Position:position,IsOverlay:false};//Position 1=上面 2 下面 0=中间(TODO)
|
|
@@ -7257,13 +7258,13 @@ this.ClearRectSelect(true);this.Frame.ClearUpDonwFrameYData();this.ClearCustomKL
|
|
|
7257
7258
|
};event.Callback(event,sendData,this);isDataTypeChange=sendData.IsDataTypeChange;}if(isDataTypeChange==false&&!this.IsApiPeriod){this.ClearIndexRunCount();this.Update({UpdateCursorIndexType:2});//更新的时候 取消显示十字光标
|
|
7258
7259
|
return;}this.ClearIndexPaint();if(ChartData.IsDayPeriod(this.Period,true)){this.CancelAutoUpdate();//先停止定时器
|
|
7259
7260
|
this.AutoUpdateEvent(false,'KLineChartContainer::ChangePeriod');//切换周期先停止更新
|
|
7260
|
-
this.ResetScrollBar();this.ResetOverlaySymbolStatus();this.ClearIndexRunCount();this.RequestHistoryData();//请求日线数据
|
|
7261
|
+
this.ResetScrollBar();this.ResetOverlaySymbolStatus();this.ClearIndexRunCount();this.Frame.ClearYCoordinateMaxMin();this.RequestHistoryData();//请求日线数据
|
|
7261
7262
|
//this.ReqeustKLineInfoData();
|
|
7262
7263
|
}else if(ChartData.IsMinutePeriod(this.Period,true)||ChartData.IsSecondPeriod(this.Period)||ChartData.IsMilliSecondPeriod(this.Period)){this.CancelAutoUpdate();//先停止定时器
|
|
7263
7264
|
this.AutoUpdateEvent(false,'KLineChartContainer::ChangePeriod');//切换周期先停止更新
|
|
7264
|
-
this.ResetScrollBar();this.ResetOverlaySymbolStatus();this.ClearIndexRunCount();this.ReqeustHistoryMinuteData();//请求分钟数据
|
|
7265
|
+
this.ResetScrollBar();this.ResetOverlaySymbolStatus();this.ClearIndexRunCount();this.Frame.ClearYCoordinateMaxMin();this.ReqeustHistoryMinuteData();//请求分钟数据
|
|
7265
7266
|
}else if(ChartData.IsTickPeriod(this.Period)){this.CancelAutoUpdate();//先停止定时器
|
|
7266
|
-
this.AutoUpdateEvent(false,'KLineChartContainer::ChangePeriod');this.ResetScrollBar();this.ClearIndexRunCount();this.RequestTickData();//请求分笔数据
|
|
7267
|
+
this.AutoUpdateEvent(false,'KLineChartContainer::ChangePeriod');this.ResetScrollBar();this.ClearIndexRunCount();this.Frame.ClearYCoordinateMaxMin();this.RequestTickData();//请求分笔数据
|
|
7267
7268
|
}};//复权切换
|
|
7268
7269
|
this.ChangeRight=function(right){if(!MARKET_SUFFIX_NAME.IsEnableRight(this.Period,this.Symbol,this.RightFormula))return;var upperSymbol=this.Symbol.toUpperCase();if(MARKET_SUFFIX_NAME.IsBIT(upperSymbol))return;if(right<0||right>2)return;if(this.Right==right)return;this.Right=right;if(!this.IsApiPeriod){this.Update();return;}else//API周期数据 重新请求数据
|
|
7269
7270
|
{if(ChartData.IsDayPeriod(this.Period,true)){this.CancelAutoUpdate();//先停止定时器
|
|
@@ -7425,7 +7426,7 @@ this.UpdateFrameMaxMin();//调整坐标最大 最小值
|
|
|
7425
7426
|
this.Frame.SetSizeChage(true);this.Draw();//叠加指标
|
|
7426
7427
|
for(var i=0;i<this.Frame.SubFrame.length;++i){var item=this.Frame.SubFrame[i];for(var j in item.OverlayIndex){var overlayItem=item.OverlayIndex[j];this.BindOverlayIndexData(overlayItem,i,bindData);}}};//切换股票代码
|
|
7427
7428
|
this.ChangeSymbol=function(symbol,option){this.CancelAutoUpdate();//先停止定时器
|
|
7428
|
-
this.AutoUpdateEvent(false,'KLineChartContainer::ChangeSymbol');this.ClearRectSelect(true);this.ClearCustomKLine();this.ClearKLineCaluate();this.HideTooltip();this.ResetScrollBar();this.ClearIndexRunCount();this.Symbol=symbol;if(!symbol){this.DrawEmpty();return;}if(option){if(option.KLine){var item=option.KLine;if(IFrameSplitOperator.IsNumber(item.Right))this.Right=item.Right;if(IFrameSplitOperator.IsNumber(item.Period))this.Period=item.Period;}}if(MARKET_SUFFIX_NAME.IsSHSZIndex(symbol))this.Right=0;//指数没有复权
|
|
7429
|
+
this.AutoUpdateEvent(false,'KLineChartContainer::ChangeSymbol');this.ClearRectSelect(true);this.ClearCustomKLine();this.ClearKLineCaluate();this.HideTooltip();this.ResetScrollBar();this.ClearIndexRunCount();this.Frame.ClearYCoordinateMaxMin();this.Symbol=symbol;if(!symbol){this.DrawEmpty();return;}if(option){if(option.KLine){var item=option.KLine;if(IFrameSplitOperator.IsNumber(item.Right))this.Right=item.Right;if(IFrameSplitOperator.IsNumber(item.Period))this.Period=item.Period;}}if(MARKET_SUFFIX_NAME.IsSHSZIndex(symbol))this.Right=0;//指数没有复权
|
|
7429
7430
|
this.ClearIndexPaint();//清空指标
|
|
7430
7431
|
if(option){if(option.Windows&&Array.isArray(option.Windows)&&option.Windows.length>0){var windows=option.Windows;var systemScript=new JSIndexScript();for(var i in windows){if(i>=this.WindowIndex.length)break;//暂时不支持 动态增加/减少
|
|
7431
7432
|
var item=windows[i];if(!item)continue;if(item.Script){this.WindowIndex[i]=new ScriptIndex(item.Name,item.Script,item.Args,item);//脚本执行
|
|
@@ -7925,7 +7926,7 @@ if(this.Frame&&this.Frame.SubFrame){for(var i=0;i<this.Frame.SubFrame.length;++i
|
|
|
7925
7926
|
{var overlayItem=item.OverlayIndex[j];for(var k=0;k<overlayItem.ChartPaint.length;++k){var overlayChart=overlayItem.ChartPaint[k];if(overlayChart&&overlayChart.OnDestroy)overlayChart.OnDestroy();}overlayItem.ChartPaint=[];}}}}//清空叠加标题
|
|
7926
7927
|
for(var i=1;i<this.TitlePaint.length;++i){var item=this.TitlePaint[i];item.OverlayIndex=new _map2.default();}};this.ResetDayOffset=function(){if(this.PageInfo.Enable){this.DayOffset.Offset=this.PageInfo.Offset;this.DayOffset.ShowDayCount=this.PageInfo.ShowDayCount;}else{this.DayOffset.Offset=0;this.DayOffset.ShowDayCount=-1;}this.DayOffset.PageInfo=null;};this.ResetDataStatus=function(){this.DataStatus.MultiDay=false;this.DataStatus.LatestDay=false;};//切换股票代码
|
|
7927
7928
|
this.ChangeSymbol=function(symbol,option){this.StopDisplayLatest();this.CancelAutoUpdate();this.AutoUpdateEvent(false,"MinuteChartContainer::ChangeSymbol");this.Symbol=symbol;this.ResetDayOffset();this.ResetDataStatus();this.ClearIndexPaint();//清空指标
|
|
7928
|
-
this.ResetOverlaySymbolStatus();this.ReloadChartDrawPicture();this.ClearIndexRunCount();this.ClearStockCache();if(option){if(IFrameSplitOperator.IsNumber(option.DayCount))this.DayCount=option.DayCount;if(IFrameSplitOperator.IsNonEmptyArray(option.Windows))//切换指标
|
|
7929
|
+
this.ResetOverlaySymbolStatus();this.ReloadChartDrawPicture();this.ClearIndexRunCount();this.ClearStockCache();this.Frame.ClearYCoordinateMaxMin();if(option){if(IFrameSplitOperator.IsNumber(option.DayCount))this.DayCount=option.DayCount;if(IFrameSplitOperator.IsNonEmptyArray(option.Windows))//切换指标
|
|
7929
7930
|
{var systemScript=new JSIndexScript();for(var i=0;i<option.Windows.length;++i){var index=2+i;if(index>=this.WindowIndex.length)break;//暂时不支持 动态增加/减少
|
|
7930
7931
|
var item=option.Windows[i];if(!item)continue;if(item.Script){this.WindowIndex[index]=new ScriptIndex(item.Name,item.Script,item.Args,item);//脚本执行
|
|
7931
7932
|
}else if(item.API){var apiItem=item.API;this.WindowIndex[index]=new APIScriptIndex(apiItem.Name,apiItem.Script,apiItem.Args,item);}else{var indexID=item.Index;var indexInfo=systemScript.Get(indexID);if(indexInfo){var args=indexInfo.Args;if(item.Args)indexInfo.Args=item.Args;indexInfo.ID=indexID;this.WindowIndex[index]=new ScriptIndex(indexInfo.Name,indexInfo.Script,indexInfo.Args,indexInfo);//脚本执行
|
|
@@ -7937,7 +7938,7 @@ if(option.Overlay&&IFrameSplitOperator.IsNonEmptyArray(option.Overlay)){var setS
|
|
|
7937
7938
|
else paint.Color=g_JSChartResource.OverlaySymbol.Color[g_JSChartResource.OverlaySymbol.Random%g_JSChartResource.OverlaySymbol.Color.length];++g_JSChartResource.OverlaySymbol.Random;paint.MainData=this.SourceData;//绑定主图数据
|
|
7938
7939
|
if(paint.SetOption)paint.SetOption(item);this.OverlayChartPaint.push(paint);}}}if(!symbol||this.DayCount<=0){this.DrawEmpty();}else{this.ChartSplashPaint.SetTitle(this.LoadDataSplashTitle);this.ChartSplashPaint.EnableSplash(true);//增加下载动画
|
|
7939
7940
|
this.Draw();this.RequestData();}};this.SetPageInfo=function(pageInfo){if(!pageInfo)return;if(IFrameSplitOperator.IsBool(pageInfo.Enable))this.PageInfo.Enable=pageInfo.Enable;if(IFrameSplitOperator.IsNumber(pageInfo.Offset))this.PageInfo.Offset=pageInfo.Offset;if(IFrameSplitOperator.IsNumber(pageInfo.ShowDayCount))this.PageInfo.ShowDayCount=pageInfo.ShowDayCount;};this.ClearMinuteData=function(){this.SourceData=null;this.DayData=null;this.BeforeOpenData=null;this.AfterCloseData=null;this.MultiDayBeforeOpenData=null;this.MultiDayAfterCloseData=null;};this.ChangeDayCount=function(count,option){if(count<0)return;this.StopDisplayLatest();this.CancelAutoUpdate();this.AutoUpdateEvent(false,"MinuteChartContainer::ChangeDayCount");this.DayCount=count;this.ClearMinuteData();if(option&&option.PageInfo){this.SetPageInfo(option.PageInfo);this.ResetDayOffset();}if(this.DayCount>1){this.ChartDrawPicture=[];}else{this.ReloadChartDrawPicture();}this.ResetDataStatus();this.ClearIndexPaint();//清空指标
|
|
7940
|
-
this.ResetOverlaySymbolStatus();this.RequestData();};//叠加股票 symbol支持数据 ["600000.sh", "0000001.sz"]
|
|
7941
|
+
this.Frame.ClearYCoordinateMaxMin();this.ResetOverlaySymbolStatus();this.RequestData();};//叠加股票 symbol支持数据 ["600000.sh", "0000001.sz"]
|
|
7941
7942
|
this.OverlaySymbol=function(symbol,option){var arySymbol=null;if(IFrameSplitOperator.IsString(symbol))arySymbol=[symbol];else if(Array.isArray(symbol))arySymbol=symbol;if(!IFrameSplitOperator.IsNonEmptyArray(arySymbol))return false;var aryNewSymbol=[];for(var i=0,j=0;i<arySymbol.length;++i){var strSymbol=arySymbol[i];var bFind=false;for(j=0;j<this.OverlayChartPaint.length;++j){var item=this.OverlayChartPaint[j];if(item.Symbol==strSymbol){bFind=true;console.warn('[MinuteChartContainer::OverlaySymbol] overlay symbol='+strSymbol+' exist.');break;}}if(!bFind)aryNewSymbol.push(strSymbol);}if(!IFrameSplitOperator.IsNonEmptyArray(arySymbol))return true;for(var i=0;i<aryNewSymbol.length;++i){var strSymbol=aryNewSymbol[i];var paint=new ChartOverlayMinutePriceLine();paint.Canvas=this.Canvas;paint.ChartBorder=this.Frame.SubFrame[0].Frame.ChartBorder;paint.ChartFrame=this.Frame.SubFrame[0].Frame;paint.Name="Overlay-Minute";paint.Symbol=strSymbol;paint.Identify='Overlay-Minute-'+strSymbol;if(option&&option.Color)paint.Color=option.Color;//外部设置颜色
|
|
7942
7943
|
else paint.Color=g_JSChartResource.OverlaySymbol.Color[g_JSChartResource.OverlaySymbol.Random%g_JSChartResource.OverlaySymbol.Color.length];++g_JSChartResource.OverlaySymbol.Random;paint.MainData=this.SourceData;//绑定主图数据
|
|
7943
7944
|
if(paint.SetOption)paint.SetOption(option);this.OverlayChartPaint.push(paint);}if(this.DayCount<=1)this.RequestOverlayMinuteData();//请求数据
|
|
@@ -12911,7 +12912,7 @@ hisData.Symbol=message.symbol;}var stockObj={HQDataType:HQ_DATA_TYPE.KLINE_ID,St
|
|
|
12911
12912
|
this.ExecuteScript(item,data);}this.Status=0;}};this.OnExecuteFinish=function(data,indexInfo,jsExectute,jobInfo){var message={Data:data,IndexInfo:indexInfo,ID:JSCHART_WORKER_MESSAGE_ID.FINISH_EXECUTE_SCRIPT,JobInfo:jobInfo};postMessage(message);};this.OnExecuteError=function(error,indexInfo,jobData){var message={IndexInfo:indexInfo,ID:JSCHART_WORKER_MESSAGE_ID.ERROR_EXECUTE_SCRIPT,Error:error};postMessage(message);};}/********************************************************************************
|
|
12912
12913
|
* 版本信息输出
|
|
12913
12914
|
*
|
|
12914
|
-
*/var HQCHART_VERSION="1.1.
|
|
12915
|
+
*/var HQCHART_VERSION="1.1.12759";function PrintHQChartVersion(){var log='*************************************************************************************************************\n*\n* HQChart Ver: '+HQCHART_VERSION+' \n* \n* License: Apache License 2.0 \n* Source: https://github.com/jones2000/HQChart\n*\n*************************************************************************************************************\n';console.log(log);}PrintHQChartVersion();//把给外界调用的方法暴露出来
|
|
12915
12916
|
exports.default=(_jsChartInit$jsChartS={jsChartInit:JSChart.Init,jsChartStyle:JSChart.SetStyle,// IsIndexSymbol:IsIndexSymbol,
|
|
12916
12917
|
// BaseIndex:BaseIndex,
|
|
12917
12918
|
// ChartLine:ChartLine,
|
package/package.json
CHANGED
package/src/jscommon/umychart.js
CHANGED
|
@@ -17680,6 +17680,21 @@ function HQTradeFrame()
|
|
|
17680
17680
|
}
|
|
17681
17681
|
}
|
|
17682
17682
|
|
|
17683
|
+
//清空Y轴坐标的最大最小值
|
|
17684
|
+
this.ClearYCoordinateMaxMin=function()
|
|
17685
|
+
{
|
|
17686
|
+
for(var i=0;i<this.SubFrame.length;++i)
|
|
17687
|
+
{
|
|
17688
|
+
var subItem=this.SubFrame[i];
|
|
17689
|
+
var frame=subItem.Frame;
|
|
17690
|
+
if (frame.YMaxMin)
|
|
17691
|
+
{
|
|
17692
|
+
frame.YMaxMin.Max=null;
|
|
17693
|
+
frame.YMaxMin.Min=null;
|
|
17694
|
+
}
|
|
17695
|
+
}
|
|
17696
|
+
}
|
|
17697
|
+
|
|
17683
17698
|
this.SetLanguage=function(languageID)
|
|
17684
17699
|
{
|
|
17685
17700
|
for(let i in this.SubFrame)
|
|
@@ -68488,6 +68503,7 @@ function KLineChartContainer(uielement,OffscreenElement)
|
|
|
68488
68503
|
this.ResetScrollBar();
|
|
68489
68504
|
this.ResetOverlaySymbolStatus();
|
|
68490
68505
|
this.ClearIndexRunCount();
|
|
68506
|
+
this.Frame.ClearYCoordinateMaxMin();
|
|
68491
68507
|
this.RequestHistoryData(); //请求日线数据
|
|
68492
68508
|
//this.ReqeustKLineInfoData();
|
|
68493
68509
|
}
|
|
@@ -68498,6 +68514,7 @@ function KLineChartContainer(uielement,OffscreenElement)
|
|
|
68498
68514
|
this.ResetScrollBar();
|
|
68499
68515
|
this.ResetOverlaySymbolStatus();
|
|
68500
68516
|
this.ClearIndexRunCount();
|
|
68517
|
+
this.Frame.ClearYCoordinateMaxMin();
|
|
68501
68518
|
this.ReqeustHistoryMinuteData(); //请求分钟数据
|
|
68502
68519
|
}
|
|
68503
68520
|
else if (ChartData.IsTickPeriod(this.Period))
|
|
@@ -68506,6 +68523,7 @@ function KLineChartContainer(uielement,OffscreenElement)
|
|
|
68506
68523
|
this.AutoUpdateEvent(false,'KLineChartContainer::ChangePeriod');
|
|
68507
68524
|
this.ResetScrollBar();
|
|
68508
68525
|
this.ClearIndexRunCount();
|
|
68526
|
+
this.Frame.ClearYCoordinateMaxMin();
|
|
68509
68527
|
this.RequestTickData(); //请求分笔数据
|
|
68510
68528
|
}
|
|
68511
68529
|
}
|
|
@@ -69816,6 +69834,7 @@ function KLineChartContainer(uielement,OffscreenElement)
|
|
|
69816
69834
|
this.HideTooltip();
|
|
69817
69835
|
this.ResetScrollBar();
|
|
69818
69836
|
this.ClearIndexRunCount();
|
|
69837
|
+
this.Frame.ClearYCoordinateMaxMin();
|
|
69819
69838
|
|
|
69820
69839
|
|
|
69821
69840
|
this.Symbol=symbol;
|
|
@@ -74931,6 +74950,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
74931
74950
|
this.ReloadChartDrawPicture();
|
|
74932
74951
|
this.ClearIndexRunCount();
|
|
74933
74952
|
this.ClearStockCache();
|
|
74953
|
+
this.Frame.ClearYCoordinateMaxMin();
|
|
74934
74954
|
|
|
74935
74955
|
if (option)
|
|
74936
74956
|
{
|
|
@@ -75078,6 +75098,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
75078
75098
|
|
|
75079
75099
|
this.ResetDataStatus();
|
|
75080
75100
|
this.ClearIndexPaint(); //清空指标
|
|
75101
|
+
this.Frame.ClearYCoordinateMaxMin();
|
|
75081
75102
|
this.ResetOverlaySymbolStatus();
|
|
75082
75103
|
this.RequestData();
|
|
75083
75104
|
}
|
|
@@ -21824,6 +21824,21 @@ function HQTradeFrame()
|
|
|
21824
21824
|
}
|
|
21825
21825
|
}
|
|
21826
21826
|
|
|
21827
|
+
//清空Y轴坐标的最大最小值
|
|
21828
|
+
this.ClearYCoordinateMaxMin=function()
|
|
21829
|
+
{
|
|
21830
|
+
for(var i=0;i<this.SubFrame.length;++i)
|
|
21831
|
+
{
|
|
21832
|
+
var subItem=this.SubFrame[i];
|
|
21833
|
+
var frame=subItem.Frame;
|
|
21834
|
+
if (frame.YMaxMin)
|
|
21835
|
+
{
|
|
21836
|
+
frame.YMaxMin.Max=null;
|
|
21837
|
+
frame.YMaxMin.Min=null;
|
|
21838
|
+
}
|
|
21839
|
+
}
|
|
21840
|
+
}
|
|
21841
|
+
|
|
21827
21842
|
this.SetLanguage=function(languageID)
|
|
21828
21843
|
{
|
|
21829
21844
|
for(let i in this.SubFrame)
|
|
@@ -72632,6 +72647,7 @@ function KLineChartContainer(uielement,OffscreenElement)
|
|
|
72632
72647
|
this.ResetScrollBar();
|
|
72633
72648
|
this.ResetOverlaySymbolStatus();
|
|
72634
72649
|
this.ClearIndexRunCount();
|
|
72650
|
+
this.Frame.ClearYCoordinateMaxMin();
|
|
72635
72651
|
this.RequestHistoryData(); //请求日线数据
|
|
72636
72652
|
//this.ReqeustKLineInfoData();
|
|
72637
72653
|
}
|
|
@@ -72642,6 +72658,7 @@ function KLineChartContainer(uielement,OffscreenElement)
|
|
|
72642
72658
|
this.ResetScrollBar();
|
|
72643
72659
|
this.ResetOverlaySymbolStatus();
|
|
72644
72660
|
this.ClearIndexRunCount();
|
|
72661
|
+
this.Frame.ClearYCoordinateMaxMin();
|
|
72645
72662
|
this.ReqeustHistoryMinuteData(); //请求分钟数据
|
|
72646
72663
|
}
|
|
72647
72664
|
else if (ChartData.IsTickPeriod(this.Period))
|
|
@@ -72650,6 +72667,7 @@ function KLineChartContainer(uielement,OffscreenElement)
|
|
|
72650
72667
|
this.AutoUpdateEvent(false,'KLineChartContainer::ChangePeriod');
|
|
72651
72668
|
this.ResetScrollBar();
|
|
72652
72669
|
this.ClearIndexRunCount();
|
|
72670
|
+
this.Frame.ClearYCoordinateMaxMin();
|
|
72653
72671
|
this.RequestTickData(); //请求分笔数据
|
|
72654
72672
|
}
|
|
72655
72673
|
}
|
|
@@ -73960,6 +73978,7 @@ function KLineChartContainer(uielement,OffscreenElement)
|
|
|
73960
73978
|
this.HideTooltip();
|
|
73961
73979
|
this.ResetScrollBar();
|
|
73962
73980
|
this.ClearIndexRunCount();
|
|
73981
|
+
this.Frame.ClearYCoordinateMaxMin();
|
|
73963
73982
|
|
|
73964
73983
|
|
|
73965
73984
|
this.Symbol=symbol;
|
|
@@ -79075,6 +79094,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
79075
79094
|
this.ReloadChartDrawPicture();
|
|
79076
79095
|
this.ClearIndexRunCount();
|
|
79077
79096
|
this.ClearStockCache();
|
|
79097
|
+
this.Frame.ClearYCoordinateMaxMin();
|
|
79078
79098
|
|
|
79079
79099
|
if (option)
|
|
79080
79100
|
{
|
|
@@ -79222,6 +79242,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
79222
79242
|
|
|
79223
79243
|
this.ResetDataStatus();
|
|
79224
79244
|
this.ClearIndexPaint(); //清空指标
|
|
79245
|
+
this.Frame.ClearYCoordinateMaxMin();
|
|
79225
79246
|
this.ResetOverlaySymbolStatus();
|
|
79226
79247
|
this.RequestData();
|
|
79227
79248
|
}
|
|
@@ -131205,7 +131226,7 @@ function ScrollBarBGChart()
|
|
|
131205
131226
|
|
|
131206
131227
|
|
|
131207
131228
|
|
|
131208
|
-
var HQCHART_VERSION="1.1.
|
|
131229
|
+
var HQCHART_VERSION="1.1.12759";
|
|
131209
131230
|
|
|
131210
131231
|
function PrintHQChartVersion()
|
|
131211
131232
|
{
|
|
@@ -21868,6 +21868,21 @@ function HQTradeFrame()
|
|
|
21868
21868
|
}
|
|
21869
21869
|
}
|
|
21870
21870
|
|
|
21871
|
+
//清空Y轴坐标的最大最小值
|
|
21872
|
+
this.ClearYCoordinateMaxMin=function()
|
|
21873
|
+
{
|
|
21874
|
+
for(var i=0;i<this.SubFrame.length;++i)
|
|
21875
|
+
{
|
|
21876
|
+
var subItem=this.SubFrame[i];
|
|
21877
|
+
var frame=subItem.Frame;
|
|
21878
|
+
if (frame.YMaxMin)
|
|
21879
|
+
{
|
|
21880
|
+
frame.YMaxMin.Max=null;
|
|
21881
|
+
frame.YMaxMin.Min=null;
|
|
21882
|
+
}
|
|
21883
|
+
}
|
|
21884
|
+
}
|
|
21885
|
+
|
|
21871
21886
|
this.SetLanguage=function(languageID)
|
|
21872
21887
|
{
|
|
21873
21888
|
for(let i in this.SubFrame)
|
|
@@ -72676,6 +72691,7 @@ function KLineChartContainer(uielement,OffscreenElement)
|
|
|
72676
72691
|
this.ResetScrollBar();
|
|
72677
72692
|
this.ResetOverlaySymbolStatus();
|
|
72678
72693
|
this.ClearIndexRunCount();
|
|
72694
|
+
this.Frame.ClearYCoordinateMaxMin();
|
|
72679
72695
|
this.RequestHistoryData(); //请求日线数据
|
|
72680
72696
|
//this.ReqeustKLineInfoData();
|
|
72681
72697
|
}
|
|
@@ -72686,6 +72702,7 @@ function KLineChartContainer(uielement,OffscreenElement)
|
|
|
72686
72702
|
this.ResetScrollBar();
|
|
72687
72703
|
this.ResetOverlaySymbolStatus();
|
|
72688
72704
|
this.ClearIndexRunCount();
|
|
72705
|
+
this.Frame.ClearYCoordinateMaxMin();
|
|
72689
72706
|
this.ReqeustHistoryMinuteData(); //请求分钟数据
|
|
72690
72707
|
}
|
|
72691
72708
|
else if (ChartData.IsTickPeriod(this.Period))
|
|
@@ -72694,6 +72711,7 @@ function KLineChartContainer(uielement,OffscreenElement)
|
|
|
72694
72711
|
this.AutoUpdateEvent(false,'KLineChartContainer::ChangePeriod');
|
|
72695
72712
|
this.ResetScrollBar();
|
|
72696
72713
|
this.ClearIndexRunCount();
|
|
72714
|
+
this.Frame.ClearYCoordinateMaxMin();
|
|
72697
72715
|
this.RequestTickData(); //请求分笔数据
|
|
72698
72716
|
}
|
|
72699
72717
|
}
|
|
@@ -74004,6 +74022,7 @@ function KLineChartContainer(uielement,OffscreenElement)
|
|
|
74004
74022
|
this.HideTooltip();
|
|
74005
74023
|
this.ResetScrollBar();
|
|
74006
74024
|
this.ClearIndexRunCount();
|
|
74025
|
+
this.Frame.ClearYCoordinateMaxMin();
|
|
74007
74026
|
|
|
74008
74027
|
|
|
74009
74028
|
this.Symbol=symbol;
|
|
@@ -79119,6 +79138,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
79119
79138
|
this.ReloadChartDrawPicture();
|
|
79120
79139
|
this.ClearIndexRunCount();
|
|
79121
79140
|
this.ClearStockCache();
|
|
79141
|
+
this.Frame.ClearYCoordinateMaxMin();
|
|
79122
79142
|
|
|
79123
79143
|
if (option)
|
|
79124
79144
|
{
|
|
@@ -79266,6 +79286,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
79266
79286
|
|
|
79267
79287
|
this.ResetDataStatus();
|
|
79268
79288
|
this.ClearIndexPaint(); //清空指标
|
|
79289
|
+
this.Frame.ClearYCoordinateMaxMin();
|
|
79269
79290
|
this.ResetOverlaySymbolStatus();
|
|
79270
79291
|
this.RequestData();
|
|
79271
79292
|
}
|
|
@@ -131363,7 +131384,7 @@ function HQChartScriptWorker()
|
|
|
131363
131384
|
|
|
131364
131385
|
|
|
131365
131386
|
|
|
131366
|
-
var HQCHART_VERSION="1.1.
|
|
131387
|
+
var HQCHART_VERSION="1.1.12759";
|
|
131367
131388
|
|
|
131368
131389
|
function PrintHQChartVersion()
|
|
131369
131390
|
{
|