hqchart 1.1.14915 → 1.1.14919

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hqchart",
3
- "version": "1.1.14915",
3
+ "version": "1.1.14919",
4
4
  "description": "HQChart - H5, 微信小程序 沪深/港股/数字货币/期货/美股 K线图(kline),走势图,缩放,拖拽,十字光标,画图工具,截图,筹码图. 分析家语法,通达信语法,(麦语法),第3方数据对接",
5
5
  "main": "lib/main.js",
6
6
  "scripts": {
@@ -1125,6 +1125,13 @@ function JSFloatTooltip()
1125
1125
  Left:"UMyChart_Tooltip_Float_Text2_Span", //左对齐
1126
1126
  MarginLeft:'UMyChart_Tooltip_Float_Text3_Span',
1127
1127
  Right:"UMyChart_Tooltip_Float_Text_Span",
1128
+
1129
+
1130
+ }
1131
+
1132
+ this.TitleAlign=
1133
+ {
1134
+ Default:"UMyChart_Tooltip_Float_Title_Span", //标题默认
1128
1135
  }
1129
1136
 
1130
1137
  this.AryData=[]; //输出文字信息
@@ -1223,7 +1230,7 @@ function JSFloatTooltip()
1223
1230
  rowItem.TitleTd=tdDom;
1224
1231
 
1225
1232
  var spanDom=document.createElement("span");
1226
- spanDom.className='UMyChart_Tooltip_Float_Title_Span';
1233
+ spanDom.className=this.TitleAlign.Default;
1227
1234
  spanDom.innerText='标题';
1228
1235
  tdDom.appendChild(spanDom);
1229
1236
  rowItem.TitleSpan=spanDom;
@@ -1724,6 +1731,15 @@ function JSFloatTooltip()
1724
1731
  if (item.TextSpan.className!=this.ValueAlign.Right) item.TextSpan.className=this.ValueAlign.Right;
1725
1732
  }
1726
1733
 
1734
+ if (outItem.TitleClassName)
1735
+ {
1736
+ item.TitleSpan.className=outItem.TitleClassName;
1737
+ }
1738
+ else
1739
+ {
1740
+ if (item.TitleSpan.className!=this.TitleAlign.Default) item.TitleSpan.className=this.TitleAlign.Default;
1741
+ }
1742
+
1727
1743
  if (outItem.IsMergeCell) //合并单元格
1728
1744
  {
1729
1745
  item.TitleTd.colspan=2;
@@ -1146,6 +1146,8 @@ function JSReportChartContainer(uielement)
1146
1146
 
1147
1147
  this.RequestMemberListData=function()
1148
1148
  {
1149
+ if (this.RequestStatus.IsFinishStockList==false) return; //码表没有下完
1150
+
1149
1151
  //this.ChartSplashPaint.SetTitle(this.SplashTitle.MemberList);
1150
1152
  //this.ChartSplashPaint.EnableSplash(true);
1151
1153
  //this.Draw();
@@ -1205,6 +1207,28 @@ function JSReportChartContainer(uielement)
1205
1207
 
1206
1208
  this.RequestStatus.IsFinishMemberList=true;
1207
1209
 
1210
+ //实时本地数据排序
1211
+ var chart=this.GetReportChart();
1212
+ if (chart && (this.SortInfo.Sort==1 || this.SortInfo.Sort==2) && IFrameSplitOperator.IsNumber(this.SortInfo.Field) && this.SortInfo.Field>=0)
1213
+ {
1214
+ var column=chart.Column[this.SortInfo.Field];
1215
+ var event=this.GetEventCallback(JSCHART_EVENT_ID.ON_REPORT_LOCAL_SORT);
1216
+
1217
+ var bLocalSrot=true;
1218
+ if (event && event.Callback)
1219
+ {
1220
+ var sendData={ Column:column, SortInfo:this.SortInfo, SymbolList:this.Data.Data, Result:null, PreventDefault:false };
1221
+ event.Callback (event, sendData, this);
1222
+ if (event.PreventDefault)
1223
+ {
1224
+ bLocalSrot=false;
1225
+ if (Array.isArray(sendData.Result)) this.Data.Data=sendData.Result;
1226
+ }
1227
+ }
1228
+
1229
+ if (bLocalSrot) this.Data.Data.sort((left, right)=> { return this.LocalSort(left, right, column, this.SortInfo.Sort); });
1230
+ }
1231
+
1208
1232
  this.Draw();
1209
1233
  this.UpdateStockData();
1210
1234
  }
@@ -1518,7 +1542,7 @@ function JSReportChartContainer(uielement)
1518
1542
  if (!chart) return;
1519
1543
 
1520
1544
  //列表还没有加载完成
1521
- if (this.RequestStatus.IsFinishMemberList==false || this.RequestStatus.IsFinishMemberList==false) return;
1545
+ if (this.RequestStatus.IsFinishStockList==false || this.RequestStatus.IsFinishMemberList==false) return;
1522
1546
 
1523
1547
  if (this.Data.Virtual && this.Data.Virtual.Enable)
1524
1548
  {
@@ -138845,6 +138845,8 @@ function JSReportChartContainer(uielement)
138845
138845
 
138846
138846
  this.RequestMemberListData=function()
138847
138847
  {
138848
+ if (this.RequestStatus.IsFinishStockList==false) return; //码表没有下完
138849
+
138848
138850
  //this.ChartSplashPaint.SetTitle(this.SplashTitle.MemberList);
138849
138851
  //this.ChartSplashPaint.EnableSplash(true);
138850
138852
  //this.Draw();
@@ -138904,6 +138906,28 @@ function JSReportChartContainer(uielement)
138904
138906
 
138905
138907
  this.RequestStatus.IsFinishMemberList=true;
138906
138908
 
138909
+ //实时本地数据排序
138910
+ var chart=this.GetReportChart();
138911
+ if (chart && (this.SortInfo.Sort==1 || this.SortInfo.Sort==2) && IFrameSplitOperator.IsNumber(this.SortInfo.Field) && this.SortInfo.Field>=0)
138912
+ {
138913
+ var column=chart.Column[this.SortInfo.Field];
138914
+ var event=this.GetEventCallback(JSCHART_EVENT_ID.ON_REPORT_LOCAL_SORT);
138915
+
138916
+ var bLocalSrot=true;
138917
+ if (event && event.Callback)
138918
+ {
138919
+ var sendData={ Column:column, SortInfo:this.SortInfo, SymbolList:this.Data.Data, Result:null, PreventDefault:false };
138920
+ event.Callback (event, sendData, this);
138921
+ if (event.PreventDefault)
138922
+ {
138923
+ bLocalSrot=false;
138924
+ if (Array.isArray(sendData.Result)) this.Data.Data=sendData.Result;
138925
+ }
138926
+ }
138927
+
138928
+ if (bLocalSrot) this.Data.Data.sort((left, right)=> { return this.LocalSort(left, right, column, this.SortInfo.Sort); });
138929
+ }
138930
+
138907
138931
  this.Draw();
138908
138932
  this.UpdateStockData();
138909
138933
  }
@@ -139217,7 +139241,7 @@ function JSReportChartContainer(uielement)
139217
139241
  if (!chart) return;
139218
139242
 
139219
139243
  //列表还没有加载完成
139220
- if (this.RequestStatus.IsFinishMemberList==false || this.RequestStatus.IsFinishMemberList==false) return;
139244
+ if (this.RequestStatus.IsFinishStockList==false || this.RequestStatus.IsFinishMemberList==false) return;
139221
139245
 
139222
139246
  if (this.Data.Virtual && this.Data.Virtual.Enable)
139223
139247
  {
@@ -151104,7 +151128,7 @@ function ScrollBarBGChart()
151104
151128
 
151105
151129
 
151106
151130
 
151107
- var HQCHART_VERSION="1.1.14914";
151131
+ var HQCHART_VERSION="1.1.14918";
151108
151132
 
151109
151133
  function PrintHQChartVersion()
151110
151134
  {
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var HQCHART_VERSION="1.1.14914";
8
+ var HQCHART_VERSION="1.1.14918";
9
9
 
10
10
  function PrintHQChartVersion()
11
11
  {
@@ -138889,6 +138889,8 @@ function JSReportChartContainer(uielement)
138889
138889
 
138890
138890
  this.RequestMemberListData=function()
138891
138891
  {
138892
+ if (this.RequestStatus.IsFinishStockList==false) return; //码表没有下完
138893
+
138892
138894
  //this.ChartSplashPaint.SetTitle(this.SplashTitle.MemberList);
138893
138895
  //this.ChartSplashPaint.EnableSplash(true);
138894
138896
  //this.Draw();
@@ -138948,6 +138950,28 @@ function JSReportChartContainer(uielement)
138948
138950
 
138949
138951
  this.RequestStatus.IsFinishMemberList=true;
138950
138952
 
138953
+ //实时本地数据排序
138954
+ var chart=this.GetReportChart();
138955
+ if (chart && (this.SortInfo.Sort==1 || this.SortInfo.Sort==2) && IFrameSplitOperator.IsNumber(this.SortInfo.Field) && this.SortInfo.Field>=0)
138956
+ {
138957
+ var column=chart.Column[this.SortInfo.Field];
138958
+ var event=this.GetEventCallback(JSCHART_EVENT_ID.ON_REPORT_LOCAL_SORT);
138959
+
138960
+ var bLocalSrot=true;
138961
+ if (event && event.Callback)
138962
+ {
138963
+ var sendData={ Column:column, SortInfo:this.SortInfo, SymbolList:this.Data.Data, Result:null, PreventDefault:false };
138964
+ event.Callback (event, sendData, this);
138965
+ if (event.PreventDefault)
138966
+ {
138967
+ bLocalSrot=false;
138968
+ if (Array.isArray(sendData.Result)) this.Data.Data=sendData.Result;
138969
+ }
138970
+ }
138971
+
138972
+ if (bLocalSrot) this.Data.Data.sort((left, right)=> { return this.LocalSort(left, right, column, this.SortInfo.Sort); });
138973
+ }
138974
+
138951
138975
  this.Draw();
138952
138976
  this.UpdateStockData();
138953
138977
  }
@@ -139261,7 +139285,7 @@ function JSReportChartContainer(uielement)
139261
139285
  if (!chart) return;
139262
139286
 
139263
139287
  //列表还没有加载完成
139264
- if (this.RequestStatus.IsFinishMemberList==false || this.RequestStatus.IsFinishMemberList==false) return;
139288
+ if (this.RequestStatus.IsFinishStockList==false || this.RequestStatus.IsFinishMemberList==false) return;
139265
139289
 
139266
139290
  if (this.Data.Virtual && this.Data.Virtual.Enable)
139267
139291
  {
@@ -158964,6 +158988,13 @@ function JSFloatTooltip()
158964
158988
  Left:"UMyChart_Tooltip_Float_Text2_Span", //左对齐
158965
158989
  MarginLeft:'UMyChart_Tooltip_Float_Text3_Span',
158966
158990
  Right:"UMyChart_Tooltip_Float_Text_Span",
158991
+
158992
+
158993
+ }
158994
+
158995
+ this.TitleAlign=
158996
+ {
158997
+ Default:"UMyChart_Tooltip_Float_Title_Span", //标题默认
158967
158998
  }
158968
158999
 
158969
159000
  this.AryData=[]; //输出文字信息
@@ -159062,7 +159093,7 @@ function JSFloatTooltip()
159062
159093
  rowItem.TitleTd=tdDom;
159063
159094
 
159064
159095
  var spanDom=document.createElement("span");
159065
- spanDom.className='UMyChart_Tooltip_Float_Title_Span';
159096
+ spanDom.className=this.TitleAlign.Default;
159066
159097
  spanDom.innerText='标题';
159067
159098
  tdDom.appendChild(spanDom);
159068
159099
  rowItem.TitleSpan=spanDom;
@@ -159563,6 +159594,15 @@ function JSFloatTooltip()
159563
159594
  if (item.TextSpan.className!=this.ValueAlign.Right) item.TextSpan.className=this.ValueAlign.Right;
159564
159595
  }
159565
159596
 
159597
+ if (outItem.TitleClassName)
159598
+ {
159599
+ item.TitleSpan.className=outItem.TitleClassName;
159600
+ }
159601
+ else
159602
+ {
159603
+ if (item.TitleSpan.className!=this.TitleAlign.Default) item.TitleSpan.className=this.TitleAlign.Default;
159604
+ }
159605
+
159566
159606
  if (outItem.IsMergeCell) //合并单元格
159567
159607
  {
159568
159608
  item.TitleTd.colspan=2;
@@ -162437,7 +162477,7 @@ function HQChartScriptWorker()
162437
162477
 
162438
162478
 
162439
162479
 
162440
- var HQCHART_VERSION="1.1.14914";
162480
+ var HQCHART_VERSION="1.1.14918";
162441
162481
 
162442
162482
  function PrintHQChartVersion()
162443
162483
  {