hqchart 1.1.14224 → 1.1.14229
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 +3 -2
- package/package.json +1 -1
- package/src/jscommon/umychart.report.js +2 -1
- package/src/jscommon/umychart.uniapp.h5/umychart.uniapp.h5.js +3 -2
- package/src/jscommon/umychart.version.js +1 -1
- package/src/jscommon/umychart.vue/umychart.vue.js +3 -2
- package/src/jscommon/umychart.vue.testdataV2/umychart.NetworkFilterTest.vue.js +1 -0
- package/lib/umychart.NetworkFilterTest.vue.js +0 -202
package/lib/umychart.vue.js
CHANGED
|
@@ -12416,7 +12416,8 @@ if((clickData.Type==2||clickData.Type==4)&&(e.button==0||e.button==2))//点击
|
|
|
12416
12416
|
{if(this.SetYOffset(scroll.Pos)){this.Draw();this.DelayUpdateStockData();}}}}}document.onmousemove=function(e){_this57.DocOnMouseMove(e);};document.onmouseup=function(e){_this57.DocOnMouseUp(e);};};this.UIOnMounseUp=function(e){console.log('"UIOnMounseUp');};//去掉右键菜单
|
|
12417
12417
|
this.UIOnContextMenu=function(e){e.preventDefault();if(this.ChartSplashPaint&&this.ChartSplashPaint.IsEnableSplash==true)return;if(!this.IsShowRightMenu)return;var x=e.clientX-this.UIElement.getBoundingClientRect().left;var y=e.clientY-this.UIElement.getBoundingClientRect().top;if(typeof this.OnRightMenu=='function')this.OnRightMenu(x,y,e);//右键菜单事件
|
|
12418
12418
|
};this.OnRightMenu=function(x,y,e){this.PopupRightMenu(x,y,e);};this.PtInReportChart=function(x,y)//Type: 2=行 3=表头 4=固定行
|
|
12419
|
-
{var chart=this.GetReportChart();if(!chart)return null;var row=chart.PtInHeader(x,y);if(row)return{Type:3,Row:row,X:x,Y:y};row=chart.PtInFixedBody(x,y);if(row)return{Type:4,Row:row,X:x,Y:y};row=chart.PtInBody(x,y);if(row)return{Type:2,Row:row,X:x,Y:y};return{Type:-1,Row:null,X:x,Y:y};};this.PopupRightMenu=function(x,y,e){var _this58=this;var
|
|
12419
|
+
{var chart=this.GetReportChart();if(!chart)return null;var row=chart.PtInHeader(x,y);if(row)return{Type:3,Row:row,X:x,Y:y};row=chart.PtInFixedBody(x,y);if(row)return{Type:4,Row:row,X:x,Y:y};row=chart.PtInBody(x,y);if(row)return{Type:2,Row:row,X:x,Y:y};return{Type:-1,Row:null,X:x,Y:y};};this.PopupRightMenu=function(x,y,e){var _this58=this;var pixelTatio=GetDevicePixelRatio();var data=this.PtInReportChart(x*pixelTatio,y*pixelTatio);//x,y 需要乘以放大倍速
|
|
12420
|
+
if(!data)return;if(!this.JSPopMenu)return;data.e=e;var menuData={Menu:null,Position:JSPopMenu.POSITION_ID.RIGHT_MENU_ID};menuData.ClickCallback=function(data){_this58.OnClickRightMenu(data);};var event=this.GetEventCallback(JSCHART_EVENT_ID.ON_CREATE_RIGHT_MENU);if(event&&event.Callback){var sendData={MenuData:menuData,Data:data};event.Callback(event,sendData,this);}if(menuData.Menu)this.PopupMenuByRClick(menuData,x,y);};//右键菜单
|
|
12420
12421
|
this.PopupMenuByRClick=function(menuData,x,y){if(!this.JSPopMenu)return;var rtClient=this.UIElement.getBoundingClientRect();var rtScroll=GetScrollPosition();x+=rtClient.left+rtScroll.Left;y+=rtClient.top+rtScroll.Top;this.JSPopMenu.CreatePopMenu(menuData);this.JSPopMenu.PopupMenuByRight(x,y);};//点击右键菜单
|
|
12421
12422
|
this.OnClickRightMenu=function(data){JSConsole.Chart.Log('[JSReportChartContainer::OnClickRightMenu] ',data);if(!data||!data.Data)return;var cmdID=data.Data.ID;//命令ID
|
|
12422
12423
|
var aryArgs=data.Data.Args;//参数
|
|
@@ -13821,7 +13822,7 @@ hisData.Symbol=message.symbol;}var stockObj={HQDataType:HQ_DATA_TYPE.KLINE_ID,St
|
|
|
13821
13822
|
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);};}/********************************************************************************
|
|
13822
13823
|
* 版本信息输出
|
|
13823
13824
|
*
|
|
13824
|
-
*/var HQCHART_VERSION="1.1.
|
|
13825
|
+
*/var HQCHART_VERSION="1.1.14228";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();//把给外界调用的方法暴露出来
|
|
13825
13826
|
exports.default=(_jsChartInit$jsChartS={jsChartInit:JSChart.Init,jsChartStyle:JSChart.SetStyle,// IsIndexSymbol:IsIndexSymbol,
|
|
13826
13827
|
// BaseIndex:BaseIndex,
|
|
13827
13828
|
// ChartLine:ChartLine,
|
package/package.json
CHANGED
|
@@ -2012,7 +2012,8 @@ function JSReportChartContainer(uielement)
|
|
|
2012
2012
|
|
|
2013
2013
|
this.PopupRightMenu=function(x,y, e)
|
|
2014
2014
|
{
|
|
2015
|
-
var
|
|
2015
|
+
var pixelTatio = GetDevicePixelRatio();
|
|
2016
|
+
var data=this.PtInReportChart(x*pixelTatio,y*pixelTatio); //x,y 需要乘以放大倍速
|
|
2016
2017
|
if (!data) return;
|
|
2017
2018
|
if (!this.JSPopMenu) return;
|
|
2018
2019
|
|
|
@@ -129694,7 +129694,8 @@ function JSReportChartContainer(uielement)
|
|
|
129694
129694
|
|
|
129695
129695
|
this.PopupRightMenu=function(x,y, e)
|
|
129696
129696
|
{
|
|
129697
|
-
var
|
|
129697
|
+
var pixelTatio = GetDevicePixelRatio();
|
|
129698
|
+
var data=this.PtInReportChart(x*pixelTatio,y*pixelTatio); //x,y 需要乘以放大倍速
|
|
129698
129699
|
if (!data) return;
|
|
129699
129700
|
if (!this.JSPopMenu) return;
|
|
129700
129701
|
|
|
@@ -140234,7 +140235,7 @@ function ScrollBarBGChart()
|
|
|
140234
140235
|
|
|
140235
140236
|
|
|
140236
140237
|
|
|
140237
|
-
var HQCHART_VERSION="1.1.
|
|
140238
|
+
var HQCHART_VERSION="1.1.14228";
|
|
140238
140239
|
|
|
140239
140240
|
function PrintHQChartVersion()
|
|
140240
140241
|
{
|
|
@@ -129738,7 +129738,8 @@ function JSReportChartContainer(uielement)
|
|
|
129738
129738
|
|
|
129739
129739
|
this.PopupRightMenu=function(x,y, e)
|
|
129740
129740
|
{
|
|
129741
|
-
var
|
|
129741
|
+
var pixelTatio = GetDevicePixelRatio();
|
|
129742
|
+
var data=this.PtInReportChart(x*pixelTatio,y*pixelTatio); //x,y 需要乘以放大倍速
|
|
129742
129743
|
if (!data) return;
|
|
129743
129744
|
if (!this.JSPopMenu) return;
|
|
129744
129745
|
|
|
@@ -149839,7 +149840,7 @@ function HQChartScriptWorker()
|
|
|
149839
149840
|
|
|
149840
149841
|
|
|
149841
149842
|
|
|
149842
|
-
var HQCHART_VERSION="1.1.
|
|
149843
|
+
var HQCHART_VERSION="1.1.14228";
|
|
149843
149844
|
|
|
149844
149845
|
function PrintHQChartVersion()
|
|
149845
149846
|
{
|
|
@@ -88,6 +88,7 @@ var IExtendChartPainting = _hqchart2.default.Chart.IExtendChartPainting;
|
|
|
88
88
|
var GetDevicePixelRatio = _hqchart2.default.Chart.JSChart.GetDevicePixelRatio;
|
|
89
89
|
var ToFixedRect = _hqchart2.default.Chart.JSChart.ToFixedRect;
|
|
90
90
|
var ToFixedPoint = _hqchart2.default.Chart.JSChart.ToFixedPoint;
|
|
91
|
+
var ChartData = _hqchart2.default.Chart.ChartData;
|
|
91
92
|
|
|
92
93
|
/////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
93
94
|
// 测试数据
|