hqchart 1.1.14193 → 1.1.14197
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
|
@@ -4631,7 +4631,7 @@ left=2*pixelRatio;top=3*pixelRatio;}this.Canvas.textBaseline="top";var right=lef
|
|
|
4631
4631
|
if (this.IsHScreen) this.Canvas.restore();
|
|
4632
4632
|
}
|
|
4633
4633
|
*/this.DrawBorder=function(){var isHScreen=this.ChartFrame.IsHScreen===true;var left=this.GetLeft();var top=this.GetTop();this.Canvas.strokeStyle=this.BorderColor;if(isHScreen)this.Canvas.strokeRect(ToFixedPoint(left),ToFixedPoint(top),this.Height,this.Width);else this.Canvas.strokeRect(ToFixedPoint(left),ToFixedPoint(top),ToFixedRect(this.Width),ToFixedRect(this.Height));};this.DrawBG=function(){var isHScreen=this.ChartFrame.IsHScreen===true;var left=this.GetLeft();var top=this.GetTop();this.Canvas.fillStyle=this.BGColor;if(isHScreen)this.Canvas.fillRect(left,top,this.Height,this.Width);else this.Canvas.fillRect(left,top,this.Width,this.Height);};//设置参数接口
|
|
4634
|
-
this.SetOption=function(option){if(option.LineHeight>0)this.LineHeight=option.LineHeight*GetDevicePixelRatio();if(option.BGColor)this.BGColor=option.BGColor;if(option.LanguageID>0)this.LanguageID=option.LanguageID;};}function MinuteTooltipPaint(){this.newMethod=KLineTooltipPaint;//派生
|
|
4634
|
+
this.SetOption=function(option){if(!option)return;if(option.LineHeight>0)this.LineHeight=option.LineHeight*GetDevicePixelRatio();if(option.BGColor)this.BGColor=option.BGColor;if(option.LanguageID>0)this.LanguageID=option.LanguageID;if(IFrameSplitOperator.IsNumber(option.LineSpace))this.LineSpace=option.LineSpace;if(IFrameSplitOperator.IsNumber(option.ExtendLineWidth))this.ExtendLineWidth=option.ExtendLineWidth;CopyMarginConfig(this.Mergin,option.Mergin);};}function MinuteTooltipPaint(){this.newMethod=KLineTooltipPaint;//派生
|
|
4635
4635
|
this.newMethod();delete this.newMethod;this.ClassName='MinuteTooltipPaint';this.Left=1*GetDevicePixelRatio();this.Top=1*GetDevicePixelRatio();this.YClose;this.IsShowAveragePrice=true;//是否显示均价
|
|
4636
4636
|
this.TitlePaint;this.GetTop=function(){if(this.IsHScreen){var border=this.ChartBorder.GetHScreenBorder();if(this.ShowPosition==0)return border.TopEx+this.Left;else return border.BottomEx-this.Width-this.Left;}else{var border=this.ChartBorder.GetBorder();return border.Top+this.Top;}};this.GetLeft=function(){if(this.IsHScreen){var border=this.ChartBorder.GetHScreenBorder();return border.Right-this.Height-this.Top;}else{var border=this.ChartBorder.GetBorder();if(this.ShowPosition==0)return border.LeftEx+this.Left;else return border.RightEx-this.Width-this.Left;}};this.Draw=function(){if(!this.IsEnableDraw())return;this.IsHScreen=this.ChartFrame.IsHScreen===true;this.TitlePaint=this.HQChart.TitlePaint[0];if(!this.TitlePaint)return;var drawData;//{ Type:0=连续交易 1=集合竞价, Data:数据 }
|
|
4637
4637
|
var pointInfo=this.TitlePaint.PointInfo;if(pointInfo&&(pointInfo.ClientPos==2||pointInfo.ClientPos==3||pointInfo.ClientPos>=200&&pointInfo.ClientPos<=299||pointInfo.ClientPos>=300&&pointInfo.ClientPos<=399)){var auctionData=this.TitlePaint.GetCurrentAuctionData();if(!auctionData)return;drawData={Type:1,Data:auctionData};}else{var minuteData=this.TitlePaint.GetCurrentKLineData();if(!minuteData)return;drawData={Type:0,Data:minuteData};}var titleData=this.GetFormatTitle(drawData);if(!titleData||!IFrameSplitOperator.IsNonEmptyArray(titleData.AryText))return;this.CalculateTooltipSize(titleData);this.CalculateShowPosition();this.DrawBG();this.DrawTooltipData(titleData);this.DrawBorder();};this.GetFormatTitle=function(data){if(!data||!data.Data)return;var item;var close,vol,amount;if(data.Type==0)//盘中
|
|
@@ -13813,7 +13813,7 @@ hisData.Symbol=message.symbol;}var stockObj={HQDataType:HQ_DATA_TYPE.KLINE_ID,St
|
|
|
13813
13813
|
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);};}/********************************************************************************
|
|
13814
13814
|
* 版本信息输出
|
|
13815
13815
|
*
|
|
13816
|
-
*/var HQCHART_VERSION="1.1.
|
|
13816
|
+
*/var HQCHART_VERSION="1.1.14196";function PrintHQChartVersion(){var logo='\n\n*************************************************************************************************************************************************************************** \n* \n* :%@@- \n* :@@@@- \n* =@@@@ :#@@@ .:+#@@@#=: :=*@@@@@@#+-. *@@@@. \n* :@@@@@ .@@@@@ .#@@@@@@@@@@@- +@@@@@@@@@@@@@+ @@@@@ -%@@* \n* +@@@@% #@@@@# *@@@@@@@@@@@@@@%. =@@@@@@@@@@@@@@@- @@@@@ -@@@@+ \n* %@@@@* @@@@@+ .%@@@@@@@@@@@@@@@@%: #@@@@@@@@@@@@@@@% @@@@# *@@@@= \n* @@@@@= @@@@@- .%@@@@@@@*++*%@@@@@@% .%@@@@@@@%*+==+**= -@@@@+ #@@@@- \n* @@@@@. @@@@@. #@@@@@%= =@@@@@@* %@@@@@@#: *@@@@- :::. .-+*###+: ::: .+##+: -%%@@@@@%%%% \n* .@@@@@ .@@@@@. +@@@@@% .@@@@@@ *@@@@@@: %@@@@: +@@@@@%. :%@@@@@@@@@@: *@@@ :@@@@@* @@@@@@@@@@@@ \n* :@@@@@ :@@@@@ @@@@@% :@@@@@+ @@@@@@: %@@@@-@@@@@@@@@. @@@@@@@@@@@@@. :@@@%-@@@@@@.:@@@@@@@@@@@# \n* -@@@@% -@@@@@ =@@@@@. %@@@@% %@@@@@- %@@@@@@@@@@@@@@* %@@@@@@@@@@@@+ -@@@@@@@@@@# -@@@@@@@@@@@. \n* +@@@@%=========#@@@@% @@@@@# :@@@@@ .@@@@@% @@@@@@@@%@@@@@@@ -%+:. .#@@@@* +@@@@@@@%%@. .::+@@@@#:: \n* #@@@@@@@@@@@@@@@@@@@# .@@@@@ .@@@@@ :@@@@@. @@@@@@#. #@@@@@. -@@@@* #@@@@@@: *@@@@+ \n* %@@@@@@@@@@@@@@@@@@@+ :@@@@@ .@@@@@ -@@@@@ @@@@@+ @@@@@. :@@@@* @@@@@% #@@@@- \n* @@@@@@@@@@@@@@@@@@@@: :@@@@% :@@@@@ +@@@@% -@@@@+ @@@@@ -@@@@+ @@@@@. @@@@@. \n* .@@@@@@@@@@@@@@@@@@@@ :@@@@% -@@@@% *@@@@% #@@@@. @@@@@ .=*#%%%@@@@@= :@@@@# @@@@@. \n* -@@@@@:::::::::=@@@@@ :@@@@@ @@@@@* +@@@@% @@@@@ @@@@% -#@@@@@@@@@@@@: -@@@@* @@@@@ \n* =@@@@% =@@@@% .@@@@@ :@@@@@. -@@@@% @@@@@ .@@@@* +@@@@@@@@@@@@@@. =@@@@+ .@@@@@ \n* +@@@@# +@@@@# @@@@@# %@@@@% :@@@@@ .@@@@% =@@@@= -@@@@@*-:..%@@@@ +@@@@= :@@@@# \n* *@@@@* *@@@@* +@@@@@: #@@@@@+ .@@@@@@ :@@@@% *@@@@- @@@@@. @@@@% #@@@@: =@@@@+ \n* %@@@@= %@@@@+ @@@@@@- .%@@@@@# #@@@@@# :@@@@% #@@@@: @@@@% @@@@* %@@@@. #@@@@- \n* @@@@@- @@@@@= =@@@@@@#=...-*@@@@@@@: @@@@@@%=. :+**. :@@@@* %@@@@. .@@@@* *@@@@= @@@@@ %@@@@+ \n* .@@@@@: .@@@@@: *@@@@@@@@@@@@@@@@@@@# =@@@@@@@@%%%@@@@@@ +@@@@- @@@@@ .@@@@@: :%@@@@@- .@@@@% %@@@@@*+- \n* :@@@@@ :@@@@@ +@@@@@@@@@@@@@@@@@@@# =@@@@@@@@@@@@@@@@% %@@@@ @@@@@ @@@@@@@@@@@@@@@: -@@@@* *@@@@@@@@- \n* =@@@@@ -@@@@@ :@@@@@@@@@@@@@@@@@@@# :@@@@@@@@@@@@@@@% @@@@@ %@@@% #@@@@@@@@@#@@@@. +@@@@- .@@@@@@@@# \n* *@@@@# =@@@@% :#@@@@@@@#: :@@@@@= =@@@@@@@@@@@+. @@@@@ :@@@+ *@@@@@@@- %@@@ *@@@= =@@@@@@@* \n* =++++- -++++= .:::. .=*+: :-=+++=:. ****= .=+. .-++=: :+++ -+=: .-=+=:. \n* \n* \n* HQChart \n* Ver: '+HQCHART_VERSION+' \n* License: Apache License 2.0 \n* Source: https://github.com/jones2000/HQChart\n*\n************************************************************************************************************************************************************************** \n ';console.log(logo);}PrintHQChartVersion();//把给外界调用的方法暴露出来
|
|
13817
13817
|
exports.default=(_jsChartInit$jsChartS={jsChartInit:JSChart.Init,jsChartStyle:JSChart.SetStyle,// IsIndexSymbol:IsIndexSymbol,
|
|
13818
13818
|
// BaseIndex:BaseIndex,
|
|
13819
13819
|
// ChartLine:ChartLine,
|
package/package.json
CHANGED
package/src/jscommon/umychart.js
CHANGED
|
@@ -43232,9 +43232,15 @@ function KLineTooltipPaint()
|
|
|
43232
43232
|
//设置参数接口
|
|
43233
43233
|
this.SetOption=function(option)
|
|
43234
43234
|
{
|
|
43235
|
+
if (!option) return;
|
|
43236
|
+
|
|
43235
43237
|
if (option.LineHeight>0) this.LineHeight=option.LineHeight*GetDevicePixelRatio();
|
|
43236
43238
|
if (option.BGColor) this.BGColor=option.BGColor;
|
|
43237
43239
|
if (option.LanguageID>0) this.LanguageID=option.LanguageID;
|
|
43240
|
+
if (IFrameSplitOperator.IsNumber(option.LineSpace)) this.LineSpace=option.LineSpace;
|
|
43241
|
+
if (IFrameSplitOperator.IsNumber(option.ExtendLineWidth)) this.ExtendLineWidth=option.ExtendLineWidth;
|
|
43242
|
+
CopyMarginConfig(this.Mergin, option.Mergin);
|
|
43243
|
+
|
|
43238
43244
|
}
|
|
43239
43245
|
}
|
|
43240
43246
|
|
|
@@ -47201,9 +47201,15 @@ function KLineTooltipPaint()
|
|
|
47201
47201
|
//设置参数接口
|
|
47202
47202
|
this.SetOption=function(option)
|
|
47203
47203
|
{
|
|
47204
|
+
if (!option) return;
|
|
47205
|
+
|
|
47204
47206
|
if (option.LineHeight>0) this.LineHeight=option.LineHeight*GetDevicePixelRatio();
|
|
47205
47207
|
if (option.BGColor) this.BGColor=option.BGColor;
|
|
47206
47208
|
if (option.LanguageID>0) this.LanguageID=option.LanguageID;
|
|
47209
|
+
if (IFrameSplitOperator.IsNumber(option.LineSpace)) this.LineSpace=option.LineSpace;
|
|
47210
|
+
if (IFrameSplitOperator.IsNumber(option.ExtendLineWidth)) this.ExtendLineWidth=option.ExtendLineWidth;
|
|
47211
|
+
CopyMarginConfig(this.Mergin, option.Mergin);
|
|
47212
|
+
|
|
47207
47213
|
}
|
|
47208
47214
|
}
|
|
47209
47215
|
|
|
@@ -149636,7 +149642,7 @@ function HQChartScriptWorker()
|
|
|
149636
149642
|
|
|
149637
149643
|
|
|
149638
149644
|
|
|
149639
|
-
var HQCHART_VERSION="1.1.
|
|
149645
|
+
var HQCHART_VERSION="1.1.14196";
|
|
149640
149646
|
|
|
149641
149647
|
function PrintHQChartVersion()
|
|
149642
149648
|
{
|