hqchart 1.1.12493 → 1.1.12503
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 +51 -43
- package/package.json +1 -1
- package/src/jscommon/umychart.complier.js +64 -26
- package/src/jscommon/umychart.js +47 -6
- package/src/jscommon/umychart.uniapp.h5/umychart.uniapp.h5.js +112 -33
- package/src/jscommon/umychart.version.js +1 -1
- package/src/jscommon/umychart.vue/umychart.vue.js +112 -33
- package/src/jscommon/umychart.wechat/umychart.chartpaint.wechat.js +22 -11
- package/src/jscommon/umychart.wechat/umychart.klineinfo.wechat.js +27 -6
- package/src/jscommon/umychart.wechat/umychart.version.wechat.js +1 -1
|
@@ -9626,7 +9626,7 @@ function JSDraw(errorHandler,symbolData)
|
|
|
9626
9626
|
{
|
|
9627
9627
|
let drawData=[];
|
|
9628
9628
|
let result={DrawData:drawData, DrawType:'POLYLINE'};
|
|
9629
|
-
let isNumber=
|
|
9629
|
+
let isNumber=IFrameSplitOperator.IsNumber(data);
|
|
9630
9630
|
|
|
9631
9631
|
let bFirstPoint=false;
|
|
9632
9632
|
let bSecondPont=false;
|
|
@@ -9643,10 +9643,10 @@ function JSDraw(errorHandler,symbolData)
|
|
|
9643
9643
|
}
|
|
9644
9644
|
}
|
|
9645
9645
|
}
|
|
9646
|
-
else
|
|
9646
|
+
else if (Array.isArray(condition))
|
|
9647
9647
|
{
|
|
9648
9648
|
var bFind=false;
|
|
9649
|
-
for(var i
|
|
9649
|
+
for(var i=0; i<condition.length; ++i)
|
|
9650
9650
|
{
|
|
9651
9651
|
drawData[i]=null;
|
|
9652
9652
|
if (bFind)
|
|
@@ -9665,39 +9665,77 @@ function JSDraw(errorHandler,symbolData)
|
|
|
9665
9665
|
}
|
|
9666
9666
|
else
|
|
9667
9667
|
{
|
|
9668
|
-
|
|
9669
|
-
for(let i in condition)
|
|
9668
|
+
if (IFrameSplitOperator.IsNumber(condition))
|
|
9670
9669
|
{
|
|
9671
|
-
|
|
9672
|
-
|
|
9670
|
+
if (!condition) return result;
|
|
9671
|
+
let lineCache={Start:{ },End:{ }, List:[]};
|
|
9672
|
+
for(var i=0;i<data.length;++i)
|
|
9673
9673
|
{
|
|
9674
|
-
|
|
9675
|
-
if (
|
|
9674
|
+
drawData[i]=null;
|
|
9675
|
+
if (bFirstPoint==false && bSecondPont==false)
|
|
9676
|
+
{
|
|
9677
|
+
if (!this.IsNumber(data[i])) continue;
|
|
9676
9678
|
|
|
9677
|
-
|
|
9678
|
-
|
|
9679
|
-
|
|
9680
|
-
|
|
9681
|
-
|
|
9682
|
-
|
|
9683
|
-
|
|
9679
|
+
bFirstPoint=true;
|
|
9680
|
+
lineCache.Start={ID:parseInt(i), Value:data[i]}; //第1个点
|
|
9681
|
+
}
|
|
9682
|
+
else if (bFirstPoint==true && bSecondPont==false)
|
|
9683
|
+
{
|
|
9684
|
+
if (!this.IsNumber(data[i])) continue;
|
|
9685
|
+
|
|
9686
|
+
lineCache.End={ID:parseInt(i), Value:data[i]}; //第2个点
|
|
9687
|
+
//根据起始点和结束点 计算中间各个点的数据
|
|
9688
|
+
let lineData=this.CalculateDrawLine(lineCache); //计算2个点的线上 其他点的数值
|
|
9689
|
+
|
|
9690
|
+
for(let j in lineData)
|
|
9691
|
+
{
|
|
9692
|
+
let item=lineData[j];
|
|
9693
|
+
drawData[item.ID]=item.Value;
|
|
9694
|
+
}
|
|
9684
9695
|
|
|
9685
|
-
|
|
9686
|
-
|
|
9687
|
-
|
|
9696
|
+
let start={ ID:lineCache.End.ID,Value:lineCache.End.Value };
|
|
9697
|
+
lineCache={Start:start,End:{ } };
|
|
9698
|
+
}
|
|
9699
|
+
}
|
|
9688
9700
|
|
|
9689
|
-
|
|
9701
|
+
this.CalculateDrawDataExtendLine(drawData);
|
|
9702
|
+
}
|
|
9703
|
+
else
|
|
9704
|
+
{
|
|
9705
|
+
let lineCache={Start:{ },End:{ }, List:[]};
|
|
9706
|
+
for(let i in condition)
|
|
9707
|
+
{
|
|
9708
|
+
drawData[i]=null;
|
|
9709
|
+
if (bFirstPoint==false && bSecondPont==false)
|
|
9690
9710
|
{
|
|
9691
|
-
|
|
9692
|
-
|
|
9711
|
+
if (condition[i]==null || !condition[i]) continue;
|
|
9712
|
+
if (i>=data.length || !this.IsNumber(data[i])) continue;
|
|
9713
|
+
|
|
9714
|
+
bFirstPoint=true;
|
|
9715
|
+
lineCache.Start={ID:parseInt(i), Value:data[i]}; //第1个点
|
|
9693
9716
|
}
|
|
9717
|
+
else if (bFirstPoint==true && bSecondPont==false)
|
|
9718
|
+
{
|
|
9719
|
+
if (condition[i]==null || !condition[i]) continue;
|
|
9720
|
+
if (i>=data.length || !this.IsNumber(data[i])) continue;
|
|
9694
9721
|
|
|
9695
|
-
|
|
9696
|
-
|
|
9722
|
+
lineCache.End={ID:parseInt(i), Value:data[i]}; //第2个点
|
|
9723
|
+
//根据起始点和结束点 计算中间各个点的数据
|
|
9724
|
+
let lineData=this.CalculateDrawLine(lineCache); //计算2个点的线上 其他点的数值
|
|
9725
|
+
|
|
9726
|
+
for(let j in lineData)
|
|
9727
|
+
{
|
|
9728
|
+
let item=lineData[j];
|
|
9729
|
+
drawData[item.ID]=item.Value;
|
|
9730
|
+
}
|
|
9731
|
+
|
|
9732
|
+
let start={ ID:lineCache.End.ID,Value:lineCache.End.Value };
|
|
9733
|
+
lineCache={Start:start,End:{ } };
|
|
9734
|
+
}
|
|
9697
9735
|
}
|
|
9698
|
-
}
|
|
9699
9736
|
|
|
9700
|
-
|
|
9737
|
+
this.CalculateDrawDataExtendLine(drawData);
|
|
9738
|
+
}
|
|
9701
9739
|
}
|
|
9702
9740
|
|
|
9703
9741
|
return result
|
package/src/jscommon/umychart.js
CHANGED
|
@@ -9010,6 +9010,7 @@ function IChartFramePainting()
|
|
|
9010
9010
|
|
|
9011
9011
|
this.LogoTextColor=g_JSChartResource.FrameLogo.TextColor;
|
|
9012
9012
|
this.LogoTextFont=g_JSChartResource.FrameLogo.Font;
|
|
9013
|
+
this.LogoBGColor=g_JSChartResource.FrameLogo.BGColor;
|
|
9013
9014
|
this.GlobalOption;
|
|
9014
9015
|
|
|
9015
9016
|
this.PtInButtons=function(x,y) //坐标是否在按钮上
|
|
@@ -9174,10 +9175,12 @@ function IChartFramePainting()
|
|
|
9174
9175
|
var text=g_JSChartResource.FrameLogo.Text;
|
|
9175
9176
|
if (!IFrameSplitOperator.IsString(text)) return;
|
|
9176
9177
|
|
|
9177
|
-
|
|
9178
|
+
|
|
9178
9179
|
this.Canvas.font=this.LogoTextFont;
|
|
9179
9180
|
this.Canvas.textAlign = 'left';
|
|
9180
9181
|
this.Canvas.textBaseline = 'bottom';
|
|
9182
|
+
var height=this.Canvas.measureText("擎").width;
|
|
9183
|
+
var width=this.Canvas.measureText(text).width;
|
|
9181
9184
|
if (this.IsHScreen)
|
|
9182
9185
|
{
|
|
9183
9186
|
var x=border.Left+5;
|
|
@@ -9185,13 +9188,36 @@ function IChartFramePainting()
|
|
|
9185
9188
|
this.Canvas.save();
|
|
9186
9189
|
this.Canvas.translate(x,y);
|
|
9187
9190
|
this.Canvas.rotate(90 * Math.PI / 180);
|
|
9188
|
-
|
|
9191
|
+
|
|
9192
|
+
var rtBG={ Left:0, Bottom:0, Width:width+4, Height:height+4 };
|
|
9193
|
+
rtBG.Top=rtBG.Bottom-rtBG.Height;
|
|
9194
|
+
rtBG.Right=rtBG.Left+rtBG.Width;
|
|
9195
|
+
|
|
9196
|
+
if (this.LogoBGColor)
|
|
9197
|
+
{
|
|
9198
|
+
this.Canvas.fillStyle=this.LogoBGColor;
|
|
9199
|
+
this.Canvas.fillRect(rtBG.Left,rtBG.Top,rtBG.Width,rtBG.Height);
|
|
9200
|
+
}
|
|
9201
|
+
|
|
9202
|
+
this.Canvas.fillStyle=this.LogoTextColor;
|
|
9203
|
+
this.Canvas.fillText(text,1,0);
|
|
9189
9204
|
this.Canvas.restore();
|
|
9190
9205
|
}
|
|
9191
9206
|
else
|
|
9192
9207
|
{
|
|
9193
|
-
var
|
|
9194
|
-
|
|
9208
|
+
var rtBG={ Left:border.Left+5, Bottom:border.Bottom-5, Width:width+4, Height:height+4 };
|
|
9209
|
+
rtBG.Top=rtBG.Bottom-rtBG.Height;
|
|
9210
|
+
rtBG.Right=rtBG.Left+rtBG.Width;
|
|
9211
|
+
|
|
9212
|
+
if (this.LogoBGColor)
|
|
9213
|
+
{
|
|
9214
|
+
this.Canvas.fillStyle=this.LogoBGColor;
|
|
9215
|
+
this.Canvas.fillRect(rtBG.Left,rtBG.Top,rtBG.Width,rtBG.Height);
|
|
9216
|
+
}
|
|
9217
|
+
|
|
9218
|
+
var x=rtBG.Left+1;
|
|
9219
|
+
var y=rtBG.Bottom-1;
|
|
9220
|
+
this.Canvas.fillStyle=this.LogoTextColor;
|
|
9195
9221
|
this.Canvas.fillText(text,x,y);
|
|
9196
9222
|
}
|
|
9197
9223
|
}
|
|
@@ -59622,7 +59648,8 @@ function JSChartResource()
|
|
|
59622
59648
|
{
|
|
59623
59649
|
TextColor:'rgb(178,34,34)',
|
|
59624
59650
|
Font:"bold "+ 16*GetDevicePixelRatio() +"px 微软雅黑",
|
|
59625
|
-
Text:"*仅学习使用*" //不要修改声明, 任何修改声明产生的任何法律责任由修改者自行独立承担,与HQChart插件作者无关。
|
|
59651
|
+
Text:"*仅学习使用*", //不要修改声明, 任何修改声明产生的任何法律责任由修改者自行独立承担,与HQChart插件作者无关。
|
|
59652
|
+
BGColor:"rgba(230,230,230, 0.5)",
|
|
59626
59653
|
};
|
|
59627
59654
|
|
|
59628
59655
|
//百分比坐标文字颜色
|
|
@@ -80514,6 +80541,7 @@ function PforecastInfo()
|
|
|
80514
80541
|
delete this.newMethod;
|
|
80515
80542
|
|
|
80516
80543
|
this.ClassName='PforecastInfo';
|
|
80544
|
+
this.Explain='业绩预告';
|
|
80517
80545
|
|
|
80518
80546
|
this.RequestData=function(hqChart,obj)
|
|
80519
80547
|
{
|
|
@@ -80526,6 +80554,9 @@ function PforecastInfo()
|
|
|
80526
80554
|
this.Data=[];
|
|
80527
80555
|
|
|
80528
80556
|
var url=g_JSChartResource.Domain+g_JSChartResource.KLine.Info.Pforecast.ApiUrl;
|
|
80557
|
+
|
|
80558
|
+
if (this.NetworkFilter(hqChart, obj)) return; //已被上层替换,不调用默认的网络请求
|
|
80559
|
+
|
|
80529
80560
|
//请求数据
|
|
80530
80561
|
JSNetwork.HttpRequest({
|
|
80531
80562
|
url: url,
|
|
@@ -80592,6 +80623,7 @@ function ResearchInfo()
|
|
|
80592
80623
|
delete this.newMethod;
|
|
80593
80624
|
|
|
80594
80625
|
this.ClassName='ResearchInfo';
|
|
80626
|
+
this.Explain='调研';
|
|
80595
80627
|
|
|
80596
80628
|
this.RequestData=function(hqChart,obj)
|
|
80597
80629
|
{
|
|
@@ -80603,6 +80635,9 @@ function ResearchInfo()
|
|
|
80603
80635
|
|
|
80604
80636
|
this.Data=[];
|
|
80605
80637
|
var url=g_JSChartResource.Domain+g_JSChartResource.KLine.Info.Research.ApiUrl;
|
|
80638
|
+
|
|
80639
|
+
if (this.NetworkFilter(hqChart, obj)) return; //已被上层替换,不调用默认的网络请求
|
|
80640
|
+
|
|
80606
80641
|
//请求数据
|
|
80607
80642
|
JSNetwork.HttpRequest({
|
|
80608
80643
|
url: url,
|
|
@@ -80656,6 +80691,7 @@ function BlockTrading()
|
|
|
80656
80691
|
delete this.newMethod;
|
|
80657
80692
|
|
|
80658
80693
|
this.ClassName='BlockTrading';
|
|
80694
|
+
this.Explain='大宗交易';
|
|
80659
80695
|
|
|
80660
80696
|
this.RequestData=function(hqChart,obj)
|
|
80661
80697
|
{
|
|
@@ -80668,6 +80704,8 @@ function BlockTrading()
|
|
|
80668
80704
|
this.Data=[];
|
|
80669
80705
|
var url=g_JSChartResource.Domain+g_JSChartResource.KLine.Info.BlockTrading.ApiUrl;
|
|
80670
80706
|
|
|
80707
|
+
if (this.NetworkFilter(hqChart, obj)) return; //已被上层替换,不调用默认的网络请求
|
|
80708
|
+
|
|
80671
80709
|
//请求数据
|
|
80672
80710
|
JSNetwork.HttpRequest({
|
|
80673
80711
|
url: url,
|
|
@@ -80739,7 +80777,8 @@ function TradeDetail()
|
|
|
80739
80777
|
delete this.newMethod;
|
|
80740
80778
|
|
|
80741
80779
|
this.ClassName='TradeDetail';
|
|
80742
|
-
|
|
80780
|
+
this.Explain='大宗交易';
|
|
80781
|
+
|
|
80743
80782
|
this.RequestData=function(hqChart, obj)
|
|
80744
80783
|
{
|
|
80745
80784
|
var self = this;
|
|
@@ -80751,6 +80790,8 @@ function TradeDetail()
|
|
|
80751
80790
|
this.Data=[];
|
|
80752
80791
|
var url=g_JSChartResource.Domain+g_JSChartResource.KLine.Info.TradeDetail.ApiUrl;
|
|
80753
80792
|
|
|
80793
|
+
if (this.NetworkFilter(hqChart, obj)) return; //已被上层替换,不调用默认的网络请求
|
|
80794
|
+
|
|
80754
80795
|
//请求数据
|
|
80755
80796
|
JSNetwork.HttpRequest({
|
|
80756
80797
|
url: url,
|
|
@@ -13090,6 +13090,7 @@ function IChartFramePainting()
|
|
|
13090
13090
|
|
|
13091
13091
|
this.LogoTextColor=g_JSChartResource.FrameLogo.TextColor;
|
|
13092
13092
|
this.LogoTextFont=g_JSChartResource.FrameLogo.Font;
|
|
13093
|
+
this.LogoBGColor=g_JSChartResource.FrameLogo.BGColor;
|
|
13093
13094
|
this.GlobalOption;
|
|
13094
13095
|
|
|
13095
13096
|
this.PtInButtons=function(x,y) //坐标是否在按钮上
|
|
@@ -13254,10 +13255,12 @@ function IChartFramePainting()
|
|
|
13254
13255
|
var text=g_JSChartResource.FrameLogo.Text;
|
|
13255
13256
|
if (!IFrameSplitOperator.IsString(text)) return;
|
|
13256
13257
|
|
|
13257
|
-
|
|
13258
|
+
|
|
13258
13259
|
this.Canvas.font=this.LogoTextFont;
|
|
13259
13260
|
this.Canvas.textAlign = 'left';
|
|
13260
13261
|
this.Canvas.textBaseline = 'bottom';
|
|
13262
|
+
var height=this.Canvas.measureText("擎").width;
|
|
13263
|
+
var width=this.Canvas.measureText(text).width;
|
|
13261
13264
|
if (this.IsHScreen)
|
|
13262
13265
|
{
|
|
13263
13266
|
var x=border.Left+5;
|
|
@@ -13265,13 +13268,36 @@ function IChartFramePainting()
|
|
|
13265
13268
|
this.Canvas.save();
|
|
13266
13269
|
this.Canvas.translate(x,y);
|
|
13267
13270
|
this.Canvas.rotate(90 * Math.PI / 180);
|
|
13268
|
-
|
|
13271
|
+
|
|
13272
|
+
var rtBG={ Left:0, Bottom:0, Width:width+4, Height:height+4 };
|
|
13273
|
+
rtBG.Top=rtBG.Bottom-rtBG.Height;
|
|
13274
|
+
rtBG.Right=rtBG.Left+rtBG.Width;
|
|
13275
|
+
|
|
13276
|
+
if (this.LogoBGColor)
|
|
13277
|
+
{
|
|
13278
|
+
this.Canvas.fillStyle=this.LogoBGColor;
|
|
13279
|
+
this.Canvas.fillRect(rtBG.Left,rtBG.Top,rtBG.Width,rtBG.Height);
|
|
13280
|
+
}
|
|
13281
|
+
|
|
13282
|
+
this.Canvas.fillStyle=this.LogoTextColor;
|
|
13283
|
+
this.Canvas.fillText(text,1,0);
|
|
13269
13284
|
this.Canvas.restore();
|
|
13270
13285
|
}
|
|
13271
13286
|
else
|
|
13272
13287
|
{
|
|
13273
|
-
var
|
|
13274
|
-
|
|
13288
|
+
var rtBG={ Left:border.Left+5, Bottom:border.Bottom-5, Width:width+4, Height:height+4 };
|
|
13289
|
+
rtBG.Top=rtBG.Bottom-rtBG.Height;
|
|
13290
|
+
rtBG.Right=rtBG.Left+rtBG.Width;
|
|
13291
|
+
|
|
13292
|
+
if (this.LogoBGColor)
|
|
13293
|
+
{
|
|
13294
|
+
this.Canvas.fillStyle=this.LogoBGColor;
|
|
13295
|
+
this.Canvas.fillRect(rtBG.Left,rtBG.Top,rtBG.Width,rtBG.Height);
|
|
13296
|
+
}
|
|
13297
|
+
|
|
13298
|
+
var x=rtBG.Left+1;
|
|
13299
|
+
var y=rtBG.Bottom-1;
|
|
13300
|
+
this.Canvas.fillStyle=this.LogoTextColor;
|
|
13275
13301
|
this.Canvas.fillText(text,x,y);
|
|
13276
13302
|
}
|
|
13277
13303
|
}
|
|
@@ -63702,7 +63728,8 @@ function JSChartResource()
|
|
|
63702
63728
|
{
|
|
63703
63729
|
TextColor:'rgb(178,34,34)',
|
|
63704
63730
|
Font:"bold "+ 16*GetDevicePixelRatio() +"px 微软雅黑",
|
|
63705
|
-
Text:"*仅学习使用*" //不要修改声明, 任何修改声明产生的任何法律责任由修改者自行独立承担,与HQChart插件作者无关。
|
|
63731
|
+
Text:"*仅学习使用*", //不要修改声明, 任何修改声明产生的任何法律责任由修改者自行独立承担,与HQChart插件作者无关。
|
|
63732
|
+
BGColor:"rgba(230,230,230, 0.5)",
|
|
63706
63733
|
};
|
|
63707
63734
|
|
|
63708
63735
|
//百分比坐标文字颜色
|
|
@@ -84594,6 +84621,7 @@ function PforecastInfo()
|
|
|
84594
84621
|
delete this.newMethod;
|
|
84595
84622
|
|
|
84596
84623
|
this.ClassName='PforecastInfo';
|
|
84624
|
+
this.Explain='业绩预告';
|
|
84597
84625
|
|
|
84598
84626
|
this.RequestData=function(hqChart,obj)
|
|
84599
84627
|
{
|
|
@@ -84606,6 +84634,9 @@ function PforecastInfo()
|
|
|
84606
84634
|
this.Data=[];
|
|
84607
84635
|
|
|
84608
84636
|
var url=g_JSChartResource.Domain+g_JSChartResource.KLine.Info.Pforecast.ApiUrl;
|
|
84637
|
+
|
|
84638
|
+
if (this.NetworkFilter(hqChart, obj)) return; //已被上层替换,不调用默认的网络请求
|
|
84639
|
+
|
|
84609
84640
|
//请求数据
|
|
84610
84641
|
JSNetwork.HttpRequest({
|
|
84611
84642
|
url: url,
|
|
@@ -84672,6 +84703,7 @@ function ResearchInfo()
|
|
|
84672
84703
|
delete this.newMethod;
|
|
84673
84704
|
|
|
84674
84705
|
this.ClassName='ResearchInfo';
|
|
84706
|
+
this.Explain='调研';
|
|
84675
84707
|
|
|
84676
84708
|
this.RequestData=function(hqChart,obj)
|
|
84677
84709
|
{
|
|
@@ -84683,6 +84715,9 @@ function ResearchInfo()
|
|
|
84683
84715
|
|
|
84684
84716
|
this.Data=[];
|
|
84685
84717
|
var url=g_JSChartResource.Domain+g_JSChartResource.KLine.Info.Research.ApiUrl;
|
|
84718
|
+
|
|
84719
|
+
if (this.NetworkFilter(hqChart, obj)) return; //已被上层替换,不调用默认的网络请求
|
|
84720
|
+
|
|
84686
84721
|
//请求数据
|
|
84687
84722
|
JSNetwork.HttpRequest({
|
|
84688
84723
|
url: url,
|
|
@@ -84736,6 +84771,7 @@ function BlockTrading()
|
|
|
84736
84771
|
delete this.newMethod;
|
|
84737
84772
|
|
|
84738
84773
|
this.ClassName='BlockTrading';
|
|
84774
|
+
this.Explain='大宗交易';
|
|
84739
84775
|
|
|
84740
84776
|
this.RequestData=function(hqChart,obj)
|
|
84741
84777
|
{
|
|
@@ -84748,6 +84784,8 @@ function BlockTrading()
|
|
|
84748
84784
|
this.Data=[];
|
|
84749
84785
|
var url=g_JSChartResource.Domain+g_JSChartResource.KLine.Info.BlockTrading.ApiUrl;
|
|
84750
84786
|
|
|
84787
|
+
if (this.NetworkFilter(hqChart, obj)) return; //已被上层替换,不调用默认的网络请求
|
|
84788
|
+
|
|
84751
84789
|
//请求数据
|
|
84752
84790
|
JSNetwork.HttpRequest({
|
|
84753
84791
|
url: url,
|
|
@@ -84819,7 +84857,8 @@ function TradeDetail()
|
|
|
84819
84857
|
delete this.newMethod;
|
|
84820
84858
|
|
|
84821
84859
|
this.ClassName='TradeDetail';
|
|
84822
|
-
|
|
84860
|
+
this.Explain='大宗交易';
|
|
84861
|
+
|
|
84823
84862
|
this.RequestData=function(hqChart, obj)
|
|
84824
84863
|
{
|
|
84825
84864
|
var self = this;
|
|
@@ -84831,6 +84870,8 @@ function TradeDetail()
|
|
|
84831
84870
|
this.Data=[];
|
|
84832
84871
|
var url=g_JSChartResource.Domain+g_JSChartResource.KLine.Info.TradeDetail.ApiUrl;
|
|
84833
84872
|
|
|
84873
|
+
if (this.NetworkFilter(hqChart, obj)) return; //已被上层替换,不调用默认的网络请求
|
|
84874
|
+
|
|
84834
84875
|
//请求数据
|
|
84835
84876
|
JSNetwork.HttpRequest({
|
|
84836
84877
|
url: url,
|
|
@@ -102037,7 +102078,7 @@ function JSDraw(errorHandler,symbolData)
|
|
|
102037
102078
|
{
|
|
102038
102079
|
let drawData=[];
|
|
102039
102080
|
let result={DrawData:drawData, DrawType:'POLYLINE'};
|
|
102040
|
-
let isNumber=
|
|
102081
|
+
let isNumber=IFrameSplitOperator.IsNumber(data);
|
|
102041
102082
|
|
|
102042
102083
|
let bFirstPoint=false;
|
|
102043
102084
|
let bSecondPont=false;
|
|
@@ -102054,10 +102095,10 @@ function JSDraw(errorHandler,symbolData)
|
|
|
102054
102095
|
}
|
|
102055
102096
|
}
|
|
102056
102097
|
}
|
|
102057
|
-
else
|
|
102098
|
+
else if (Array.isArray(condition))
|
|
102058
102099
|
{
|
|
102059
102100
|
var bFind=false;
|
|
102060
|
-
for(var i
|
|
102101
|
+
for(var i=0; i<condition.length; ++i)
|
|
102061
102102
|
{
|
|
102062
102103
|
drawData[i]=null;
|
|
102063
102104
|
if (bFind)
|
|
@@ -102076,39 +102117,77 @@ function JSDraw(errorHandler,symbolData)
|
|
|
102076
102117
|
}
|
|
102077
102118
|
else
|
|
102078
102119
|
{
|
|
102079
|
-
|
|
102080
|
-
for(let i in condition)
|
|
102120
|
+
if (IFrameSplitOperator.IsNumber(condition))
|
|
102081
102121
|
{
|
|
102082
|
-
|
|
102083
|
-
|
|
102122
|
+
if (!condition) return result;
|
|
102123
|
+
let lineCache={Start:{ },End:{ }, List:[]};
|
|
102124
|
+
for(var i=0;i<data.length;++i)
|
|
102084
102125
|
{
|
|
102085
|
-
|
|
102086
|
-
if (
|
|
102126
|
+
drawData[i]=null;
|
|
102127
|
+
if (bFirstPoint==false && bSecondPont==false)
|
|
102128
|
+
{
|
|
102129
|
+
if (!this.IsNumber(data[i])) continue;
|
|
102087
102130
|
|
|
102088
|
-
|
|
102089
|
-
|
|
102090
|
-
|
|
102091
|
-
|
|
102092
|
-
|
|
102093
|
-
|
|
102094
|
-
if (i>=data.length || !this.IsNumber(data[i])) continue;
|
|
102131
|
+
bFirstPoint=true;
|
|
102132
|
+
lineCache.Start={ID:parseInt(i), Value:data[i]}; //第1个点
|
|
102133
|
+
}
|
|
102134
|
+
else if (bFirstPoint==true && bSecondPont==false)
|
|
102135
|
+
{
|
|
102136
|
+
if (!this.IsNumber(data[i])) continue;
|
|
102095
102137
|
|
|
102096
|
-
|
|
102097
|
-
|
|
102098
|
-
|
|
102138
|
+
lineCache.End={ID:parseInt(i), Value:data[i]}; //第2个点
|
|
102139
|
+
//根据起始点和结束点 计算中间各个点的数据
|
|
102140
|
+
let lineData=this.CalculateDrawLine(lineCache); //计算2个点的线上 其他点的数值
|
|
102099
102141
|
|
|
102100
|
-
|
|
102142
|
+
for(let j in lineData)
|
|
102143
|
+
{
|
|
102144
|
+
let item=lineData[j];
|
|
102145
|
+
drawData[item.ID]=item.Value;
|
|
102146
|
+
}
|
|
102147
|
+
|
|
102148
|
+
let start={ ID:lineCache.End.ID,Value:lineCache.End.Value };
|
|
102149
|
+
lineCache={Start:start,End:{ } };
|
|
102150
|
+
}
|
|
102151
|
+
}
|
|
102152
|
+
|
|
102153
|
+
this.CalculateDrawDataExtendLine(drawData);
|
|
102154
|
+
}
|
|
102155
|
+
else
|
|
102156
|
+
{
|
|
102157
|
+
let lineCache={Start:{ },End:{ }, List:[]};
|
|
102158
|
+
for(let i in condition)
|
|
102159
|
+
{
|
|
102160
|
+
drawData[i]=null;
|
|
102161
|
+
if (bFirstPoint==false && bSecondPont==false)
|
|
102101
102162
|
{
|
|
102102
|
-
|
|
102103
|
-
|
|
102163
|
+
if (condition[i]==null || !condition[i]) continue;
|
|
102164
|
+
if (i>=data.length || !this.IsNumber(data[i])) continue;
|
|
102165
|
+
|
|
102166
|
+
bFirstPoint=true;
|
|
102167
|
+
lineCache.Start={ID:parseInt(i), Value:data[i]}; //第1个点
|
|
102104
102168
|
}
|
|
102169
|
+
else if (bFirstPoint==true && bSecondPont==false)
|
|
102170
|
+
{
|
|
102171
|
+
if (condition[i]==null || !condition[i]) continue;
|
|
102172
|
+
if (i>=data.length || !this.IsNumber(data[i])) continue;
|
|
102173
|
+
|
|
102174
|
+
lineCache.End={ID:parseInt(i), Value:data[i]}; //第2个点
|
|
102175
|
+
//根据起始点和结束点 计算中间各个点的数据
|
|
102176
|
+
let lineData=this.CalculateDrawLine(lineCache); //计算2个点的线上 其他点的数值
|
|
102105
102177
|
|
|
102106
|
-
|
|
102107
|
-
|
|
102178
|
+
for(let j in lineData)
|
|
102179
|
+
{
|
|
102180
|
+
let item=lineData[j];
|
|
102181
|
+
drawData[item.ID]=item.Value;
|
|
102182
|
+
}
|
|
102183
|
+
|
|
102184
|
+
let start={ ID:lineCache.End.ID,Value:lineCache.End.Value };
|
|
102185
|
+
lineCache={Start:start,End:{ } };
|
|
102186
|
+
}
|
|
102108
102187
|
}
|
|
102109
|
-
}
|
|
102110
102188
|
|
|
102111
|
-
|
|
102189
|
+
this.CalculateDrawDataExtendLine(drawData);
|
|
102190
|
+
}
|
|
102112
102191
|
}
|
|
102113
102192
|
|
|
102114
102193
|
return result
|
|
@@ -128062,7 +128141,7 @@ function ScrollBarBGChart()
|
|
|
128062
128141
|
|
|
128063
128142
|
|
|
128064
128143
|
|
|
128065
|
-
var HQCHART_VERSION="1.1.
|
|
128144
|
+
var HQCHART_VERSION="1.1.12502";
|
|
128066
128145
|
|
|
128067
128146
|
function PrintHQChartVersion()
|
|
128068
128147
|
{
|