hqchart 1.1.14152 → 1.1.14154
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
|
@@ -12932,13 +12932,10 @@ if(IFrameSplitOperator.IsNumber(option.BorderLine))this.Frame.BorderLine=option.
|
|
|
12932
12932
|
if(IFrameSplitOperator.IsBool(option.ItemBorder))chart.IsDrawBorder=option.ItemBorder;//单元格边框
|
|
12933
12933
|
if(IFrameSplitOperator.IsNumber(option.SelectedModel))chart.SelectedModel=option.SelectedModel;}var bRegisterKeydown=true;var bRegisterWheel=true;if(option){if(option.KeyDown===false){bRegisterKeydown=false;JSConsole.Chart.Log('[JSTReportChartContainer::Create] not register keydown event.');}if(option.Wheel===false){bRegisterWheel=false;JSConsole.Chart.Log('[JSTReportChartContainer::Create] not register wheel event.');}}if(bRegisterKeydown)this.UIElement.addEventListener("keydown",function(e){_this63.OnKeyDown(e);},true);//键盘消息
|
|
12934
12934
|
if(bRegisterWheel)this.UIElement.addEventListener("wheel",function(e){_this63.OnWheel(e);},true);//上下滚动消息
|
|
12935
|
-
this.UIElement.ondblclick=function(e){_this63.UIOnDblClick(e);};this.UIElement.onmousedown=function(e){_this63.UIOnMouseDown(e);};this.UIElement.onmousemove=function(e){_this63.UIOnMouseMove(e);};/*
|
|
12935
|
+
this.UIElement.ondblclick=function(e){_this63.UIOnDblClick(e);};this.UIElement.onmousedown=function(e){_this63.UIOnMouseDown(e);};this.UIElement.onmousemove=function(e){_this63.UIOnMouseMove(e);};this.UIElement.onmouseout=function(e){_this63.UIOnMounseOut(e);};this.UIElement.onmouseleave=function(e){_this63.UIOnMouseleave(e);};/*
|
|
12936
12936
|
this.UIElement.onmouseup=(e)=>{ this.UIOnMounseUp(e); }
|
|
12937
12937
|
this.UIElement.oncontextmenu=(e)=> { this.UIOnContextMenu(e); }
|
|
12938
12938
|
|
|
12939
|
-
this.UIElement.onmouseout=(e)=>{ this.UIOnMounseOut(e); }
|
|
12940
|
-
this.UIElement.onmouseleave=(e)=>{ this.UIOnMouseleave(e); }
|
|
12941
|
-
|
|
12942
12939
|
|
|
12943
12940
|
//手机拖拽
|
|
12944
12941
|
this.UIElement.ontouchstart=(e)=> { this.OnTouchStart(e); }
|
|
@@ -13003,7 +13000,7 @@ if(tooltipData){if(tooltipData.Type==20){if(tooltipData.Data&&tooltipData.Data.S
|
|
|
13003
13000
|
event.Callback(event,sendData,this);
|
|
13004
13001
|
}
|
|
13005
13002
|
*/if(mouseStatus)this.UIElement.style.cursor=mouseStatus.Cursor;//if (bDrawTooltip) this.DrawTooltip(this.LastMouseStatus.TooltipStatus);
|
|
13006
|
-
if(bShowChartTooltip){this.ShowMinuteChartTooltip(null,null,chartTooltipData);}else{this.HideMinuteChartTooltip();}};//点表头
|
|
13003
|
+
if(bShowChartTooltip){this.ShowMinuteChartTooltip(null,null,chartTooltipData);}else{this.HideMinuteChartTooltip();}};this.UIOnMounseOut=function(e){this.HideMinuteChartTooltip();};this.UIOnMouseleave=function(e){this.HideMinuteChartTooltip();};//点表头
|
|
13007
13004
|
this.OnClickHeader=function(clickData,e){var header=clickData.Header;if(header.Column&&header.Column.Sort==1){var data={CellType:header.CellType,ColumnIndex:header.ColumnIndex};this.SortHeader(header.Column,data);}};//排序
|
|
13008
13005
|
this.SortHeader=function(column,sortData){var _this67=this;var sortInfo={Field:this.SortInfo.Field,Sort:this.SortInfo.Sort,CellType:this.SortInfo.CellType};var arySortType=column.SortType;if(sortInfo.Field!=sortData.ColumnIndex||sortInfo.CellType!=sortData.CellType){sortInfo.Field=sortData.ColumnIndex;sortInfo.CellType=sortData.CellType;sortInfo.Sort=arySortType[0];}else{if(arySortType.length==1){sortInfo.Sort=arySortType[0];}else{for(var i=0;i<arySortType.length;++i){if(sortInfo.Sort==arySortType[i]){sortInfo.Sort=arySortType[(i+1)%arySortType.length];break;}}}}if(sortInfo.Sort==0)//还原
|
|
13009
13006
|
{this.Data.Data=[];for(var i=0;i<this.SourceData.Data.length;++i){this.Data.Data.push(this.SourceData.Data[i]);}}else{var event=this.GetEventCallback(JSCHART_EVENT_ID.ON_TREPORT_LOCAL_SORT);if(event&&event.Callback){var sendData={Column:column,SortInfo:sortInfo,SymbolList:this.Data.Data,Result:null};event.Callback(event,sendData,this);if(Array.isArray(sendData.Result))this.Data.Data=sendData.Result;}else{this.Data.Data.sort(function(left,right){return _this67.LocalSort(left,right,column,sortInfo.Sort,sortInfo.CellType);});}}this.Data.YOffset=0;this.SortInfo.Field=sortInfo.Field;this.SortInfo.Sort=sortInfo.Sort;this.SortInfo.CellType=sortInfo.CellType;this.Draw();this.DelayUpdateStockData();};//本地排序
|
|
@@ -13871,7 +13868,7 @@ hisData.Symbol=message.symbol;}var stockObj={HQDataType:HQ_DATA_TYPE.KLINE_ID,St
|
|
|
13871
13868
|
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);};}/********************************************************************************
|
|
13872
13869
|
* 版本信息输出
|
|
13873
13870
|
*
|
|
13874
|
-
*/var HQCHART_VERSION="1.1.
|
|
13871
|
+
*/var HQCHART_VERSION="1.1.14153";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();//把给外界调用的方法暴露出来
|
|
13875
13872
|
exports.default=(_jsChartInit$jsChartS={jsChartInit:JSChart.Init,jsChartStyle:JSChart.SetStyle,// IsIndexSymbol:IsIndexSymbol,
|
|
13876
13873
|
// BaseIndex:BaseIndex,
|
|
13877
13874
|
// ChartLine:ChartLine,
|
package/package.json
CHANGED
|
@@ -470,14 +470,13 @@ function JSTReportChartContainer(uielement)
|
|
|
470
470
|
this.UIElement.ondblclick=(e)=>{ this.UIOnDblClick(e); }
|
|
471
471
|
this.UIElement.onmousedown=(e)=> { this.UIOnMouseDown(e); }
|
|
472
472
|
this.UIElement.onmousemove=(e)=>{ this.UIOnMouseMove(e);}
|
|
473
|
+
this.UIElement.onmouseout=(e)=>{ this.UIOnMounseOut(e); }
|
|
474
|
+
this.UIElement.onmouseleave=(e)=>{ this.UIOnMouseleave(e); }
|
|
473
475
|
|
|
474
476
|
/*
|
|
475
477
|
this.UIElement.onmouseup=(e)=>{ this.UIOnMounseUp(e); }
|
|
476
478
|
this.UIElement.oncontextmenu=(e)=> { this.UIOnContextMenu(e); }
|
|
477
479
|
|
|
478
|
-
this.UIElement.onmouseout=(e)=>{ this.UIOnMounseOut(e); }
|
|
479
|
-
this.UIElement.onmouseleave=(e)=>{ this.UIOnMouseleave(e); }
|
|
480
|
-
|
|
481
480
|
|
|
482
481
|
//手机拖拽
|
|
483
482
|
this.UIElement.ontouchstart=(e)=> { this.OnTouchStart(e); }
|
|
@@ -1115,6 +1114,16 @@ function JSTReportChartContainer(uielement)
|
|
|
1115
1114
|
}
|
|
1116
1115
|
}
|
|
1117
1116
|
|
|
1117
|
+
this.UIOnMounseOut=function(e)
|
|
1118
|
+
{
|
|
1119
|
+
this.HideMinuteChartTooltip();
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
this.UIOnMouseleave=function(e)
|
|
1123
|
+
{
|
|
1124
|
+
this.HideMinuteChartTooltip();
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1118
1127
|
//点表头
|
|
1119
1128
|
this.OnClickHeader=function(clickData, e)
|
|
1120
1129
|
{
|
|
@@ -139523,7 +139523,7 @@ function ScrollBarBGChart()
|
|
|
139523
139523
|
|
|
139524
139524
|
|
|
139525
139525
|
|
|
139526
|
-
var HQCHART_VERSION="1.1.
|
|
139526
|
+
var HQCHART_VERSION="1.1.14153";
|
|
139527
139527
|
|
|
139528
139528
|
function PrintHQChartVersion()
|
|
139529
139529
|
{
|
|
@@ -136698,14 +136698,13 @@ function JSTReportChartContainer(uielement)
|
|
|
136698
136698
|
this.UIElement.ondblclick=(e)=>{ this.UIOnDblClick(e); }
|
|
136699
136699
|
this.UIElement.onmousedown=(e)=> { this.UIOnMouseDown(e); }
|
|
136700
136700
|
this.UIElement.onmousemove=(e)=>{ this.UIOnMouseMove(e);}
|
|
136701
|
+
this.UIElement.onmouseout=(e)=>{ this.UIOnMounseOut(e); }
|
|
136702
|
+
this.UIElement.onmouseleave=(e)=>{ this.UIOnMouseleave(e); }
|
|
136701
136703
|
|
|
136702
136704
|
/*
|
|
136703
136705
|
this.UIElement.onmouseup=(e)=>{ this.UIOnMounseUp(e); }
|
|
136704
136706
|
this.UIElement.oncontextmenu=(e)=> { this.UIOnContextMenu(e); }
|
|
136705
136707
|
|
|
136706
|
-
this.UIElement.onmouseout=(e)=>{ this.UIOnMounseOut(e); }
|
|
136707
|
-
this.UIElement.onmouseleave=(e)=>{ this.UIOnMouseleave(e); }
|
|
136708
|
-
|
|
136709
136708
|
|
|
136710
136709
|
//手机拖拽
|
|
136711
136710
|
this.UIElement.ontouchstart=(e)=> { this.OnTouchStart(e); }
|
|
@@ -137343,6 +137342,16 @@ function JSTReportChartContainer(uielement)
|
|
|
137343
137342
|
}
|
|
137344
137343
|
}
|
|
137345
137344
|
|
|
137345
|
+
this.UIOnMounseOut=function(e)
|
|
137346
|
+
{
|
|
137347
|
+
this.HideMinuteChartTooltip();
|
|
137348
|
+
}
|
|
137349
|
+
|
|
137350
|
+
this.UIOnMouseleave=function(e)
|
|
137351
|
+
{
|
|
137352
|
+
this.HideMinuteChartTooltip();
|
|
137353
|
+
}
|
|
137354
|
+
|
|
137346
137355
|
//点表头
|
|
137347
137356
|
this.OnClickHeader=function(clickData, e)
|
|
137348
137357
|
{
|
|
@@ -149010,7 +149019,7 @@ function HQChartScriptWorker()
|
|
|
149010
149019
|
|
|
149011
149020
|
|
|
149012
149021
|
|
|
149013
|
-
var HQCHART_VERSION="1.1.
|
|
149022
|
+
var HQCHART_VERSION="1.1.14153";
|
|
149014
149023
|
|
|
149015
149024
|
function PrintHQChartVersion()
|
|
149016
149025
|
{
|