hqchart 1.1.12493 → 1.1.12499
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 +13 -9
- package/package.json +1 -1
- package/src/jscommon/umychart.js +47 -6
- package/src/jscommon/umychart.uniapp.h5/umychart.uniapp.h5.js +48 -7
- package/src/jscommon/umychart.version.js +1 -1
- package/src/jscommon/umychart.vue/umychart.vue.js +48 -7
- package/src/jscommon/umychart.wechat/umychart.chartpaint.wechat.js +22 -11
- package/src/jscommon/umychart.wechat/umychart.version.wechat.js +1 -1
package/lib/umychart.vue.js
CHANGED
|
@@ -2148,7 +2148,7 @@ this.IsDrawTitleBottomLine=false;this.BorderLine=null;//1=上 2=下 4=左 8=右
|
|
|
2148
2148
|
this.Buttons=[];//按钮事件
|
|
2149
2149
|
this.LeftButtonWidth=0;//左侧按钮的宽度
|
|
2150
2150
|
this.IsMinSize=false;//窗口是否最小化
|
|
2151
|
-
this.LogoTextColor=g_JSChartResource.FrameLogo.TextColor;this.LogoTextFont=g_JSChartResource.FrameLogo.Font;this.GlobalOption;this.PtInButtons=function(x,y)//坐标是否在按钮上
|
|
2151
|
+
this.LogoTextColor=g_JSChartResource.FrameLogo.TextColor;this.LogoTextFont=g_JSChartResource.FrameLogo.Font;this.LogoBGColor=g_JSChartResource.FrameLogo.BGColor;this.GlobalOption;this.PtInButtons=function(x,y)//坐标是否在按钮上
|
|
2152
2152
|
{for(var i=0;i<this.Buttons.length;++i){var item=this.Buttons[i];if(!item.Rect)continue;var rect=item.Rect;this.Canvas.beginPath();this.Canvas.rect(rect.Left,rect.Top,rect.Width,rect.Height);if(this.Canvas.isPointInPath(x,y)){return{ID:item.ID,Rect:rect};}}return null;};this.GetBorder=function(){if(this.IsHScreen)return this.ChartBorder.GetHScreenBorder();else return this.ChartBorder.GetBorder();};this.Draw=function(){this.Buttons=[];this.DrawFrame();this.DrawBorder();this.SizeChange=false;this.XYSplit=false;};this.DrawFrame=function(){};this.ClearCoordinateText=function(option){if(IFrameSplitOperator.IsNonEmptyArray(this.HorizontalInfo)){for(var i=0;i<this.HorizontalInfo.length;++i){var item=this.HorizontalInfo[i];if(item&&item.Message&&Array.isArray(item.Message))item.Message[0]=item.Message[1]=null;}}if(IFrameSplitOperator.IsNonEmptyArray(this.VerticalInfo)){for(var i=0;i<this.VerticalInfo.length;++i){var item=this.VerticalInfo[i];if(item&&item.Message&&Array.isArray(item.Message))item.Message[0]=item.Message[1]=null;}}};//画边框
|
|
2153
2153
|
this.DrawBorder=function(){if(!this.IsShowBorder)return;if(this.IsMinSize)return;var border=this.IsHScreen==true?this.ChartBorder.GetHScreenBorder():this.ChartBorder.GetBorder();var left=ToFixedPoint(border.Left);var top=ToFixedPoint(border.Top);//var top=ToFixedPoint(border.TopEx);
|
|
2154
2154
|
var right=ToFixedPoint(border.Right);var bottom=ToFixedPoint(border.Bottom);var width=right-left;var height=bottom-top;//JSConsole.Chart.Log(`[IChartFramePainting.DrawBorder] left=${left} `);
|
|
@@ -2158,7 +2158,7 @@ if(this.BorderLine==null){this.Canvas.strokeStyle=this.PenBorder;this.Canvas.str
|
|
|
2158
2158
|
{this.Canvas.moveTo(left,bottom);this.Canvas.lineTo(right,bottom);}if((this.BorderLine&4)>0)//左
|
|
2159
2159
|
{this.Canvas.moveTo(left,top);this.Canvas.lineTo(left,bottom);}if((this.BorderLine&8)>0)//右
|
|
2160
2160
|
{this.Canvas.moveTo(right,top);this.Canvas.lineTo(right,bottom);}this.Canvas.stroke();}};//画标题背景色
|
|
2161
|
-
this.DrawTitleBG=function(){if(this.ChartBorder.TitleHeight<=0)return;var border=this.GetBorder();var left=ToFixedPoint(border.Left);var top=ToFixedPoint(border.Top);var right=ToFixedPoint(border.Right);var bottom=ToFixedPoint(this.ChartBorder.GetTopTitle());var width=right-left;var height=bottom-top;this.Canvas.fillStyle=this.TitleBGColor;this.Canvas.fillRect(left,top,width,height);if(this.IsDrawTitleBottomLine){this.Canvas.strokeStyle=this.PenBorder;this.Canvas.beginPath();this.Canvas.moveTo(left,ToFixedPoint(border.TopTitle));this.Canvas.lineTo(right,ToFixedPoint(border.TopTitle));this.Canvas.stroke();}};this.DrawLock=function(){if(this.IsLocked){if(this.LockPaint==null)this.LockPaint=new ChartLock();this.LockPaint.Canvas=this.Canvas;this.LockPaint.ChartBorder=this.ChartBorder;this.LockPaint.ChartFrame=this;this.LockPaint.Draw(true);}};this.DrawLogo=function(){var border=this.GetBorder();var text=g_JSChartResource.FrameLogo.Text;if(!IFrameSplitOperator.IsString(text))return;this.Canvas.
|
|
2161
|
+
this.DrawTitleBG=function(){if(this.ChartBorder.TitleHeight<=0)return;var border=this.GetBorder();var left=ToFixedPoint(border.Left);var top=ToFixedPoint(border.Top);var right=ToFixedPoint(border.Right);var bottom=ToFixedPoint(this.ChartBorder.GetTopTitle());var width=right-left;var height=bottom-top;this.Canvas.fillStyle=this.TitleBGColor;this.Canvas.fillRect(left,top,width,height);if(this.IsDrawTitleBottomLine){this.Canvas.strokeStyle=this.PenBorder;this.Canvas.beginPath();this.Canvas.moveTo(left,ToFixedPoint(border.TopTitle));this.Canvas.lineTo(right,ToFixedPoint(border.TopTitle));this.Canvas.stroke();}};this.DrawLock=function(){if(this.IsLocked){if(this.LockPaint==null)this.LockPaint=new ChartLock();this.LockPaint.Canvas=this.Canvas;this.LockPaint.ChartBorder=this.ChartBorder;this.LockPaint.ChartFrame=this;this.LockPaint.Draw(true);}};this.DrawLogo=function(){var border=this.GetBorder();var text=g_JSChartResource.FrameLogo.Text;if(!IFrameSplitOperator.IsString(text))return;this.Canvas.font=this.LogoTextFont;this.Canvas.textAlign='left';this.Canvas.textBaseline='bottom';var height=this.Canvas.measureText("擎").width;var width=this.Canvas.measureText(text).width;if(this.IsHScreen){var x=border.Left+5;var y=border.Top+5;this.Canvas.save();this.Canvas.translate(x,y);this.Canvas.rotate(90*Math.PI/180);var rtBG={Left:0,Bottom:0,Width:width+4,Height:height+4};rtBG.Top=rtBG.Bottom-rtBG.Height;rtBG.Right=rtBG.Left+rtBG.Width;if(this.LogoBGColor){this.Canvas.fillStyle=this.LogoBGColor;this.Canvas.fillRect(rtBG.Left,rtBG.Top,rtBG.Width,rtBG.Height);}this.Canvas.fillStyle=this.LogoTextColor;this.Canvas.fillText(text,1,0);this.Canvas.restore();}else{var rtBG={Left:border.Left+5,Bottom:border.Bottom-5,Width:width+4,Height:height+4};rtBG.Top=rtBG.Bottom-rtBG.Height;rtBG.Right=rtBG.Left+rtBG.Width;if(this.LogoBGColor){this.Canvas.fillStyle=this.LogoBGColor;this.Canvas.fillRect(rtBG.Left,rtBG.Top,rtBG.Width,rtBG.Height);}var x=rtBG.Left+1;var y=rtBG.Bottom-1;this.Canvas.fillStyle=this.LogoTextColor;this.Canvas.fillText(text,x,y);}};this.CalculateLock=function(){if(this.IsLocked){if(this.LockPaint==null)this.LockPaint=new ChartLock();this.LockPaint.Canvas=this.Canvas;this.LockPaint.ChartBorder=this.ChartBorder;this.LockPaint.ChartFrame=this;this.LockPaint.Draw(false);}};//设施上锁
|
|
2162
2162
|
this.SetLock=function(lockData){if(!lockData)//空数据不上锁
|
|
2163
2163
|
{this.IsLocked=false;return;}this.IsLocked=true;if(!this.LockPaint)this.LockPaint=new ChartLock();//创建锁
|
|
2164
2164
|
if(lockData.Callback)this.LockPaint.Callback=lockData.Callback;//回调
|
|
@@ -6178,8 +6178,8 @@ this.FrameSplitTextFont=14*GetDevicePixelRatio()+"px 微软雅黑";//坐标刻
|
|
|
6178
6178
|
this.FrameTitleBGColor="rgb(246,251,253)";//标题栏背景色
|
|
6179
6179
|
this.Frame={XBottomOffset:1*GetDevicePixelRatio(),//X轴文字向下偏移
|
|
6180
6180
|
YTopOffset:2*GetDevicePixelRatio(),//Y轴顶部文字向下偏移
|
|
6181
|
-
YTextPadding:[2,2]};this.ToolbarButtonStyle=0;this.FrameLogo={TextColor:'rgb(178,34,34)',Font:"bold "+16*GetDevicePixelRatio()+"px 微软雅黑",Text:"*仅学习使用*"
|
|
6182
|
-
};//百分比坐标文字颜色
|
|
6181
|
+
YTextPadding:[2,2]};this.ToolbarButtonStyle=0;this.FrameLogo={TextColor:'rgb(178,34,34)',Font:"bold "+16*GetDevicePixelRatio()+"px 微软雅黑",Text:"*仅学习使用*",//不要修改声明, 任何修改声明产生的任何法律责任由修改者自行独立承担,与HQChart插件作者无关。
|
|
6182
|
+
BGColor:"rgba(230,230,230, 0.5)"};//百分比坐标文字颜色
|
|
6183
6183
|
this.Frame.PercentageText={PriceColor:'rgb(117,125,129)',PercentageColor:"rgb(117,125,129)",SplitColor:"rgb(117,125,129)",Font:14*GetDevicePixelRatio()+"px 微软雅黑"};//对数坐标
|
|
6184
6184
|
this.FrameLogarithmic={OpenPriceFont:"bold "+14*GetDevicePixelRatio()+"px 微软雅黑",//开盘价刻度文字字体
|
|
6185
6185
|
MinInterval:45*GetDevicePixelRatio()//刻度最小间距
|
|
@@ -8286,14 +8286,17 @@ this.UpdateData=function(aryData){if(!aryData||aryData.length<=0)return;var setK
|
|
|
8286
8286
|
for(var i in this.Data){var item=this.Data[i];var strKey=item.Date+'-'+item.Time+'-'+item.InfoType+'-'+item.Title;setKeys.add(strKey);}var count=0;for(var i in aryData){var item=aryData[i];var strKey=item.Date+'-'+item.Time+'-'+item.InfoType+'-'+item.Title;if(setKeys.has(strKey))continue;this.Data.push(item);++count;}JSConsole.Chart.Log('[AnnouncementInfo::UpdateData] add new count='+count);};this.RecvError=function(http,e,param){console.warn("[AnnouncementInfo::RecvError] error, http ",e,http);//if (param.HQChart.ScriptErrorCallback) param.HQChart.ScriptErrorCallback(e);
|
|
8287
8287
|
};}//业绩预告
|
|
8288
8288
|
function PforecastInfo(){this.newMethod=IKLineInfo;//派生
|
|
8289
|
-
this.newMethod();delete this.newMethod;this.ClassName='PforecastInfo';this.RequestData=function(hqChart,obj){var self=this;var param={HQChart:hqChart};this.Data=[];var url=g_JSChartResource.Domain+g_JSChartResource.KLine.Info.Pforecast.ApiUrl
|
|
8289
|
+
this.newMethod();delete this.newMethod;this.ClassName='PforecastInfo';this.Explain='业绩预告';this.RequestData=function(hqChart,obj){var self=this;var param={HQChart:hqChart};this.Data=[];var url=g_JSChartResource.Domain+g_JSChartResource.KLine.Info.Pforecast.ApiUrl;if(this.NetworkFilter(hqChart,obj))return;//已被上层替换,不调用默认的网络请求
|
|
8290
|
+
//请求数据
|
|
8290
8291
|
JSNetwork.HttpRequest({url:url,data:{"field":["pforecast.type","pforecast.reportdate","fweek"],"condition":[{"item":["pforecast.reportdate","int32","gte",this.StartDate]}],"symbol":[param.HQChart.Symbol],"start":0,"end":this.MaxRequestDataCount},type:"post",dataType:"json",async:true,success:function success(recvData){self.RecvData(recvData,param);}});return true;};this.RecvData=function(recvData,param){if(recvData.stock.length!=1)return;if(recvData.stock[0].stockday.length<=0)return;for(var i in recvData.stock[0].stockday){var item=recvData.stock[0].stockday[i];if(item.pforecast.length>0){var dataItem=item.pforecast[0];var infoData=new KLineInfoData();infoData.Date=item.date;infoData.Title=dataItem.type;infoData.InfoType=KLINE_INFO_TYPE.PFORECAST;infoData.ExtendData={Type:dataItem.type,ReportDate:dataItem.reportdate};if(item.fweek)//未来周涨幅
|
|
8291
8292
|
{infoData.ExtendData.FWeek={};if(item.fweek.week1!=null)infoData.ExtendData.FWeek.Week1=item.fweek.week1;if(item.fweek.week4!=null)infoData.ExtendData.FWeek.Week4=item.fweek.week4;}this.Data.push(infoData);}}param.HQChart.UpdataChartInfo();param.HQChart.Draw();};}//投资者关系 (调研)
|
|
8292
8293
|
function ResearchInfo(){this.newMethod=IKLineInfo;//派生
|
|
8293
|
-
this.newMethod();delete this.newMethod;this.ClassName='ResearchInfo';this.RequestData=function(hqChart,obj){var self=this;var param={HQChart:hqChart};this.Data=[];var url=g_JSChartResource.Domain+g_JSChartResource.KLine.Info.Research.ApiUrl
|
|
8294
|
+
this.newMethod();delete this.newMethod;this.ClassName='ResearchInfo';this.Explain='调研';this.RequestData=function(hqChart,obj){var self=this;var param={HQChart:hqChart};this.Data=[];var url=g_JSChartResource.Domain+g_JSChartResource.KLine.Info.Research.ApiUrl;if(this.NetworkFilter(hqChart,obj))return;//已被上层替换,不调用默认的网络请求
|
|
8295
|
+
//请求数据
|
|
8294
8296
|
JSNetwork.HttpRequest({url:url,data:{"filed":["releasedate","researchdate","level","symbol","id",'type'],"querydate":{"StartDate":this.StartDate,"EndDate":this.GetToday()},"symbol":[param.HQChart.Symbol],"start":0,"end":this.MaxRequestDataCount},type:"post",dataType:"json",async:true,success:function success(recvData){self.RecvData(recvData,param);}});return true;};this.RecvData=function(recvData,param){if(recvData.list.length<=0)return;for(var i in recvData.list){var item=recvData.list[i];var infoData=new KLineInfoData();infoData.ID=item.id;infoData.Date=item.researchdate;infoData.InfoType=KLINE_INFO_TYPE.RESEARCH;infoData.ExtendData={Level:item.level,Type:item.type};this.Data.push(infoData);}param.HQChart.UpdataChartInfo();param.HQChart.Draw();};}//大宗交易
|
|
8295
8297
|
function BlockTrading(){this.newMethod=IKLineInfo;//派生
|
|
8296
|
-
this.newMethod();delete this.newMethod;this.ClassName='BlockTrading';this.RequestData=function(hqChart,obj){var self=this;var param={HQChart:hqChart};this.Data=[];var url=g_JSChartResource.Domain+g_JSChartResource.KLine.Info.BlockTrading.ApiUrl
|
|
8298
|
+
this.newMethod();delete this.newMethod;this.ClassName='BlockTrading';this.Explain='大宗交易';this.RequestData=function(hqChart,obj){var self=this;var param={HQChart:hqChart};this.Data=[];var url=g_JSChartResource.Domain+g_JSChartResource.KLine.Info.BlockTrading.ApiUrl;if(this.NetworkFilter(hqChart,obj))return;//已被上层替换,不调用默认的网络请求
|
|
8299
|
+
//请求数据
|
|
8297
8300
|
JSNetwork.HttpRequest({url:url,data:{"field":["blocktrading.price","blocktrading.vol","blocktrading.premium","fweek","price"],"condition":[{"item":["date","int32","gte",this.StartDate]},{"item":["blocktrading.vol","int32","gte","0"]}],"symbol":[param.HQChart.Symbol],"start":0,"end":this.MaxRequestDataCount},type:"post",dataType:"json",async:true,success:function success(recvData){self.RecvData(recvData,param);}});return true;};this.RecvData=function(recvData,param){if(recvData.stock.length!=1)return;if(recvData.stock[0].stockday.length<=0)return;for(var i in recvData.stock[0].stockday){var item=recvData.stock[0].stockday[i];var infoData=new KLineInfoData();infoData.Date=item.date;infoData.InfoType=KLINE_INFO_TYPE.BLOCKTRADING;infoData.ExtendData={Price:item.blocktrading.price,//交易价格
|
|
8298
8301
|
Premium:item.blocktrading.premium,//溢价 (百分比%)
|
|
8299
8302
|
Vol:item.blocktrading.vol,//交易金额单位(万元)
|
|
@@ -8301,7 +8304,8 @@ ClosePrice:item.price//收盘价
|
|
|
8301
8304
|
};if(item.fweek)//未来周涨幅
|
|
8302
8305
|
{infoData.ExtendData.FWeek={};if(item.fweek.week1!=null)infoData.ExtendData.FWeek.Week1=item.fweek.week1;if(item.fweek.week4!=null)infoData.ExtendData.FWeek.Week4=item.fweek.week4;}this.Data.push(infoData);}param.HQChart.UpdataChartInfo();param.HQChart.Draw();};}//龙虎榜
|
|
8303
8306
|
function TradeDetail(){this.newMethod=IKLineInfo;//派生
|
|
8304
|
-
this.newMethod();delete this.newMethod;this.ClassName='TradeDetail';this.RequestData=function(hqChart,obj){var self=this;var param={HQChart:hqChart};this.Data=[];var url=g_JSChartResource.Domain+g_JSChartResource.KLine.Info.TradeDetail.ApiUrl
|
|
8307
|
+
this.newMethod();delete this.newMethod;this.ClassName='TradeDetail';this.Explain='大宗交易';this.RequestData=function(hqChart,obj){var self=this;var param={HQChart:hqChart};this.Data=[];var url=g_JSChartResource.Domain+g_JSChartResource.KLine.Info.TradeDetail.ApiUrl;if(this.NetworkFilter(hqChart,obj))return;//已被上层替换,不调用默认的网络请求
|
|
8308
|
+
//请求数据
|
|
8305
8309
|
JSNetwork.HttpRequest({url:url,data:{"field":["tradedetail.typeexplain","tradedetail.type","fweek"],"condition":[{"item":["date","int32","gte",this.StartDate]},{"item":["tradedetail.type","int32","gte","0"]}],"symbol":[param.HQChart.Symbol],"start":0,"end":this.MaxRequestDataCount},type:"post",dataType:"json",async:true,success:function success(recvData){self.RecvData(recvData,param);}});return true;};this.RecvData=function(recvData,param){if(recvData.stock.length!=1)return;if(recvData.stock[0].stockday.length<=0)return;for(var i in recvData.stock[0].stockday){var item=recvData.stock[0].stockday[i];var infoData=new KLineInfoData();infoData.Date=item.date;infoData.InfoType=KLINE_INFO_TYPE.TRADEDETAIL;infoData.ExtendData={Detail:new Array()};for(var j in item.tradedetail){var tradeItem=item.tradedetail[j];infoData.ExtendData.Detail.push({"Type":tradeItem.type,"TypeExplain":tradeItem.typeexplain});}if(item.fweek)//未来周涨幅
|
|
8306
8310
|
{infoData.ExtendData.FWeek={};if(item.fweek.week1!=null)infoData.ExtendData.FWeek.Week1=item.fweek.week1;if(item.fweek.week4!=null)infoData.ExtendData.FWeek.Week4=item.fweek.week4;}this.Data.push(infoData);}param.HQChart.UpdataChartInfo();param.HQChart.Draw();};}function JSMinuteInfoMap(){}JSMinuteInfoMap.InfoMap=new _map2.default([["大盘异动",{Create:function Create(){return new MarketEventInfo();}}]]);JSMinuteInfoMap.Get=function(id){return JSMinuteInfoMap.InfoMap.get(id);};function IMinuteInfo(){this.Data;this.ClassName='IMinuteInfo';}//////////////////////////////////////////////////////////////////////
|
|
8307
8311
|
// 大盘异动
|
|
@@ -12491,7 +12495,7 @@ function HQChartScriptWorker(){this.Create=function(){var _this60=this;addEventL
|
|
|
12491
12495
|
hisData.Symbol=message.symbol;}var stockObj={HQDataType:HQ_DATA_TYPE.KLINE_ID,Stock:{Symbol:message.Symbol},Request:{MaxDataCount:500,MaxMinuteDayCount:5},Period:message.Period,Right:message.Right,Data:hisData};if(IFrameSplitOperator.IsNumber(message.HQDataType))stockObj.HQDataType=message.HQDataType;indexConsole.ExecuteScript(stockObj);};this.OnRecvMessage=function(message){var data=message.data;if(!data)return;if(data.ID==JSCHART_WORKER_MESSAGE_ID.EXECUTE_SCRIPT){if(!IFrameSplitOperator.IsNonEmptyArray(data.AryIndex))return;for(var i=0;i<data.AryIndex.length;++i){var item=data.AryIndex[i];this.ExecuteScript(item,data);}}};this.OnExecuteFinish=function(data,indexInfo,jsExectute){var message={Data:data,IndexInfo:indexInfo,ID:JSCHART_WORKER_MESSAGE_ID.FINISH_EXECUTE_SCRIPT};postMessage(message);};this.OnExecuteError=function(error,indexInfo){var message={IndexInfo:indexInfo,ID:JSCHART_WORKER_MESSAGE_ID.ERROR_EXECUTE_SCRIPT,Error:error};postMessage(message);};}/********************************************************************************
|
|
12492
12496
|
* 版本信息输出
|
|
12493
12497
|
*
|
|
12494
|
-
*/var HQCHART_VERSION="1.1.
|
|
12498
|
+
*/var HQCHART_VERSION="1.1.12498";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();//把给外界调用的方法暴露出来
|
|
12495
12499
|
exports.default=(_jsChartInit$jsChartS={jsChartInit:JSChart.Init,jsChartStyle:JSChart.SetStyle,// IsIndexSymbol:IsIndexSymbol,
|
|
12496
12500
|
// BaseIndex:BaseIndex,
|
|
12497
12501
|
// ChartLine:ChartLine,
|
package/package.json
CHANGED
package/src/jscommon/umychart.js
CHANGED
|
@@ -9010,6 +9010,7 @@ function IChartFramePainting()
|
|
|
9010
9010
|
|
|
9011
9011
|
this.LogoTextColor=g_JSChartResource.FrameLogo.TextColor;
|
|
9012
9012
|
this.LogoTextFont=g_JSChartResource.FrameLogo.Font;
|
|
9013
|
+
this.LogoBGColor=g_JSChartResource.FrameLogo.BGColor;
|
|
9013
9014
|
this.GlobalOption;
|
|
9014
9015
|
|
|
9015
9016
|
this.PtInButtons=function(x,y) //坐标是否在按钮上
|
|
@@ -9174,10 +9175,12 @@ function IChartFramePainting()
|
|
|
9174
9175
|
var text=g_JSChartResource.FrameLogo.Text;
|
|
9175
9176
|
if (!IFrameSplitOperator.IsString(text)) return;
|
|
9176
9177
|
|
|
9177
|
-
|
|
9178
|
+
|
|
9178
9179
|
this.Canvas.font=this.LogoTextFont;
|
|
9179
9180
|
this.Canvas.textAlign = 'left';
|
|
9180
9181
|
this.Canvas.textBaseline = 'bottom';
|
|
9182
|
+
var height=this.Canvas.measureText("擎").width;
|
|
9183
|
+
var width=this.Canvas.measureText(text).width;
|
|
9181
9184
|
if (this.IsHScreen)
|
|
9182
9185
|
{
|
|
9183
9186
|
var x=border.Left+5;
|
|
@@ -9185,13 +9188,36 @@ function IChartFramePainting()
|
|
|
9185
9188
|
this.Canvas.save();
|
|
9186
9189
|
this.Canvas.translate(x,y);
|
|
9187
9190
|
this.Canvas.rotate(90 * Math.PI / 180);
|
|
9188
|
-
|
|
9191
|
+
|
|
9192
|
+
var rtBG={ Left:0, Bottom:0, Width:width+4, Height:height+4 };
|
|
9193
|
+
rtBG.Top=rtBG.Bottom-rtBG.Height;
|
|
9194
|
+
rtBG.Right=rtBG.Left+rtBG.Width;
|
|
9195
|
+
|
|
9196
|
+
if (this.LogoBGColor)
|
|
9197
|
+
{
|
|
9198
|
+
this.Canvas.fillStyle=this.LogoBGColor;
|
|
9199
|
+
this.Canvas.fillRect(rtBG.Left,rtBG.Top,rtBG.Width,rtBG.Height);
|
|
9200
|
+
}
|
|
9201
|
+
|
|
9202
|
+
this.Canvas.fillStyle=this.LogoTextColor;
|
|
9203
|
+
this.Canvas.fillText(text,1,0);
|
|
9189
9204
|
this.Canvas.restore();
|
|
9190
9205
|
}
|
|
9191
9206
|
else
|
|
9192
9207
|
{
|
|
9193
|
-
var
|
|
9194
|
-
|
|
9208
|
+
var rtBG={ Left:border.Left+5, Bottom:border.Bottom-5, Width:width+4, Height:height+4 };
|
|
9209
|
+
rtBG.Top=rtBG.Bottom-rtBG.Height;
|
|
9210
|
+
rtBG.Right=rtBG.Left+rtBG.Width;
|
|
9211
|
+
|
|
9212
|
+
if (this.LogoBGColor)
|
|
9213
|
+
{
|
|
9214
|
+
this.Canvas.fillStyle=this.LogoBGColor;
|
|
9215
|
+
this.Canvas.fillRect(rtBG.Left,rtBG.Top,rtBG.Width,rtBG.Height);
|
|
9216
|
+
}
|
|
9217
|
+
|
|
9218
|
+
var x=rtBG.Left+1;
|
|
9219
|
+
var y=rtBG.Bottom-1;
|
|
9220
|
+
this.Canvas.fillStyle=this.LogoTextColor;
|
|
9195
9221
|
this.Canvas.fillText(text,x,y);
|
|
9196
9222
|
}
|
|
9197
9223
|
}
|
|
@@ -59622,7 +59648,8 @@ function JSChartResource()
|
|
|
59622
59648
|
{
|
|
59623
59649
|
TextColor:'rgb(178,34,34)',
|
|
59624
59650
|
Font:"bold "+ 16*GetDevicePixelRatio() +"px 微软雅黑",
|
|
59625
|
-
Text:"*仅学习使用*" //不要修改声明, 任何修改声明产生的任何法律责任由修改者自行独立承担,与HQChart插件作者无关。
|
|
59651
|
+
Text:"*仅学习使用*", //不要修改声明, 任何修改声明产生的任何法律责任由修改者自行独立承担,与HQChart插件作者无关。
|
|
59652
|
+
BGColor:"rgba(230,230,230, 0.5)",
|
|
59626
59653
|
};
|
|
59627
59654
|
|
|
59628
59655
|
//百分比坐标文字颜色
|
|
@@ -80514,6 +80541,7 @@ function PforecastInfo()
|
|
|
80514
80541
|
delete this.newMethod;
|
|
80515
80542
|
|
|
80516
80543
|
this.ClassName='PforecastInfo';
|
|
80544
|
+
this.Explain='业绩预告';
|
|
80517
80545
|
|
|
80518
80546
|
this.RequestData=function(hqChart,obj)
|
|
80519
80547
|
{
|
|
@@ -80526,6 +80554,9 @@ function PforecastInfo()
|
|
|
80526
80554
|
this.Data=[];
|
|
80527
80555
|
|
|
80528
80556
|
var url=g_JSChartResource.Domain+g_JSChartResource.KLine.Info.Pforecast.ApiUrl;
|
|
80557
|
+
|
|
80558
|
+
if (this.NetworkFilter(hqChart, obj)) return; //已被上层替换,不调用默认的网络请求
|
|
80559
|
+
|
|
80529
80560
|
//请求数据
|
|
80530
80561
|
JSNetwork.HttpRequest({
|
|
80531
80562
|
url: url,
|
|
@@ -80592,6 +80623,7 @@ function ResearchInfo()
|
|
|
80592
80623
|
delete this.newMethod;
|
|
80593
80624
|
|
|
80594
80625
|
this.ClassName='ResearchInfo';
|
|
80626
|
+
this.Explain='调研';
|
|
80595
80627
|
|
|
80596
80628
|
this.RequestData=function(hqChart,obj)
|
|
80597
80629
|
{
|
|
@@ -80603,6 +80635,9 @@ function ResearchInfo()
|
|
|
80603
80635
|
|
|
80604
80636
|
this.Data=[];
|
|
80605
80637
|
var url=g_JSChartResource.Domain+g_JSChartResource.KLine.Info.Research.ApiUrl;
|
|
80638
|
+
|
|
80639
|
+
if (this.NetworkFilter(hqChart, obj)) return; //已被上层替换,不调用默认的网络请求
|
|
80640
|
+
|
|
80606
80641
|
//请求数据
|
|
80607
80642
|
JSNetwork.HttpRequest({
|
|
80608
80643
|
url: url,
|
|
@@ -80656,6 +80691,7 @@ function BlockTrading()
|
|
|
80656
80691
|
delete this.newMethod;
|
|
80657
80692
|
|
|
80658
80693
|
this.ClassName='BlockTrading';
|
|
80694
|
+
this.Explain='大宗交易';
|
|
80659
80695
|
|
|
80660
80696
|
this.RequestData=function(hqChart,obj)
|
|
80661
80697
|
{
|
|
@@ -80668,6 +80704,8 @@ function BlockTrading()
|
|
|
80668
80704
|
this.Data=[];
|
|
80669
80705
|
var url=g_JSChartResource.Domain+g_JSChartResource.KLine.Info.BlockTrading.ApiUrl;
|
|
80670
80706
|
|
|
80707
|
+
if (this.NetworkFilter(hqChart, obj)) return; //已被上层替换,不调用默认的网络请求
|
|
80708
|
+
|
|
80671
80709
|
//请求数据
|
|
80672
80710
|
JSNetwork.HttpRequest({
|
|
80673
80711
|
url: url,
|
|
@@ -80739,7 +80777,8 @@ function TradeDetail()
|
|
|
80739
80777
|
delete this.newMethod;
|
|
80740
80778
|
|
|
80741
80779
|
this.ClassName='TradeDetail';
|
|
80742
|
-
|
|
80780
|
+
this.Explain='大宗交易';
|
|
80781
|
+
|
|
80743
80782
|
this.RequestData=function(hqChart, obj)
|
|
80744
80783
|
{
|
|
80745
80784
|
var self = this;
|
|
@@ -80751,6 +80790,8 @@ function TradeDetail()
|
|
|
80751
80790
|
this.Data=[];
|
|
80752
80791
|
var url=g_JSChartResource.Domain+g_JSChartResource.KLine.Info.TradeDetail.ApiUrl;
|
|
80753
80792
|
|
|
80793
|
+
if (this.NetworkFilter(hqChart, obj)) return; //已被上层替换,不调用默认的网络请求
|
|
80794
|
+
|
|
80754
80795
|
//请求数据
|
|
80755
80796
|
JSNetwork.HttpRequest({
|
|
80756
80797
|
url: url,
|
|
@@ -13090,6 +13090,7 @@ function IChartFramePainting()
|
|
|
13090
13090
|
|
|
13091
13091
|
this.LogoTextColor=g_JSChartResource.FrameLogo.TextColor;
|
|
13092
13092
|
this.LogoTextFont=g_JSChartResource.FrameLogo.Font;
|
|
13093
|
+
this.LogoBGColor=g_JSChartResource.FrameLogo.BGColor;
|
|
13093
13094
|
this.GlobalOption;
|
|
13094
13095
|
|
|
13095
13096
|
this.PtInButtons=function(x,y) //坐标是否在按钮上
|
|
@@ -13254,10 +13255,12 @@ function IChartFramePainting()
|
|
|
13254
13255
|
var text=g_JSChartResource.FrameLogo.Text;
|
|
13255
13256
|
if (!IFrameSplitOperator.IsString(text)) return;
|
|
13256
13257
|
|
|
13257
|
-
|
|
13258
|
+
|
|
13258
13259
|
this.Canvas.font=this.LogoTextFont;
|
|
13259
13260
|
this.Canvas.textAlign = 'left';
|
|
13260
13261
|
this.Canvas.textBaseline = 'bottom';
|
|
13262
|
+
var height=this.Canvas.measureText("擎").width;
|
|
13263
|
+
var width=this.Canvas.measureText(text).width;
|
|
13261
13264
|
if (this.IsHScreen)
|
|
13262
13265
|
{
|
|
13263
13266
|
var x=border.Left+5;
|
|
@@ -13265,13 +13268,36 @@ function IChartFramePainting()
|
|
|
13265
13268
|
this.Canvas.save();
|
|
13266
13269
|
this.Canvas.translate(x,y);
|
|
13267
13270
|
this.Canvas.rotate(90 * Math.PI / 180);
|
|
13268
|
-
|
|
13271
|
+
|
|
13272
|
+
var rtBG={ Left:0, Bottom:0, Width:width+4, Height:height+4 };
|
|
13273
|
+
rtBG.Top=rtBG.Bottom-rtBG.Height;
|
|
13274
|
+
rtBG.Right=rtBG.Left+rtBG.Width;
|
|
13275
|
+
|
|
13276
|
+
if (this.LogoBGColor)
|
|
13277
|
+
{
|
|
13278
|
+
this.Canvas.fillStyle=this.LogoBGColor;
|
|
13279
|
+
this.Canvas.fillRect(rtBG.Left,rtBG.Top,rtBG.Width,rtBG.Height);
|
|
13280
|
+
}
|
|
13281
|
+
|
|
13282
|
+
this.Canvas.fillStyle=this.LogoTextColor;
|
|
13283
|
+
this.Canvas.fillText(text,1,0);
|
|
13269
13284
|
this.Canvas.restore();
|
|
13270
13285
|
}
|
|
13271
13286
|
else
|
|
13272
13287
|
{
|
|
13273
|
-
var
|
|
13274
|
-
|
|
13288
|
+
var rtBG={ Left:border.Left+5, Bottom:border.Bottom-5, Width:width+4, Height:height+4 };
|
|
13289
|
+
rtBG.Top=rtBG.Bottom-rtBG.Height;
|
|
13290
|
+
rtBG.Right=rtBG.Left+rtBG.Width;
|
|
13291
|
+
|
|
13292
|
+
if (this.LogoBGColor)
|
|
13293
|
+
{
|
|
13294
|
+
this.Canvas.fillStyle=this.LogoBGColor;
|
|
13295
|
+
this.Canvas.fillRect(rtBG.Left,rtBG.Top,rtBG.Width,rtBG.Height);
|
|
13296
|
+
}
|
|
13297
|
+
|
|
13298
|
+
var x=rtBG.Left+1;
|
|
13299
|
+
var y=rtBG.Bottom-1;
|
|
13300
|
+
this.Canvas.fillStyle=this.LogoTextColor;
|
|
13275
13301
|
this.Canvas.fillText(text,x,y);
|
|
13276
13302
|
}
|
|
13277
13303
|
}
|
|
@@ -63702,7 +63728,8 @@ function JSChartResource()
|
|
|
63702
63728
|
{
|
|
63703
63729
|
TextColor:'rgb(178,34,34)',
|
|
63704
63730
|
Font:"bold "+ 16*GetDevicePixelRatio() +"px 微软雅黑",
|
|
63705
|
-
Text:"*仅学习使用*" //不要修改声明, 任何修改声明产生的任何法律责任由修改者自行独立承担,与HQChart插件作者无关。
|
|
63731
|
+
Text:"*仅学习使用*", //不要修改声明, 任何修改声明产生的任何法律责任由修改者自行独立承担,与HQChart插件作者无关。
|
|
63732
|
+
BGColor:"rgba(230,230,230, 0.5)",
|
|
63706
63733
|
};
|
|
63707
63734
|
|
|
63708
63735
|
//百分比坐标文字颜色
|
|
@@ -84594,6 +84621,7 @@ function PforecastInfo()
|
|
|
84594
84621
|
delete this.newMethod;
|
|
84595
84622
|
|
|
84596
84623
|
this.ClassName='PforecastInfo';
|
|
84624
|
+
this.Explain='业绩预告';
|
|
84597
84625
|
|
|
84598
84626
|
this.RequestData=function(hqChart,obj)
|
|
84599
84627
|
{
|
|
@@ -84606,6 +84634,9 @@ function PforecastInfo()
|
|
|
84606
84634
|
this.Data=[];
|
|
84607
84635
|
|
|
84608
84636
|
var url=g_JSChartResource.Domain+g_JSChartResource.KLine.Info.Pforecast.ApiUrl;
|
|
84637
|
+
|
|
84638
|
+
if (this.NetworkFilter(hqChart, obj)) return; //已被上层替换,不调用默认的网络请求
|
|
84639
|
+
|
|
84609
84640
|
//请求数据
|
|
84610
84641
|
JSNetwork.HttpRequest({
|
|
84611
84642
|
url: url,
|
|
@@ -84672,6 +84703,7 @@ function ResearchInfo()
|
|
|
84672
84703
|
delete this.newMethod;
|
|
84673
84704
|
|
|
84674
84705
|
this.ClassName='ResearchInfo';
|
|
84706
|
+
this.Explain='调研';
|
|
84675
84707
|
|
|
84676
84708
|
this.RequestData=function(hqChart,obj)
|
|
84677
84709
|
{
|
|
@@ -84683,6 +84715,9 @@ function ResearchInfo()
|
|
|
84683
84715
|
|
|
84684
84716
|
this.Data=[];
|
|
84685
84717
|
var url=g_JSChartResource.Domain+g_JSChartResource.KLine.Info.Research.ApiUrl;
|
|
84718
|
+
|
|
84719
|
+
if (this.NetworkFilter(hqChart, obj)) return; //已被上层替换,不调用默认的网络请求
|
|
84720
|
+
|
|
84686
84721
|
//请求数据
|
|
84687
84722
|
JSNetwork.HttpRequest({
|
|
84688
84723
|
url: url,
|
|
@@ -84736,6 +84771,7 @@ function BlockTrading()
|
|
|
84736
84771
|
delete this.newMethod;
|
|
84737
84772
|
|
|
84738
84773
|
this.ClassName='BlockTrading';
|
|
84774
|
+
this.Explain='大宗交易';
|
|
84739
84775
|
|
|
84740
84776
|
this.RequestData=function(hqChart,obj)
|
|
84741
84777
|
{
|
|
@@ -84748,6 +84784,8 @@ function BlockTrading()
|
|
|
84748
84784
|
this.Data=[];
|
|
84749
84785
|
var url=g_JSChartResource.Domain+g_JSChartResource.KLine.Info.BlockTrading.ApiUrl;
|
|
84750
84786
|
|
|
84787
|
+
if (this.NetworkFilter(hqChart, obj)) return; //已被上层替换,不调用默认的网络请求
|
|
84788
|
+
|
|
84751
84789
|
//请求数据
|
|
84752
84790
|
JSNetwork.HttpRequest({
|
|
84753
84791
|
url: url,
|
|
@@ -84819,7 +84857,8 @@ function TradeDetail()
|
|
|
84819
84857
|
delete this.newMethod;
|
|
84820
84858
|
|
|
84821
84859
|
this.ClassName='TradeDetail';
|
|
84822
|
-
|
|
84860
|
+
this.Explain='大宗交易';
|
|
84861
|
+
|
|
84823
84862
|
this.RequestData=function(hqChart, obj)
|
|
84824
84863
|
{
|
|
84825
84864
|
var self = this;
|
|
@@ -84831,6 +84870,8 @@ function TradeDetail()
|
|
|
84831
84870
|
this.Data=[];
|
|
84832
84871
|
var url=g_JSChartResource.Domain+g_JSChartResource.KLine.Info.TradeDetail.ApiUrl;
|
|
84833
84872
|
|
|
84873
|
+
if (this.NetworkFilter(hqChart, obj)) return; //已被上层替换,不调用默认的网络请求
|
|
84874
|
+
|
|
84834
84875
|
//请求数据
|
|
84835
84876
|
JSNetwork.HttpRequest({
|
|
84836
84877
|
url: url,
|
|
@@ -128062,7 +128103,7 @@ function ScrollBarBGChart()
|
|
|
128062
128103
|
|
|
128063
128104
|
|
|
128064
128105
|
|
|
128065
|
-
var HQCHART_VERSION="1.1.
|
|
128106
|
+
var HQCHART_VERSION="1.1.12498";
|
|
128066
128107
|
|
|
128067
128108
|
function PrintHQChartVersion()
|
|
128068
128109
|
{
|
|
@@ -13134,6 +13134,7 @@ function IChartFramePainting()
|
|
|
13134
13134
|
|
|
13135
13135
|
this.LogoTextColor=g_JSChartResource.FrameLogo.TextColor;
|
|
13136
13136
|
this.LogoTextFont=g_JSChartResource.FrameLogo.Font;
|
|
13137
|
+
this.LogoBGColor=g_JSChartResource.FrameLogo.BGColor;
|
|
13137
13138
|
this.GlobalOption;
|
|
13138
13139
|
|
|
13139
13140
|
this.PtInButtons=function(x,y) //坐标是否在按钮上
|
|
@@ -13298,10 +13299,12 @@ function IChartFramePainting()
|
|
|
13298
13299
|
var text=g_JSChartResource.FrameLogo.Text;
|
|
13299
13300
|
if (!IFrameSplitOperator.IsString(text)) return;
|
|
13300
13301
|
|
|
13301
|
-
|
|
13302
|
+
|
|
13302
13303
|
this.Canvas.font=this.LogoTextFont;
|
|
13303
13304
|
this.Canvas.textAlign = 'left';
|
|
13304
13305
|
this.Canvas.textBaseline = 'bottom';
|
|
13306
|
+
var height=this.Canvas.measureText("擎").width;
|
|
13307
|
+
var width=this.Canvas.measureText(text).width;
|
|
13305
13308
|
if (this.IsHScreen)
|
|
13306
13309
|
{
|
|
13307
13310
|
var x=border.Left+5;
|
|
@@ -13309,13 +13312,36 @@ function IChartFramePainting()
|
|
|
13309
13312
|
this.Canvas.save();
|
|
13310
13313
|
this.Canvas.translate(x,y);
|
|
13311
13314
|
this.Canvas.rotate(90 * Math.PI / 180);
|
|
13312
|
-
|
|
13315
|
+
|
|
13316
|
+
var rtBG={ Left:0, Bottom:0, Width:width+4, Height:height+4 };
|
|
13317
|
+
rtBG.Top=rtBG.Bottom-rtBG.Height;
|
|
13318
|
+
rtBG.Right=rtBG.Left+rtBG.Width;
|
|
13319
|
+
|
|
13320
|
+
if (this.LogoBGColor)
|
|
13321
|
+
{
|
|
13322
|
+
this.Canvas.fillStyle=this.LogoBGColor;
|
|
13323
|
+
this.Canvas.fillRect(rtBG.Left,rtBG.Top,rtBG.Width,rtBG.Height);
|
|
13324
|
+
}
|
|
13325
|
+
|
|
13326
|
+
this.Canvas.fillStyle=this.LogoTextColor;
|
|
13327
|
+
this.Canvas.fillText(text,1,0);
|
|
13313
13328
|
this.Canvas.restore();
|
|
13314
13329
|
}
|
|
13315
13330
|
else
|
|
13316
13331
|
{
|
|
13317
|
-
var
|
|
13318
|
-
|
|
13332
|
+
var rtBG={ Left:border.Left+5, Bottom:border.Bottom-5, Width:width+4, Height:height+4 };
|
|
13333
|
+
rtBG.Top=rtBG.Bottom-rtBG.Height;
|
|
13334
|
+
rtBG.Right=rtBG.Left+rtBG.Width;
|
|
13335
|
+
|
|
13336
|
+
if (this.LogoBGColor)
|
|
13337
|
+
{
|
|
13338
|
+
this.Canvas.fillStyle=this.LogoBGColor;
|
|
13339
|
+
this.Canvas.fillRect(rtBG.Left,rtBG.Top,rtBG.Width,rtBG.Height);
|
|
13340
|
+
}
|
|
13341
|
+
|
|
13342
|
+
var x=rtBG.Left+1;
|
|
13343
|
+
var y=rtBG.Bottom-1;
|
|
13344
|
+
this.Canvas.fillStyle=this.LogoTextColor;
|
|
13319
13345
|
this.Canvas.fillText(text,x,y);
|
|
13320
13346
|
}
|
|
13321
13347
|
}
|
|
@@ -63746,7 +63772,8 @@ function JSChartResource()
|
|
|
63746
63772
|
{
|
|
63747
63773
|
TextColor:'rgb(178,34,34)',
|
|
63748
63774
|
Font:"bold "+ 16*GetDevicePixelRatio() +"px 微软雅黑",
|
|
63749
|
-
Text:"*仅学习使用*" //不要修改声明, 任何修改声明产生的任何法律责任由修改者自行独立承担,与HQChart插件作者无关。
|
|
63775
|
+
Text:"*仅学习使用*", //不要修改声明, 任何修改声明产生的任何法律责任由修改者自行独立承担,与HQChart插件作者无关。
|
|
63776
|
+
BGColor:"rgba(230,230,230, 0.5)",
|
|
63750
63777
|
};
|
|
63751
63778
|
|
|
63752
63779
|
//百分比坐标文字颜色
|
|
@@ -84638,6 +84665,7 @@ function PforecastInfo()
|
|
|
84638
84665
|
delete this.newMethod;
|
|
84639
84666
|
|
|
84640
84667
|
this.ClassName='PforecastInfo';
|
|
84668
|
+
this.Explain='业绩预告';
|
|
84641
84669
|
|
|
84642
84670
|
this.RequestData=function(hqChart,obj)
|
|
84643
84671
|
{
|
|
@@ -84650,6 +84678,9 @@ function PforecastInfo()
|
|
|
84650
84678
|
this.Data=[];
|
|
84651
84679
|
|
|
84652
84680
|
var url=g_JSChartResource.Domain+g_JSChartResource.KLine.Info.Pforecast.ApiUrl;
|
|
84681
|
+
|
|
84682
|
+
if (this.NetworkFilter(hqChart, obj)) return; //已被上层替换,不调用默认的网络请求
|
|
84683
|
+
|
|
84653
84684
|
//请求数据
|
|
84654
84685
|
JSNetwork.HttpRequest({
|
|
84655
84686
|
url: url,
|
|
@@ -84716,6 +84747,7 @@ function ResearchInfo()
|
|
|
84716
84747
|
delete this.newMethod;
|
|
84717
84748
|
|
|
84718
84749
|
this.ClassName='ResearchInfo';
|
|
84750
|
+
this.Explain='调研';
|
|
84719
84751
|
|
|
84720
84752
|
this.RequestData=function(hqChart,obj)
|
|
84721
84753
|
{
|
|
@@ -84727,6 +84759,9 @@ function ResearchInfo()
|
|
|
84727
84759
|
|
|
84728
84760
|
this.Data=[];
|
|
84729
84761
|
var url=g_JSChartResource.Domain+g_JSChartResource.KLine.Info.Research.ApiUrl;
|
|
84762
|
+
|
|
84763
|
+
if (this.NetworkFilter(hqChart, obj)) return; //已被上层替换,不调用默认的网络请求
|
|
84764
|
+
|
|
84730
84765
|
//请求数据
|
|
84731
84766
|
JSNetwork.HttpRequest({
|
|
84732
84767
|
url: url,
|
|
@@ -84780,6 +84815,7 @@ function BlockTrading()
|
|
|
84780
84815
|
delete this.newMethod;
|
|
84781
84816
|
|
|
84782
84817
|
this.ClassName='BlockTrading';
|
|
84818
|
+
this.Explain='大宗交易';
|
|
84783
84819
|
|
|
84784
84820
|
this.RequestData=function(hqChart,obj)
|
|
84785
84821
|
{
|
|
@@ -84792,6 +84828,8 @@ function BlockTrading()
|
|
|
84792
84828
|
this.Data=[];
|
|
84793
84829
|
var url=g_JSChartResource.Domain+g_JSChartResource.KLine.Info.BlockTrading.ApiUrl;
|
|
84794
84830
|
|
|
84831
|
+
if (this.NetworkFilter(hqChart, obj)) return; //已被上层替换,不调用默认的网络请求
|
|
84832
|
+
|
|
84795
84833
|
//请求数据
|
|
84796
84834
|
JSNetwork.HttpRequest({
|
|
84797
84835
|
url: url,
|
|
@@ -84863,7 +84901,8 @@ function TradeDetail()
|
|
|
84863
84901
|
delete this.newMethod;
|
|
84864
84902
|
|
|
84865
84903
|
this.ClassName='TradeDetail';
|
|
84866
|
-
|
|
84904
|
+
this.Explain='大宗交易';
|
|
84905
|
+
|
|
84867
84906
|
this.RequestData=function(hqChart, obj)
|
|
84868
84907
|
{
|
|
84869
84908
|
var self = this;
|
|
@@ -84875,6 +84914,8 @@ function TradeDetail()
|
|
|
84875
84914
|
this.Data=[];
|
|
84876
84915
|
var url=g_JSChartResource.Domain+g_JSChartResource.KLine.Info.TradeDetail.ApiUrl;
|
|
84877
84916
|
|
|
84917
|
+
if (this.NetworkFilter(hqChart, obj)) return; //已被上层替换,不调用默认的网络请求
|
|
84918
|
+
|
|
84878
84919
|
//请求数据
|
|
84879
84920
|
JSNetwork.HttpRequest({
|
|
84880
84921
|
url: url,
|
|
@@ -128215,7 +128256,7 @@ function HQChartScriptWorker()
|
|
|
128215
128256
|
|
|
128216
128257
|
|
|
128217
128258
|
|
|
128218
|
-
var HQCHART_VERSION="1.1.
|
|
128259
|
+
var HQCHART_VERSION="1.1.12498";
|
|
128219
128260
|
|
|
128220
128261
|
function PrintHQChartVersion()
|
|
128221
128262
|
{
|
|
@@ -7068,6 +7068,7 @@ function ChartVolStick()
|
|
|
7068
7068
|
else //太细了直接话线
|
|
7069
7069
|
{
|
|
7070
7070
|
var preKItem=null;
|
|
7071
|
+
var barColor=null;
|
|
7071
7072
|
for (var i = this.Data.DataOffset, j = 0; i < this.Data.Data.length && j < xPointCount; ++i, ++j, xOffset += (dataWidth + distanceWidth))
|
|
7072
7073
|
{
|
|
7073
7074
|
var value = this.Data.Data[i];
|
|
@@ -7089,14 +7090,8 @@ function ChartVolStick()
|
|
|
7089
7090
|
|
|
7090
7091
|
if (x > chartright) break;
|
|
7091
7092
|
|
|
7092
|
-
if (isMinute)
|
|
7093
|
-
|
|
7094
|
-
var barColor=this.GetMinuteBarColor(kItem,preKItem); //分时图颜色单独计算
|
|
7095
|
-
}
|
|
7096
|
-
else
|
|
7097
|
-
{
|
|
7098
|
-
var barColor=this.GetBarColor(kItem);
|
|
7099
|
-
}
|
|
7093
|
+
if (isMinute) barColor=this.GetMinuteBarColor(kItem,preKItem); //分时图颜色单独计算
|
|
7094
|
+
else barColor=this.GetBarColor(kItem);
|
|
7100
7095
|
|
|
7101
7096
|
this.Canvas.strokeStyle=barColor.Color;
|
|
7102
7097
|
|
|
@@ -7133,7 +7128,7 @@ function ChartVolStick()
|
|
|
7133
7128
|
var xOffset = this.ChartBorder.GetTop() + distanceWidth / 2.0 + 2.0;
|
|
7134
7129
|
var chartBottom = this.ChartBorder.GetBottom();
|
|
7135
7130
|
var xPointCount = this.ChartFrame.XPointCount;
|
|
7136
|
-
|
|
7131
|
+
var isMinute=this.IsMinuteFrame();
|
|
7137
7132
|
var yBottom = this.ChartFrame.GetYFromData(0);
|
|
7138
7133
|
|
|
7139
7134
|
if (dataWidth >= this.MinBarWidth)
|
|
@@ -7171,6 +7166,8 @@ function ChartVolStick()
|
|
|
7171
7166
|
}
|
|
7172
7167
|
else //太细了直接话线
|
|
7173
7168
|
{
|
|
7169
|
+
var preKItem=null;
|
|
7170
|
+
var barColor=null;
|
|
7174
7171
|
for (var i = this.Data.DataOffset, j = 0; i < this.Data.Data.length && j < xPointCount; ++i, ++j, xOffset += (dataWidth + distanceWidth))
|
|
7175
7172
|
{
|
|
7176
7173
|
var value = this.Data.Data[i];
|
|
@@ -7178,10 +7175,22 @@ function ChartVolStick()
|
|
|
7178
7175
|
if (value == null || kItem == null) continue;
|
|
7179
7176
|
|
|
7180
7177
|
var y = this.ChartFrame.GetYFromData(value);
|
|
7181
|
-
|
|
7178
|
+
|
|
7179
|
+
if (isMinute)
|
|
7180
|
+
{
|
|
7181
|
+
var x=this.ChartFrame.GetXFromIndex(j);
|
|
7182
|
+
}
|
|
7183
|
+
else
|
|
7184
|
+
{
|
|
7185
|
+
var left=xOffset;
|
|
7186
|
+
var right=xOffset+dataWidth;
|
|
7187
|
+
var x=left+(right-left)/2;
|
|
7188
|
+
}
|
|
7182
7189
|
if (x > chartBottom) break;
|
|
7183
7190
|
|
|
7184
|
-
|
|
7191
|
+
if (isMinute) barColor=this.GetMinuteBarColor(kItem,preKItem); //分时图颜色单独计算
|
|
7192
|
+
else barColor=this.GetBarColor(kItem);
|
|
7193
|
+
|
|
7185
7194
|
this.Canvas.strokeStyle=barColor.Color;
|
|
7186
7195
|
|
|
7187
7196
|
//var x = this.ChartFrame.GetXFromIndex(j);
|
|
@@ -7189,6 +7198,8 @@ function ChartVolStick()
|
|
|
7189
7198
|
this.Canvas.moveTo(y, ToFixedPoint(x));
|
|
7190
7199
|
this.Canvas.lineTo(yBottom, ToFixedPoint(x));
|
|
7191
7200
|
this.Canvas.stroke();
|
|
7201
|
+
|
|
7202
|
+
preKItem=kItem;
|
|
7192
7203
|
}
|
|
7193
7204
|
}
|
|
7194
7205
|
}
|