hqchart 1.1.13921 → 1.1.13933

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.
Files changed (24) hide show
  1. package/lib/umychart.NetworkFilterTest.vue.js +2 -2
  2. package/lib/umychart.vue.js +53 -37
  3. package/package.json +1 -1
  4. package/src/jscommon/umychart.DialogTooltip.js +166 -66
  5. package/src/jscommon/umychart.NetworkFilterTest.js +17 -0
  6. package/src/jscommon/umychart.js +144 -5
  7. package/src/jscommon/umychart.report.js +102 -1
  8. package/src/jscommon/umychart.resource/css/tools.css +11 -1
  9. package/src/jscommon/umychart.style.js +6 -0
  10. package/src/jscommon/umychart.testdata/DayKLine/IFL8.cfe.day.kline.js +8 -0
  11. package/src/jscommon/umychart.testdata/DayKLine/IFL8.cfe.day.kline.json +1 -0
  12. package/src/jscommon/umychart.testdata/DayKLine/IML8.cfe.day.kline.js +7 -0
  13. package/src/jscommon/umychart.testdata/DayKLine/IML8.cfe.day.kline.json +1 -0
  14. package/src/jscommon/umychart.testdata/M1KLine/ICL8.cfe.minute.kline.js +7 -0
  15. package/src/jscommon/umychart.testdata/M1KLine/ICL8.cfe.minute.kline.json +1 -0
  16. package/src/jscommon/umychart.testdata/M1KLine/IFL8.cfe.minute.kline.js +7 -0
  17. package/src/jscommon/umychart.testdata/M1KLine/IFL8.cfe.minute.kline.json +1 -0
  18. package/src/jscommon/umychart.testdata/M1KLine/IML8.cfe.minute.kline.js +7 -0
  19. package/src/jscommon/umychart.testdata/M1KLine/IML8.cfe.minute.kline.json +1 -0
  20. package/src/jscommon/umychart.testdata.js +17 -0
  21. package/src/jscommon/umychart.uniapp.h5/umychart.uniapp.h5.js +253 -7
  22. package/src/jscommon/umychart.version.js +1 -1
  23. package/src/jscommon/umychart.vue/umychart.NetworkFilterTest.vue.js +17 -0
  24. package/src/jscommon/umychart.vue/umychart.vue.js +413 -67
@@ -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)
@@ -2627,6 +2628,8 @@ var JSCHART_EVENT_ID=
2627
2628
  ON_CUSTOM_MINUTE_NIGHT_DAY_X_INDEX:156, //日盘夜盘的分界线
2628
2629
  ON_CUSTOM_MINUTE_BG:157, //自定义分时图背景颜色
2629
2630
  ON_CLICK_HORIZONTAL_LABEL:158, //点击Y轴刻度标签
2631
+
2632
+ ON_FORMAT_DIALOG_TOOLTIP_TEXT:159, //格式化Tooltip对话框显示文字
2630
2633
  }
2631
2634
 
2632
2635
  var JSCHART_OPERATOR_ID=
@@ -2801,6 +2804,8 @@ var JSCHART_MENU_ID=
2801
2804
  CMD_REPORT_COLUMN_DEL_ID:62, //报价列表 删除列
2802
2805
  CMD_REPORT_COLUMN_MOVE_ID:63, //报价列表 列移动
2803
2806
  CMD_REPORT_COLUMN_FILTER_ID:64, //报价列表 筛选
2807
+
2808
+ CMD_DIALOG_TOOLTIP_ATTRIBUTE:65, //修改K线信息框属性 Ary:[{ Enable:, Style:}, ]
2804
2809
  }
2805
2810
 
2806
2811
 
@@ -3049,12 +3054,12 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
3049
3054
  this.DialogDrawTool.Create();
3050
3055
  }
3051
3056
 
3052
- this.InitalTooltipDialog=function()
3057
+ this.InitalTooltipDialog=function(option)
3053
3058
  {
3054
3059
  if (this.DialogTooltip) return;
3055
3060
 
3056
3061
  this.DialogTooltip=new JSDialogTooltip();
3057
- this.DialogTooltip.Inital(this);
3062
+ this.DialogTooltip.Inital(this, option);
3058
3063
  this.DialogTooltip.Create();
3059
3064
  }
3060
3065
 
@@ -3128,6 +3133,14 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
3128
3133
  this.DialogTooltip.Close();
3129
3134
  }
3130
3135
 
3136
+ this.DestroyTooltipDialog=function()
3137
+ {
3138
+ if (!this.DialogTooltip) return;
3139
+
3140
+ this.DialogTooltip.Destroy();
3141
+ this.DialogTooltip=null;
3142
+ }
3143
+
3131
3144
 
3132
3145
 
3133
3146
  //obj={ Element:, Canvas: }
@@ -3179,6 +3192,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
3179
3192
  {
3180
3193
  this.IsDestroy=true;
3181
3194
  this.StopAutoUpdate();
3195
+ this.DestroyTooltipDialog();
3182
3196
  }
3183
3197
 
3184
3198
  this.ChartDestory=this.ChartDestroy; //老版本写错了,需要兼容下
@@ -9755,6 +9769,20 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
9755
9769
  klineChart.InfoPosition=param;
9756
9770
  this.Draw();
9757
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;
9758
9786
  }
9759
9787
  }
9760
9788
 
@@ -10057,6 +10085,71 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
10057
10085
  }
10058
10086
  }
10059
10087
  }
10088
+
10089
+ this.UpdateWindowIndexV2=function(aryIndex)
10090
+ {
10091
+ if (!IFrameSplitOperator.IsNonEmptyArray(aryIndex)) return false;
10092
+
10093
+ var aryID=[];
10094
+ for(var i=0;i<this.WindowIndex.length;++i)
10095
+ {
10096
+ var item=this.WindowIndex[i];
10097
+ if (!item) continue;
10098
+ if (!item.ID) continue;
10099
+
10100
+ if (aryIndex.find((element)=>{ return element.ID==item.ID;} ))
10101
+ {
10102
+ aryID.push(i);
10103
+ }
10104
+ }
10105
+
10106
+ if (!IFrameSplitOperator.IsNonEmptyArray(aryID)) return false;
10107
+
10108
+ if (this.IsKLineContainer()) //K线
10109
+ {
10110
+ var bindData=new ChartData();
10111
+ bindData.Data=this.SourceData.Data;
10112
+ bindData.Period=this.Period;
10113
+ bindData.Right=this.Right;
10114
+
10115
+ if (this.IsApiPeriod)
10116
+ {
10117
+
10118
+ }
10119
+ else
10120
+ {
10121
+ if (bindData.Right>0) //复权
10122
+ {
10123
+ var rightData=bindData.GetRightData(bindData.Right, { AlgorithmType: this.RightFormula });
10124
+ bindData.Data=rightData;
10125
+ }
10126
+
10127
+ if (ChartData.IsDayPeriod(bindData.Period,false) || ChartData.IsMinutePeriod(bindData.Period,false)) //周期数据
10128
+ {
10129
+ var periodData=bindData.GetPeriodData(bindData.Period);
10130
+ bindData.Data=periodData;
10131
+ }
10132
+ }
10133
+ }
10134
+ else if (this.IsMinuteContainer()) //分时图
10135
+ {
10136
+ var bindData=this.SourceData;
10137
+ }
10138
+ else
10139
+ {
10140
+ return;
10141
+ }
10142
+
10143
+
10144
+ for(var i=0;i<aryID.length;++i)
10145
+ {
10146
+ this.BindIndexData(aryID[i],bindData)
10147
+ }
10148
+
10149
+ this.UpdataDataoffset(); //更新数据偏移
10150
+ this.UpdateFrameMaxMin(); //调整坐标最大 最小值
10151
+ this.Draw();
10152
+ }
10060
10153
  }
10061
10154
 
10062
10155
  function GetDevicePixelRatio()
@@ -69441,7 +69534,8 @@ function JSChartResource()
69441
69534
  Font:{ Size:15, Name:"微软雅黑"},
69442
69535
  BarMergin:{ Top:2, Left:3, Right:3, Bottom:2 },//单元格字体
69443
69536
  NameFont:{ Size:14, Name:"微软雅黑" },
69444
- SymbolFont:{ Size:12, Name:"微软雅黑" }
69537
+ SymbolFont:{ Size:12, Name:"微软雅黑" },
69538
+
69445
69539
  },
69446
69540
 
69447
69541
  //固定行
@@ -69456,6 +69550,13 @@ function JSChartResource()
69456
69550
  Mergin:{ Top:1, Bottom:1,Left:0, Right:0 },
69457
69551
  },
69458
69552
 
69553
+
69554
+ NameSymbolV2:
69555
+ {
69556
+ Name:{ Size:14, Name:"微软雅黑", Color: "rgb(60,60,60)"},
69557
+ Symbol:{ Size:10, Name:"微软雅黑", Color: "rgb(105 105 105)"},
69558
+ },
69559
+
69459
69560
  //涨停 跌停背景色
69460
69561
  LimitColor:
69461
69562
  {
@@ -70612,6 +70713,26 @@ function JSChartResource()
70612
70713
  }
70613
70714
  }
70614
70715
 
70716
+ if (item.NameSymbolV2)
70717
+ {
70718
+ var nameSymbol=item.NameSymbolV2;
70719
+ if (nameSymbol.Name)
70720
+ {
70721
+ var subItem=nameSymbol.Name;
70722
+ if (IFrameSplitOperator.IsNumber(subItem.Size)) this.Report.NameSymbolV2.Name.Size=subItem.Size;
70723
+ if (subItem.Name) this.Report.NameSymbolV2.Name.Name=subItem.Name;
70724
+ if (subItem.Color) this.Report.NameSymbolV2.Name.Color=subItem.Color;
70725
+ }
70726
+
70727
+ if (nameSymbol.Symbol)
70728
+ {
70729
+ var subItem=nameSymbol.Symbol;
70730
+ if (IFrameSplitOperator.IsNumber(subItem.Size)) this.Report.NameSymbolV2.Symbol.Size=subItem.Size;
70731
+ if (subItem.Name) this.Report.NameSymbolV2.Symbol.Name=subItem.Name;
70732
+ if (subItem.Color) this.Report.NameSymbolV2.Symbol.Color=subItem.Color;
70733
+ }
70734
+ }
70735
+
70615
70736
  if (item.Tab)
70616
70737
  {
70617
70738
  var tab=item.Tab;
@@ -70969,7 +71090,7 @@ function JSChartLocalization()
70969
71090
  ['DialogTooltip-Exchange', {CN:'换手率', EN:'Exchange', TC:'換手'}],
70970
71091
  ['DialogTooltip-Position', {CN:'持仓量', EN:'Position', TC:'持倉'}],
70971
71092
  ['DialogTooltip-Price', {CN:'价格', EN:'Price', TC:'價格'}],
70972
- ['DialogTooltip-YClose', {CN:"结算价", EN:'Settlement', TC:'結算價'}],
71093
+ ['DialogTooltip-FClose', {CN:"结算价", EN:'Settlement', TC:'結算價'}],
70973
71094
  ['DialogTooltip-Amplitude', {CN:'振幅', EN:'amplitude', TC:'價格'}],
70974
71095
  ['DialogTooltip-AC-Price', {CN:'匹配价', EN:'Price', TC:'匹配價'}],
70975
71096
  ['DialogTooltip-AC-AvPrice', {CN:'匹配均价', EN:'AVPrice', TC:'匹配均價'}],
@@ -77635,6 +77756,15 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
77635
77756
  { Name:"样式2", Data:{ ID:JSCHART_MENU_ID.CMD_CHANGE_DRAG_RECT_SHOW_MODE_ID, Args:[1]}, Checked:1==this.ChartDragSelectRect.ShowMode },
77636
77757
  { Name:"样式3", Data:{ ID:JSCHART_MENU_ID.CMD_CHANGE_DRAG_RECT_SHOW_MODE_ID, Args:[2]}, Checked:2==this.ChartDragSelectRect.ShowMode },
77637
77758
  ]
77759
+ },
77760
+ {
77761
+ Name:"K线浮动框",
77762
+ SubMenu:
77763
+ [
77764
+ { Name:"禁用", Data:{ ID:JSCHART_MENU_ID.CMD_DIALOG_TOOLTIP_ATTRIBUTE, Args:[{Enable:false}]}, Checked:!this.DialogTooltip },
77765
+ { Name:"样式1", Data:{ ID:JSCHART_MENU_ID.CMD_DIALOG_TOOLTIP_ATTRIBUTE, Args:[{Enable:true, Style:0}]}, Checked:(this.DialogTooltip && this.DialogTooltip.Style===0) },
77766
+ { Name:"样式2", Data:{ ID:JSCHART_MENU_ID.CMD_DIALOG_TOOLTIP_ATTRIBUTE, Args:[{Enable:true, Style:1}]}, Checked:(this.DialogTooltip && this.DialogTooltip.Style===1) },
77767
+ ]
77638
77768
  }
77639
77769
  ]
77640
77770
  }
@@ -81307,6 +81437,15 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
81307
81437
  ]
81308
81438
  },
81309
81439
 
81440
+ {
81441
+ Name:"K线浮动框",
81442
+ SubMenu:
81443
+ [
81444
+ { Name:"禁用", Data:{ ID:JSCHART_MENU_ID.CMD_DIALOG_TOOLTIP_ATTRIBUTE, Args:[{Enable:false}]}, Checked:!this.DialogTooltip },
81445
+ { Name:"样式1", Data:{ ID:JSCHART_MENU_ID.CMD_DIALOG_TOOLTIP_ATTRIBUTE, Args:[{Enable:true, Style:0}]}, Checked:(this.DialogTooltip && this.DialogTooltip.Style===0) },
81446
+ { Name:"样式2", Data:{ ID:JSCHART_MENU_ID.CMD_DIALOG_TOOLTIP_ATTRIBUTE, Args:[{Enable:true, Style:1}]}, Checked:(this.DialogTooltip && this.DialogTooltip.Style===1) },
81447
+ ]
81448
+ }
81310
81449
 
81311
81450
  ]
81312
81451
  }
@@ -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)",