hqchart 1.1.14555 → 1.1.14557
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
|
@@ -9417,8 +9417,8 @@ if(index>0&&index+this.CFFEX3.length==upperSymbol.length)return true;return fals
|
|
|
9417
9417
|
{return this.IsSHO(upperSymbol)||this.IsSZO(upperSymbol)||this.IsGZFE(upperSymbol)||this.IsCFFEX(upperSymbol)||this.IsCZCE(upperSymbol)||this.IsDCE(upperSymbol)||this.IsSHFE(upperSymbol);},IsFutures:function IsFutures(upperSymbol)//是否是期货 包含国外的
|
|
9418
9418
|
{if(!upperSymbol)return false;return this.IsChinaFutures(upperSymbol)||this.IsNYMEX(upperSymbol)||this.IsCOMEX(upperSymbol)||this.IsNYBOT(upperSymbol)||this.IsCBOT(upperSymbol)||this.IsLME(upperSymbol)||this.IsTOCOM(upperSymbol);},IsSHSZ:function IsSHSZ(upperSymbol)//是否是沪深的股票
|
|
9419
9419
|
{return this.IsSZ(upperSymbol)||this.IsSH(upperSymbol)||this.IsSHSZCustomIndex(upperSymbol);},IsSHSZFund:function IsSHSZFund(upperSymbol)//是否是交易所基金
|
|
9420
|
-
{if(!upperSymbol)return false;if(this.IsSH(upperSymbol))//51XXXX.SH
|
|
9421
|
-
{if(upperSymbol.charAt(0)=='5'
|
|
9420
|
+
{if(!upperSymbol)return false;if(this.IsSH(upperSymbol))//51XXXX.SH 58xxxx.sh 56xxxx.sh
|
|
9421
|
+
{if(upperSymbol.charAt(0)=='5'){var secondChar=upperSymbol.charAt(1);if(["1","2","3","4","5","7","6","8"].includes(secondChar))return true;}}else if(this.IsSZ(upperSymbol))//15XXXX.sz, 16XXXX.sz, 17XXXX.sz, 18XXXX.sz
|
|
9422
9422
|
{if(upperSymbol.charAt(0)=='1'&&(upperSymbol.charAt(1)=='5'||upperSymbol.charAt(1)=='6'||upperSymbol.charAt(1)=='7'||upperSymbol.charAt(1)=='8'))return true;}return false;},IsSHSZIndex:function IsSHSZIndex(symbol)//是否是沪深指数代码
|
|
9423
9423
|
{if(!symbol)return false;var upperSymbol=symbol.toUpperCase();if(this.IsSH(upperSymbol)){var temp=upperSymbol.replace('.SH','');if(upperSymbol.charAt(0)=='0'&&parseInt(temp)<=3000)return true;}else if(this.IsSZ(upperSymbol)){if(upperSymbol.charAt(0)=='3'&&upperSymbol.charAt(1)=='9')return true;}else if(this.IsSHSZCustomIndex(upperSymbol))//自定义指数
|
|
9424
9424
|
{return true;}return false;},IsSHSZStockA:function IsSHSZStockA(symbol)//是否是沪深A股
|
|
@@ -14665,7 +14665,7 @@ hisData.Symbol=message.symbol;}var stockObj={HQDataType:HQ_DATA_TYPE.KLINE_ID,St
|
|
|
14665
14665
|
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);};}/********************************************************************************
|
|
14666
14666
|
* 版本信息输出
|
|
14667
14667
|
*
|
|
14668
|
-
*/var HQCHART_VERSION="1.1.
|
|
14668
|
+
*/var HQCHART_VERSION="1.1.14556";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();//把给外界调用的方法暴露出来
|
|
14669
14669
|
exports.default=(_jsChartInit$jsChartS={jsChartInit:JSChart.Init,jsChartStyle:JSChart.SetStyle,// IsIndexSymbol:IsIndexSymbol,
|
|
14670
14670
|
// BaseIndex:BaseIndex,
|
|
14671
14671
|
// ChartLine:ChartLine,
|
package/package.json
CHANGED
package/src/jscommon/umychart.js
CHANGED
|
@@ -95392,9 +95392,13 @@ var MARKET_SUFFIX_NAME=
|
|
|
95392
95392
|
{
|
|
95393
95393
|
if (!upperSymbol) return false;
|
|
95394
95394
|
|
|
95395
|
-
if (this.IsSH(upperSymbol)) //51XXXX.SH
|
|
95395
|
+
if (this.IsSH(upperSymbol)) //51XXXX.SH 58xxxx.sh 56xxxx.sh
|
|
95396
95396
|
{
|
|
95397
|
-
if (upperSymbol.charAt(0)=='5'
|
|
95397
|
+
if (upperSymbol.charAt(0)=='5')
|
|
95398
|
+
{
|
|
95399
|
+
var secondChar=upperSymbol.charAt(1);
|
|
95400
|
+
if (["1", "2", "3", "4", "5", "7", "6", "8"].includes(secondChar)) return true;
|
|
95401
|
+
}
|
|
95398
95402
|
}
|
|
95399
95403
|
else if (this.IsSZ(upperSymbol)) //15XXXX.sz, 16XXXX.sz, 17XXXX.sz, 18XXXX.sz
|
|
95400
95404
|
{
|
|
@@ -99317,9 +99317,13 @@ var MARKET_SUFFIX_NAME=
|
|
|
99317
99317
|
{
|
|
99318
99318
|
if (!upperSymbol) return false;
|
|
99319
99319
|
|
|
99320
|
-
if (this.IsSH(upperSymbol)) //51XXXX.SH
|
|
99320
|
+
if (this.IsSH(upperSymbol)) //51XXXX.SH 58xxxx.sh 56xxxx.sh
|
|
99321
99321
|
{
|
|
99322
|
-
if (upperSymbol.charAt(0)=='5'
|
|
99322
|
+
if (upperSymbol.charAt(0)=='5')
|
|
99323
|
+
{
|
|
99324
|
+
var secondChar=upperSymbol.charAt(1);
|
|
99325
|
+
if (["1", "2", "3", "4", "5", "7", "6", "8"].includes(secondChar)) return true;
|
|
99326
|
+
}
|
|
99323
99327
|
}
|
|
99324
99328
|
else if (this.IsSZ(upperSymbol)) //15XXXX.sz, 16XXXX.sz, 17XXXX.sz, 18XXXX.sz
|
|
99325
99329
|
{
|
|
@@ -144942,7 +144946,7 @@ function ScrollBarBGChart()
|
|
|
144942
144946
|
|
|
144943
144947
|
|
|
144944
144948
|
|
|
144945
|
-
var HQCHART_VERSION="1.1.
|
|
144949
|
+
var HQCHART_VERSION="1.1.14556";
|
|
144946
144950
|
|
|
144947
144951
|
function PrintHQChartVersion()
|
|
144948
144952
|
{
|
|
@@ -99361,9 +99361,13 @@ var MARKET_SUFFIX_NAME=
|
|
|
99361
99361
|
{
|
|
99362
99362
|
if (!upperSymbol) return false;
|
|
99363
99363
|
|
|
99364
|
-
if (this.IsSH(upperSymbol)) //51XXXX.SH
|
|
99364
|
+
if (this.IsSH(upperSymbol)) //51XXXX.SH 58xxxx.sh 56xxxx.sh
|
|
99365
99365
|
{
|
|
99366
|
-
if (upperSymbol.charAt(0)=='5'
|
|
99366
|
+
if (upperSymbol.charAt(0)=='5')
|
|
99367
|
+
{
|
|
99368
|
+
var secondChar=upperSymbol.charAt(1);
|
|
99369
|
+
if (["1", "2", "3", "4", "5", "7", "6", "8"].includes(secondChar)) return true;
|
|
99370
|
+
}
|
|
99367
99371
|
}
|
|
99368
99372
|
else if (this.IsSZ(upperSymbol)) //15XXXX.sz, 16XXXX.sz, 17XXXX.sz, 18XXXX.sz
|
|
99369
99373
|
{
|
|
@@ -155467,7 +155471,7 @@ function HQChartScriptWorker()
|
|
|
155467
155471
|
|
|
155468
155472
|
|
|
155469
155473
|
|
|
155470
|
-
var HQCHART_VERSION="1.1.
|
|
155474
|
+
var HQCHART_VERSION="1.1.14556";
|
|
155471
155475
|
|
|
155472
155476
|
function PrintHQChartVersion()
|
|
155473
155477
|
{
|