hqchart 1.1.15080 → 1.1.15084
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 +23 -20
- package/package.json +1 -1
- package/src/jscommon/umychart.js +36 -8
- package/src/jscommon/umychart.resource/font/iconfont.css +7 -3
- package/src/jscommon/umychart.resource/font/iconfont.ttf +0 -0
- package/src/jscommon/umychart.resource/font/iconfont.woff +0 -0
- package/src/jscommon/umychart.resource/font/iconfont.woff2 +0 -0
- package/src/jscommon/umychart.style.js +6 -0
- package/src/jscommon/umychart.uniapp.h5/umychart.uniapp.h5.js +43 -9
- package/src/jscommon/umychart.version.js +1 -1
- package/src/jscommon/umychart.vue/umychart.vue.js +43 -9
package/package.json
CHANGED
package/src/jscommon/umychart.js
CHANGED
|
@@ -772,6 +772,7 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
|
|
|
772
772
|
if (IFrameSplitOperator.IsBool(item.MaxMin)) chart.Frame.SubFrame[i].Frame.MaxMinWindow=item.MaxMin;
|
|
773
773
|
if (IFrameSplitOperator.IsBool(item.TitleWindow)) chart.Frame.SubFrame[i].Frame.TitleWindow=item.TitleWindow;
|
|
774
774
|
if (IFrameSplitOperator.IsBool(item.AddIndexWindow)) frame.AddIndexWindow=item.AddIndexWindow;
|
|
775
|
+
if (IFrameSplitOperator.IsBool(item.IndexHelp)) frame.IndexHelp=item.IndexHelp;
|
|
775
776
|
|
|
776
777
|
if (item.IsDrawTitleBG==true) chart.Frame.SubFrame[i].Frame.IsDrawTitleBG=item.IsDrawTitleBG;
|
|
777
778
|
if (IFrameSplitOperator.IsBool(item.IsShowNameArrow)) chart.Frame.SubFrame[i].Frame.IsShowNameArrow=item.IsShowNameArrow;
|
|
@@ -1327,6 +1328,7 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
|
|
|
1327
1328
|
if (IFrameSplitOperator.IsBool(item.MaxMin)) frame.MaxMinWindow=item.MaxMin;
|
|
1328
1329
|
if (IFrameSplitOperator.IsBool(item.TitleWindow)) frame.TitleWindow=item.TitleWindow;
|
|
1329
1330
|
if (IFrameSplitOperator.IsBool(item.AddIndexWindow)) frame.AddIndexWindow=item.AddIndexWindow;
|
|
1331
|
+
if (IFrameSplitOperator.IsBool(item.IndexHelp)) frame.IndexHelp=item.IndexHelp;
|
|
1330
1332
|
|
|
1331
1333
|
if (IFrameSplitOperator.IsNumber(item.YSplitType)) chart.Frame.SubFrame[index].Frame.YSplitOperator.SplitType=item.YSplitType;
|
|
1332
1334
|
if (IFrameSplitOperator.IsNumber(item.FilterType)) chart.Frame.SubFrame[index].Frame.YSplitOperator.FilterType=item.FilterType;
|
|
@@ -2980,6 +2982,7 @@ var JSCHART_BUTTON_ID=
|
|
|
2980
2982
|
ADD_INDEX_WINDOW:44, //增加指标窗口
|
|
2981
2983
|
|
|
2982
2984
|
CHIP_CLOSE:45, //关闭筹码图
|
|
2985
|
+
INDEX_HELP:46, //指标帮助
|
|
2983
2986
|
}
|
|
2984
2987
|
|
|
2985
2988
|
var JSCHART_DATA_FIELD_ID=
|
|
@@ -10317,6 +10320,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
10317
10320
|
if (IFrameSplitOperator.IsBool(windowItem.Close)) frame.CloseIndex=windowItem.Close;
|
|
10318
10321
|
if (IFrameSplitOperator.IsBool(windowItem.Overlay)) frame.OverlayIndex=windowItem.Overlay;
|
|
10319
10322
|
if (IFrameSplitOperator.IsBool(windowItem.AddIndexWindow)) frame.AddIndexWindow=windowItem.AddIndexWindow;
|
|
10323
|
+
if (IFrameSplitOperator.IsBool(windowItem.IndexHelp)) frame.IndexHelp=windowItem.IndexHelp;
|
|
10320
10324
|
|
|
10321
10325
|
if (IFrameSplitOperator.IsBool(windowItem.IsDrawTitleBG)) frame.IsDrawTitleBG=windowItem.IsDrawTitleBG;
|
|
10322
10326
|
|
|
@@ -10380,6 +10384,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
10380
10384
|
if (IFrameSplitOperator.IsBool(item.MaxMin)) frame.MaxMinWindow=item.MaxMin;
|
|
10381
10385
|
if (IFrameSplitOperator.IsBool(item.TitleWindow)) frame.TitleWindow=item.TitleWindow;
|
|
10382
10386
|
if (IFrameSplitOperator.IsBool(item.AddIndexWindow)) frame.AddIndexWindow=item.AddIndexWindow;
|
|
10387
|
+
if (IFrameSplitOperator.IsBool(item.IndexHelp)) frame.IndexHelp=item.IndexHelp;
|
|
10383
10388
|
|
|
10384
10389
|
if (IFrameSplitOperator.IsBool(item.IsDrawTitleBG)) frame.IsDrawTitleBG=item.IsDrawTitleBG;
|
|
10385
10390
|
if (IFrameSplitOperator.IsBool(item.IsShowNameArrow)) frame.IsShowNameArrow=item.IsShowNameArrow;
|
|
@@ -13591,6 +13596,7 @@ function AverageWidthFrame()
|
|
|
13591
13596
|
this.TitleWindowButton=CloneData(g_JSChartResource.Buttons.TitleWindow);
|
|
13592
13597
|
this.ExportDataButton=CloneData(g_JSChartResource.Buttons.ExportData);
|
|
13593
13598
|
this.AddIndexWindowButton=CloneData(g_JSChartResource.Buttons.AddIndexWindow);
|
|
13599
|
+
this.IndexHelpButton=CloneData(g_JSChartResource.Buttons.IndexHelp);
|
|
13594
13600
|
|
|
13595
13601
|
this.ButtonTooltip=CloneData(g_JSChartResource.Buttons.Tooltip);
|
|
13596
13602
|
|
|
@@ -13629,6 +13635,7 @@ function AverageWidthFrame()
|
|
|
13629
13635
|
this.TitleWindowButton=CloneData(g_JSChartResource.Buttons.TitleWindow);
|
|
13630
13636
|
this.ButtonTooltip=CloneData(g_JSChartResource.Buttons.Tooltip);
|
|
13631
13637
|
this.AddIndexWindowButton=CloneData(g_JSChartResource.Buttons.AddIndexWindow);
|
|
13638
|
+
this.IndexHelpButton=CloneData(g_JSChartResource.Buttons.IndexHelp);
|
|
13632
13639
|
}
|
|
13633
13640
|
|
|
13634
13641
|
if (this.DivFrameToolbar) this.DivFrameToolbar.ReloadResource(resource);
|
|
@@ -16284,6 +16291,7 @@ function MinuteFrame()
|
|
|
16284
16291
|
this.ExportData=g_JSChartResource.MinuteToolbar.ExportData; //是否显示'导出数据'菜单
|
|
16285
16292
|
this.OverlayIndex=g_JSChartResource.MinuteToolbar.OverlayIndex; //是否显示叠加指标
|
|
16286
16293
|
this.AddIndexWindow=g_JSChartResource.MinuteToolbar.AddIndexWindow; //是否显示'增加指标窗口'菜单
|
|
16294
|
+
this.IndexHelp=g_JSChartResource.MinuteToolbar.IndexHelp;
|
|
16287
16295
|
|
|
16288
16296
|
this.IsShowPositionTitle=false; //是否显示持仓标题
|
|
16289
16297
|
|
|
@@ -16440,6 +16448,7 @@ function MinuteFrame()
|
|
|
16440
16448
|
if (this.ChangeIndex) aryButton.push( { ID:JSCHART_BUTTON_ID.CHANGE_INDEX, Style:this.ChangeIndexButton });
|
|
16441
16449
|
if (this.ModifyIndex) aryButton.push( { ID:JSCHART_BUTTON_ID.MODIFY_INDEX_PARAM, Style:this.ModifyIndexParamButton });
|
|
16442
16450
|
if (this.AddIndexWindow) aryButton.push({ ID:JSCHART_BUTTON_ID.ADD_INDEX_WINDOW, Style:this.AddIndexWindowButton} );
|
|
16451
|
+
if (this.IndexHelp) aryButton.push({ ID:JSCHART_BUTTON_ID.INDEX_HELP, Style:this.IndexHelpButton} );
|
|
16443
16452
|
}
|
|
16444
16453
|
|
|
16445
16454
|
if (IFrameSplitOperator.IsNonEmptyArray(this.CustomToolbar))
|
|
@@ -18608,6 +18617,7 @@ function KLineFrame()
|
|
|
18608
18617
|
this.TitleWindow=g_JSChartResource.KLineToolbar.TitleWindow;
|
|
18609
18618
|
this.ExportData=g_JSChartResource.KLineToolbar.ExportData; //是否显示'导出数据'菜单
|
|
18610
18619
|
this.AddIndexWindow=g_JSChartResource.KLineToolbar.AddIndexWindow; //是否显示'增加指标窗口'菜单
|
|
18620
|
+
this.IndexHelp=g_JSChartResource.KLineToolbar.IndexHelp;
|
|
18611
18621
|
|
|
18612
18622
|
this.SelBorderColor=g_JSChartResource.SelFrameBorderColor;
|
|
18613
18623
|
|
|
@@ -18807,6 +18817,7 @@ function KLineFrame()
|
|
|
18807
18817
|
if (this.ChangeIndex) aryButton.push( { ID:JSCHART_BUTTON_ID.CHANGE_INDEX, Style:this.ChangeIndexButton });
|
|
18808
18818
|
if (this.ModifyIndex) aryButton.push( { ID:JSCHART_BUTTON_ID.MODIFY_INDEX_PARAM, Style:this.ModifyIndexParamButton });
|
|
18809
18819
|
if (this.AddIndexWindow) aryButton.push({ ID:JSCHART_BUTTON_ID.ADD_INDEX_WINDOW, Style:this.AddIndexWindowButton} );
|
|
18820
|
+
if (this.IndexHelp) aryButton.push({ ID:JSCHART_BUTTON_ID.INDEX_HELP, Style:this.IndexHelpButton} );
|
|
18810
18821
|
|
|
18811
18822
|
if (IFrameSplitOperator.IsNonEmptyArray(this.CustomToolbar))
|
|
18812
18823
|
{
|
|
@@ -47738,6 +47749,7 @@ function ChartLock()
|
|
|
47738
47749
|
}
|
|
47739
47750
|
|
|
47740
47751
|
var xOffset = this.ChartBorder.GetRight();
|
|
47752
|
+
var border=this.ChartBorder.GetBorder();
|
|
47741
47753
|
var lOffsetWidth = 0;
|
|
47742
47754
|
if (this.ChartFrame.Data != null)
|
|
47743
47755
|
{
|
|
@@ -47764,7 +47776,6 @@ function ChartLock()
|
|
|
47764
47776
|
var lLeft = xOffset - lOffsetWidth;
|
|
47765
47777
|
if (lLeft < this.ChartBorder.GetLeft())
|
|
47766
47778
|
lLeft = this.ChartBorder.GetLeft();
|
|
47767
|
-
var lHeight = this.ChartBorder.GetBottom() - this.ChartBorder.GetTop();
|
|
47768
47779
|
var lWidth = this.ChartBorder.GetRight() - lLeft;
|
|
47769
47780
|
|
|
47770
47781
|
if (this.MinWidth>10 && lWidth<this.MinWidth)
|
|
@@ -47774,19 +47785,19 @@ function ChartLock()
|
|
|
47774
47785
|
if (lLeft < this.ChartBorder.GetLeft()) lLeft = this.ChartBorder.GetLeft();
|
|
47775
47786
|
}
|
|
47776
47787
|
|
|
47788
|
+
var rtBG={ Left:lLeft, Top:border.TopTitle, Bottom:border.Bottom, Width:lWidth };
|
|
47789
|
+
rtBG.Right=rtBG.Width+rtBG.Left;
|
|
47790
|
+
rtBG.Height=rtBG.Bottom-rtBG.Top;
|
|
47791
|
+
|
|
47777
47792
|
if (isDraw)
|
|
47778
47793
|
{
|
|
47779
|
-
var rtBG={ Left:lLeft, Top:this.ChartBorder.GetTop(), Width:lWidth, Height:lHeight };
|
|
47780
|
-
rtBG.Right=rtBG.Width+rtBG.Left;
|
|
47781
|
-
rtBG.Bottom=rtBG.Height+rtBG.Top;
|
|
47782
|
-
|
|
47783
47794
|
//上下渐变
|
|
47784
47795
|
var bgColor=this.SetFillStyle(this.BGColor, rtBG.Left, rtBG.Top, rtBG.Left, rtBG.Bottom);
|
|
47785
47796
|
this.Canvas.fillStyle =bgColor;
|
|
47786
47797
|
this.Canvas.fillRect(rtBG.Left, rtBG.Top, rtBG.Width, rtBG.Height);
|
|
47787
47798
|
|
|
47788
47799
|
var xCenter = rtBG.Left + rtBG.Width / 2;
|
|
47789
|
-
var yCenter = rtBG.Top +
|
|
47800
|
+
var yCenter = rtBG.Top + rtBG.Height / 2;
|
|
47790
47801
|
this.Canvas.textAlign = 'center';
|
|
47791
47802
|
this.Canvas.textBaseline = 'middle';
|
|
47792
47803
|
this.Canvas.fillStyle = this.TextColor;
|
|
@@ -47794,7 +47805,7 @@ function ChartLock()
|
|
|
47794
47805
|
this.Canvas.fillText(this.Title, xCenter, yCenter);
|
|
47795
47806
|
}
|
|
47796
47807
|
|
|
47797
|
-
this.LockRect=
|
|
47808
|
+
this.LockRect=rtBG; //保存上锁区域
|
|
47798
47809
|
}
|
|
47799
47810
|
|
|
47800
47811
|
this.HScreenDraw=function(isDraw)
|
|
@@ -47855,7 +47866,7 @@ function ChartLock()
|
|
|
47855
47866
|
if (this.LockRect==null) return false;
|
|
47856
47867
|
|
|
47857
47868
|
this.Canvas.beginPath();
|
|
47858
|
-
this.Canvas.rect(this.LockRect.Left,this.LockRect.Top,this.LockRect.Width,this.LockRect.
|
|
47869
|
+
this.Canvas.rect(this.LockRect.Left,this.LockRect.Top,this.LockRect.Width,this.LockRect.Height);
|
|
47859
47870
|
if (this.Canvas.isPointInPath(x,y))
|
|
47860
47871
|
{
|
|
47861
47872
|
tooltip.Data={ ID:this.LockID, Callback:this.Callback, IndexName:this.IndexName, IndexID:this.IndexID };
|
|
@@ -76785,6 +76796,7 @@ function JSChartResource()
|
|
|
76785
76796
|
TitleWindow:true, //标题模式
|
|
76786
76797
|
ExportData:false, //数据导出
|
|
76787
76798
|
AddIndexWindow:false, //增加指标窗口
|
|
76799
|
+
IndexHelp:false, //指标帮助
|
|
76788
76800
|
|
|
76789
76801
|
IsShowOverlayToolbar:true, //是否显示叠加坐标工具栏按钮
|
|
76790
76802
|
IsShowOverlayFrame:true, //是否显示右侧叠加坐标
|
|
@@ -76801,6 +76813,7 @@ function JSChartResource()
|
|
|
76801
76813
|
TitleWindow:true, //标题模式
|
|
76802
76814
|
ExportData:false, //数据导出
|
|
76803
76815
|
AddIndexWindow:false, //增加指标窗口
|
|
76816
|
+
IndexHelp:false, //指标帮助
|
|
76804
76817
|
}
|
|
76805
76818
|
|
|
76806
76819
|
this.TooltipBGColor="rgb(255, 255, 255)"; //背景色
|
|
@@ -77405,6 +77418,16 @@ function JSChartResource()
|
|
|
77405
77418
|
MerginLeft:4
|
|
77406
77419
|
},
|
|
77407
77420
|
|
|
77421
|
+
IndexHelp:
|
|
77422
|
+
{
|
|
77423
|
+
Color:"rgb(0,0,0)",
|
|
77424
|
+
MoveOnColor:'rgb(30,144,255)',
|
|
77425
|
+
Family:"iconfont",
|
|
77426
|
+
Text:"\ue6ca",
|
|
77427
|
+
Size:13*GetDevicePixelRatio(),
|
|
77428
|
+
MerginLeft:4
|
|
77429
|
+
},
|
|
77430
|
+
|
|
77408
77431
|
Tooltip:
|
|
77409
77432
|
{
|
|
77410
77433
|
Font:13*GetDevicePixelRatio() +"px 微软雅黑",
|
|
@@ -79307,6 +79330,8 @@ function JSChartResource()
|
|
|
79307
79330
|
T_SetButtonStyle(buttons.TitleWindow, this.Buttons.TitleWindow);
|
|
79308
79331
|
T_SetButtonStyle(buttons.ExportData, this.Buttons.ExportData);
|
|
79309
79332
|
T_SetButtonStyle(buttons.AddIndexWindow, this.Buttons.AddIndexWindow);
|
|
79333
|
+
T_SetButtonStyle(buttons.IndexHelp, this.Buttons.IndexHelp);
|
|
79334
|
+
|
|
79310
79335
|
|
|
79311
79336
|
if (buttons.Tooltip)
|
|
79312
79337
|
{
|
|
@@ -80106,6 +80131,7 @@ function JSChartResource()
|
|
|
80106
80131
|
if (IFrameSplitOperator.IsBool(style.TitleWindow)) dest.ModifyIndex=style.TitleWindow;
|
|
80107
80132
|
if (IFrameSplitOperator.IsBool(style.ExportData)) dest.ModifyIndex=style.ExportData;
|
|
80108
80133
|
if (IFrameSplitOperator.IsBool(style.AddIndexWindow)) dest.AddIndexWindow=style.AddIndexWindow;
|
|
80134
|
+
if (IFrameSplitOperator.IsBool(style.IndexHelp)) dest.IndexHelp=style.IndexHelp;
|
|
80109
80135
|
|
|
80110
80136
|
if (IFrameSplitOperator.IsBool(style.IsShowOverlayToolbar)) dest.IsShowOverlayToolbar=style.IsShowOverlayToolbar;
|
|
80111
80137
|
if (IFrameSplitOperator.IsBool(style.IsShowOverlayFrame)) dest.IsShowOverlayFrame=style.IsShowOverlayFrame;
|
|
@@ -80123,6 +80149,7 @@ function JSChartResource()
|
|
|
80123
80149
|
if (IFrameSplitOperator.IsBool(style.TitleWindow)) dest.ModifyIndex=style.TitleWindow;
|
|
80124
80150
|
if (IFrameSplitOperator.IsBool(style.ExportData)) dest.ModifyIndex=style.ExportData;
|
|
80125
80151
|
if (IFrameSplitOperator.IsBool(style.AddIndexWindow)) dest.AddIndexWindow=style.AddIndexWindow;
|
|
80152
|
+
if (IFrameSplitOperator.IsBool(style.IndexHelp)) dest.IndexHelp=style.IndexHelp;
|
|
80126
80153
|
}
|
|
80127
80154
|
|
|
80128
80155
|
|
|
@@ -80458,6 +80485,7 @@ function JSChartLocalization()
|
|
|
80458
80485
|
["Toolbar-"+JSCHART_BUTTON_ID.TITLE_WINDOW, {CN:"折叠窗口", EN:"Collapse window", TC:"折叠窗口"}],
|
|
80459
80486
|
["Toolbar-"+JSCHART_BUTTON_ID.EXPORT_DATA, {CN:"数据导出", EN:"Export data", TC:"数据导出"}],
|
|
80460
80487
|
["Toolbar-"+JSCHART_BUTTON_ID.ADD_INDEX_WINDOW, {CN:"增加指标窗口", EN:"Add index window", TC:"增加指标窗口"}],
|
|
80488
|
+
["Toolbar-"+JSCHART_BUTTON_ID.INDEX_HELP, {CN:"指标帮助", EN:"Help", TC:"指标帮助"}],
|
|
80461
80489
|
|
|
80462
80490
|
["Toolbar-"+JSCHART_BUTTON_ID.CLOSE_BEFOREOPEN_ID, {CN:"关闭集合竞价", EN:"Close call auction", TC:"关闭集合竞价"}],
|
|
80463
80491
|
["Toolbar-"+JSCHART_BUTTON_ID.CLOSE_OVERLAY_INDEX, {CN:"关闭叠加指标", EN:"Delte overlay indicator", TC:"关闭叠加指标"}],
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@font-face {
|
|
2
2
|
font-family: "iconfont"; /* Project id 1040563 */
|
|
3
|
-
src: url('iconfont.woff2?t=
|
|
4
|
-
url('iconfont.woff?t=
|
|
5
|
-
url('iconfont.ttf?t=
|
|
3
|
+
src: url('iconfont.woff2?t=1755154065744') format('woff2'),
|
|
4
|
+
url('iconfont.woff?t=1755154065744') format('woff'),
|
|
5
|
+
url('iconfont.ttf?t=1755154065744') format('truetype');
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.iconfont {
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
-moz-osx-font-smoothing: grayscale;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
.icon-help:before {
|
|
17
|
+
content: "\e6ca";
|
|
18
|
+
}
|
|
19
|
+
|
|
16
20
|
.icon-tubiaoBchuang:before {
|
|
17
21
|
content: "\e6c9";
|
|
18
22
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -4868,6 +4868,7 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
|
|
|
4868
4868
|
if (IFrameSplitOperator.IsBool(item.MaxMin)) chart.Frame.SubFrame[i].Frame.MaxMinWindow=item.MaxMin;
|
|
4869
4869
|
if (IFrameSplitOperator.IsBool(item.TitleWindow)) chart.Frame.SubFrame[i].Frame.TitleWindow=item.TitleWindow;
|
|
4870
4870
|
if (IFrameSplitOperator.IsBool(item.AddIndexWindow)) frame.AddIndexWindow=item.AddIndexWindow;
|
|
4871
|
+
if (IFrameSplitOperator.IsBool(item.IndexHelp)) frame.IndexHelp=item.IndexHelp;
|
|
4871
4872
|
|
|
4872
4873
|
if (item.IsDrawTitleBG==true) chart.Frame.SubFrame[i].Frame.IsDrawTitleBG=item.IsDrawTitleBG;
|
|
4873
4874
|
if (IFrameSplitOperator.IsBool(item.IsShowNameArrow)) chart.Frame.SubFrame[i].Frame.IsShowNameArrow=item.IsShowNameArrow;
|
|
@@ -5423,6 +5424,7 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
|
|
|
5423
5424
|
if (IFrameSplitOperator.IsBool(item.MaxMin)) frame.MaxMinWindow=item.MaxMin;
|
|
5424
5425
|
if (IFrameSplitOperator.IsBool(item.TitleWindow)) frame.TitleWindow=item.TitleWindow;
|
|
5425
5426
|
if (IFrameSplitOperator.IsBool(item.AddIndexWindow)) frame.AddIndexWindow=item.AddIndexWindow;
|
|
5427
|
+
if (IFrameSplitOperator.IsBool(item.IndexHelp)) frame.IndexHelp=item.IndexHelp;
|
|
5426
5428
|
|
|
5427
5429
|
if (IFrameSplitOperator.IsNumber(item.YSplitType)) chart.Frame.SubFrame[index].Frame.YSplitOperator.SplitType=item.YSplitType;
|
|
5428
5430
|
if (IFrameSplitOperator.IsNumber(item.FilterType)) chart.Frame.SubFrame[index].Frame.YSplitOperator.FilterType=item.FilterType;
|
|
@@ -7076,6 +7078,7 @@ var JSCHART_BUTTON_ID=
|
|
|
7076
7078
|
ADD_INDEX_WINDOW:44, //增加指标窗口
|
|
7077
7079
|
|
|
7078
7080
|
CHIP_CLOSE:45, //关闭筹码图
|
|
7081
|
+
INDEX_HELP:46, //指标帮助
|
|
7079
7082
|
}
|
|
7080
7083
|
|
|
7081
7084
|
var JSCHART_DATA_FIELD_ID=
|
|
@@ -14413,6 +14416,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
14413
14416
|
if (IFrameSplitOperator.IsBool(windowItem.Close)) frame.CloseIndex=windowItem.Close;
|
|
14414
14417
|
if (IFrameSplitOperator.IsBool(windowItem.Overlay)) frame.OverlayIndex=windowItem.Overlay;
|
|
14415
14418
|
if (IFrameSplitOperator.IsBool(windowItem.AddIndexWindow)) frame.AddIndexWindow=windowItem.AddIndexWindow;
|
|
14419
|
+
if (IFrameSplitOperator.IsBool(windowItem.IndexHelp)) frame.IndexHelp=windowItem.IndexHelp;
|
|
14416
14420
|
|
|
14417
14421
|
if (IFrameSplitOperator.IsBool(windowItem.IsDrawTitleBG)) frame.IsDrawTitleBG=windowItem.IsDrawTitleBG;
|
|
14418
14422
|
|
|
@@ -14476,6 +14480,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
14476
14480
|
if (IFrameSplitOperator.IsBool(item.MaxMin)) frame.MaxMinWindow=item.MaxMin;
|
|
14477
14481
|
if (IFrameSplitOperator.IsBool(item.TitleWindow)) frame.TitleWindow=item.TitleWindow;
|
|
14478
14482
|
if (IFrameSplitOperator.IsBool(item.AddIndexWindow)) frame.AddIndexWindow=item.AddIndexWindow;
|
|
14483
|
+
if (IFrameSplitOperator.IsBool(item.IndexHelp)) frame.IndexHelp=item.IndexHelp;
|
|
14479
14484
|
|
|
14480
14485
|
if (IFrameSplitOperator.IsBool(item.IsDrawTitleBG)) frame.IsDrawTitleBG=item.IsDrawTitleBG;
|
|
14481
14486
|
if (IFrameSplitOperator.IsBool(item.IsShowNameArrow)) frame.IsShowNameArrow=item.IsShowNameArrow;
|
|
@@ -17687,6 +17692,7 @@ function AverageWidthFrame()
|
|
|
17687
17692
|
this.TitleWindowButton=CloneData(g_JSChartResource.Buttons.TitleWindow);
|
|
17688
17693
|
this.ExportDataButton=CloneData(g_JSChartResource.Buttons.ExportData);
|
|
17689
17694
|
this.AddIndexWindowButton=CloneData(g_JSChartResource.Buttons.AddIndexWindow);
|
|
17695
|
+
this.IndexHelpButton=CloneData(g_JSChartResource.Buttons.IndexHelp);
|
|
17690
17696
|
|
|
17691
17697
|
this.ButtonTooltip=CloneData(g_JSChartResource.Buttons.Tooltip);
|
|
17692
17698
|
|
|
@@ -17725,6 +17731,7 @@ function AverageWidthFrame()
|
|
|
17725
17731
|
this.TitleWindowButton=CloneData(g_JSChartResource.Buttons.TitleWindow);
|
|
17726
17732
|
this.ButtonTooltip=CloneData(g_JSChartResource.Buttons.Tooltip);
|
|
17727
17733
|
this.AddIndexWindowButton=CloneData(g_JSChartResource.Buttons.AddIndexWindow);
|
|
17734
|
+
this.IndexHelpButton=CloneData(g_JSChartResource.Buttons.IndexHelp);
|
|
17728
17735
|
}
|
|
17729
17736
|
|
|
17730
17737
|
if (this.DivFrameToolbar) this.DivFrameToolbar.ReloadResource(resource);
|
|
@@ -20380,6 +20387,7 @@ function MinuteFrame()
|
|
|
20380
20387
|
this.ExportData=g_JSChartResource.MinuteToolbar.ExportData; //是否显示'导出数据'菜单
|
|
20381
20388
|
this.OverlayIndex=g_JSChartResource.MinuteToolbar.OverlayIndex; //是否显示叠加指标
|
|
20382
20389
|
this.AddIndexWindow=g_JSChartResource.MinuteToolbar.AddIndexWindow; //是否显示'增加指标窗口'菜单
|
|
20390
|
+
this.IndexHelp=g_JSChartResource.MinuteToolbar.IndexHelp;
|
|
20383
20391
|
|
|
20384
20392
|
this.IsShowPositionTitle=false; //是否显示持仓标题
|
|
20385
20393
|
|
|
@@ -20536,6 +20544,7 @@ function MinuteFrame()
|
|
|
20536
20544
|
if (this.ChangeIndex) aryButton.push( { ID:JSCHART_BUTTON_ID.CHANGE_INDEX, Style:this.ChangeIndexButton });
|
|
20537
20545
|
if (this.ModifyIndex) aryButton.push( { ID:JSCHART_BUTTON_ID.MODIFY_INDEX_PARAM, Style:this.ModifyIndexParamButton });
|
|
20538
20546
|
if (this.AddIndexWindow) aryButton.push({ ID:JSCHART_BUTTON_ID.ADD_INDEX_WINDOW, Style:this.AddIndexWindowButton} );
|
|
20547
|
+
if (this.IndexHelp) aryButton.push({ ID:JSCHART_BUTTON_ID.INDEX_HELP, Style:this.IndexHelpButton} );
|
|
20539
20548
|
}
|
|
20540
20549
|
|
|
20541
20550
|
if (IFrameSplitOperator.IsNonEmptyArray(this.CustomToolbar))
|
|
@@ -22704,6 +22713,7 @@ function KLineFrame()
|
|
|
22704
22713
|
this.TitleWindow=g_JSChartResource.KLineToolbar.TitleWindow;
|
|
22705
22714
|
this.ExportData=g_JSChartResource.KLineToolbar.ExportData; //是否显示'导出数据'菜单
|
|
22706
22715
|
this.AddIndexWindow=g_JSChartResource.KLineToolbar.AddIndexWindow; //是否显示'增加指标窗口'菜单
|
|
22716
|
+
this.IndexHelp=g_JSChartResource.KLineToolbar.IndexHelp;
|
|
22707
22717
|
|
|
22708
22718
|
this.SelBorderColor=g_JSChartResource.SelFrameBorderColor;
|
|
22709
22719
|
|
|
@@ -22903,6 +22913,7 @@ function KLineFrame()
|
|
|
22903
22913
|
if (this.ChangeIndex) aryButton.push( { ID:JSCHART_BUTTON_ID.CHANGE_INDEX, Style:this.ChangeIndexButton });
|
|
22904
22914
|
if (this.ModifyIndex) aryButton.push( { ID:JSCHART_BUTTON_ID.MODIFY_INDEX_PARAM, Style:this.ModifyIndexParamButton });
|
|
22905
22915
|
if (this.AddIndexWindow) aryButton.push({ ID:JSCHART_BUTTON_ID.ADD_INDEX_WINDOW, Style:this.AddIndexWindowButton} );
|
|
22916
|
+
if (this.IndexHelp) aryButton.push({ ID:JSCHART_BUTTON_ID.INDEX_HELP, Style:this.IndexHelpButton} );
|
|
22906
22917
|
|
|
22907
22918
|
if (IFrameSplitOperator.IsNonEmptyArray(this.CustomToolbar))
|
|
22908
22919
|
{
|
|
@@ -51834,6 +51845,7 @@ function ChartLock()
|
|
|
51834
51845
|
}
|
|
51835
51846
|
|
|
51836
51847
|
var xOffset = this.ChartBorder.GetRight();
|
|
51848
|
+
var border=this.ChartBorder.GetBorder();
|
|
51837
51849
|
var lOffsetWidth = 0;
|
|
51838
51850
|
if (this.ChartFrame.Data != null)
|
|
51839
51851
|
{
|
|
@@ -51860,7 +51872,6 @@ function ChartLock()
|
|
|
51860
51872
|
var lLeft = xOffset - lOffsetWidth;
|
|
51861
51873
|
if (lLeft < this.ChartBorder.GetLeft())
|
|
51862
51874
|
lLeft = this.ChartBorder.GetLeft();
|
|
51863
|
-
var lHeight = this.ChartBorder.GetBottom() - this.ChartBorder.GetTop();
|
|
51864
51875
|
var lWidth = this.ChartBorder.GetRight() - lLeft;
|
|
51865
51876
|
|
|
51866
51877
|
if (this.MinWidth>10 && lWidth<this.MinWidth)
|
|
@@ -51870,19 +51881,19 @@ function ChartLock()
|
|
|
51870
51881
|
if (lLeft < this.ChartBorder.GetLeft()) lLeft = this.ChartBorder.GetLeft();
|
|
51871
51882
|
}
|
|
51872
51883
|
|
|
51884
|
+
var rtBG={ Left:lLeft, Top:border.TopTitle, Bottom:border.Bottom, Width:lWidth };
|
|
51885
|
+
rtBG.Right=rtBG.Width+rtBG.Left;
|
|
51886
|
+
rtBG.Height=rtBG.Bottom-rtBG.Top;
|
|
51887
|
+
|
|
51873
51888
|
if (isDraw)
|
|
51874
51889
|
{
|
|
51875
|
-
var rtBG={ Left:lLeft, Top:this.ChartBorder.GetTop(), Width:lWidth, Height:lHeight };
|
|
51876
|
-
rtBG.Right=rtBG.Width+rtBG.Left;
|
|
51877
|
-
rtBG.Bottom=rtBG.Height+rtBG.Top;
|
|
51878
|
-
|
|
51879
51890
|
//上下渐变
|
|
51880
51891
|
var bgColor=this.SetFillStyle(this.BGColor, rtBG.Left, rtBG.Top, rtBG.Left, rtBG.Bottom);
|
|
51881
51892
|
this.Canvas.fillStyle =bgColor;
|
|
51882
51893
|
this.Canvas.fillRect(rtBG.Left, rtBG.Top, rtBG.Width, rtBG.Height);
|
|
51883
51894
|
|
|
51884
51895
|
var xCenter = rtBG.Left + rtBG.Width / 2;
|
|
51885
|
-
var yCenter = rtBG.Top +
|
|
51896
|
+
var yCenter = rtBG.Top + rtBG.Height / 2;
|
|
51886
51897
|
this.Canvas.textAlign = 'center';
|
|
51887
51898
|
this.Canvas.textBaseline = 'middle';
|
|
51888
51899
|
this.Canvas.fillStyle = this.TextColor;
|
|
@@ -51890,7 +51901,7 @@ function ChartLock()
|
|
|
51890
51901
|
this.Canvas.fillText(this.Title, xCenter, yCenter);
|
|
51891
51902
|
}
|
|
51892
51903
|
|
|
51893
|
-
this.LockRect=
|
|
51904
|
+
this.LockRect=rtBG; //保存上锁区域
|
|
51894
51905
|
}
|
|
51895
51906
|
|
|
51896
51907
|
this.HScreenDraw=function(isDraw)
|
|
@@ -51951,7 +51962,7 @@ function ChartLock()
|
|
|
51951
51962
|
if (this.LockRect==null) return false;
|
|
51952
51963
|
|
|
51953
51964
|
this.Canvas.beginPath();
|
|
51954
|
-
this.Canvas.rect(this.LockRect.Left,this.LockRect.Top,this.LockRect.Width,this.LockRect.
|
|
51965
|
+
this.Canvas.rect(this.LockRect.Left,this.LockRect.Top,this.LockRect.Width,this.LockRect.Height);
|
|
51955
51966
|
if (this.Canvas.isPointInPath(x,y))
|
|
51956
51967
|
{
|
|
51957
51968
|
tooltip.Data={ ID:this.LockID, Callback:this.Callback, IndexName:this.IndexName, IndexID:this.IndexID };
|
|
@@ -80881,6 +80892,7 @@ function JSChartResource()
|
|
|
80881
80892
|
TitleWindow:true, //标题模式
|
|
80882
80893
|
ExportData:false, //数据导出
|
|
80883
80894
|
AddIndexWindow:false, //增加指标窗口
|
|
80895
|
+
IndexHelp:false, //指标帮助
|
|
80884
80896
|
|
|
80885
80897
|
IsShowOverlayToolbar:true, //是否显示叠加坐标工具栏按钮
|
|
80886
80898
|
IsShowOverlayFrame:true, //是否显示右侧叠加坐标
|
|
@@ -80897,6 +80909,7 @@ function JSChartResource()
|
|
|
80897
80909
|
TitleWindow:true, //标题模式
|
|
80898
80910
|
ExportData:false, //数据导出
|
|
80899
80911
|
AddIndexWindow:false, //增加指标窗口
|
|
80912
|
+
IndexHelp:false, //指标帮助
|
|
80900
80913
|
}
|
|
80901
80914
|
|
|
80902
80915
|
this.TooltipBGColor="rgb(255, 255, 255)"; //背景色
|
|
@@ -81501,6 +81514,16 @@ function JSChartResource()
|
|
|
81501
81514
|
MerginLeft:4
|
|
81502
81515
|
},
|
|
81503
81516
|
|
|
81517
|
+
IndexHelp:
|
|
81518
|
+
{
|
|
81519
|
+
Color:"rgb(0,0,0)",
|
|
81520
|
+
MoveOnColor:'rgb(30,144,255)',
|
|
81521
|
+
Family:"iconfont",
|
|
81522
|
+
Text:"\ue6ca",
|
|
81523
|
+
Size:13*GetDevicePixelRatio(),
|
|
81524
|
+
MerginLeft:4
|
|
81525
|
+
},
|
|
81526
|
+
|
|
81504
81527
|
Tooltip:
|
|
81505
81528
|
{
|
|
81506
81529
|
Font:13*GetDevicePixelRatio() +"px 微软雅黑",
|
|
@@ -83403,6 +83426,8 @@ function JSChartResource()
|
|
|
83403
83426
|
T_SetButtonStyle(buttons.TitleWindow, this.Buttons.TitleWindow);
|
|
83404
83427
|
T_SetButtonStyle(buttons.ExportData, this.Buttons.ExportData);
|
|
83405
83428
|
T_SetButtonStyle(buttons.AddIndexWindow, this.Buttons.AddIndexWindow);
|
|
83429
|
+
T_SetButtonStyle(buttons.IndexHelp, this.Buttons.IndexHelp);
|
|
83430
|
+
|
|
83406
83431
|
|
|
83407
83432
|
if (buttons.Tooltip)
|
|
83408
83433
|
{
|
|
@@ -84202,6 +84227,7 @@ function JSChartResource()
|
|
|
84202
84227
|
if (IFrameSplitOperator.IsBool(style.TitleWindow)) dest.ModifyIndex=style.TitleWindow;
|
|
84203
84228
|
if (IFrameSplitOperator.IsBool(style.ExportData)) dest.ModifyIndex=style.ExportData;
|
|
84204
84229
|
if (IFrameSplitOperator.IsBool(style.AddIndexWindow)) dest.AddIndexWindow=style.AddIndexWindow;
|
|
84230
|
+
if (IFrameSplitOperator.IsBool(style.IndexHelp)) dest.IndexHelp=style.IndexHelp;
|
|
84205
84231
|
|
|
84206
84232
|
if (IFrameSplitOperator.IsBool(style.IsShowOverlayToolbar)) dest.IsShowOverlayToolbar=style.IsShowOverlayToolbar;
|
|
84207
84233
|
if (IFrameSplitOperator.IsBool(style.IsShowOverlayFrame)) dest.IsShowOverlayFrame=style.IsShowOverlayFrame;
|
|
@@ -84219,6 +84245,7 @@ function JSChartResource()
|
|
|
84219
84245
|
if (IFrameSplitOperator.IsBool(style.TitleWindow)) dest.ModifyIndex=style.TitleWindow;
|
|
84220
84246
|
if (IFrameSplitOperator.IsBool(style.ExportData)) dest.ModifyIndex=style.ExportData;
|
|
84221
84247
|
if (IFrameSplitOperator.IsBool(style.AddIndexWindow)) dest.AddIndexWindow=style.AddIndexWindow;
|
|
84248
|
+
if (IFrameSplitOperator.IsBool(style.IndexHelp)) dest.IndexHelp=style.IndexHelp;
|
|
84222
84249
|
}
|
|
84223
84250
|
|
|
84224
84251
|
|
|
@@ -84554,6 +84581,7 @@ function JSChartLocalization()
|
|
|
84554
84581
|
["Toolbar-"+JSCHART_BUTTON_ID.TITLE_WINDOW, {CN:"折叠窗口", EN:"Collapse window", TC:"折叠窗口"}],
|
|
84555
84582
|
["Toolbar-"+JSCHART_BUTTON_ID.EXPORT_DATA, {CN:"数据导出", EN:"Export data", TC:"数据导出"}],
|
|
84556
84583
|
["Toolbar-"+JSCHART_BUTTON_ID.ADD_INDEX_WINDOW, {CN:"增加指标窗口", EN:"Add index window", TC:"增加指标窗口"}],
|
|
84584
|
+
["Toolbar-"+JSCHART_BUTTON_ID.INDEX_HELP, {CN:"指标帮助", EN:"Help", TC:"指标帮助"}],
|
|
84557
84585
|
|
|
84558
84586
|
["Toolbar-"+JSCHART_BUTTON_ID.CLOSE_BEFOREOPEN_ID, {CN:"关闭集合竞价", EN:"Close call auction", TC:"关闭集合竞价"}],
|
|
84559
84587
|
["Toolbar-"+JSCHART_BUTTON_ID.CLOSE_OVERLAY_INDEX, {CN:"关闭叠加指标", EN:"Delte overlay indicator", TC:"关闭叠加指标"}],
|
|
@@ -136956,6 +136984,12 @@ function GetBlackStyle()
|
|
|
136956
136984
|
Color:"rgb(156,156,156)"
|
|
136957
136985
|
},
|
|
136958
136986
|
|
|
136987
|
+
IndexHelp:
|
|
136988
|
+
{
|
|
136989
|
+
MoveOnColor:"rgb(255,255,255)",
|
|
136990
|
+
Color:"rgb(156,156,156)"
|
|
136991
|
+
},
|
|
136992
|
+
|
|
136959
136993
|
Tooltip:
|
|
136960
136994
|
{
|
|
136961
136995
|
//Font:12*GetDevicePixelRatio() +"px 微软雅黑",
|
|
@@ -153710,7 +153744,7 @@ function ScrollBarBGChart()
|
|
|
153710
153744
|
|
|
153711
153745
|
|
|
153712
153746
|
|
|
153713
|
-
var HQCHART_VERSION="1.1.
|
|
153747
|
+
var HQCHART_VERSION="1.1.15083";
|
|
153714
153748
|
|
|
153715
153749
|
function PrintHQChartVersion()
|
|
153716
153750
|
{
|