hqchart 1.1.13897 → 1.1.13905

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.
@@ -14198,8 +14198,10 @@ function CoordinateInfo()
14198
14198
  //自定义刻度 { Custom:{ Position: 1=强制内部 }}
14199
14199
  this.AreaData; //区域: { Start:, End:, BGColor:, Position:[0=左, 1=右] }
14200
14200
 
14201
- //不在当前屏范围
14201
+ //不在当前屏范围 (可定义刻度使用)
14202
14202
  //this.OutRange={ BGColor:"", TextColor:, BorderColor: TopYOffset:, BottomYOffset: }
14203
+ //Y轴文字偏移
14204
+ //this.YOffset=[{ Offset:5}, { Offset:10}] //目前只对框子外的刻度文字生效
14203
14205
  }
14204
14206
 
14205
14207
 
@@ -15431,6 +15433,14 @@ function AverageWidthFrame()
15431
15433
 
15432
15434
  if (item.Message[0]!=null && isDrawLeft)
15433
15435
  {
15436
+ var yOffset=0;
15437
+ if (IFrameSplitOperator.IsNonEmptyArray(item.YOffset)) //文字Y轴偏移
15438
+ {
15439
+ var offsetItem=item.YOffset[0];
15440
+ if (offsetItem && IFrameSplitOperator.IsNumber(offsetItem.Offset))
15441
+ yOffset=offsetItem.Offset;
15442
+ }
15443
+
15434
15444
  if (Array.isArray(item.Message[0]))
15435
15445
  {
15436
15446
  if (this.MultiTextFormat==3)
@@ -15463,12 +15473,12 @@ function AverageWidthFrame()
15463
15473
  if (leftExtendText && leftExtendText.Align===1)
15464
15474
  {
15465
15475
  this.Canvas.textAlign="left";
15466
- this.Canvas.fillText(item.Message[0],this.YTextPadding[0],yText);
15476
+ this.Canvas.fillText(item.Message[0],this.YTextPadding[0],yText+yOffset);
15467
15477
  }
15468
15478
  else
15469
15479
  {
15470
15480
  this.Canvas.textAlign="right";
15471
- this.Canvas.fillText(item.Message[0],xText-this.YTextPadding[0],yText);
15481
+ this.Canvas.fillText(item.Message[0],xText-this.YTextPadding[0],yText+yOffset);
15472
15482
  rtPreLeft=rtLeft;
15473
15483
  }
15474
15484
  }
@@ -15478,6 +15488,15 @@ function AverageWidthFrame()
15478
15488
  //右边 坐标信息 间距小于10 不画坐标
15479
15489
  if (item.Message[1]!=null && isDrawRight)
15480
15490
  {
15491
+ var yOffset=0;
15492
+ if (IFrameSplitOperator.IsNonEmptyArray(item.YOffset)) //文字Y轴偏移
15493
+ {
15494
+ var offsetItem=item.YOffset[1];
15495
+ if (offsetItem && IFrameSplitOperator.IsNumber(offsetItem.Offset))
15496
+ yOffset=offsetItem.Offset;
15497
+ }
15498
+
15499
+
15481
15500
  if (item.Font!=null) this.Canvas.font=item.Font;
15482
15501
 
15483
15502
  var xText=right;
@@ -15570,11 +15589,11 @@ function AverageWidthFrame()
15570
15589
  {
15571
15590
  this.Canvas.textAlign="right";
15572
15591
  var xRight=this.YRightTextInfo.MainTextWidth+right-this.YTextPadding[1];
15573
- this.Canvas.fillText(item.Message[1],xRight,yText);
15592
+ this.Canvas.fillText(item.Message[1],xRight,yText+yOffset);
15574
15593
  }
15575
15594
  else
15576
15595
  {
15577
- this.Canvas.fillText(item.Message[1],xText+this.YTextPadding[1],yText);
15596
+ this.Canvas.fillText(item.Message[1],xText+this.YTextPadding[1],yText+yOffset);
15578
15597
  }
15579
15598
 
15580
15599
  rtPreRight=rtRight;
@@ -78220,7 +78239,7 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
78220
78239
  latestData.Vol=realtimeData.Vol;
78221
78240
  latestData.Amount=realtimeData.Amount;
78222
78241
  }
78223
- else if (item.Date<realtimeData.Date) //新增加数据
78242
+ else if (latestData.Date<realtimeData.Date) //新增加数据
78224
78243
  {
78225
78244
  JSConsole.Chart.Log('[KLineChartContainer::UpdateOverlayRealtimeData] insert kline by minute data',realtimeData);
78226
78245
 
@@ -143014,7 +143033,7 @@ function HQChartScriptWorker()
143014
143033
 
143015
143034
 
143016
143035
 
143017
- var HQCHART_VERSION="1.1.13896";
143036
+ var HQCHART_VERSION="1.1.13904";
143018
143037
 
143019
143038
  function PrintHQChartVersion()
143020
143039
  {