hqchart 1.1.13928 → 1.1.13944
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 +181 -165
- package/package.json +1 -1
- package/src/jscommon/umychart.DialogTooltip.js +222 -54
- package/src/jscommon/umychart.js +124 -14
- package/src/jscommon/umychart.report.js +102 -1
- package/src/jscommon/umychart.resource/css/tools.css +11 -1
- package/src/jscommon/umychart.style.js +6 -0
- package/src/jscommon/umychart.uniapp.h5/umychart.uniapp.h5.js +233 -16
- package/src/jscommon/umychart.version.js +1 -1
- package/src/jscommon/umychart.vue/umychart.vue.js +449 -64
|
@@ -5646,7 +5646,8 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
|
|
|
5646
5646
|
if (option.EnableModifyDrawDialogV2===true) chart.InitalModifyDrawDialog();
|
|
5647
5647
|
|
|
5648
5648
|
//K线tooltip
|
|
5649
|
-
if (option.
|
|
5649
|
+
if (option.TooltipDialog && option.TooltipDialog.Enable)
|
|
5650
|
+
chart.InitalTooltipDialog(option.TooltipDialog);
|
|
5650
5651
|
|
|
5651
5652
|
//注册事件
|
|
5652
5653
|
if (option.EventCallback)
|
|
@@ -6728,6 +6729,8 @@ var JSCHART_MENU_ID=
|
|
|
6728
6729
|
CMD_REPORT_COLUMN_DEL_ID:62, //报价列表 删除列
|
|
6729
6730
|
CMD_REPORT_COLUMN_MOVE_ID:63, //报价列表 列移动
|
|
6730
6731
|
CMD_REPORT_COLUMN_FILTER_ID:64, //报价列表 筛选
|
|
6732
|
+
|
|
6733
|
+
CMD_DIALOG_TOOLTIP_ATTRIBUTE:65, //修改K线信息框属性 Ary:[{ Enable:, Style:}, ]
|
|
6731
6734
|
}
|
|
6732
6735
|
|
|
6733
6736
|
|
|
@@ -6976,12 +6979,12 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
6976
6979
|
this.DialogDrawTool.Create();
|
|
6977
6980
|
}
|
|
6978
6981
|
|
|
6979
|
-
this.InitalTooltipDialog=function()
|
|
6982
|
+
this.InitalTooltipDialog=function(option)
|
|
6980
6983
|
{
|
|
6981
6984
|
if (this.DialogTooltip) return;
|
|
6982
6985
|
|
|
6983
6986
|
this.DialogTooltip=new JSDialogTooltip();
|
|
6984
|
-
this.DialogTooltip.Inital(this);
|
|
6987
|
+
this.DialogTooltip.Inital(this, option);
|
|
6985
6988
|
this.DialogTooltip.Create();
|
|
6986
6989
|
}
|
|
6987
6990
|
|
|
@@ -7055,6 +7058,14 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
7055
7058
|
this.DialogTooltip.Close();
|
|
7056
7059
|
}
|
|
7057
7060
|
|
|
7061
|
+
this.DestroyTooltipDialog=function()
|
|
7062
|
+
{
|
|
7063
|
+
if (!this.DialogTooltip) return;
|
|
7064
|
+
|
|
7065
|
+
this.DialogTooltip.Destroy();
|
|
7066
|
+
this.DialogTooltip=null;
|
|
7067
|
+
}
|
|
7068
|
+
|
|
7058
7069
|
|
|
7059
7070
|
|
|
7060
7071
|
//obj={ Element:, Canvas: }
|
|
@@ -7106,12 +7117,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
7106
7117
|
{
|
|
7107
7118
|
this.IsDestroy=true;
|
|
7108
7119
|
this.StopAutoUpdate();
|
|
7109
|
-
|
|
7110
|
-
if (this.DialogTooltip)
|
|
7111
|
-
{
|
|
7112
|
-
this.DialogTooltip.Destroy();
|
|
7113
|
-
this.DialogTooltip=null;
|
|
7114
|
-
}
|
|
7120
|
+
this.DestroyTooltipDialog();
|
|
7115
7121
|
}
|
|
7116
7122
|
|
|
7117
7123
|
this.ChartDestory=this.ChartDestroy; //老版本写错了,需要兼容下
|
|
@@ -13688,6 +13694,20 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
13688
13694
|
klineChart.InfoPosition=param;
|
|
13689
13695
|
this.Draw();
|
|
13690
13696
|
break;
|
|
13697
|
+
case JSCHART_MENU_ID.CMD_DIALOG_TOOLTIP_ATTRIBUTE:
|
|
13698
|
+
if (!aryArgs[0]) return false;
|
|
13699
|
+
var option=aryArgs[0];
|
|
13700
|
+
if (!IFrameSplitOperator.IsBool(option.Enable)) return false;
|
|
13701
|
+
if (option.Enable===false)
|
|
13702
|
+
{
|
|
13703
|
+
this.DestroyTooltipDialog();
|
|
13704
|
+
}
|
|
13705
|
+
else
|
|
13706
|
+
{
|
|
13707
|
+
this.DestroyTooltipDialog();
|
|
13708
|
+
this.InitalTooltipDialog(option);
|
|
13709
|
+
}
|
|
13710
|
+
break;
|
|
13691
13711
|
}
|
|
13692
13712
|
}
|
|
13693
13713
|
|
|
@@ -54726,6 +54746,7 @@ function ChartCorssCursor()
|
|
|
54726
54746
|
this.XRangeBGColor=g_JSChartResource.CorssCursorXRangeBGColor;
|
|
54727
54747
|
this.TextHeight=20; //文本字体高度
|
|
54728
54748
|
this.LastPoint;
|
|
54749
|
+
this.LastValue; //{ Y:{ Value:, Extend: } }
|
|
54729
54750
|
this.CursorIndex;
|
|
54730
54751
|
this.IsOnlyDrawKLine=false; //是否只能画在K线上 (手机端)
|
|
54731
54752
|
this.IsOnlyDrawMinute=false; //是否只能画在走势图价格线上
|
|
@@ -54957,6 +54978,7 @@ function ChartCorssCursor()
|
|
|
54957
54978
|
{
|
|
54958
54979
|
this.Status=0;
|
|
54959
54980
|
this.RightButton.Rect=null;
|
|
54981
|
+
this.LastValue=null;
|
|
54960
54982
|
|
|
54961
54983
|
if (!this.LastPoint) return;
|
|
54962
54984
|
|
|
@@ -55109,6 +55131,8 @@ function ChartCorssCursor()
|
|
|
55109
55131
|
var yValue=this.Frame.GetYData(y,yValueExtend);
|
|
55110
55132
|
if ( (this.IsOnlyDrawMinute || this.IsShowClose) && this.Close != null) yValue=this.Close;
|
|
55111
55133
|
|
|
55134
|
+
this.LastValue={ Y:{ Value:yValue, Extend:yValueExtend }}; //缓存十字光标对应的数值
|
|
55135
|
+
|
|
55112
55136
|
//this.StringFormatX.Value=xValue;
|
|
55113
55137
|
this.StringFormatX.Value=this.CursorIndex;
|
|
55114
55138
|
this.StringFormatX.Point={X:x, Y:y};
|
|
@@ -73439,7 +73463,8 @@ function JSChartResource()
|
|
|
73439
73463
|
Font:{ Size:15, Name:"微软雅黑"},
|
|
73440
73464
|
BarMergin:{ Top:2, Left:3, Right:3, Bottom:2 },//单元格字体
|
|
73441
73465
|
NameFont:{ Size:14, Name:"微软雅黑" },
|
|
73442
|
-
SymbolFont:{ Size:12, Name:"微软雅黑" }
|
|
73466
|
+
SymbolFont:{ Size:12, Name:"微软雅黑" },
|
|
73467
|
+
|
|
73443
73468
|
},
|
|
73444
73469
|
|
|
73445
73470
|
//固定行
|
|
@@ -73454,6 +73479,13 @@ function JSChartResource()
|
|
|
73454
73479
|
Mergin:{ Top:1, Bottom:1,Left:0, Right:0 },
|
|
73455
73480
|
},
|
|
73456
73481
|
|
|
73482
|
+
|
|
73483
|
+
NameSymbolV2:
|
|
73484
|
+
{
|
|
73485
|
+
Name:{ Size:14, Name:"微软雅黑", Color: "rgb(60,60,60)"},
|
|
73486
|
+
Symbol:{ Size:10, Name:"微软雅黑", Color: "rgb(105 105 105)"},
|
|
73487
|
+
},
|
|
73488
|
+
|
|
73457
73489
|
//涨停 跌停背景色
|
|
73458
73490
|
LimitColor:
|
|
73459
73491
|
{
|
|
@@ -74610,6 +74642,26 @@ function JSChartResource()
|
|
|
74610
74642
|
}
|
|
74611
74643
|
}
|
|
74612
74644
|
|
|
74645
|
+
if (item.NameSymbolV2)
|
|
74646
|
+
{
|
|
74647
|
+
var nameSymbol=item.NameSymbolV2;
|
|
74648
|
+
if (nameSymbol.Name)
|
|
74649
|
+
{
|
|
74650
|
+
var subItem=nameSymbol.Name;
|
|
74651
|
+
if (IFrameSplitOperator.IsNumber(subItem.Size)) this.Report.NameSymbolV2.Name.Size=subItem.Size;
|
|
74652
|
+
if (subItem.Name) this.Report.NameSymbolV2.Name.Name=subItem.Name;
|
|
74653
|
+
if (subItem.Color) this.Report.NameSymbolV2.Name.Color=subItem.Color;
|
|
74654
|
+
}
|
|
74655
|
+
|
|
74656
|
+
if (nameSymbol.Symbol)
|
|
74657
|
+
{
|
|
74658
|
+
var subItem=nameSymbol.Symbol;
|
|
74659
|
+
if (IFrameSplitOperator.IsNumber(subItem.Size)) this.Report.NameSymbolV2.Symbol.Size=subItem.Size;
|
|
74660
|
+
if (subItem.Name) this.Report.NameSymbolV2.Symbol.Name=subItem.Name;
|
|
74661
|
+
if (subItem.Color) this.Report.NameSymbolV2.Symbol.Color=subItem.Color;
|
|
74662
|
+
}
|
|
74663
|
+
}
|
|
74664
|
+
|
|
74613
74665
|
if (item.Tab)
|
|
74614
74666
|
{
|
|
74615
74667
|
var tab=item.Tab;
|
|
@@ -74967,12 +75019,14 @@ function JSChartLocalization()
|
|
|
74967
75019
|
['DialogTooltip-Exchange', {CN:'换手率', EN:'Exchange', TC:'換手'}],
|
|
74968
75020
|
['DialogTooltip-Position', {CN:'持仓量', EN:'Position', TC:'持倉'}],
|
|
74969
75021
|
['DialogTooltip-Price', {CN:'价格', EN:'Price', TC:'價格'}],
|
|
75022
|
+
['DialogTooltip-AvPrice', {CN:'均价', EN:'AVPrice:', TC:'均價'}],
|
|
74970
75023
|
['DialogTooltip-FClose', {CN:"结算价", EN:'Settlement', TC:'結算價'}],
|
|
74971
75024
|
['DialogTooltip-Amplitude', {CN:'振幅', EN:'amplitude', TC:'價格'}],
|
|
74972
75025
|
['DialogTooltip-AC-Price', {CN:'匹配价', EN:'Price', TC:'匹配價'}],
|
|
74973
75026
|
['DialogTooltip-AC-AvPrice', {CN:'匹配均价', EN:'AVPrice', TC:'匹配均價'}],
|
|
74974
75027
|
['DialogTooltip-AC-Increase', {CN:'竞价涨幅', EN:'Increase', TC:'競價漲幅'}],
|
|
74975
75028
|
['DialogTooltip-AC-Vol', {CN:'匹配量', EN:'Vol', TC:'匹配量'}],
|
|
75029
|
+
['DialogTooltip-Value', {CN:'数值', EN:'Value', TC:'数值'}],
|
|
74976
75030
|
|
|
74977
75031
|
//走势图PC tooltip
|
|
74978
75032
|
['PCTooltip-Date', {CN:'日期', EN:'Date', TC:"日期"}],
|
|
@@ -81633,6 +81687,15 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
81633
81687
|
{ Name:"样式2", Data:{ ID:JSCHART_MENU_ID.CMD_CHANGE_DRAG_RECT_SHOW_MODE_ID, Args:[1]}, Checked:1==this.ChartDragSelectRect.ShowMode },
|
|
81634
81688
|
{ Name:"样式3", Data:{ ID:JSCHART_MENU_ID.CMD_CHANGE_DRAG_RECT_SHOW_MODE_ID, Args:[2]}, Checked:2==this.ChartDragSelectRect.ShowMode },
|
|
81635
81689
|
]
|
|
81690
|
+
},
|
|
81691
|
+
{
|
|
81692
|
+
Name:"K线浮动框",
|
|
81693
|
+
SubMenu:
|
|
81694
|
+
[
|
|
81695
|
+
{ Name:"禁用", Data:{ ID:JSCHART_MENU_ID.CMD_DIALOG_TOOLTIP_ATTRIBUTE, Args:[{Enable:false}]}, Checked:!this.DialogTooltip },
|
|
81696
|
+
{ Name:"样式1", Data:{ ID:JSCHART_MENU_ID.CMD_DIALOG_TOOLTIP_ATTRIBUTE, Args:[{Enable:true, Style:0}]}, Checked:(this.DialogTooltip && this.DialogTooltip.Style===0) },
|
|
81697
|
+
{ Name:"样式2", Data:{ ID:JSCHART_MENU_ID.CMD_DIALOG_TOOLTIP_ATTRIBUTE, Args:[{Enable:true, Style:1}]}, Checked:(this.DialogTooltip && this.DialogTooltip.Style===1) },
|
|
81698
|
+
]
|
|
81636
81699
|
}
|
|
81637
81700
|
]
|
|
81638
81701
|
}
|
|
@@ -83288,6 +83351,7 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
83288
83351
|
IsShowCorss:this.ChartCorssCursor.IsShowCorss, //是否显示十字线
|
|
83289
83352
|
KItem:kItem,
|
|
83290
83353
|
Symbol:this.Symbol, Name:this.Name,
|
|
83354
|
+
LastValue:this.ChartCorssCursor.LastValue,
|
|
83291
83355
|
};
|
|
83292
83356
|
|
|
83293
83357
|
|
|
@@ -84754,11 +84818,38 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
84754
84818
|
this.MouseDrag=drag;
|
|
84755
84819
|
this.PhoneTouchInfo={ Start:{X:touches[0].clientX, Y:touches[0].clientY }, End:{ X:touches[0].clientX, Y:touches[0].clientY } };
|
|
84756
84820
|
this.SelectChartDrawPicture=null;
|
|
84821
|
+
|
|
84822
|
+
var bStartTimer=true; //长按计时开始
|
|
84823
|
+
if (this.EnableClickModel)
|
|
84824
|
+
{
|
|
84825
|
+
if (this.ClickModel.IsShowCorssCursor==true) bStartTimer=false;
|
|
84826
|
+
else bStartTimer= true;
|
|
84827
|
+
}
|
|
84828
|
+
|
|
84829
|
+
if (bStartTimer)
|
|
84830
|
+
{
|
|
84831
|
+
this.StopDragTimer();
|
|
84832
|
+
this.DragTimer = setTimeout(()=>{
|
|
84833
|
+
this.IsPress=true;
|
|
84834
|
+
if (drag.Click.X == drag.LastMove.X && drag.Click.Y == drag.LastMove.Y) //手指没有移动,出现十字光标
|
|
84835
|
+
{
|
|
84836
|
+
this.MouseDrag = null;
|
|
84837
|
+
//移动十字光标
|
|
84838
|
+
var x = drag.Click.X;
|
|
84839
|
+
var y = drag.Click.Y;
|
|
84840
|
+
if (this.EnableClickModel===true) this.ClickModel.IsShowCorssCursor=true;
|
|
84841
|
+
self.MoveCorssCursor(drag.Click,e);//移动十字光标
|
|
84842
|
+
}
|
|
84757
84843
|
|
|
84758
|
-
|
|
84759
|
-
|
|
84760
|
-
else if (this.
|
|
84761
|
-
|
|
84844
|
+
}, this.PressTime);
|
|
84845
|
+
}
|
|
84846
|
+
else if (!this.EnableClickModel)
|
|
84847
|
+
{
|
|
84848
|
+
if (this.EnableScrollUpDown==false)
|
|
84849
|
+
T_ShowCorssCursor(); //移动十字光标
|
|
84850
|
+
else if (this.IsClickShowCorssCursor)
|
|
84851
|
+
T_ShowCorssCursor();
|
|
84852
|
+
}
|
|
84762
84853
|
}
|
|
84763
84854
|
|
|
84764
84855
|
if (this.EnableZoomIndexWindow)
|
|
@@ -85305,6 +85396,15 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
85305
85396
|
]
|
|
85306
85397
|
},
|
|
85307
85398
|
|
|
85399
|
+
{
|
|
85400
|
+
Name:"K线浮动框",
|
|
85401
|
+
SubMenu:
|
|
85402
|
+
[
|
|
85403
|
+
{ Name:"禁用", Data:{ ID:JSCHART_MENU_ID.CMD_DIALOG_TOOLTIP_ATTRIBUTE, Args:[{Enable:false}]}, Checked:!this.DialogTooltip },
|
|
85404
|
+
{ Name:"样式1", Data:{ ID:JSCHART_MENU_ID.CMD_DIALOG_TOOLTIP_ATTRIBUTE, Args:[{Enable:true, Style:0}]}, Checked:(this.DialogTooltip && this.DialogTooltip.Style===0) },
|
|
85405
|
+
{ Name:"样式2", Data:{ ID:JSCHART_MENU_ID.CMD_DIALOG_TOOLTIP_ATTRIBUTE, Args:[{Enable:true, Style:1}]}, Checked:(this.DialogTooltip && this.DialogTooltip.Style===1) },
|
|
85406
|
+
]
|
|
85407
|
+
}
|
|
85308
85408
|
|
|
85309
85409
|
]
|
|
85310
85410
|
}
|
|
@@ -88463,6 +88563,15 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
88463
88563
|
|
|
88464
88564
|
this.OnTouchFinished=function()
|
|
88465
88565
|
{
|
|
88566
|
+
if (this.EnableClickModel===true)
|
|
88567
|
+
{
|
|
88568
|
+
if (this.ClickModel.IsShowCorssCursor==true && this.TouchDrawCount>0) return;
|
|
88569
|
+
|
|
88570
|
+
this.ClickModel.IsShowCorssCursor=false;
|
|
88571
|
+
this.DrawDynamicInfo();
|
|
88572
|
+
return;
|
|
88573
|
+
}
|
|
88574
|
+
|
|
88466
88575
|
if (this.CorssCursorTouchEnd===true) //手势离开十字光标消失
|
|
88467
88576
|
{
|
|
88468
88577
|
this.DrawDynamicInfo();
|
|
@@ -89091,6 +89200,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
89091
89200
|
IsShowCorss:this.ChartCorssCursor.IsShowCorss, //是否显示十字线
|
|
89092
89201
|
MinItem:minuteItem,
|
|
89093
89202
|
Symbol:this.Symbol, Name:this.Name,
|
|
89203
|
+
LastValue:this.ChartCorssCursor.LastValue,
|
|
89094
89204
|
};
|
|
89095
89205
|
|
|
89096
89206
|
|
|
@@ -125610,6 +125720,12 @@ function GetBlackStyle()
|
|
|
125610
125720
|
Text:"rgb(245,245,245)", //默认文本
|
|
125611
125721
|
},
|
|
125612
125722
|
|
|
125723
|
+
NameSymbolV2:
|
|
125724
|
+
{
|
|
125725
|
+
Name:{ Size:14, Name:"微软雅黑", Color: "rgb(250,250,250)"},
|
|
125726
|
+
Symbol:{ Size:12, Name:"微软雅黑", Color: "rgb(190, 190, 190)"},
|
|
125727
|
+
},
|
|
125728
|
+
|
|
125613
125729
|
CloseLine:
|
|
125614
125730
|
{
|
|
125615
125731
|
CloseColor:"rgb(30,144,255)",
|
|
@@ -131246,7 +131362,8 @@ var REPORT_COLUMN_ID=
|
|
|
131246
131362
|
RISING_SPEED_10M_ID:63,
|
|
131247
131363
|
RISING_SPEED_15M_ID:64,
|
|
131248
131364
|
|
|
131249
|
-
|
|
131365
|
+
SYMBOL_NAME_V2_ID:98, //单行
|
|
131366
|
+
SYMBOL_NAME_ID:99, //两行
|
|
131250
131367
|
|
|
131251
131368
|
CUSTOM_STRING_TEXT_ID:100, //自定义字符串文本
|
|
131252
131369
|
CUSTOM_NUMBER_TEXT_ID:101, //自定义数值型
|
|
@@ -131447,6 +131564,9 @@ function ChartReport()
|
|
|
131447
131564
|
this.ItemSymbolFontConfig={Size:g_JSChartResource.Report.Item.SymbolFont.Size, Name:g_JSChartResource.Report.Item.SymbolFont.Name};
|
|
131448
131565
|
this.ItemNameFontConfg={Size:g_JSChartResource.Report.Item.NameFont.Size, Name:g_JSChartResource.Report.Item.NameFont.Name};
|
|
131449
131566
|
|
|
131567
|
+
//名称+代码
|
|
131568
|
+
this.NameSymbolV2Config=CloneData(g_JSChartResource.Report.NameSymbolV2);
|
|
131569
|
+
|
|
131450
131570
|
//缓存
|
|
131451
131571
|
this.HeaderFont=12*GetDevicePixelRatio() +"px 微软雅黑";
|
|
131452
131572
|
this.SortFont=null,
|
|
@@ -131455,6 +131575,7 @@ function ChartReport()
|
|
|
131455
131575
|
this.ItemSymbolFont=12*GetDevicePixelRatio() +"px 微软雅黑";
|
|
131456
131576
|
this.ItemNameFont=15*GetDevicePixelRatio() +"px 微软雅黑";
|
|
131457
131577
|
this.ItemNameHeight=0;
|
|
131578
|
+
this.NameSymbolFont={ Symbol:null, Name:null };
|
|
131458
131579
|
this.RowCount=0; //一屏显示行数
|
|
131459
131580
|
this.HeaderHeight=0; //表头高度
|
|
131460
131581
|
this.FixedRowHeight=0; //固定行高度
|
|
@@ -131599,6 +131720,8 @@ function ChartReport()
|
|
|
131599
131720
|
if (item.TextColor) colItem.TextColor=item.TextColor;
|
|
131600
131721
|
if (item.HeaderColor) colItem.HeaderColor=item.HeaderColor;
|
|
131601
131722
|
if (item.MaxText) colItem.MaxText=item.MaxText;
|
|
131723
|
+
if (item.MaxText2) colItem.MaxText=item.MaxText2;
|
|
131724
|
+
if (IFrameSplitOperator.IsNumber(item.Space)) colItem.Space=item.Space;
|
|
131602
131725
|
if (item.ID) colItem.ID=item.ID;
|
|
131603
131726
|
if (item.FullColBGColor) colItem.FullColBGColor=item.FullColBGColor; //整列背景色
|
|
131604
131727
|
if (item.HeaderBGColor) colItem.HeaderBGColor=item.HeaderBGColor; //表头背景色
|
|
@@ -131759,6 +131882,7 @@ function ChartReport()
|
|
|
131759
131882
|
{ Type:REPORT_COLUMN_ID.NAME_ID, Title:"名称", TextAlign:"left", Width:null, TextColor:g_JSChartResource.Report.FieldColor.Name, MaxText:"擎擎擎擎0" },
|
|
131760
131883
|
{ Type:REPORT_COLUMN_ID.NAME_EX_ID, Title:"名称", TextAlign:"left", Width:null, TextColor:g_JSChartResource.Report.FieldColor.Name, MaxText:"擎擎擎擎擎擎" },
|
|
131761
131884
|
{ Type:REPORT_COLUMN_ID.SYMBOL_NAME_ID, Title:"股票名称", TextAlign:"left", Width:null, TextColor:g_JSChartResource.Report.FieldColor.Name, MaxText:"擎擎擎擎0"},
|
|
131885
|
+
{ Type:REPORT_COLUMN_ID.SYMBOL_NAME_V2_ID, Title:"名称/代码", TextAlign:"left", Width:null, TextColor:g_JSChartResource.Report.NameSymbolV2.Name.Color, MaxText:"擎擎擎擎*", MaxText2:"999999", Space:5, TextColor2:g_JSChartResource.Report.NameSymbolV2.Symbol.Color },
|
|
131762
131886
|
|
|
131763
131887
|
{ Type:REPORT_COLUMN_ID.INCREASE_ID, Title:"涨幅%", TextAlign:"right", Width:null, MaxText:"-888.88" },
|
|
131764
131888
|
{ Type:REPORT_COLUMN_ID.PRICE_ID, Title:"现价", TextAlign:"right", Width:null, MaxText:"88888.88" },
|
|
@@ -131952,6 +132076,9 @@ function ChartReport()
|
|
|
131952
132076
|
this.ItemSymbolFont=`${this.ItemSymbolFontConfig.Size*pixelRatio}px ${ this.ItemSymbolFontConfig.Name}`;
|
|
131953
132077
|
this.ItemNameFont=`${this.ItemNameFontConfg.Size*pixelRatio}px ${ this.ItemNameFontConfg.Name}`;
|
|
131954
132078
|
|
|
132079
|
+
this.NameSymbolFont.Symbol=`${this.NameSymbolV2Config.Symbol.Size*pixelRatio}px ${this.NameSymbolV2Config.Symbol.Name}`;
|
|
132080
|
+
this.NameSymbolFont.Name=`${this.ItemSymbolFontConfig.Name.Size*pixelRatio}px ${this.NameSymbolV2Config.Name.Name}`;
|
|
132081
|
+
|
|
131955
132082
|
this.RowHeight=this.GetFontHeight(this.ItemFont,"擎")+ this.ItemMergin.Top+ this.ItemMergin.Bottom;
|
|
131956
132083
|
this.FixedRowHeight=this.GetFontHeight(this.ItemFixedFont,"擎")+ this.ItemMergin.Top+ this.ItemMergin.Bottom;
|
|
131957
132084
|
this.SortFont=`${this.SortConfig.Size*pixelRatio}px ${ this.SortConfig.Family}`;
|
|
@@ -131981,6 +132108,25 @@ function ChartReport()
|
|
|
131981
132108
|
if (rowHeight>this.RowHeight) this.RowHeight=rowHeight;
|
|
131982
132109
|
if (rowHeight>this.FixedRowHeight) this.FixedRowHeight=rowHeight;
|
|
131983
132110
|
}
|
|
132111
|
+
else if (item.Type==REPORT_COLUMN_ID.SYMBOL_NAME_V2_ID) //单行显示
|
|
132112
|
+
{
|
|
132113
|
+
this.Canvas.font==this.NameSymbolFont.Name;
|
|
132114
|
+
var nameWidth=this.Canvas.measureText(item.MaxText).width;
|
|
132115
|
+
var nameHeight=this.GetFontHeight(this.ItemNameFont,"擎");
|
|
132116
|
+
|
|
132117
|
+
|
|
132118
|
+
this.Canvas.font==this.NameSymbolFont.Symbol;
|
|
132119
|
+
var symbolWidth=this.Canvas.measureText(item.MaxText2).width;
|
|
132120
|
+
var symboHeight=this.GetFontHeight(this.ItemSymbolFont,"擎");
|
|
132121
|
+
|
|
132122
|
+
this.ItemNameHeight=Math.abs(nameHeight,symboHeight);
|
|
132123
|
+
|
|
132124
|
+
var space=2;
|
|
132125
|
+
if (IFrameSplitOperator.IsNumber(item.Space)) space=item.Space;
|
|
132126
|
+
itemWidth=nameWidth+symbolWidth+space;
|
|
132127
|
+
|
|
132128
|
+
item.Width=itemWidth+4+this.ItemMergin.Left+this.ItemMergin.Right;
|
|
132129
|
+
}
|
|
131984
132130
|
else
|
|
131985
132131
|
{
|
|
131986
132132
|
if (IFrameSplitOperator.IsNumber(item.FixedWidth)) itemWidth=item.FixedWidth;
|
|
@@ -132575,6 +132721,11 @@ function ChartReport()
|
|
|
132575
132721
|
|
|
132576
132722
|
this.FormatDrawInfo(column, stock, drawInfo, data);
|
|
132577
132723
|
}
|
|
132724
|
+
else if (column.Type==REPORT_COLUMN_ID.SYMBOL_NAME_V2_ID)
|
|
132725
|
+
{
|
|
132726
|
+
this.DrawSymbolNameV2(data, column, left, top, rowType);
|
|
132727
|
+
this.FormatDrawInfo(column, stock, drawInfo, data);
|
|
132728
|
+
}
|
|
132578
132729
|
else if (column.Type==REPORT_COLUMN_ID.NAME_ID)
|
|
132579
132730
|
{
|
|
132580
132731
|
if (stock && stock.Name)
|
|
@@ -133025,6 +133176,72 @@ function ChartReport()
|
|
|
133025
133176
|
this.Canvas.font=this.ItemFont; //还原字体
|
|
133026
133177
|
}
|
|
133027
133178
|
|
|
133179
|
+
this.DrawSymbolNameV2=function(data, column, left, top, rowType)
|
|
133180
|
+
{
|
|
133181
|
+
var stock=data.Stock;
|
|
133182
|
+
var symbol=data.Symbol;
|
|
133183
|
+
var name;
|
|
133184
|
+
if (stock)
|
|
133185
|
+
{
|
|
133186
|
+
symbol=stock.Symbol;
|
|
133187
|
+
name=stock.Name;
|
|
133188
|
+
}
|
|
133189
|
+
|
|
133190
|
+
if (!symbol && !name) return;
|
|
133191
|
+
|
|
133192
|
+
var y=top+this.ItemMergin.Top+this.ItemNameHeight;
|
|
133193
|
+
var textLeft=left+this.ItemMergin.Left;
|
|
133194
|
+
var x=textLeft;
|
|
133195
|
+
var width=column.Width-this.ItemMergin.Left-this.ItemMergin.Right;
|
|
133196
|
+
var textAlign=column.TextAlign;
|
|
133197
|
+
if (textAlign=='center')
|
|
133198
|
+
{
|
|
133199
|
+
x=textLeft+width/2;
|
|
133200
|
+
this.Canvas.textAlign="center";
|
|
133201
|
+
}
|
|
133202
|
+
else if (textAlign=='right')
|
|
133203
|
+
{
|
|
133204
|
+
x=textLeft+width-2;
|
|
133205
|
+
this.Canvas.textAlign="right";
|
|
133206
|
+
}
|
|
133207
|
+
else
|
|
133208
|
+
{
|
|
133209
|
+
x+=2;
|
|
133210
|
+
this.Canvas.textAlign="left";
|
|
133211
|
+
}
|
|
133212
|
+
|
|
133213
|
+
this.Canvas.textBaseline="bottom";
|
|
133214
|
+
|
|
133215
|
+
var textColor=column.TextColor;
|
|
133216
|
+
var text=name;
|
|
133217
|
+
if (text)
|
|
133218
|
+
{
|
|
133219
|
+
this.Canvas.fillStyle=textColor;
|
|
133220
|
+
this.Canvas.font=this.NameSymbolFont.Name;
|
|
133221
|
+
text=this.TextEllipsis(text, width, column.MaxText);
|
|
133222
|
+
if (text)
|
|
133223
|
+
{
|
|
133224
|
+
this.Canvas.fillText(text,x,y);
|
|
133225
|
+
var textWidth=this.Canvas.measureText(text).width;
|
|
133226
|
+
var space=2;
|
|
133227
|
+
if (IFrameSplitOperator.IsNumber(column.Space)) space=column.Space;
|
|
133228
|
+
x+=(textWidth+space);
|
|
133229
|
+
}
|
|
133230
|
+
|
|
133231
|
+
}
|
|
133232
|
+
|
|
133233
|
+
var textColor=column.TextColor2;
|
|
133234
|
+
text=symbol;
|
|
133235
|
+
if (text)
|
|
133236
|
+
{
|
|
133237
|
+
this.Canvas.font=this.NameSymbolFont.Symbol;
|
|
133238
|
+
this.Canvas.fillStyle=textColor;
|
|
133239
|
+
this.Canvas.fillText(text,x,y);
|
|
133240
|
+
}
|
|
133241
|
+
|
|
133242
|
+
this.Canvas.font=this.ItemFont; //还原字体
|
|
133243
|
+
}
|
|
133244
|
+
|
|
133028
133245
|
this.DrawLimitPriceBorder=function(value, stock, left, top, itemWidth)
|
|
133029
133246
|
{
|
|
133030
133247
|
if (!IFrameSplitOperator.IsNumber(value) || !stock) return;
|
|
@@ -138867,7 +139084,7 @@ function ScrollBarBGChart()
|
|
|
138867
139084
|
|
|
138868
139085
|
|
|
138869
139086
|
|
|
138870
|
-
var HQCHART_VERSION="1.1.
|
|
139087
|
+
var HQCHART_VERSION="1.1.13943";
|
|
138871
139088
|
|
|
138872
139089
|
function PrintHQChartVersion()
|
|
138873
139090
|
{
|