hqchart 1.1.12717 → 1.1.12720

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.
@@ -5326,7 +5326,7 @@ if((this.ShowTextMode.Bottom==1||this.ShowTextMode.Bottom==2||this.ShowTextMode.
5326
5326
  var yCenter=bottom+2+this.TextHeight/2;var yTop=bottom+2;if(this.ShowTextMode.Bottom==2){yCenter=bottom-this.TextHeight/2-2;yTop=bottom-this.TextHeight-2;}else if(this.ShowTextMode.Bottom==10){var frame=this.Frame.SubFrame[0].Frame;if(frame.GetCorssCursorTop){var value=frame.GetCorssCursorTop();if(IFrameSplitOperator.IsNumber(value)){yCenter=value+this.TextHeight/2;yTop=value;}}}//JSConsole.Chart.Log('[ChartCorssCursor::Draw] ',yCenter);
5327
5327
  if(x-textWidth/2<3)//左边位置不够了, 顶着左边画
5328
5328
  {this.DrawTextBGRect(x-1,yTop,textWidth,this.TextHeight);this.Canvas.textAlign="left";this.Canvas.textBaseline="middle";this.Canvas.fillStyle=this.TextColor;this.Canvas.fillText(text,x+1,yCenter,textWidth);}else if(x+textWidth/2>=right){this.DrawTextBGRect(right-textWidth,yTop,textWidth,this.TextHeight);this.Canvas.textAlign="right";this.Canvas.textBaseline="middle";this.Canvas.fillStyle=this.TextColor;this.Canvas.fillText(text,right-2,yCenter,textWidth);}else{this.DrawTextBGRect(x-textWidth/2,yTop,textWidth,this.TextHeight);this.Canvas.textAlign="center";this.Canvas.textBaseline="middle";this.Canvas.fillStyle=this.TextColor;this.Canvas.fillText(text,x,yCenter,textWidth);}}//子坐标Y轴
5329
- if(yValueExtend.FrameID>=0){var frame=this.Frame.SubFrame[yValueExtend.FrameID];var overlayLeft=right;this.Canvas.font=this.Font;for(var i=0;i<frame.OverlayIndex.length;++i){var item=frame.OverlayIndex[i];if(item.Frame.IsShow===false)continue;overlayLeft=item.Frame.GetXHorizontal();//if (overlayLeft+30>chartRight) break;
5329
+ if(yValueExtend.FrameID>=0){var frame=this.Frame.SubFrame[yValueExtend.FrameID];var overlayLeft=right;this.Canvas.font=this.Font;for(var i=0;i<frame.OverlayIndex.length;++i){var item=frame.OverlayIndex[i];if(item.Frame.IsShow===false)continue;if(!item.Frame.GetXHorizontal)continue;overlayLeft=item.Frame.GetXHorizontal();//if (overlayLeft+30>chartRight) break;
5330
5330
  var yValue=item.Frame.GetYData(y);var text=IFrameSplitOperator.FormatValueString(yValue,2);var textWidth=this.Canvas.measureText(text).width+4;//前后各空2个像素
5331
5331
  /*
5332
5332
  for(var j=2;j>=0;--j)
@@ -12893,7 +12893,7 @@ hisData.Symbol=message.symbol;}var stockObj={HQDataType:HQ_DATA_TYPE.KLINE_ID,St
12893
12893
  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);};}/********************************************************************************
12894
12894
  * 版本信息输出
12895
12895
  *
12896
- */var HQCHART_VERSION="1.1.12715";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();//把给外界调用的方法暴露出来
12896
+ */var HQCHART_VERSION="1.1.12718";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();//把给外界调用的方法暴露出来
12897
12897
  exports.default=(_jsChartInit$jsChartS={jsChartInit:JSChart.Init,jsChartStyle:JSChart.SetStyle,// IsIndexSymbol:IsIndexSymbol,
12898
12898
  // BaseIndex:BaseIndex,
12899
12899
  // ChartLine:ChartLine,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hqchart",
3
- "version": "1.1.12717",
3
+ "version": "1.1.12720",
4
4
  "description": "stock chart",
5
5
  "main": "lib/main.js",
6
6
  "scripts": {
@@ -50870,6 +50870,7 @@ function ChartCorssCursor()
50870
50870
  {
50871
50871
  var item=frame.OverlayIndex[i];
50872
50872
  if (item.Frame.IsShow===false) continue;
50873
+ if (!item.Frame.GetXHorizontal) continue;
50873
50874
 
50874
50875
  overlayLeft=item.Frame.GetXHorizontal();
50875
50876
 
@@ -130951,7 +130952,7 @@ function ScrollBarBGChart()
130951
130952
 
130952
130953
 
130953
130954
 
130954
- var HQCHART_VERSION="1.1.12715";
130955
+ var HQCHART_VERSION="1.1.12718";
130955
130956
 
130956
130957
  function PrintHQChartVersion()
130957
130958
  {
@@ -50914,6 +50914,7 @@ function ChartCorssCursor()
50914
50914
  {
50915
50915
  var item=frame.OverlayIndex[i];
50916
50916
  if (item.Frame.IsShow===false) continue;
50917
+ if (!item.Frame.GetXHorizontal) continue;
50917
50918
 
50918
50919
  overlayLeft=item.Frame.GetXHorizontal();
50919
50920
 
@@ -131109,7 +131110,7 @@ function HQChartScriptWorker()
131109
131110
 
131110
131111
 
131111
131112
 
131112
- var HQCHART_VERSION="1.1.12715";
131113
+ var HQCHART_VERSION="1.1.12718";
131113
131114
 
131114
131115
  function PrintHQChartVersion()
131115
131116
  {