hqchart 1.1.12678 → 1.1.12685
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 +194 -189
- package/package.json +1 -1
- package/src/jscommon/umychart.js +57 -6
- package/src/jscommon/umychart.uniapp.h5/umychart.uniapp.h5.js +58 -7
- package/src/jscommon/umychart.version.js +1 -1
- package/src/jscommon/umychart.vue/umychart.vue.js +58 -7
- package/src/jscommon/umychart.wechat/umychart.framesplit.wechat.js +21 -0
- package/src/jscommon/umychart.wechat/umychart.version.wechat.js +1 -1
- package/src/jscommon/umychart.wechat/umychart.wechat.3.0.js +5 -5
package/package.json
CHANGED
package/src/jscommon/umychart.js
CHANGED
|
@@ -5995,6 +5995,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
5995
5995
|
this.UpdataDataoffset();
|
|
5996
5996
|
this.UpdatePointByCursorIndex();
|
|
5997
5997
|
this.UpdateFrameMaxMin();
|
|
5998
|
+
this.ResetFrameXSplit();
|
|
5998
5999
|
this.Draw();
|
|
5999
6000
|
this.ShowTooltipByKeyDown();
|
|
6000
6001
|
this.OnKLinePageChange("keydown");
|
|
@@ -6023,6 +6024,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
6023
6024
|
this.UpdataDataoffset();
|
|
6024
6025
|
this.UpdatePointByCursorIndex();
|
|
6025
6026
|
this.UpdateFrameMaxMin();
|
|
6027
|
+
this.ResetFrameXSplit();
|
|
6026
6028
|
this.Draw();
|
|
6027
6029
|
this.ShowTooltipByKeyDown();
|
|
6028
6030
|
this.OnKLinePageChange("keydown");
|
|
@@ -6051,6 +6053,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
6051
6053
|
this.UpdatePointByCursorIndex();
|
|
6052
6054
|
this.UpdataDataoffset();
|
|
6053
6055
|
this.UpdateFrameMaxMin();
|
|
6056
|
+
this.ResetFrameXSplit();
|
|
6054
6057
|
this.Draw();
|
|
6055
6058
|
this.ShowTooltipByKeyDown();
|
|
6056
6059
|
this.OnKLinePageChange("keydown");
|
|
@@ -6064,6 +6067,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
6064
6067
|
this.UpdataDataoffset();
|
|
6065
6068
|
this.UpdatePointByCursorIndex();
|
|
6066
6069
|
this.UpdateFrameMaxMin();
|
|
6070
|
+
this.ResetFrameXSplit();
|
|
6067
6071
|
this.Draw();
|
|
6068
6072
|
this.ShowTooltipByKeyDown();
|
|
6069
6073
|
this.OnKLinePageChange("keydown");
|
|
@@ -6671,6 +6675,12 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
6671
6675
|
this.Frame.ResetXYSplit();
|
|
6672
6676
|
}
|
|
6673
6677
|
|
|
6678
|
+
this.ResetFrameXSplit=function()
|
|
6679
|
+
{
|
|
6680
|
+
if (typeof(this.Frame.ResetXSplit)=='function')
|
|
6681
|
+
this.Frame.ResetXSplit();
|
|
6682
|
+
}
|
|
6683
|
+
|
|
6674
6684
|
this.UpdateFrameMaxMinV2=function()
|
|
6675
6685
|
{
|
|
6676
6686
|
var mapFrame=new Map(); //key=frameid, value:{ ChartPaint:[] }
|
|
@@ -6779,13 +6789,13 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
6779
6789
|
|
|
6780
6790
|
frame.HorizontalMax=max;
|
|
6781
6791
|
frame.HorizontalMin=min;
|
|
6782
|
-
|
|
6783
|
-
for(var j=0;j<item.OverlayFrame.length;++j)
|
|
6784
|
-
{
|
|
6785
|
-
item.OverlayFrame[j].XYSplit=true;
|
|
6786
|
-
}
|
|
6787
6792
|
}
|
|
6788
6793
|
|
|
6794
|
+
//共享Y轴叠加指标同步下坐标
|
|
6795
|
+
for(var j=0;j<item.OverlayFrame.length;++j)
|
|
6796
|
+
{
|
|
6797
|
+
item.OverlayFrame[j].XYSplit=true;
|
|
6798
|
+
}
|
|
6789
6799
|
|
|
6790
6800
|
//独立坐标叠加指标
|
|
6791
6801
|
for(var i=0;i<item.SingleOverlay.length;++i)
|
|
@@ -9170,6 +9180,7 @@ function IChartFramePainting()
|
|
|
9170
9180
|
this.IsShow=true; //是否显示
|
|
9171
9181
|
this.SizeChange=true; //大小是否改变
|
|
9172
9182
|
this.XYSplit=true; //XY轴坐标信息改变
|
|
9183
|
+
this.XSplit=true; //X轴变化
|
|
9173
9184
|
|
|
9174
9185
|
this.HorizontalMax; //Y轴最大值
|
|
9175
9186
|
this.HorizontalMin; //Y轴最小值
|
|
@@ -9242,6 +9253,7 @@ function IChartFramePainting()
|
|
|
9242
9253
|
|
|
9243
9254
|
this.SizeChange=false;
|
|
9244
9255
|
this.XYSplit=false;
|
|
9256
|
+
this.XSplit=false;
|
|
9245
9257
|
}
|
|
9246
9258
|
|
|
9247
9259
|
this.DrawFrame=function() { }
|
|
@@ -13927,7 +13939,15 @@ function KLineFrame()
|
|
|
13927
13939
|
//分割x,y轴坐标信息
|
|
13928
13940
|
this.SplitXYCoordinate=function()
|
|
13929
13941
|
{
|
|
13930
|
-
if (this.XYSplit==false)
|
|
13942
|
+
if (this.XYSplit==false)
|
|
13943
|
+
{
|
|
13944
|
+
if (this.XSplit)
|
|
13945
|
+
{
|
|
13946
|
+
if (this.XSplitOperator!=null) this.XSplitOperator.Operator();
|
|
13947
|
+
}
|
|
13948
|
+
return;
|
|
13949
|
+
}
|
|
13950
|
+
|
|
13931
13951
|
if (this.YSplitOperator!=null) this.YSplitOperator.Operator();
|
|
13932
13952
|
if (this.XSplitOperator!=null) this.XSplitOperator.Operator();
|
|
13933
13953
|
if (this.Logarithmic) this.SplitLogarithmicXYCoordinate();
|
|
@@ -14603,6 +14623,7 @@ function OverlayKLineFrame()
|
|
|
14603
14623
|
|
|
14604
14624
|
this.SizeChange=false;
|
|
14605
14625
|
this.XYSplit=false;
|
|
14626
|
+
this.XSplit=false;
|
|
14606
14627
|
}
|
|
14607
14628
|
|
|
14608
14629
|
this.DrawTitle=function() //画标题
|
|
@@ -17141,6 +17162,14 @@ function HQTradeFrame()
|
|
|
17141
17162
|
}
|
|
17142
17163
|
}
|
|
17143
17164
|
|
|
17165
|
+
this.ResetXSplit=function()
|
|
17166
|
+
{
|
|
17167
|
+
for(let i in this.SubFrame)
|
|
17168
|
+
{
|
|
17169
|
+
this.SubFrame[i].Frame.XSplit=true;
|
|
17170
|
+
}
|
|
17171
|
+
}
|
|
17172
|
+
|
|
17144
17173
|
this.SetLanguage=function(languageID)
|
|
17145
17174
|
{
|
|
17146
17175
|
for(let i in this.SubFrame)
|
|
@@ -43221,6 +43250,15 @@ function FrameSplitKLinePriceY()
|
|
|
43221
43250
|
splitData.Max=this.Frame.HorizontalMax;
|
|
43222
43251
|
splitData.Min=this.Frame.HorizontalMin;
|
|
43223
43252
|
splitData.Count=this.SplitCount;
|
|
43253
|
+
if (this.Frame.YMaxMin) //原始的数据范围
|
|
43254
|
+
{
|
|
43255
|
+
var item=this.Frame.YMaxMin;
|
|
43256
|
+
if (IFrameSplitOperator.IsNumber(item.Max) && IFrameSplitOperator.IsNumber(item.Min))
|
|
43257
|
+
{
|
|
43258
|
+
splitData.Max=item.Max;
|
|
43259
|
+
splitData.Min=item.Min;
|
|
43260
|
+
}
|
|
43261
|
+
}
|
|
43224
43262
|
|
|
43225
43263
|
if (splitData.Max==splitData.Min) //如果一样上下扩大下
|
|
43226
43264
|
{
|
|
@@ -43995,6 +44033,16 @@ function FrameSplitY()
|
|
|
43995
44033
|
var splitData={};
|
|
43996
44034
|
splitData.Max=this.Frame.HorizontalMax;
|
|
43997
44035
|
splitData.Min=this.Frame.HorizontalMin;
|
|
44036
|
+
|
|
44037
|
+
if (this.Frame.YMaxMin) //原始的数据范围
|
|
44038
|
+
{
|
|
44039
|
+
var item=this.Frame.YMaxMin;
|
|
44040
|
+
if (IFrameSplitOperator.IsNumber(item.Max) && IFrameSplitOperator.IsNumber(item.Min))
|
|
44041
|
+
{
|
|
44042
|
+
splitData.Max=item.Max;
|
|
44043
|
+
splitData.Min=item.Min;
|
|
44044
|
+
}
|
|
44045
|
+
}
|
|
43998
44046
|
|
|
43999
44047
|
if (splitData.Max==splitData.Min) //如果一样上下扩大下
|
|
44000
44048
|
{
|
|
@@ -65497,6 +65545,7 @@ function KLineChartContainer(uielement,OffscreenElement)
|
|
|
65497
65545
|
this.UpdataDataoffset();
|
|
65498
65546
|
this.UpdatePointByCursorIndex();
|
|
65499
65547
|
this.UpdateFrameMaxMin();
|
|
65548
|
+
this.ResetFrameXSplit();
|
|
65500
65549
|
this.Draw();
|
|
65501
65550
|
this.OnKLinePageChange("wheel");
|
|
65502
65551
|
}
|
|
@@ -65513,6 +65562,7 @@ function KLineChartContainer(uielement,OffscreenElement)
|
|
|
65513
65562
|
this.UpdatePointByCursorIndex();
|
|
65514
65563
|
this.UpdataDataoffset();
|
|
65515
65564
|
this.UpdateFrameMaxMin();
|
|
65565
|
+
this.ResetFrameXSplit();
|
|
65516
65566
|
this.Draw();
|
|
65517
65567
|
this.OnKLinePageChange("wheel");
|
|
65518
65568
|
}
|
|
@@ -68406,6 +68456,7 @@ function KLineChartContainer(uielement,OffscreenElement)
|
|
|
68406
68456
|
{
|
|
68407
68457
|
if (!this.DeleteOverlayIndex(identify, null)) return;
|
|
68408
68458
|
|
|
68459
|
+
this.UpdateFrameMaxMin(); //重新计算坐标范围
|
|
68409
68460
|
this.Frame.ResetXYSplit(true);
|
|
68410
68461
|
this.Draw();
|
|
68411
68462
|
}
|
|
@@ -10139,6 +10139,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
10139
10139
|
this.UpdataDataoffset();
|
|
10140
10140
|
this.UpdatePointByCursorIndex();
|
|
10141
10141
|
this.UpdateFrameMaxMin();
|
|
10142
|
+
this.ResetFrameXSplit();
|
|
10142
10143
|
this.Draw();
|
|
10143
10144
|
this.ShowTooltipByKeyDown();
|
|
10144
10145
|
this.OnKLinePageChange("keydown");
|
|
@@ -10167,6 +10168,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
10167
10168
|
this.UpdataDataoffset();
|
|
10168
10169
|
this.UpdatePointByCursorIndex();
|
|
10169
10170
|
this.UpdateFrameMaxMin();
|
|
10171
|
+
this.ResetFrameXSplit();
|
|
10170
10172
|
this.Draw();
|
|
10171
10173
|
this.ShowTooltipByKeyDown();
|
|
10172
10174
|
this.OnKLinePageChange("keydown");
|
|
@@ -10195,6 +10197,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
10195
10197
|
this.UpdatePointByCursorIndex();
|
|
10196
10198
|
this.UpdataDataoffset();
|
|
10197
10199
|
this.UpdateFrameMaxMin();
|
|
10200
|
+
this.ResetFrameXSplit();
|
|
10198
10201
|
this.Draw();
|
|
10199
10202
|
this.ShowTooltipByKeyDown();
|
|
10200
10203
|
this.OnKLinePageChange("keydown");
|
|
@@ -10208,6 +10211,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
10208
10211
|
this.UpdataDataoffset();
|
|
10209
10212
|
this.UpdatePointByCursorIndex();
|
|
10210
10213
|
this.UpdateFrameMaxMin();
|
|
10214
|
+
this.ResetFrameXSplit();
|
|
10211
10215
|
this.Draw();
|
|
10212
10216
|
this.ShowTooltipByKeyDown();
|
|
10213
10217
|
this.OnKLinePageChange("keydown");
|
|
@@ -10815,6 +10819,12 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
10815
10819
|
this.Frame.ResetXYSplit();
|
|
10816
10820
|
}
|
|
10817
10821
|
|
|
10822
|
+
this.ResetFrameXSplit=function()
|
|
10823
|
+
{
|
|
10824
|
+
if (typeof(this.Frame.ResetXSplit)=='function')
|
|
10825
|
+
this.Frame.ResetXSplit();
|
|
10826
|
+
}
|
|
10827
|
+
|
|
10818
10828
|
this.UpdateFrameMaxMinV2=function()
|
|
10819
10829
|
{
|
|
10820
10830
|
var mapFrame=new Map(); //key=frameid, value:{ ChartPaint:[] }
|
|
@@ -10923,13 +10933,13 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
10923
10933
|
|
|
10924
10934
|
frame.HorizontalMax=max;
|
|
10925
10935
|
frame.HorizontalMin=min;
|
|
10926
|
-
|
|
10927
|
-
for(var j=0;j<item.OverlayFrame.length;++j)
|
|
10928
|
-
{
|
|
10929
|
-
item.OverlayFrame[j].XYSplit=true;
|
|
10930
|
-
}
|
|
10931
10936
|
}
|
|
10932
10937
|
|
|
10938
|
+
//共享Y轴叠加指标同步下坐标
|
|
10939
|
+
for(var j=0;j<item.OverlayFrame.length;++j)
|
|
10940
|
+
{
|
|
10941
|
+
item.OverlayFrame[j].XYSplit=true;
|
|
10942
|
+
}
|
|
10933
10943
|
|
|
10934
10944
|
//独立坐标叠加指标
|
|
10935
10945
|
for(var i=0;i<item.SingleOverlay.length;++i)
|
|
@@ -13314,6 +13324,7 @@ function IChartFramePainting()
|
|
|
13314
13324
|
this.IsShow=true; //是否显示
|
|
13315
13325
|
this.SizeChange=true; //大小是否改变
|
|
13316
13326
|
this.XYSplit=true; //XY轴坐标信息改变
|
|
13327
|
+
this.XSplit=true; //X轴变化
|
|
13317
13328
|
|
|
13318
13329
|
this.HorizontalMax; //Y轴最大值
|
|
13319
13330
|
this.HorizontalMin; //Y轴最小值
|
|
@@ -13386,6 +13397,7 @@ function IChartFramePainting()
|
|
|
13386
13397
|
|
|
13387
13398
|
this.SizeChange=false;
|
|
13388
13399
|
this.XYSplit=false;
|
|
13400
|
+
this.XSplit=false;
|
|
13389
13401
|
}
|
|
13390
13402
|
|
|
13391
13403
|
this.DrawFrame=function() { }
|
|
@@ -18071,7 +18083,15 @@ function KLineFrame()
|
|
|
18071
18083
|
//分割x,y轴坐标信息
|
|
18072
18084
|
this.SplitXYCoordinate=function()
|
|
18073
18085
|
{
|
|
18074
|
-
if (this.XYSplit==false)
|
|
18086
|
+
if (this.XYSplit==false)
|
|
18087
|
+
{
|
|
18088
|
+
if (this.XSplit)
|
|
18089
|
+
{
|
|
18090
|
+
if (this.XSplitOperator!=null) this.XSplitOperator.Operator();
|
|
18091
|
+
}
|
|
18092
|
+
return;
|
|
18093
|
+
}
|
|
18094
|
+
|
|
18075
18095
|
if (this.YSplitOperator!=null) this.YSplitOperator.Operator();
|
|
18076
18096
|
if (this.XSplitOperator!=null) this.XSplitOperator.Operator();
|
|
18077
18097
|
if (this.Logarithmic) this.SplitLogarithmicXYCoordinate();
|
|
@@ -18747,6 +18767,7 @@ function OverlayKLineFrame()
|
|
|
18747
18767
|
|
|
18748
18768
|
this.SizeChange=false;
|
|
18749
18769
|
this.XYSplit=false;
|
|
18770
|
+
this.XSplit=false;
|
|
18750
18771
|
}
|
|
18751
18772
|
|
|
18752
18773
|
this.DrawTitle=function() //画标题
|
|
@@ -21285,6 +21306,14 @@ function HQTradeFrame()
|
|
|
21285
21306
|
}
|
|
21286
21307
|
}
|
|
21287
21308
|
|
|
21309
|
+
this.ResetXSplit=function()
|
|
21310
|
+
{
|
|
21311
|
+
for(let i in this.SubFrame)
|
|
21312
|
+
{
|
|
21313
|
+
this.SubFrame[i].Frame.XSplit=true;
|
|
21314
|
+
}
|
|
21315
|
+
}
|
|
21316
|
+
|
|
21288
21317
|
this.SetLanguage=function(languageID)
|
|
21289
21318
|
{
|
|
21290
21319
|
for(let i in this.SubFrame)
|
|
@@ -47365,6 +47394,15 @@ function FrameSplitKLinePriceY()
|
|
|
47365
47394
|
splitData.Max=this.Frame.HorizontalMax;
|
|
47366
47395
|
splitData.Min=this.Frame.HorizontalMin;
|
|
47367
47396
|
splitData.Count=this.SplitCount;
|
|
47397
|
+
if (this.Frame.YMaxMin) //原始的数据范围
|
|
47398
|
+
{
|
|
47399
|
+
var item=this.Frame.YMaxMin;
|
|
47400
|
+
if (IFrameSplitOperator.IsNumber(item.Max) && IFrameSplitOperator.IsNumber(item.Min))
|
|
47401
|
+
{
|
|
47402
|
+
splitData.Max=item.Max;
|
|
47403
|
+
splitData.Min=item.Min;
|
|
47404
|
+
}
|
|
47405
|
+
}
|
|
47368
47406
|
|
|
47369
47407
|
if (splitData.Max==splitData.Min) //如果一样上下扩大下
|
|
47370
47408
|
{
|
|
@@ -48139,6 +48177,16 @@ function FrameSplitY()
|
|
|
48139
48177
|
var splitData={};
|
|
48140
48178
|
splitData.Max=this.Frame.HorizontalMax;
|
|
48141
48179
|
splitData.Min=this.Frame.HorizontalMin;
|
|
48180
|
+
|
|
48181
|
+
if (this.Frame.YMaxMin) //原始的数据范围
|
|
48182
|
+
{
|
|
48183
|
+
var item=this.Frame.YMaxMin;
|
|
48184
|
+
if (IFrameSplitOperator.IsNumber(item.Max) && IFrameSplitOperator.IsNumber(item.Min))
|
|
48185
|
+
{
|
|
48186
|
+
splitData.Max=item.Max;
|
|
48187
|
+
splitData.Min=item.Min;
|
|
48188
|
+
}
|
|
48189
|
+
}
|
|
48142
48190
|
|
|
48143
48191
|
if (splitData.Max==splitData.Min) //如果一样上下扩大下
|
|
48144
48192
|
{
|
|
@@ -69641,6 +69689,7 @@ function KLineChartContainer(uielement,OffscreenElement)
|
|
|
69641
69689
|
this.UpdataDataoffset();
|
|
69642
69690
|
this.UpdatePointByCursorIndex();
|
|
69643
69691
|
this.UpdateFrameMaxMin();
|
|
69692
|
+
this.ResetFrameXSplit();
|
|
69644
69693
|
this.Draw();
|
|
69645
69694
|
this.OnKLinePageChange("wheel");
|
|
69646
69695
|
}
|
|
@@ -69657,6 +69706,7 @@ function KLineChartContainer(uielement,OffscreenElement)
|
|
|
69657
69706
|
this.UpdatePointByCursorIndex();
|
|
69658
69707
|
this.UpdataDataoffset();
|
|
69659
69708
|
this.UpdateFrameMaxMin();
|
|
69709
|
+
this.ResetFrameXSplit();
|
|
69660
69710
|
this.Draw();
|
|
69661
69711
|
this.OnKLinePageChange("wheel");
|
|
69662
69712
|
}
|
|
@@ -72550,6 +72600,7 @@ function KLineChartContainer(uielement,OffscreenElement)
|
|
|
72550
72600
|
{
|
|
72551
72601
|
if (!this.DeleteOverlayIndex(identify, null)) return;
|
|
72552
72602
|
|
|
72603
|
+
this.UpdateFrameMaxMin(); //重新计算坐标范围
|
|
72553
72604
|
this.Frame.ResetXYSplit(true);
|
|
72554
72605
|
this.Draw();
|
|
72555
72606
|
}
|
|
@@ -130515,7 +130566,7 @@ function ScrollBarBGChart()
|
|
|
130515
130566
|
|
|
130516
130567
|
|
|
130517
130568
|
|
|
130518
|
-
var HQCHART_VERSION="1.1.
|
|
130569
|
+
var HQCHART_VERSION="1.1.12684";
|
|
130519
130570
|
|
|
130520
130571
|
function PrintHQChartVersion()
|
|
130521
130572
|
{
|
|
@@ -10183,6 +10183,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
10183
10183
|
this.UpdataDataoffset();
|
|
10184
10184
|
this.UpdatePointByCursorIndex();
|
|
10185
10185
|
this.UpdateFrameMaxMin();
|
|
10186
|
+
this.ResetFrameXSplit();
|
|
10186
10187
|
this.Draw();
|
|
10187
10188
|
this.ShowTooltipByKeyDown();
|
|
10188
10189
|
this.OnKLinePageChange("keydown");
|
|
@@ -10211,6 +10212,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
10211
10212
|
this.UpdataDataoffset();
|
|
10212
10213
|
this.UpdatePointByCursorIndex();
|
|
10213
10214
|
this.UpdateFrameMaxMin();
|
|
10215
|
+
this.ResetFrameXSplit();
|
|
10214
10216
|
this.Draw();
|
|
10215
10217
|
this.ShowTooltipByKeyDown();
|
|
10216
10218
|
this.OnKLinePageChange("keydown");
|
|
@@ -10239,6 +10241,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
10239
10241
|
this.UpdatePointByCursorIndex();
|
|
10240
10242
|
this.UpdataDataoffset();
|
|
10241
10243
|
this.UpdateFrameMaxMin();
|
|
10244
|
+
this.ResetFrameXSplit();
|
|
10242
10245
|
this.Draw();
|
|
10243
10246
|
this.ShowTooltipByKeyDown();
|
|
10244
10247
|
this.OnKLinePageChange("keydown");
|
|
@@ -10252,6 +10255,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
10252
10255
|
this.UpdataDataoffset();
|
|
10253
10256
|
this.UpdatePointByCursorIndex();
|
|
10254
10257
|
this.UpdateFrameMaxMin();
|
|
10258
|
+
this.ResetFrameXSplit();
|
|
10255
10259
|
this.Draw();
|
|
10256
10260
|
this.ShowTooltipByKeyDown();
|
|
10257
10261
|
this.OnKLinePageChange("keydown");
|
|
@@ -10859,6 +10863,12 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
10859
10863
|
this.Frame.ResetXYSplit();
|
|
10860
10864
|
}
|
|
10861
10865
|
|
|
10866
|
+
this.ResetFrameXSplit=function()
|
|
10867
|
+
{
|
|
10868
|
+
if (typeof(this.Frame.ResetXSplit)=='function')
|
|
10869
|
+
this.Frame.ResetXSplit();
|
|
10870
|
+
}
|
|
10871
|
+
|
|
10862
10872
|
this.UpdateFrameMaxMinV2=function()
|
|
10863
10873
|
{
|
|
10864
10874
|
var mapFrame=new Map(); //key=frameid, value:{ ChartPaint:[] }
|
|
@@ -10967,13 +10977,13 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
10967
10977
|
|
|
10968
10978
|
frame.HorizontalMax=max;
|
|
10969
10979
|
frame.HorizontalMin=min;
|
|
10970
|
-
|
|
10971
|
-
for(var j=0;j<item.OverlayFrame.length;++j)
|
|
10972
|
-
{
|
|
10973
|
-
item.OverlayFrame[j].XYSplit=true;
|
|
10974
|
-
}
|
|
10975
10980
|
}
|
|
10976
10981
|
|
|
10982
|
+
//共享Y轴叠加指标同步下坐标
|
|
10983
|
+
for(var j=0;j<item.OverlayFrame.length;++j)
|
|
10984
|
+
{
|
|
10985
|
+
item.OverlayFrame[j].XYSplit=true;
|
|
10986
|
+
}
|
|
10977
10987
|
|
|
10978
10988
|
//独立坐标叠加指标
|
|
10979
10989
|
for(var i=0;i<item.SingleOverlay.length;++i)
|
|
@@ -13358,6 +13368,7 @@ function IChartFramePainting()
|
|
|
13358
13368
|
this.IsShow=true; //是否显示
|
|
13359
13369
|
this.SizeChange=true; //大小是否改变
|
|
13360
13370
|
this.XYSplit=true; //XY轴坐标信息改变
|
|
13371
|
+
this.XSplit=true; //X轴变化
|
|
13361
13372
|
|
|
13362
13373
|
this.HorizontalMax; //Y轴最大值
|
|
13363
13374
|
this.HorizontalMin; //Y轴最小值
|
|
@@ -13430,6 +13441,7 @@ function IChartFramePainting()
|
|
|
13430
13441
|
|
|
13431
13442
|
this.SizeChange=false;
|
|
13432
13443
|
this.XYSplit=false;
|
|
13444
|
+
this.XSplit=false;
|
|
13433
13445
|
}
|
|
13434
13446
|
|
|
13435
13447
|
this.DrawFrame=function() { }
|
|
@@ -18115,7 +18127,15 @@ function KLineFrame()
|
|
|
18115
18127
|
//分割x,y轴坐标信息
|
|
18116
18128
|
this.SplitXYCoordinate=function()
|
|
18117
18129
|
{
|
|
18118
|
-
if (this.XYSplit==false)
|
|
18130
|
+
if (this.XYSplit==false)
|
|
18131
|
+
{
|
|
18132
|
+
if (this.XSplit)
|
|
18133
|
+
{
|
|
18134
|
+
if (this.XSplitOperator!=null) this.XSplitOperator.Operator();
|
|
18135
|
+
}
|
|
18136
|
+
return;
|
|
18137
|
+
}
|
|
18138
|
+
|
|
18119
18139
|
if (this.YSplitOperator!=null) this.YSplitOperator.Operator();
|
|
18120
18140
|
if (this.XSplitOperator!=null) this.XSplitOperator.Operator();
|
|
18121
18141
|
if (this.Logarithmic) this.SplitLogarithmicXYCoordinate();
|
|
@@ -18791,6 +18811,7 @@ function OverlayKLineFrame()
|
|
|
18791
18811
|
|
|
18792
18812
|
this.SizeChange=false;
|
|
18793
18813
|
this.XYSplit=false;
|
|
18814
|
+
this.XSplit=false;
|
|
18794
18815
|
}
|
|
18795
18816
|
|
|
18796
18817
|
this.DrawTitle=function() //画标题
|
|
@@ -21329,6 +21350,14 @@ function HQTradeFrame()
|
|
|
21329
21350
|
}
|
|
21330
21351
|
}
|
|
21331
21352
|
|
|
21353
|
+
this.ResetXSplit=function()
|
|
21354
|
+
{
|
|
21355
|
+
for(let i in this.SubFrame)
|
|
21356
|
+
{
|
|
21357
|
+
this.SubFrame[i].Frame.XSplit=true;
|
|
21358
|
+
}
|
|
21359
|
+
}
|
|
21360
|
+
|
|
21332
21361
|
this.SetLanguage=function(languageID)
|
|
21333
21362
|
{
|
|
21334
21363
|
for(let i in this.SubFrame)
|
|
@@ -47409,6 +47438,15 @@ function FrameSplitKLinePriceY()
|
|
|
47409
47438
|
splitData.Max=this.Frame.HorizontalMax;
|
|
47410
47439
|
splitData.Min=this.Frame.HorizontalMin;
|
|
47411
47440
|
splitData.Count=this.SplitCount;
|
|
47441
|
+
if (this.Frame.YMaxMin) //原始的数据范围
|
|
47442
|
+
{
|
|
47443
|
+
var item=this.Frame.YMaxMin;
|
|
47444
|
+
if (IFrameSplitOperator.IsNumber(item.Max) && IFrameSplitOperator.IsNumber(item.Min))
|
|
47445
|
+
{
|
|
47446
|
+
splitData.Max=item.Max;
|
|
47447
|
+
splitData.Min=item.Min;
|
|
47448
|
+
}
|
|
47449
|
+
}
|
|
47412
47450
|
|
|
47413
47451
|
if (splitData.Max==splitData.Min) //如果一样上下扩大下
|
|
47414
47452
|
{
|
|
@@ -48183,6 +48221,16 @@ function FrameSplitY()
|
|
|
48183
48221
|
var splitData={};
|
|
48184
48222
|
splitData.Max=this.Frame.HorizontalMax;
|
|
48185
48223
|
splitData.Min=this.Frame.HorizontalMin;
|
|
48224
|
+
|
|
48225
|
+
if (this.Frame.YMaxMin) //原始的数据范围
|
|
48226
|
+
{
|
|
48227
|
+
var item=this.Frame.YMaxMin;
|
|
48228
|
+
if (IFrameSplitOperator.IsNumber(item.Max) && IFrameSplitOperator.IsNumber(item.Min))
|
|
48229
|
+
{
|
|
48230
|
+
splitData.Max=item.Max;
|
|
48231
|
+
splitData.Min=item.Min;
|
|
48232
|
+
}
|
|
48233
|
+
}
|
|
48186
48234
|
|
|
48187
48235
|
if (splitData.Max==splitData.Min) //如果一样上下扩大下
|
|
48188
48236
|
{
|
|
@@ -69685,6 +69733,7 @@ function KLineChartContainer(uielement,OffscreenElement)
|
|
|
69685
69733
|
this.UpdataDataoffset();
|
|
69686
69734
|
this.UpdatePointByCursorIndex();
|
|
69687
69735
|
this.UpdateFrameMaxMin();
|
|
69736
|
+
this.ResetFrameXSplit();
|
|
69688
69737
|
this.Draw();
|
|
69689
69738
|
this.OnKLinePageChange("wheel");
|
|
69690
69739
|
}
|
|
@@ -69701,6 +69750,7 @@ function KLineChartContainer(uielement,OffscreenElement)
|
|
|
69701
69750
|
this.UpdatePointByCursorIndex();
|
|
69702
69751
|
this.UpdataDataoffset();
|
|
69703
69752
|
this.UpdateFrameMaxMin();
|
|
69753
|
+
this.ResetFrameXSplit();
|
|
69704
69754
|
this.Draw();
|
|
69705
69755
|
this.OnKLinePageChange("wheel");
|
|
69706
69756
|
}
|
|
@@ -72594,6 +72644,7 @@ function KLineChartContainer(uielement,OffscreenElement)
|
|
|
72594
72644
|
{
|
|
72595
72645
|
if (!this.DeleteOverlayIndex(identify, null)) return;
|
|
72596
72646
|
|
|
72647
|
+
this.UpdateFrameMaxMin(); //重新计算坐标范围
|
|
72597
72648
|
this.Frame.ResetXYSplit(true);
|
|
72598
72649
|
this.Draw();
|
|
72599
72650
|
}
|
|
@@ -130673,7 +130724,7 @@ function HQChartScriptWorker()
|
|
|
130673
130724
|
|
|
130674
130725
|
|
|
130675
130726
|
|
|
130676
|
-
var HQCHART_VERSION="1.1.
|
|
130727
|
+
var HQCHART_VERSION="1.1.12684";
|
|
130677
130728
|
|
|
130678
130729
|
function PrintHQChartVersion()
|
|
130679
130730
|
{
|
|
@@ -555,6 +555,17 @@ function FrameSplitKLinePriceY()
|
|
|
555
555
|
splitData.Max = this.Frame.HorizontalMax;
|
|
556
556
|
splitData.Min = this.Frame.HorizontalMin;
|
|
557
557
|
splitData.Count = this.SplitCount;
|
|
558
|
+
|
|
559
|
+
if (this.Frame.YMaxMin) //原始的数据范围
|
|
560
|
+
{
|
|
561
|
+
var item=this.Frame.YMaxMin;
|
|
562
|
+
if (IFrameSplitOperator.IsNumber(item.Max) && IFrameSplitOperator.IsNumber(item.Min))
|
|
563
|
+
{
|
|
564
|
+
splitData.Max=item.Max;
|
|
565
|
+
splitData.Min=item.Min;
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
|
|
558
569
|
if (splitData.Max==splitData.Min) //如果一样上下扩大下
|
|
559
570
|
{
|
|
560
571
|
splitData.Max+=splitData.Max*0.01;
|
|
@@ -795,6 +806,16 @@ function FrameSplitY()
|
|
|
795
806
|
splitData.Max = this.Frame.HorizontalMax;
|
|
796
807
|
splitData.Min = this.Frame.HorizontalMin;
|
|
797
808
|
|
|
809
|
+
if (this.Frame.YMaxMin) //原始的数据范围
|
|
810
|
+
{
|
|
811
|
+
var item=this.Frame.YMaxMin;
|
|
812
|
+
if (IFrameSplitOperator.IsNumber(item.Max) && IFrameSplitOperator.IsNumber(item.Min))
|
|
813
|
+
{
|
|
814
|
+
splitData.Max=item.Max;
|
|
815
|
+
splitData.Min=item.Min;
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
|
|
798
819
|
if (splitData.Max==splitData.Min) //如果一样上下扩大下
|
|
799
820
|
{
|
|
800
821
|
if (splitData.Max==0)
|
|
@@ -2738,13 +2738,13 @@ function JSChartContainer(uielement)
|
|
|
2738
2738
|
|
|
2739
2739
|
frame.HorizontalMax=max;
|
|
2740
2740
|
frame.HorizontalMin=min;
|
|
2741
|
-
|
|
2742
|
-
for(var j=0;j<item.OverlayFrame.length;++j)
|
|
2743
|
-
{
|
|
2744
|
-
item.OverlayFrame[j].XYSplit=true;
|
|
2745
|
-
}
|
|
2746
2741
|
}
|
|
2747
2742
|
|
|
2743
|
+
//共享Y轴叠加指标坐标同步
|
|
2744
|
+
for(var j=0;j<item.OverlayFrame.length;++j)
|
|
2745
|
+
{
|
|
2746
|
+
item.OverlayFrame[j].XYSplit=true;
|
|
2747
|
+
}
|
|
2748
2748
|
|
|
2749
2749
|
//独立坐标叠加指标
|
|
2750
2750
|
for(var i=0;i<item.SingleOverlay.length;++i)
|