hqchart 1.1.15138 → 1.1.15152

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hqchart",
3
- "version": "1.1.15138",
3
+ "version": "1.1.15152",
4
4
  "description": "HQChart - H5, 微信小程序 沪深/港股/数字货币/期货/美股 K线图(kline),走势图,缩放,拖拽,十字光标,画图工具,截图,筹码图. 分析家语法,通达信语法,(麦语法),第3方数据对接",
5
5
  "main": "lib/main.js",
6
6
  "scripts": {
@@ -727,7 +727,7 @@ function JSDialogModifyDraw()
727
727
 
728
728
  var spanDom=document.createElement("span");
729
729
  spanDom.className="hqchart_drawtool icon-tuodong";
730
- spanDom.classList.add("UMyChart_DrawTool_Span");
730
+ spanDom.classList.add("UMyChart_Draw_Modify_Dialog_Drag_Span");
731
731
  drgDiv.appendChild(spanDom);
732
732
 
733
733
  for(var i=0;i<this.AryButton.length;++i)
@@ -753,7 +753,7 @@ function JSDialogModifyDraw()
753
753
 
754
754
  var spanDom=document.createElement("span");
755
755
  spanDom.className=item.ClassName;
756
- spanDom.classList.add("UMyChart_DrawTool_Span");
756
+ spanDom.classList.add("UMyChart_Draw_Modify_Dialog_Button_Span");
757
757
  divItem.appendChild(spanDom);
758
758
 
759
759
 
@@ -782,7 +782,6 @@ function JSDialogModifyDraw()
782
782
  break;
783
783
  case JS_DRAWTOOL_MENU_ID.CMD_LOCK_DRAW_CHART_ID:
784
784
  this.LockButton=data;
785
- this.LockButton.Span.style['color']="rgb(220,220,220)";
786
785
  break;
787
786
  case JS_DRAWTOOL_MENU_ID.CMD_ZOOM_FONT_ID:
788
787
  this.FontZoomButton=data;
@@ -987,7 +986,23 @@ function JSDialogModifyDraw()
987
986
  if (!this.ChartPicture || !this.HQChart) return;
988
987
  this.ChartPicture.EnableMove=!this.ChartPicture.EnableMove;
989
988
 
990
- if (this.LockButton) this.LockButton.Span.style['color']=this.ChartPicture.EnableMove?"rgb(220,220,220)":"rgb(0,0,0)";
989
+ return this.UpdateLockButtonStyle();
990
+ }
991
+
992
+ this.UpdateLockButtonStyle=function()
993
+ {
994
+ if (!this.LockButton) return;
995
+
996
+ if (this.ChartPicture.EnableMove)
997
+ {
998
+ this.LockButton.Span.classList.remove("UMyChart_Draw_Modify_Dialog_Button_Span");
999
+ this.LockButton.Span.classList.add("UMyChart_Draw_Modify_Dialog_Unlock_Button_Span");
1000
+ }
1001
+ else
1002
+ {
1003
+ this.LockButton.Span.classList.remove("UMyChart_Draw_Modify_Dialog_Unlock_Button_Span");
1004
+ this.LockButton.Span.classList.add("UMyChart_Draw_Modify_Dialog_Button_Span");
1005
+ }
991
1006
  }
992
1007
 
993
1008
  this.ModifyBorderColor=function()
@@ -1172,8 +1187,7 @@ function JSDialogModifyDraw()
1172
1187
 
1173
1188
  if (this.LockButton)
1174
1189
  {
1175
- var item=this.LockButton;
1176
- item.Span.style['color']=this.ChartPicture.EnableMove?"rgb(220,220,220)":"rgb(0,0,0)";
1190
+ this.UpdateLockButtonStyle();
1177
1191
  }
1178
1192
 
1179
1193
  if (this.FontZoomButton)
@@ -25,14 +25,6 @@ function JSDialogSearchIndex()
25
25
  //{ WindowIndex:窗口索引, OpType:1=切换主图指标 2=添加叠加指标 3=新增指标窗口, Title: };
26
26
  this.OpData=null;
27
27
 
28
- this.TitleColor=g_JSChartResource.DialogSearchIndex.TitleColor;
29
- this.TitleBGColor=g_JSChartResource.DialogSearchIndex.TitleBGColor;
30
- this.BGColor=g_JSChartResource.DialogSearchIndex.BGColor;
31
- this.BorderColor=g_JSChartResource.DialogSearchIndex.BorderColor;
32
- this.IndexNameColor=g_JSChartResource.DialogSearchIndex.IndexNameColor;
33
- this.GroupNameColor=g_JSChartResource.DialogSearchIndex.GroupNameColor;
34
- this.InputTextColor=g_JSChartResource.DialogSearchIndex.InputTextColor;
35
-
36
28
  this.MaxRowCount=30; //行
37
29
  this.ColCount=3; //列
38
30
  this.MaxGroupCount=20; //分类最多个数
@@ -399,15 +391,7 @@ function JSDialogSearchIndex()
399
391
 
400
392
  this.UpdateStyle=function()
401
393
  {
402
- if (!this.DivDialog) return;
403
-
404
- if (this.BGColor) this.DivDialog.style['background-color']=this.BGColor;
405
- if (this.BorderColor) this.DivDialog.style['border-color']=this.BorderColor;
406
-
407
- if (this.TitleBGColor) this.TitleBox.DivTitle.style['background-color']=this.TitleBGColor;
408
- if (this.TitleColor) this.TitleBox.DivName.style['color']=this.TitleColor;
409
-
410
- if (this.InputTextColor) this.InputDom.style['color']=this.InputTextColor;
394
+
411
395
  };
412
396
 
413
397
  this.ChangeGroup=function(groupID)
@@ -442,7 +426,6 @@ function JSDialogSearchIndex()
442
426
  cell.Span.innerText=item.Group.Name;
443
427
  cell.Span.dataset.groupid=item.Group.ID;
444
428
  cell.Span.dataset.groupname=item.Group.Name;
445
- cell.Span.style.color=this.GroupNameColor;
446
429
 
447
430
  if (cell.Div.style.display=="none") cell.Div.style.display="";
448
431
  }
@@ -468,7 +451,6 @@ function JSDialogSearchIndex()
468
451
  {
469
452
  var indexItem=data.AryIndex[index];
470
453
  cell.Span.innerText=indexItem.Name;
471
- cell.Span.style.color=this.IndexNameColor;
472
454
  if (cell.Td.style.display=="none") cell.Td.style.display="";
473
455
  cell.IndexItem=indexItem;
474
456
  ++index;
@@ -557,17 +539,7 @@ function JSDialogSearchIndex()
557
539
  //配色修改
558
540
  this.ReloadResource=function(option)
559
541
  {
560
- this.TitleColor=g_JSChartResource.DialogSearchIndex.TitleColor;
561
- this.TitleBGColor=g_JSChartResource.DialogSearchIndex.TitleBGColor;
562
- this.BGColor=g_JSChartResource.DialogSearchIndex.BGColor;
563
- this.BorderColor=g_JSChartResource.DialogSearchIndex.BorderColor;
564
- this.IndexNameColor=g_JSChartResource.DialogSearchIndex.IndexNameColor;
565
- this.GroupNameColor=g_JSChartResource.DialogSearchIndex.GroupNameColor;
566
- this.InputTextColor=g_JSChartResource.DialogSearchIndex.InputTextColor;
567
-
568
- if (!this.DivDialog) return;
569
-
570
- this.UpdateStyle();
542
+
571
543
  }
572
544
 
573
545
  }
@@ -878,13 +850,6 @@ function JSDialogModifyIndexParam()
878
850
  this.TitleBox=null; //{ DivTitle, DivName, DivName }
879
851
  this.Style=0; //样式 预留
880
852
 
881
- this.TitleColor=g_JSChartResource.DialogModifyIndexParam.TitleColor;
882
- this.TitleBGColor=g_JSChartResource.DialogModifyIndexParam.TitleBGColor;
883
- this.BGColor=g_JSChartResource.DialogModifyIndexParam.BGColor;
884
- this.BorderColor=g_JSChartResource.DialogModifyIndexParam.BorderColor;
885
- this.ParamNameColor=g_JSChartResource.DialogModifyIndexParam.ParamNameColor;
886
- this.InputTextColor=g_JSChartResource.DialogModifyIndexParam.InputTextColor;
887
-
888
853
  this.MaxRowCount=30; //行
889
854
 
890
855
  this.HQChart=null;
@@ -1132,8 +1097,9 @@ function JSDialogModifyIndexParam()
1132
1097
  input.className='UMyChart_ModifyIndexParam_Input';
1133
1098
  input.type="number";
1134
1099
  input.step=1;
1135
- input.addEventListener("mouseup", (e)=>{ this.OnParamMouseUp(e)});
1136
- input.addEventListener("keyup", (e)=>{ this.OnParamKeyUp(e)})
1100
+ //input.addEventListener("mouseup", (e)=>{ this.OnParamMouseUp(e)});
1101
+ //input.addEventListener("keyup", (e)=>{ this.OnParamKeyUp(e)} );
1102
+ input.addEventListener("input", (e)=>{ this.OnParamInput(e)} );
1137
1103
  tdDom.appendChild(input);
1138
1104
  rowItem.Input=input;
1139
1105
 
@@ -1142,13 +1108,7 @@ function JSDialogModifyIndexParam()
1142
1108
 
1143
1109
  this.UpdateStyle=function()
1144
1110
  {
1145
- if (!this.DivDialog) return;
1146
-
1147
- if (this.BGColor) this.DivDialog.style['background-color']=this.BGColor;
1148
- if (this.BorderColor) this.DivDialog.style['border-color']=this.BorderColor;
1149
-
1150
- if (this.TitleBGColor) this.TitleBox.DivTitle.style['background-color']=this.TitleBGColor;
1151
- if (this.TitleColor) this.TitleBox.DivName.style['color']=this.TitleColor;
1111
+
1152
1112
  };
1153
1113
 
1154
1114
  this.UpdateParamTable=function(aryText)
@@ -1159,10 +1119,9 @@ function JSDialogModifyIndexParam()
1159
1119
  var item=aryText[index];
1160
1120
  var row=this.AryData[index];
1161
1121
  row.SpanName.innerText=`${item.Name}: `;
1162
- row.SpanName.style.color=this.ParamNameColor;
1122
+
1163
1123
 
1164
1124
  row.Input.value=item.Value;
1165
- row.Input.style.color=this.InputTextColor;
1166
1125
  row.Input.dataset.paramid=item.Index;
1167
1126
 
1168
1127
  if (row.Tr.style.display=="none") row.Tr.style.display="";
@@ -1269,6 +1228,7 @@ function JSDialogModifyIndexParam()
1269
1228
  }
1270
1229
  }
1271
1230
 
1231
+ /*
1272
1232
  this.OnParamMouseUp=function(e)
1273
1233
  {
1274
1234
  var input=e.target;
@@ -1286,6 +1246,16 @@ function JSDialogModifyIndexParam()
1286
1246
 
1287
1247
  this.ModifyParam(id, parseInt(value));
1288
1248
  }
1249
+ */
1250
+
1251
+ this.OnParamInput=function(e)
1252
+ {
1253
+ var input=e.target;
1254
+ var value=input.value;
1255
+ var id=input.dataset.paramid;
1256
+
1257
+ this.ModifyParam(id, parseInt(value));
1258
+ }
1289
1259
 
1290
1260
  this.ModifyParam=function(id, value)
1291
1261
  {
@@ -2475,6 +2475,13 @@ JSChart.SetStyle=function(option)
2475
2475
  if (option) g_JSChartResource.SetStyle(option);
2476
2476
  }
2477
2477
 
2478
+
2479
+ //CSS风格
2480
+ JSChart.SetCSSStyle=function(styleID)
2481
+ {
2482
+ document.documentElement.setAttribute('hqchart_style', styleID);
2483
+ }
2484
+
2478
2485
  //value { EN:'', CH:'' }
2479
2486
  JSChart.SetTextResource=function(key,value)
2480
2487
  {
@@ -2900,6 +2907,8 @@ var JSCHART_EVENT_ID=
2900
2907
  ON_FORMAT_COUNTDOWN_TEXT:177, //倒计时
2901
2908
  ON_CLICK_INDEX_LOCK:178, //点击指标锁
2902
2909
  ON_CORSSCURSOR_STATUS_CHANGE:179, //十字光标状态改变
2910
+
2911
+ ON_FORMAT_DRAW_HLINE_LABEL:180, //画图工具-水平线(ChartDrawPictureHorizontalLine)格式化标签文字
2903
2912
  }
2904
2913
 
2905
2914
  var JSCHART_OPERATOR_ID=
@@ -6439,6 +6448,11 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
6439
6448
  chartItem.Canvas=canvas; //叠加图形
6440
6449
  }
6441
6450
  }
6451
+
6452
+ if (item.Frame.LockPaint)
6453
+ {
6454
+ item.Frame.LockPaint.Canvas=canvas;
6455
+ }
6442
6456
  }
6443
6457
  }
6444
6458
 
@@ -64564,7 +64578,7 @@ function IChartDrawPicture()
64564
64578
  this.PointType=g_JSChartResource.DrawPicture.PointType; // 0=圆点 1=方框 2= 空心圆
64565
64579
  this.IsShowPoint=g_JSChartResource.DrawPicture.IsShowPoint; //是否始终显示点
64566
64580
  this.LimitFrameID; //限制在指定窗口绘图
64567
-
64581
+ this.CacheData; //数据缓存
64568
64582
 
64569
64583
  //接口函数
64570
64584
  this.SetLastPoint=null; //this.SetLastPoint=function(obj) obj={X:,Y:}
@@ -66916,9 +66930,9 @@ function ChartDrawPictureHorizontalLine()
66916
66930
 
66917
66931
  this.LabelConfig=
66918
66932
  {
66919
- Left:{ IsShow:true, Margin:{ Left:5, Top:4, Bottom:2, Right:5 } },
66920
- Right:{ IsShow:true, Margin:{ Left:5, Top:4, Bottom:2, Right:5 } },
66921
- Font:`${12*GetDevicePixelRatio()}px 微软雅黑`, TextColor:"rgb(255,255,255)", BGColor:null
66933
+ Left:{ IsShow:true, Margin:{ Left:5, Top:4, Bottom:2, Right:5 }, LineOffset:null, Text:null },
66934
+ Right:{ IsShow:true, Margin:{ Left:5, Top:4, Bottom:2, Right:5 }, LineOffset:null, Text:null },
66935
+ Font:`${12*GetDevicePixelRatio()}px 微软雅黑`, TextColor:"rgb(255,255,255)", BGColor:null,
66922
66936
  };
66923
66937
 
66924
66938
  this.InsideLabelConfig=
@@ -67017,6 +67031,9 @@ function ChartDrawPictureHorizontalLine()
67017
67031
  left=this.Frame.ChartBorder.GetTop();
67018
67032
  right=this.Frame.ChartBorder.GetBottom();
67019
67033
  }
67034
+
67035
+
67036
+
67020
67037
  this.ClipFrame();
67021
67038
 
67022
67039
  this.Canvas.strokeStyle=this.LineColor;
@@ -67056,6 +67073,8 @@ function ChartDrawPictureHorizontalLine()
67056
67073
  //画点
67057
67074
  this.DrawPoint(drawPoint);
67058
67075
 
67076
+ this.FormatLabelTextEvent(drawPoint);
67077
+
67059
67078
  //显示价格
67060
67079
  this.DrawInsideLabel(drawPoint[0])
67061
67080
 
@@ -67063,6 +67082,16 @@ function ChartDrawPictureHorizontalLine()
67063
67082
 
67064
67083
  this.DrawValueLabel(drawPoint[0]);
67065
67084
  }
67085
+
67086
+ this.FormatLabelTextEvent=function(point)
67087
+ {
67088
+ if (!this.HQChart) return;
67089
+ var event=this.HQChart.GetEventCallback(JSCHART_EVENT_ID.ON_FORMAT_DRAW_HLINE_LABEL);
67090
+ if (!event || !event.Callback) return;
67091
+
67092
+ var sendData={ ID:this.Guid, LabelConfig:this.LabelConfig, InsideLabelConfig:this.InsideLabelConfig };
67093
+ event.Callback(event, sendData, this);
67094
+ }
67066
67095
 
67067
67096
  this.DrawValueLabel=function(point)
67068
67097
  {
@@ -67070,6 +67099,8 @@ function ChartDrawPictureHorizontalLine()
67070
67099
  if (this.Frame.IsHScreen) return; //不支持横屏
67071
67100
 
67072
67101
  var y=point.Y;
67102
+ var yFixed=ToFixedPoint2(this.LineWidth,y);
67103
+
67073
67104
  var yValue=this.Frame.GetYData(y);
67074
67105
  var text=yValue.toFixed(2);
67075
67106
 
@@ -67078,12 +67109,27 @@ function ChartDrawPictureHorizontalLine()
67078
67109
 
67079
67110
  this.Canvas.font=config.Font;
67080
67111
  var textHeight=this.Canvas.measureText("擎").width;
67081
- var textWidth=this.Canvas.measureText(text).width;
67082
67112
 
67083
67113
  if (config.Left.IsShow && this.Frame.ChartBorder.Left>5)
67084
67114
  {
67115
+ var leftText=text;
67116
+ if (config.Left.Text) leftText=config.Left.Text;
67117
+ var textWidth=this.Canvas.measureText(leftText).width;
67118
+ var left=border.Left;
67119
+ if (IFrameSplitOperator.IsNumber(config.Left.LineOffset)&& config.Left.LineOffset!==0)
67120
+ {
67121
+ left-=config.Left.LineOffset;
67122
+ this.Canvas.strokeStyle=this.LineColor;
67123
+ this.SetLineWidth();
67124
+ this.Canvas.beginPath();
67125
+ this.Canvas.moveTo(border.Left,yFixed);
67126
+ this.Canvas.lineTo(left,yFixed);
67127
+ this.Canvas.stroke();
67128
+ this.RestoreLineWidth();
67129
+ }
67130
+
67085
67131
  var margin=config.Left.Margin;
67086
- var rtBG={ Right:border.Left-1, Height:textHeight+margin.Top+margin.Bottom, Width:textWidth+margin.Left+margin.Right };
67132
+ var rtBG={ Right:left+1, Height:textHeight+margin.Top+margin.Bottom, Width:textWidth+margin.Left+margin.Right };
67087
67133
  rtBG.Top=y-textHeight/2-margin.Top;
67088
67134
  rtBG.Bottom=rtBG.Top+rtBG.Height;
67089
67135
  rtBG.Left=rtBG.Right-rtBG.Width;
@@ -67097,13 +67143,30 @@ function ChartDrawPictureHorizontalLine()
67097
67143
  var xText=rtBG.Left+margin.Left;
67098
67144
  var yText=rtBG.Top+margin.Top;
67099
67145
  this.Canvas.fillStyle=config.TextColor;
67100
- this.Canvas.fillText(text,xText,yText);
67146
+ this.Canvas.fillText(leftText,xText,yText);
67101
67147
  }
67102
67148
 
67103
67149
  if (config.Right.IsShow && this.Frame.ChartBorder.Right>5)
67104
67150
  {
67151
+ var rightText=text;
67152
+ if (config.Right.Text) rightText=config.Right.Text;
67153
+ var textWidth=this.Canvas.measureText(rightText).width;
67154
+
67155
+ var left=border.Right;
67156
+ if (IFrameSplitOperator.IsNumber(config.Right.LineOffset)&& config.Right.LineOffset!==0)
67157
+ {
67158
+ left+=config.Right.LineOffset;
67159
+ this.Canvas.strokeStyle=this.LineColor;
67160
+ this.SetLineWidth();
67161
+ this.Canvas.beginPath();
67162
+ this.Canvas.moveTo(border.Right,yFixed);
67163
+ this.Canvas.lineTo(left,yFixed);
67164
+ this.Canvas.stroke();
67165
+ this.RestoreLineWidth();
67166
+ }
67167
+
67105
67168
  var margin=config.Right.Margin;
67106
- var rtBG={ Left:border.Right+1, Height:textHeight+margin.Top+margin.Bottom, Width:textWidth+margin.Left+margin.Right };
67169
+ var rtBG={ Left:left-1, Height:textHeight+margin.Top+margin.Bottom, Width:textWidth+margin.Left+margin.Right };
67107
67170
  rtBG.Top=y-textHeight/2-margin.Top;
67108
67171
  rtBG.Bottom=rtBG.Top+rtBG.Height;
67109
67172
  rtBG.Right=rtBG.Left+rtBG.Width;
@@ -67117,7 +67180,7 @@ function ChartDrawPictureHorizontalLine()
67117
67180
  var xText=rtBG.Left+margin.Left;
67118
67181
  var yText=rtBG.Top+margin.Top;
67119
67182
  this.Canvas.fillStyle=config.TextColor;
67120
- this.Canvas.fillText(text,xText,yText);
67183
+ this.Canvas.fillText(rightText,xText,yText);
67121
67184
  }
67122
67185
  }
67123
67186
 
@@ -77907,30 +77970,6 @@ function JSChartResource()
77907
77970
  }
77908
77971
  };
77909
77972
 
77910
- //指标搜索
77911
- this.DialogSearchIndex=
77912
- {
77913
- BGColor:'rgb(250,250,250)', //背景色
77914
- BorderColor:'rgb(20,20,20)', //边框颜色
77915
- TitleColor:'rgb(250,250,250)', //标题颜色
77916
- TitleBGColor:"rgb(200, 66, 69)", //标题背景颜色
77917
-
77918
- IndexNameColor:"rgb(0,0,0)", //数值名称
77919
- GroupNameColor:"rgb(0,0,0)",
77920
- InputTextColor:"rgb(0,0,0)"
77921
- };
77922
-
77923
- this.DialogModifyIndexParam=
77924
- {
77925
- BGColor:'rgb(250,250,250)', //背景色
77926
- BorderColor:'rgb(20,20,20)', //边框颜色
77927
- TitleColor:'rgb(250,250,250)', //标题颜色
77928
- TitleBGColor:"rgb(200, 66, 69)", //标题背景颜色
77929
-
77930
- ParamNameColor:"rgb(0,0,0)", //数值名称
77931
- InputTextColor:"rgb(0,0,0)"
77932
- };
77933
-
77934
77973
  //弹幕
77935
77974
  this.Barrage= {
77936
77975
  Font:16*GetDevicePixelRatio() +'px 微软雅黑', //字体
@@ -79155,20 +79194,6 @@ function JSChartResource()
79155
79194
  }
79156
79195
  }
79157
79196
 
79158
- if (style.DialogSearchIndex)
79159
- {
79160
- var item=style.DialogSearchIndex;
79161
-
79162
- if (item.BGColor) this.DialogSearchIndex.BGColor=item.BGColor;
79163
- if (item.BorderColor) this.DialogSearchIndex.BorderColor=item.BorderColor;
79164
- if (item.TitleColor) this.DialogSearchIndex.TitleColor=item.TitleColor;
79165
- if (item.TitleBGColor) this.DialogSearchIndex.TitleBGColor=item.TitleBGColor;
79166
-
79167
- if (item.IndexNameColor) this.DialogSearchIndex.IndexNameColor=item.IndexNameColor;
79168
- if (item.GroupNameColor) this.DialogSearchIndex.GroupNameColor=item.GroupNameColor;
79169
- if (item.InputTextColor) this.DialogSearchIndex.InputTextColor=item.InputTextColor;
79170
- }
79171
-
79172
79197
  if (style.MinuteInfo)
79173
79198
  {
79174
79199
  var item=style.MinuteInfo;
@@ -87479,7 +87504,6 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
87479
87504
  if (item)
87480
87505
  {
87481
87506
  drawPicture=item.Create();
87482
- drawPicture.HQChart=this;
87483
87507
  }
87484
87508
 
87485
87509
  if (!drawPicture) //iconfont图标
@@ -87502,6 +87526,7 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
87502
87526
  drawPicture.Period=this.Period;
87503
87527
  drawPicture.Right=this.Right;
87504
87528
  drawPicture.Option=this.ChartDrawOption;
87529
+ drawPicture.HQChart=this;
87505
87530
 
87506
87531
  if (callback) drawPicture.FinishedCallback=callback; //完成通知上层回调
87507
87532
  if (option) drawPicture.SetOption(option);
@@ -87532,8 +87557,10 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
87532
87557
  drawPicture.Period=this.Period;
87533
87558
  drawPicture.Right=this.Right;
87534
87559
  drawPicture.Option=this.ChartDrawOption;
87560
+ drawPicture.HQChart=this;
87535
87561
  if (obj.Value) drawPicture.Value=obj.Value;
87536
87562
  if (obj.Guid) drawPicture.Guid=obj.Guid;
87563
+ if (obj.CacheData) drawPicture.CacheData=obj.CacheData; //缓存数据
87537
87564
 
87538
87565
  if (drawPicture.ImportStorageData) drawPicture.ImportStorageData(obj);
87539
87566
  drawPicture.SetOption(obj);
@@ -88149,6 +88176,7 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
88149
88176
  drawPicture.Status=10;
88150
88177
  drawPicture.Frame=this.Frame.SubFrame[item.FrameID].Frame; //绑定框架坐标
88151
88178
  drawPicture.Option=this.ChartDrawOption;
88179
+ drawPicture.HQChart=this;
88152
88180
 
88153
88181
  if (drawPicture.ImportStorageData) drawPicture.ImportStorageData(item);
88154
88182
  if (drawPicture.Period!=this.Period)
@@ -95911,6 +95939,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
95911
95939
  drawPicture.Symbol=this.Symbol;
95912
95940
  drawPicture.Period=888888888;
95913
95941
  drawPicture.Option=this.ChartDrawOption;
95942
+ drawPicture.HQChart=this;
95914
95943
 
95915
95944
  if (callback) drawPicture.FinishedCallback=callback; //完成通知上层回调
95916
95945
  if (option) drawPicture.SetOption(option);
@@ -95941,8 +95970,10 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
95941
95970
  drawPicture.Frame=this.Frame.SubFrame[obj.FrameID].Frame; //绑定框架坐标
95942
95971
  drawPicture.Symbol=this.Symbol;
95943
95972
  drawPicture.Period=888888888;
95973
+ drawPicture.HQChart=this;
95944
95974
  if (obj.Value) drawPicture.Value=obj.Value;
95945
95975
  if (obj.Guid) drawPicture.Guid=obj.Guid;
95976
+ if (obj.CacheData) drawPicture.CacheData=obj.CacheData; //缓存数据
95946
95977
 
95947
95978
  if (drawPicture.ImportStorageData) drawPicture.ImportStorageData(obj);
95948
95979
  drawPicture.SetOption(obj);
@@ -95988,6 +96019,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
95988
96019
 
95989
96020
  drawPicture.Canvas=this.Canvas;
95990
96021
  drawPicture.Status=10;
96022
+ drawPicture.HQChart=this;
95991
96023
  drawPicture.Frame=this.Frame.SubFrame[item.FrameID].Frame; //绑定框架坐标
95992
96024
  if (drawPicture.ImportStorageData) drawPicture.ImportStorageData(item);
95993
96025
  drawPicture.ResetXValue();