hqchart 1.1.12804 → 1.1.12813
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 +10 -8
- package/package.json +1 -1
- package/src/jscommon/umychart.js +29 -6
- package/src/jscommon/umychart.testdata/if2206.cf.1minute.kline.js +287504 -0
- package/src/jscommon/umychart.uniapp.h5/umychart.uniapp.h5.js +30 -7
- package/src/jscommon/umychart.version.js +1 -1
- package/src/jscommon/umychart.vue/umychart.vue.js +30 -7
|
@@ -75873,6 +75873,12 @@ function KLineChartContainer(uielement,OffscreenElement)
|
|
|
75873
75873
|
|
|
75874
75874
|
if (!this.IsApiPeriod)
|
|
75875
75875
|
{
|
|
75876
|
+
if (bindData.Right>0 && this.RightFormula>=1) //复权
|
|
75877
|
+
{
|
|
75878
|
+
var rightData=bindData.GetRightData(bindData.Right, { AlgorithmType: this.RightFormula } );
|
|
75879
|
+
bindData.Data=rightData;
|
|
75880
|
+
}
|
|
75881
|
+
|
|
75876
75882
|
if (ChartData.IsDayPeriod(bindData.Period,false) || ChartData.IsMinutePeriod(bindData.Period,false)) //周期数据 (0= 日线,4=1分钟线 不需要处理)
|
|
75877
75883
|
{
|
|
75878
75884
|
var periodData=bindData.GetPeriodData(bindData.Period);
|
|
@@ -76082,6 +76088,7 @@ function KLineChartContainer(uielement,OffscreenElement)
|
|
|
76082
76088
|
Explain:funcExplain,
|
|
76083
76089
|
Request:{ Url:url, Type:'POST' , Data: postData, Period:this.Period, Right:this.Right },
|
|
76084
76090
|
DragDownload:download,
|
|
76091
|
+
Option:option,
|
|
76085
76092
|
Self:this,
|
|
76086
76093
|
PreventDefault:false,
|
|
76087
76094
|
ZoomData:option.ZoomData
|
|
@@ -76159,6 +76166,12 @@ function KLineChartContainer(uielement,OffscreenElement)
|
|
|
76159
76166
|
|
|
76160
76167
|
if (!this.IsApiPeriod)
|
|
76161
76168
|
{
|
|
76169
|
+
if (bindData.Right>0) //复权
|
|
76170
|
+
{
|
|
76171
|
+
var rightData=bindData.GetRightData(bindData.Right, { AlgorithmType: this.RightFormula });
|
|
76172
|
+
bindData.Data=rightData;
|
|
76173
|
+
}
|
|
76174
|
+
|
|
76162
76175
|
if (ChartData.IsDayPeriod(bindData.Period,false) || ChartData.IsMinutePeriod(bindData.Period,false)) //周期数据 (0= 日线,4=1分钟线 不需要处理)
|
|
76163
76176
|
{
|
|
76164
76177
|
var periodData=bindData.GetPeriodData(bindData.Period);
|
|
@@ -76176,12 +76189,20 @@ function KLineChartContainer(uielement,OffscreenElement)
|
|
|
76176
76189
|
|
|
76177
76190
|
//绑定数据
|
|
76178
76191
|
this.UpdateMainData(bindData,lastDataCount);
|
|
76179
|
-
if (option
|
|
76192
|
+
if (option) //缩放需要调整当前屏的位置
|
|
76180
76193
|
{
|
|
76181
|
-
|
|
76182
|
-
|
|
76183
|
-
|
|
76184
|
-
|
|
76194
|
+
if (option.ZoomData)
|
|
76195
|
+
{
|
|
76196
|
+
var zoomData=option.ZoomData;
|
|
76197
|
+
var showCount=zoomData.PageSize-zoomData.RightSpaceCount; //一屏显示的数据个数
|
|
76198
|
+
bindData.DataOffset= bindData.Data.length-showCount;
|
|
76199
|
+
if (bindData.DataOffset<0) bindData.DataOffset=0;
|
|
76200
|
+
}
|
|
76201
|
+
else if (IFrameSplitOperator.IsNumber(option.DataOffset))
|
|
76202
|
+
{
|
|
76203
|
+
bindData.DataOffset+=option.DataOffset;
|
|
76204
|
+
if (bindData.DataOffset<0) bindData.DataOffset=0;
|
|
76205
|
+
}
|
|
76185
76206
|
}
|
|
76186
76207
|
|
|
76187
76208
|
this.UpdateOverlayDragDayData(data);
|
|
@@ -76220,6 +76241,7 @@ function KLineChartContainer(uielement,OffscreenElement)
|
|
|
76220
76241
|
RecvFuncName:"RecvZoomDayData",
|
|
76221
76242
|
Download:this.ZoomDownload.Day,
|
|
76222
76243
|
Url:this.ZoomKLineApiUrl,
|
|
76244
|
+
XShowCount:this.Frame.GetXShowCount(),
|
|
76223
76245
|
Count:count,
|
|
76224
76246
|
ZoomData:zoomData
|
|
76225
76247
|
};
|
|
@@ -76237,7 +76259,8 @@ function KLineChartContainer(uielement,OffscreenElement)
|
|
|
76237
76259
|
RecvFuncName:"RecvDragDayData",
|
|
76238
76260
|
Download:this.DragDownload.Day,
|
|
76239
76261
|
Url:this.DragKLineApiUrl,
|
|
76240
|
-
Count:this.MaxRequestDataCount
|
|
76262
|
+
Count:this.MaxRequestDataCount,
|
|
76263
|
+
XShowCount:this.Frame.GetXShowCount(),
|
|
76241
76264
|
};
|
|
76242
76265
|
|
|
76243
76266
|
this.RequestPreviousDayData(option);
|
|
@@ -131669,7 +131692,7 @@ function ScrollBarBGChart()
|
|
|
131669
131692
|
|
|
131670
131693
|
|
|
131671
131694
|
|
|
131672
|
-
var HQCHART_VERSION="1.1.
|
|
131695
|
+
var HQCHART_VERSION="1.1.12812";
|
|
131673
131696
|
|
|
131674
131697
|
function PrintHQChartVersion()
|
|
131675
131698
|
{
|
|
@@ -75917,6 +75917,12 @@ function KLineChartContainer(uielement,OffscreenElement)
|
|
|
75917
75917
|
|
|
75918
75918
|
if (!this.IsApiPeriod)
|
|
75919
75919
|
{
|
|
75920
|
+
if (bindData.Right>0 && this.RightFormula>=1) //复权
|
|
75921
|
+
{
|
|
75922
|
+
var rightData=bindData.GetRightData(bindData.Right, { AlgorithmType: this.RightFormula } );
|
|
75923
|
+
bindData.Data=rightData;
|
|
75924
|
+
}
|
|
75925
|
+
|
|
75920
75926
|
if (ChartData.IsDayPeriod(bindData.Period,false) || ChartData.IsMinutePeriod(bindData.Period,false)) //周期数据 (0= 日线,4=1分钟线 不需要处理)
|
|
75921
75927
|
{
|
|
75922
75928
|
var periodData=bindData.GetPeriodData(bindData.Period);
|
|
@@ -76126,6 +76132,7 @@ function KLineChartContainer(uielement,OffscreenElement)
|
|
|
76126
76132
|
Explain:funcExplain,
|
|
76127
76133
|
Request:{ Url:url, Type:'POST' , Data: postData, Period:this.Period, Right:this.Right },
|
|
76128
76134
|
DragDownload:download,
|
|
76135
|
+
Option:option,
|
|
76129
76136
|
Self:this,
|
|
76130
76137
|
PreventDefault:false,
|
|
76131
76138
|
ZoomData:option.ZoomData
|
|
@@ -76203,6 +76210,12 @@ function KLineChartContainer(uielement,OffscreenElement)
|
|
|
76203
76210
|
|
|
76204
76211
|
if (!this.IsApiPeriod)
|
|
76205
76212
|
{
|
|
76213
|
+
if (bindData.Right>0) //复权
|
|
76214
|
+
{
|
|
76215
|
+
var rightData=bindData.GetRightData(bindData.Right, { AlgorithmType: this.RightFormula });
|
|
76216
|
+
bindData.Data=rightData;
|
|
76217
|
+
}
|
|
76218
|
+
|
|
76206
76219
|
if (ChartData.IsDayPeriod(bindData.Period,false) || ChartData.IsMinutePeriod(bindData.Period,false)) //周期数据 (0= 日线,4=1分钟线 不需要处理)
|
|
76207
76220
|
{
|
|
76208
76221
|
var periodData=bindData.GetPeriodData(bindData.Period);
|
|
@@ -76220,12 +76233,20 @@ function KLineChartContainer(uielement,OffscreenElement)
|
|
|
76220
76233
|
|
|
76221
76234
|
//绑定数据
|
|
76222
76235
|
this.UpdateMainData(bindData,lastDataCount);
|
|
76223
|
-
if (option
|
|
76236
|
+
if (option) //缩放需要调整当前屏的位置
|
|
76224
76237
|
{
|
|
76225
|
-
|
|
76226
|
-
|
|
76227
|
-
|
|
76228
|
-
|
|
76238
|
+
if (option.ZoomData)
|
|
76239
|
+
{
|
|
76240
|
+
var zoomData=option.ZoomData;
|
|
76241
|
+
var showCount=zoomData.PageSize-zoomData.RightSpaceCount; //一屏显示的数据个数
|
|
76242
|
+
bindData.DataOffset= bindData.Data.length-showCount;
|
|
76243
|
+
if (bindData.DataOffset<0) bindData.DataOffset=0;
|
|
76244
|
+
}
|
|
76245
|
+
else if (IFrameSplitOperator.IsNumber(option.DataOffset))
|
|
76246
|
+
{
|
|
76247
|
+
bindData.DataOffset+=option.DataOffset;
|
|
76248
|
+
if (bindData.DataOffset<0) bindData.DataOffset=0;
|
|
76249
|
+
}
|
|
76229
76250
|
}
|
|
76230
76251
|
|
|
76231
76252
|
this.UpdateOverlayDragDayData(data);
|
|
@@ -76264,6 +76285,7 @@ function KLineChartContainer(uielement,OffscreenElement)
|
|
|
76264
76285
|
RecvFuncName:"RecvZoomDayData",
|
|
76265
76286
|
Download:this.ZoomDownload.Day,
|
|
76266
76287
|
Url:this.ZoomKLineApiUrl,
|
|
76288
|
+
XShowCount:this.Frame.GetXShowCount(),
|
|
76267
76289
|
Count:count,
|
|
76268
76290
|
ZoomData:zoomData
|
|
76269
76291
|
};
|
|
@@ -76281,7 +76303,8 @@ function KLineChartContainer(uielement,OffscreenElement)
|
|
|
76281
76303
|
RecvFuncName:"RecvDragDayData",
|
|
76282
76304
|
Download:this.DragDownload.Day,
|
|
76283
76305
|
Url:this.DragKLineApiUrl,
|
|
76284
|
-
Count:this.MaxRequestDataCount
|
|
76306
|
+
Count:this.MaxRequestDataCount,
|
|
76307
|
+
XShowCount:this.Frame.GetXShowCount(),
|
|
76285
76308
|
};
|
|
76286
76309
|
|
|
76287
76310
|
this.RequestPreviousDayData(option);
|
|
@@ -131827,7 +131850,7 @@ function HQChartScriptWorker()
|
|
|
131827
131850
|
|
|
131828
131851
|
|
|
131829
131852
|
|
|
131830
|
-
var HQCHART_VERSION="1.1.
|
|
131853
|
+
var HQCHART_VERSION="1.1.12812";
|
|
131831
131854
|
|
|
131832
131855
|
function PrintHQChartVersion()
|
|
131833
131856
|
{
|