hqchart 1.1.15018 → 1.1.15029
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 +37 -18
- package/package.json +1 -1
- package/src/jscommon/umychart.DialogTooltip.js +269 -2
- package/src/jscommon/umychart.TReport.js +39 -7
- package/src/jscommon/umychart.complier.js +1 -1
- package/src/jscommon/umychart.js +36 -3
- package/src/jscommon/umychart.resource/css/tools.css +71 -1
- package/src/jscommon/umychart.style.js +11 -1
- package/src/jscommon/umychart.uniapp.h5/umychart.uniapp.h5.js +49 -6
- package/src/jscommon/umychart.version.js +1 -1
- package/src/jscommon/umychart.vue/umychart.vue.js +357 -15
|
@@ -10468,12 +10468,20 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
10468
10468
|
canvas.clearRect(0,0,this.UIElement.width,this.UIElement.height);
|
|
10469
10469
|
}
|
|
10470
10470
|
|
|
10471
|
+
this.ClearCorssCursorCanvas=function()
|
|
10472
|
+
{
|
|
10473
|
+
if (!this.CorssCursorCanvas) return;
|
|
10474
|
+
|
|
10475
|
+
this.CorssCursorCanvas.clearRect(0,0,this.CorssCursorElement.width,this.CorssCursorElement.height);
|
|
10476
|
+
}
|
|
10477
|
+
|
|
10471
10478
|
this.Draw=function()
|
|
10472
10479
|
{
|
|
10473
10480
|
if (this.ChartCorssCursor) this.ChartCorssCursor.Status=0;
|
|
10474
10481
|
if (this.UIElement.width<=0 || this.UIElement.height<=0) return;
|
|
10475
10482
|
|
|
10476
10483
|
this.StopDrawDynamicInfo();
|
|
10484
|
+
this.ClearCorssCursorCanvas();
|
|
10477
10485
|
|
|
10478
10486
|
var event=this.GetEventCallback(JSCHART_EVENT_ID.ON_BEFORE_DRAW);
|
|
10479
10487
|
if (event && event.Callback)
|
|
@@ -10647,7 +10655,6 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
10647
10655
|
if (this.CorssCursorCanvas) //独立的十字光标层
|
|
10648
10656
|
{
|
|
10649
10657
|
this.ChartCorssCursor.Canvas=this.CorssCursorCanvas;
|
|
10650
|
-
this.ChartCorssCursor.Canvas.clearRect(0,0,this.CorssCursorElement.width,this.CorssCursorElement.height)
|
|
10651
10658
|
bRestoreCanvas=true;
|
|
10652
10659
|
}
|
|
10653
10660
|
|
|
@@ -11451,6 +11458,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
11451
11458
|
{
|
|
11452
11459
|
if (!this.ChartCorssCursor) return null;
|
|
11453
11460
|
if (this.ChartCorssCursor.Status===0) return null;
|
|
11461
|
+
if (!this.ChartCorssCursor.IsShowCorss) return null;
|
|
11454
11462
|
|
|
11455
11463
|
var kItem=this.ChartCorssCursor.StringFormatX.KItem;
|
|
11456
11464
|
if (!kItem) return null;
|
|
@@ -58889,6 +58897,8 @@ IFrameSplitOperator.FormatDateTimeStringV2=function(datetime, format, languageID
|
|
|
58889
58897
|
|
|
58890
58898
|
case "HH:MM:SS":
|
|
58891
58899
|
return `${IFrameSplitOperator.NumberToString(datetime.getHours())}:${IFrameSplitOperator.NumberToString(datetime.getMinutes())}:${IFrameSplitOperator.NumberToString(datetime.getSeconds())}`;
|
|
58900
|
+
case "MM:SS":
|
|
58901
|
+
return `${IFrameSplitOperator.NumberToString(datetime.getMinutes())}:${IFrameSplitOperator.NumberToString(datetime.getSeconds())}`;
|
|
58892
58902
|
case "HH:MM":
|
|
58893
58903
|
return `${IFrameSplitOperator.NumberToString(datetime.getHours())}:${IFrameSplitOperator.NumberToString(datetime.getMinutes())}`;
|
|
58894
58904
|
case "HH:MM:SS.fff":
|
|
@@ -61978,7 +61988,7 @@ function ChartCorssCursor()
|
|
|
61978
61988
|
|
|
61979
61989
|
//内部使用
|
|
61980
61990
|
this.Close=null; //收盘价格
|
|
61981
|
-
this.Status=0; //当前状态 0=隐藏 1
|
|
61991
|
+
this.Status=0; //当前状态 0=隐藏 1=显示底部 2=十字线
|
|
61982
61992
|
|
|
61983
61993
|
this.ReloadResource=function(resource)
|
|
61984
61994
|
{
|
|
@@ -81549,6 +81559,15 @@ function JSChartResource()
|
|
|
81549
81559
|
ValueColor:"rgb(0,0,0)", //数值
|
|
81550
81560
|
};
|
|
81551
81561
|
|
|
81562
|
+
this.SmallFloatTooltipV2=
|
|
81563
|
+
{
|
|
81564
|
+
BGColor:'rgb(250,250,250)', //背景色
|
|
81565
|
+
BorderColor:'rgb(20,20,20)', //边框颜色
|
|
81566
|
+
|
|
81567
|
+
TextColor:"rgb(0,0,0)", //数值名称
|
|
81568
|
+
ValueColor:"rgb(0,0,0)", //数值
|
|
81569
|
+
};
|
|
81570
|
+
|
|
81552
81571
|
//区间统计
|
|
81553
81572
|
this.DialogSelectRect=
|
|
81554
81573
|
{
|
|
@@ -82260,7 +82279,8 @@ function JSChartResource()
|
|
|
82260
82279
|
{
|
|
82261
82280
|
TextColor:"rgb(60,60,83)",
|
|
82262
82281
|
BaseTextColor:"rgb(60,60,83)",
|
|
82263
|
-
BGColor:"rgb(180,180,180)"
|
|
82282
|
+
BGColor:"rgb(180,180,180)",
|
|
82283
|
+
MatchTextColor:"rgb(60,60,83)",
|
|
82264
82284
|
},
|
|
82265
82285
|
|
|
82266
82286
|
FieldColor:
|
|
@@ -83334,8 +83354,20 @@ function JSChartResource()
|
|
|
83334
83354
|
|
|
83335
83355
|
if (style.ChartDrawTVLongPosition) this.SetChartDrawTVLongPosition(style.ChartDrawTVLongPosition);
|
|
83336
83356
|
if (style.KLineCountDownPaint) this.SetKLineCountDownPaint(style.KLineCountDownPaint);
|
|
83357
|
+
|
|
83358
|
+
if (style.SmallFloatTooltipV2) this.SetSmallFloatTooltipV2(style.SmallFloatTooltipV2);
|
|
83337
83359
|
}
|
|
83338
83360
|
|
|
83361
|
+
this.SetSmallFloatTooltipV2=function(style)
|
|
83362
|
+
{
|
|
83363
|
+
var dest=this.SmallFloatTooltipV2;
|
|
83364
|
+
|
|
83365
|
+
if (style.BGColor) dest.BGColor=style.BGColor;
|
|
83366
|
+
if (style.BorderColor) dest.BorderColor=style.BorderColor;
|
|
83367
|
+
|
|
83368
|
+
if (style.TextColor) dest.TextColor=style.TextColor;
|
|
83369
|
+
if (style.ValueColor) dest.ValueColor=style.ValueColor;
|
|
83370
|
+
}
|
|
83339
83371
|
|
|
83340
83372
|
this.SetKLineCountDownPaint=function(style)
|
|
83341
83373
|
{
|
|
@@ -83870,6 +83902,7 @@ function JSChartResource()
|
|
|
83870
83902
|
if (cell.TextColor) dest.CenterItem.TextColor=cell.TextColor;
|
|
83871
83903
|
if (cell.BaseTextColor) dest.CenterItem.BaseTextColor=cell.BaseTextColor;
|
|
83872
83904
|
if (cell.BGColor) dest.CenterItem.BGColor=cell.BGColor;
|
|
83905
|
+
if (cell.MatchTextColor) dest.CenterItem.MatchTextColor=cell.MatchTextColor;
|
|
83873
83906
|
}
|
|
83874
83907
|
|
|
83875
83908
|
if (item.Item)
|
|
@@ -112480,7 +112513,7 @@ function JSAlgorithm(errorHandler,symbolData)
|
|
|
112480
112513
|
this.EMA=function(data,dayCount)
|
|
112481
112514
|
{
|
|
112482
112515
|
var result = [];
|
|
112483
|
-
if (data.length<=0) return result;
|
|
112516
|
+
if (!data || data.length<=0) return result;
|
|
112484
112517
|
|
|
112485
112518
|
if (Array.isArray(dayCount))
|
|
112486
112519
|
{
|
|
@@ -136477,6 +136510,15 @@ function GetBlackStyle()
|
|
|
136477
136510
|
ValueColor:"rgb(210,210,210)", //数值
|
|
136478
136511
|
},
|
|
136479
136512
|
|
|
136513
|
+
SmallFloatTooltipV2:
|
|
136514
|
+
{
|
|
136515
|
+
BGColor:'rgb(20,20,20)', //背景色
|
|
136516
|
+
BorderColor:'rgb(170,170,170)', //边框颜色
|
|
136517
|
+
|
|
136518
|
+
TextColor:"rgb(210,210,210)", //数值名称
|
|
136519
|
+
ValueColor:"rgb(210,210,210)", //数值
|
|
136520
|
+
},
|
|
136521
|
+
|
|
136480
136522
|
DialogSelectRect:
|
|
136481
136523
|
{
|
|
136482
136524
|
BGColor:'rgb(20,20,20)', //背景色
|
|
@@ -136907,7 +136949,8 @@ function GetBlackStyle()
|
|
|
136907
136949
|
{
|
|
136908
136950
|
TextColor:"rgb(16,226,217)",
|
|
136909
136951
|
BaseTextColor:"rgb(60,60,83)",
|
|
136910
|
-
BGColor:"rgb(65,65,65)"
|
|
136952
|
+
BGColor:"rgb(65,65,65)",
|
|
136953
|
+
MatchTextColor:"rgb(210,210,210)"
|
|
136911
136954
|
},
|
|
136912
136955
|
|
|
136913
136956
|
FieldColor:
|
|
@@ -153133,7 +153176,7 @@ function ScrollBarBGChart()
|
|
|
153133
153176
|
|
|
153134
153177
|
|
|
153135
153178
|
|
|
153136
|
-
var HQCHART_VERSION="1.1.
|
|
153179
|
+
var HQCHART_VERSION="1.1.15028";
|
|
153137
153180
|
|
|
153138
153181
|
function PrintHQChartVersion()
|
|
153139
153182
|
{
|