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.
@@ -1721,7 +1721,8 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
1721
1721
  if (option.EnableModifyDrawDialogV2===true) chart.InitalModifyDrawDialog();
1722
1722
 
1723
1723
  //K线tooltip
1724
- if (option.EnableTooltipDialog===true) chart.InitalTooltipDialog();
1724
+ if (option.TooltipDialog && option.TooltipDialog.Enable)
1725
+ chart.InitalTooltipDialog(option.TooltipDialog);
1725
1726
 
1726
1727
  //注册事件
1727
1728
  if (option.EventCallback)
@@ -2803,6 +2804,8 @@ var JSCHART_MENU_ID=
2803
2804
  CMD_REPORT_COLUMN_DEL_ID:62, //报价列表 删除列
2804
2805
  CMD_REPORT_COLUMN_MOVE_ID:63, //报价列表 列移动
2805
2806
  CMD_REPORT_COLUMN_FILTER_ID:64, //报价列表 筛选
2807
+
2808
+ CMD_DIALOG_TOOLTIP_ATTRIBUTE:65, //修改K线信息框属性 Ary:[{ Enable:, Style:}, ]
2806
2809
  }
2807
2810
 
2808
2811
 
@@ -3051,12 +3054,12 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
3051
3054
  this.DialogDrawTool.Create();
3052
3055
  }
3053
3056
 
3054
- this.InitalTooltipDialog=function()
3057
+ this.InitalTooltipDialog=function(option)
3055
3058
  {
3056
3059
  if (this.DialogTooltip) return;
3057
3060
 
3058
3061
  this.DialogTooltip=new JSDialogTooltip();
3059
- this.DialogTooltip.Inital(this);
3062
+ this.DialogTooltip.Inital(this, option);
3060
3063
  this.DialogTooltip.Create();
3061
3064
  }
3062
3065
 
@@ -3130,6 +3133,14 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
3130
3133
  this.DialogTooltip.Close();
3131
3134
  }
3132
3135
 
3136
+ this.DestroyTooltipDialog=function()
3137
+ {
3138
+ if (!this.DialogTooltip) return;
3139
+
3140
+ this.DialogTooltip.Destroy();
3141
+ this.DialogTooltip=null;
3142
+ }
3143
+
3133
3144
 
3134
3145
 
3135
3146
  //obj={ Element:, Canvas: }
@@ -3181,12 +3192,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
3181
3192
  {
3182
3193
  this.IsDestroy=true;
3183
3194
  this.StopAutoUpdate();
3184
-
3185
- if (this.DialogTooltip)
3186
- {
3187
- this.DialogTooltip.Destroy();
3188
- this.DialogTooltip=null;
3189
- }
3195
+ this.DestroyTooltipDialog();
3190
3196
  }
3191
3197
 
3192
3198
  this.ChartDestory=this.ChartDestroy; //老版本写错了,需要兼容下
@@ -9763,6 +9769,20 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
9763
9769
  klineChart.InfoPosition=param;
9764
9770
  this.Draw();
9765
9771
  break;
9772
+ case JSCHART_MENU_ID.CMD_DIALOG_TOOLTIP_ATTRIBUTE:
9773
+ if (!aryArgs[0]) return false;
9774
+ var option=aryArgs[0];
9775
+ if (!IFrameSplitOperator.IsBool(option.Enable)) return false;
9776
+ if (option.Enable===false)
9777
+ {
9778
+ this.DestroyTooltipDialog();
9779
+ }
9780
+ else
9781
+ {
9782
+ this.DestroyTooltipDialog();
9783
+ this.InitalTooltipDialog(option);
9784
+ }
9785
+ break;
9766
9786
  }
9767
9787
  }
9768
9788
 
@@ -50801,6 +50821,7 @@ function ChartCorssCursor()
50801
50821
  this.XRangeBGColor=g_JSChartResource.CorssCursorXRangeBGColor;
50802
50822
  this.TextHeight=20; //文本字体高度
50803
50823
  this.LastPoint;
50824
+ this.LastValue; //{ Y:{ Value:, Extend: } }
50804
50825
  this.CursorIndex;
50805
50826
  this.IsOnlyDrawKLine=false; //是否只能画在K线上 (手机端)
50806
50827
  this.IsOnlyDrawMinute=false; //是否只能画在走势图价格线上
@@ -51032,6 +51053,7 @@ function ChartCorssCursor()
51032
51053
  {
51033
51054
  this.Status=0;
51034
51055
  this.RightButton.Rect=null;
51056
+ this.LastValue=null;
51035
51057
 
51036
51058
  if (!this.LastPoint) return;
51037
51059
 
@@ -51184,6 +51206,8 @@ function ChartCorssCursor()
51184
51206
  var yValue=this.Frame.GetYData(y,yValueExtend);
51185
51207
  if ( (this.IsOnlyDrawMinute || this.IsShowClose) && this.Close != null) yValue=this.Close;
51186
51208
 
51209
+ this.LastValue={ Y:{ Value:yValue, Extend:yValueExtend }}; //缓存十字光标对应的数值
51210
+
51187
51211
  //this.StringFormatX.Value=xValue;
51188
51212
  this.StringFormatX.Value=this.CursorIndex;
51189
51213
  this.StringFormatX.Point={X:x, Y:y};
@@ -69514,7 +69538,8 @@ function JSChartResource()
69514
69538
  Font:{ Size:15, Name:"微软雅黑"},
69515
69539
  BarMergin:{ Top:2, Left:3, Right:3, Bottom:2 },//单元格字体
69516
69540
  NameFont:{ Size:14, Name:"微软雅黑" },
69517
- SymbolFont:{ Size:12, Name:"微软雅黑" }
69541
+ SymbolFont:{ Size:12, Name:"微软雅黑" },
69542
+
69518
69543
  },
69519
69544
 
69520
69545
  //固定行
@@ -69529,6 +69554,13 @@ function JSChartResource()
69529
69554
  Mergin:{ Top:1, Bottom:1,Left:0, Right:0 },
69530
69555
  },
69531
69556
 
69557
+
69558
+ NameSymbolV2:
69559
+ {
69560
+ Name:{ Size:14, Name:"微软雅黑", Color: "rgb(60,60,60)"},
69561
+ Symbol:{ Size:10, Name:"微软雅黑", Color: "rgb(105 105 105)"},
69562
+ },
69563
+
69532
69564
  //涨停 跌停背景色
69533
69565
  LimitColor:
69534
69566
  {
@@ -70685,6 +70717,26 @@ function JSChartResource()
70685
70717
  }
70686
70718
  }
70687
70719
 
70720
+ if (item.NameSymbolV2)
70721
+ {
70722
+ var nameSymbol=item.NameSymbolV2;
70723
+ if (nameSymbol.Name)
70724
+ {
70725
+ var subItem=nameSymbol.Name;
70726
+ if (IFrameSplitOperator.IsNumber(subItem.Size)) this.Report.NameSymbolV2.Name.Size=subItem.Size;
70727
+ if (subItem.Name) this.Report.NameSymbolV2.Name.Name=subItem.Name;
70728
+ if (subItem.Color) this.Report.NameSymbolV2.Name.Color=subItem.Color;
70729
+ }
70730
+
70731
+ if (nameSymbol.Symbol)
70732
+ {
70733
+ var subItem=nameSymbol.Symbol;
70734
+ if (IFrameSplitOperator.IsNumber(subItem.Size)) this.Report.NameSymbolV2.Symbol.Size=subItem.Size;
70735
+ if (subItem.Name) this.Report.NameSymbolV2.Symbol.Name=subItem.Name;
70736
+ if (subItem.Color) this.Report.NameSymbolV2.Symbol.Color=subItem.Color;
70737
+ }
70738
+ }
70739
+
70688
70740
  if (item.Tab)
70689
70741
  {
70690
70742
  var tab=item.Tab;
@@ -71042,12 +71094,14 @@ function JSChartLocalization()
71042
71094
  ['DialogTooltip-Exchange', {CN:'换手率', EN:'Exchange', TC:'換手'}],
71043
71095
  ['DialogTooltip-Position', {CN:'持仓量', EN:'Position', TC:'持倉'}],
71044
71096
  ['DialogTooltip-Price', {CN:'价格', EN:'Price', TC:'價格'}],
71097
+ ['DialogTooltip-AvPrice', {CN:'均价', EN:'AVPrice:', TC:'均價'}],
71045
71098
  ['DialogTooltip-FClose', {CN:"结算价", EN:'Settlement', TC:'結算價'}],
71046
71099
  ['DialogTooltip-Amplitude', {CN:'振幅', EN:'amplitude', TC:'價格'}],
71047
71100
  ['DialogTooltip-AC-Price', {CN:'匹配价', EN:'Price', TC:'匹配價'}],
71048
71101
  ['DialogTooltip-AC-AvPrice', {CN:'匹配均价', EN:'AVPrice', TC:'匹配均價'}],
71049
71102
  ['DialogTooltip-AC-Increase', {CN:'竞价涨幅', EN:'Increase', TC:'競價漲幅'}],
71050
71103
  ['DialogTooltip-AC-Vol', {CN:'匹配量', EN:'Vol', TC:'匹配量'}],
71104
+ ['DialogTooltip-Value', {CN:'数值', EN:'Value', TC:'数值'}],
71051
71105
 
71052
71106
  //走势图PC tooltip
71053
71107
  ['PCTooltip-Date', {CN:'日期', EN:'Date', TC:"日期"}],
@@ -77708,6 +77762,15 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
77708
77762
  { Name:"样式2", Data:{ ID:JSCHART_MENU_ID.CMD_CHANGE_DRAG_RECT_SHOW_MODE_ID, Args:[1]}, Checked:1==this.ChartDragSelectRect.ShowMode },
77709
77763
  { Name:"样式3", Data:{ ID:JSCHART_MENU_ID.CMD_CHANGE_DRAG_RECT_SHOW_MODE_ID, Args:[2]}, Checked:2==this.ChartDragSelectRect.ShowMode },
77710
77764
  ]
77765
+ },
77766
+ {
77767
+ Name:"K线浮动框",
77768
+ SubMenu:
77769
+ [
77770
+ { Name:"禁用", Data:{ ID:JSCHART_MENU_ID.CMD_DIALOG_TOOLTIP_ATTRIBUTE, Args:[{Enable:false}]}, Checked:!this.DialogTooltip },
77771
+ { Name:"样式1", Data:{ ID:JSCHART_MENU_ID.CMD_DIALOG_TOOLTIP_ATTRIBUTE, Args:[{Enable:true, Style:0}]}, Checked:(this.DialogTooltip && this.DialogTooltip.Style===0) },
77772
+ { Name:"样式2", Data:{ ID:JSCHART_MENU_ID.CMD_DIALOG_TOOLTIP_ATTRIBUTE, Args:[{Enable:true, Style:1}]}, Checked:(this.DialogTooltip && this.DialogTooltip.Style===1) },
77773
+ ]
77711
77774
  }
77712
77775
  ]
77713
77776
  }
@@ -79363,6 +79426,7 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
79363
79426
  IsShowCorss:this.ChartCorssCursor.IsShowCorss, //是否显示十字线
79364
79427
  KItem:kItem,
79365
79428
  Symbol:this.Symbol, Name:this.Name,
79429
+ LastValue:this.ChartCorssCursor.LastValue,
79366
79430
  };
79367
79431
 
79368
79432
 
@@ -80829,11 +80893,38 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
80829
80893
  this.MouseDrag=drag;
80830
80894
  this.PhoneTouchInfo={ Start:{X:touches[0].clientX, Y:touches[0].clientY }, End:{ X:touches[0].clientX, Y:touches[0].clientY } };
80831
80895
  this.SelectChartDrawPicture=null;
80896
+
80897
+ var bStartTimer=true; //长按计时开始
80898
+ if (this.EnableClickModel)
80899
+ {
80900
+ if (this.ClickModel.IsShowCorssCursor==true) bStartTimer=false;
80901
+ else bStartTimer= true;
80902
+ }
80903
+
80904
+ if (bStartTimer)
80905
+ {
80906
+ this.StopDragTimer();
80907
+ this.DragTimer = setTimeout(()=>{
80908
+ this.IsPress=true;
80909
+ if (drag.Click.X == drag.LastMove.X && drag.Click.Y == drag.LastMove.Y) //手指没有移动,出现十字光标
80910
+ {
80911
+ this.MouseDrag = null;
80912
+ //移动十字光标
80913
+ var x = drag.Click.X;
80914
+ var y = drag.Click.Y;
80915
+ if (this.EnableClickModel===true) this.ClickModel.IsShowCorssCursor=true;
80916
+ self.MoveCorssCursor(drag.Click,e);//移动十字光标
80917
+ }
80832
80918
 
80833
- if (this.EnableScrollUpDown==false)
80834
- T_ShowCorssCursor(); //移动十字光标
80835
- else if (this.IsClickShowCorssCursor)
80836
- T_ShowCorssCursor();
80919
+ }, this.PressTime);
80920
+ }
80921
+ else if (!this.EnableClickModel)
80922
+ {
80923
+ if (this.EnableScrollUpDown==false)
80924
+ T_ShowCorssCursor(); //移动十字光标
80925
+ else if (this.IsClickShowCorssCursor)
80926
+ T_ShowCorssCursor();
80927
+ }
80837
80928
  }
80838
80929
 
80839
80930
  if (this.EnableZoomIndexWindow)
@@ -81380,6 +81471,15 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
81380
81471
  ]
81381
81472
  },
81382
81473
 
81474
+ {
81475
+ Name:"K线浮动框",
81476
+ SubMenu:
81477
+ [
81478
+ { Name:"禁用", Data:{ ID:JSCHART_MENU_ID.CMD_DIALOG_TOOLTIP_ATTRIBUTE, Args:[{Enable:false}]}, Checked:!this.DialogTooltip },
81479
+ { Name:"样式1", Data:{ ID:JSCHART_MENU_ID.CMD_DIALOG_TOOLTIP_ATTRIBUTE, Args:[{Enable:true, Style:0}]}, Checked:(this.DialogTooltip && this.DialogTooltip.Style===0) },
81480
+ { Name:"样式2", Data:{ ID:JSCHART_MENU_ID.CMD_DIALOG_TOOLTIP_ATTRIBUTE, Args:[{Enable:true, Style:1}]}, Checked:(this.DialogTooltip && this.DialogTooltip.Style===1) },
81481
+ ]
81482
+ }
81383
81483
 
81384
81484
  ]
81385
81485
  }
@@ -84538,6 +84638,15 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
84538
84638
 
84539
84639
  this.OnTouchFinished=function()
84540
84640
  {
84641
+ if (this.EnableClickModel===true)
84642
+ {
84643
+ if (this.ClickModel.IsShowCorssCursor==true && this.TouchDrawCount>0) return;
84644
+
84645
+ this.ClickModel.IsShowCorssCursor=false;
84646
+ this.DrawDynamicInfo();
84647
+ return;
84648
+ }
84649
+
84541
84650
  if (this.CorssCursorTouchEnd===true) //手势离开十字光标消失
84542
84651
  {
84543
84652
  this.DrawDynamicInfo();
@@ -85166,6 +85275,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
85166
85275
  IsShowCorss:this.ChartCorssCursor.IsShowCorss, //是否显示十字线
85167
85276
  MinItem:minuteItem,
85168
85277
  Symbol:this.Symbol, Name:this.Name,
85278
+ LastValue:this.ChartCorssCursor.LastValue,
85169
85279
  };
85170
85280
 
85171
85281
 
@@ -3968,7 +3968,8 @@ var REPORT_COLUMN_ID=
3968
3968
  RISING_SPEED_10M_ID:63,
3969
3969
  RISING_SPEED_15M_ID:64,
3970
3970
 
3971
- SYMBOL_NAME_ID:99,
3971
+ SYMBOL_NAME_V2_ID:98, //单行
3972
+ SYMBOL_NAME_ID:99, //两行
3972
3973
 
3973
3974
  CUSTOM_STRING_TEXT_ID:100, //自定义字符串文本
3974
3975
  CUSTOM_NUMBER_TEXT_ID:101, //自定义数值型
@@ -4169,6 +4170,9 @@ function ChartReport()
4169
4170
  this.ItemSymbolFontConfig={Size:g_JSChartResource.Report.Item.SymbolFont.Size, Name:g_JSChartResource.Report.Item.SymbolFont.Name};
4170
4171
  this.ItemNameFontConfg={Size:g_JSChartResource.Report.Item.NameFont.Size, Name:g_JSChartResource.Report.Item.NameFont.Name};
4171
4172
 
4173
+ //名称+代码
4174
+ this.NameSymbolV2Config=CloneData(g_JSChartResource.Report.NameSymbolV2);
4175
+
4172
4176
  //缓存
4173
4177
  this.HeaderFont=12*GetDevicePixelRatio() +"px 微软雅黑";
4174
4178
  this.SortFont=null,
@@ -4177,6 +4181,7 @@ function ChartReport()
4177
4181
  this.ItemSymbolFont=12*GetDevicePixelRatio() +"px 微软雅黑";
4178
4182
  this.ItemNameFont=15*GetDevicePixelRatio() +"px 微软雅黑";
4179
4183
  this.ItemNameHeight=0;
4184
+ this.NameSymbolFont={ Symbol:null, Name:null };
4180
4185
  this.RowCount=0; //一屏显示行数
4181
4186
  this.HeaderHeight=0; //表头高度
4182
4187
  this.FixedRowHeight=0; //固定行高度
@@ -4321,6 +4326,8 @@ function ChartReport()
4321
4326
  if (item.TextColor) colItem.TextColor=item.TextColor;
4322
4327
  if (item.HeaderColor) colItem.HeaderColor=item.HeaderColor;
4323
4328
  if (item.MaxText) colItem.MaxText=item.MaxText;
4329
+ if (item.MaxText2) colItem.MaxText=item.MaxText2;
4330
+ if (IFrameSplitOperator.IsNumber(item.Space)) colItem.Space=item.Space;
4324
4331
  if (item.ID) colItem.ID=item.ID;
4325
4332
  if (item.FullColBGColor) colItem.FullColBGColor=item.FullColBGColor; //整列背景色
4326
4333
  if (item.HeaderBGColor) colItem.HeaderBGColor=item.HeaderBGColor; //表头背景色
@@ -4481,6 +4488,7 @@ function ChartReport()
4481
4488
  { Type:REPORT_COLUMN_ID.NAME_ID, Title:"名称", TextAlign:"left", Width:null, TextColor:g_JSChartResource.Report.FieldColor.Name, MaxText:"擎擎擎擎0" },
4482
4489
  { Type:REPORT_COLUMN_ID.NAME_EX_ID, Title:"名称", TextAlign:"left", Width:null, TextColor:g_JSChartResource.Report.FieldColor.Name, MaxText:"擎擎擎擎擎擎" },
4483
4490
  { Type:REPORT_COLUMN_ID.SYMBOL_NAME_ID, Title:"股票名称", TextAlign:"left", Width:null, TextColor:g_JSChartResource.Report.FieldColor.Name, MaxText:"擎擎擎擎0"},
4491
+ { 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 },
4484
4492
 
4485
4493
  { Type:REPORT_COLUMN_ID.INCREASE_ID, Title:"涨幅%", TextAlign:"right", Width:null, MaxText:"-888.88" },
4486
4494
  { Type:REPORT_COLUMN_ID.PRICE_ID, Title:"现价", TextAlign:"right", Width:null, MaxText:"88888.88" },
@@ -4674,6 +4682,9 @@ function ChartReport()
4674
4682
  this.ItemSymbolFont=`${this.ItemSymbolFontConfig.Size*pixelRatio}px ${ this.ItemSymbolFontConfig.Name}`;
4675
4683
  this.ItemNameFont=`${this.ItemNameFontConfg.Size*pixelRatio}px ${ this.ItemNameFontConfg.Name}`;
4676
4684
 
4685
+ this.NameSymbolFont.Symbol=`${this.NameSymbolV2Config.Symbol.Size*pixelRatio}px ${this.NameSymbolV2Config.Symbol.Name}`;
4686
+ this.NameSymbolFont.Name=`${this.ItemSymbolFontConfig.Name.Size*pixelRatio}px ${this.NameSymbolV2Config.Name.Name}`;
4687
+
4677
4688
  this.RowHeight=this.GetFontHeight(this.ItemFont,"擎")+ this.ItemMergin.Top+ this.ItemMergin.Bottom;
4678
4689
  this.FixedRowHeight=this.GetFontHeight(this.ItemFixedFont,"擎")+ this.ItemMergin.Top+ this.ItemMergin.Bottom;
4679
4690
  this.SortFont=`${this.SortConfig.Size*pixelRatio}px ${ this.SortConfig.Family}`;
@@ -4703,6 +4714,25 @@ function ChartReport()
4703
4714
  if (rowHeight>this.RowHeight) this.RowHeight=rowHeight;
4704
4715
  if (rowHeight>this.FixedRowHeight) this.FixedRowHeight=rowHeight;
4705
4716
  }
4717
+ else if (item.Type==REPORT_COLUMN_ID.SYMBOL_NAME_V2_ID) //单行显示
4718
+ {
4719
+ this.Canvas.font==this.NameSymbolFont.Name;
4720
+ var nameWidth=this.Canvas.measureText(item.MaxText).width;
4721
+ var nameHeight=this.GetFontHeight(this.ItemNameFont,"擎");
4722
+
4723
+
4724
+ this.Canvas.font==this.NameSymbolFont.Symbol;
4725
+ var symbolWidth=this.Canvas.measureText(item.MaxText2).width;
4726
+ var symboHeight=this.GetFontHeight(this.ItemSymbolFont,"擎");
4727
+
4728
+ this.ItemNameHeight=Math.abs(nameHeight,symboHeight);
4729
+
4730
+ var space=2;
4731
+ if (IFrameSplitOperator.IsNumber(item.Space)) space=item.Space;
4732
+ itemWidth=nameWidth+symbolWidth+space;
4733
+
4734
+ item.Width=itemWidth+4+this.ItemMergin.Left+this.ItemMergin.Right;
4735
+ }
4706
4736
  else
4707
4737
  {
4708
4738
  if (IFrameSplitOperator.IsNumber(item.FixedWidth)) itemWidth=item.FixedWidth;
@@ -5297,6 +5327,11 @@ function ChartReport()
5297
5327
 
5298
5328
  this.FormatDrawInfo(column, stock, drawInfo, data);
5299
5329
  }
5330
+ else if (column.Type==REPORT_COLUMN_ID.SYMBOL_NAME_V2_ID)
5331
+ {
5332
+ this.DrawSymbolNameV2(data, column, left, top, rowType);
5333
+ this.FormatDrawInfo(column, stock, drawInfo, data);
5334
+ }
5300
5335
  else if (column.Type==REPORT_COLUMN_ID.NAME_ID)
5301
5336
  {
5302
5337
  if (stock && stock.Name)
@@ -5747,6 +5782,72 @@ function ChartReport()
5747
5782
  this.Canvas.font=this.ItemFont; //还原字体
5748
5783
  }
5749
5784
 
5785
+ this.DrawSymbolNameV2=function(data, column, left, top, rowType)
5786
+ {
5787
+ var stock=data.Stock;
5788
+ var symbol=data.Symbol;
5789
+ var name;
5790
+ if (stock)
5791
+ {
5792
+ symbol=stock.Symbol;
5793
+ name=stock.Name;
5794
+ }
5795
+
5796
+ if (!symbol && !name) return;
5797
+
5798
+ var y=top+this.ItemMergin.Top+this.ItemNameHeight;
5799
+ var textLeft=left+this.ItemMergin.Left;
5800
+ var x=textLeft;
5801
+ var width=column.Width-this.ItemMergin.Left-this.ItemMergin.Right;
5802
+ var textAlign=column.TextAlign;
5803
+ if (textAlign=='center')
5804
+ {
5805
+ x=textLeft+width/2;
5806
+ this.Canvas.textAlign="center";
5807
+ }
5808
+ else if (textAlign=='right')
5809
+ {
5810
+ x=textLeft+width-2;
5811
+ this.Canvas.textAlign="right";
5812
+ }
5813
+ else
5814
+ {
5815
+ x+=2;
5816
+ this.Canvas.textAlign="left";
5817
+ }
5818
+
5819
+ this.Canvas.textBaseline="bottom";
5820
+
5821
+ var textColor=column.TextColor;
5822
+ var text=name;
5823
+ if (text)
5824
+ {
5825
+ this.Canvas.fillStyle=textColor;
5826
+ this.Canvas.font=this.NameSymbolFont.Name;
5827
+ text=this.TextEllipsis(text, width, column.MaxText);
5828
+ if (text)
5829
+ {
5830
+ this.Canvas.fillText(text,x,y);
5831
+ var textWidth=this.Canvas.measureText(text).width;
5832
+ var space=2;
5833
+ if (IFrameSplitOperator.IsNumber(column.Space)) space=column.Space;
5834
+ x+=(textWidth+space);
5835
+ }
5836
+
5837
+ }
5838
+
5839
+ var textColor=column.TextColor2;
5840
+ text=symbol;
5841
+ if (text)
5842
+ {
5843
+ this.Canvas.font=this.NameSymbolFont.Symbol;
5844
+ this.Canvas.fillStyle=textColor;
5845
+ this.Canvas.fillText(text,x,y);
5846
+ }
5847
+
5848
+ this.Canvas.font=this.ItemFont; //还原字体
5849
+ }
5850
+
5750
5851
  this.DrawLimitPriceBorder=function(value, stock, left, top, itemWidth)
5751
5852
  {
5752
5853
  if (!IFrameSplitOperator.IsNumber(value) || !stock) return;
@@ -1685,8 +1685,18 @@ input[type="color"] {
1685
1685
  float: right;
1686
1686
  }
1687
1687
 
1688
+ .UMyChart_Tooltip_Text_Sinlge_Td
1689
+ {
1690
+ min-width:80px;
1691
+ }
1692
+
1693
+ .UMyChart_Tooltip_Title_Left_Span
1694
+ {
1695
+
1696
+ }
1697
+
1688
1698
  .UMyChart_Tooltip_Text_Span
1689
1699
  {
1690
1700
  float: right;
1691
- margin-right: 5px;
1701
+ margin-right: 1px;
1692
1702
  }
@@ -589,6 +589,12 @@ function GetBlackStyle()
589
589
  Text:"rgb(245,245,245)", //默认文本
590
590
  },
591
591
 
592
+ NameSymbolV2:
593
+ {
594
+ Name:{ Size:14, Name:"微软雅黑", Color: "rgb(250,250,250)"},
595
+ Symbol:{ Size:12, Name:"微软雅黑", Color: "rgb(190, 190, 190)"},
596
+ },
597
+
592
598
  CloseLine:
593
599
  {
594
600
  CloseColor:"rgb(30,144,255)",