hqchart 1.1.14533 → 1.1.14542

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.14533",
3
+ "version": "1.1.14542",
4
4
  "description": "HQChart - H5, 微信小程序 沪深/港股/数字货币/期货/美股 K线图(kline),走势图,缩放,拖拽,十字光标,画图工具,截图,筹码图. 分析家语法,通达信语法,(麦语法),第3方数据对接",
5
5
  "main": "lib/main.js",
6
6
  "scripts": {
@@ -1079,6 +1079,10 @@ function JSDialogModifyDraw()
1079
1079
  bShowLineColor=false;
1080
1080
  bAdvanced=true;
1081
1081
  }
1082
+ else if (chart.ClassName=="ChartDrawPictureIconFont")
1083
+ {
1084
+ bShowFontZoom=true;
1085
+ }
1082
1086
 
1083
1087
  if (this.ColorButton)
1084
1088
  {
@@ -24,7 +24,7 @@ function JSTooltipKLineChart()
24
24
 
25
25
  this.BGColor=g_JSChartResource.PopMinuteChart.BGColor;
26
26
  this.BorderColor=g_JSChartResource.PopMinuteChart.BorderColor;
27
- this.OnCreateCallback;
27
+ this.OnCreatedCallback=null;
28
28
 
29
29
  this.KLine=
30
30
  {
@@ -43,8 +43,10 @@ function JSTooltipKLineChart()
43
43
  {
44
44
  var item=CloneData(option.Option); //复制一份出来
45
45
  this.KLine.Option=Object.assign(this.KLine.Option,item);
46
+
47
+ if (IFrameSplitOperator.IsNonEmptyArray(option.Option.EventCallback)) this.KLine.Option.EventCallback=option.Option.EventCallback;
46
48
  }
47
- if (option.OnCreateCallback) this.OnCreateCallback=option.OnCreateCallback;
49
+ if (option.OnCreatedCallback) this.OnCreatedCallback=option.OnCreatedCallback;
48
50
  }
49
51
  }
50
52
 
@@ -91,7 +93,7 @@ function JSTooltipKLineChart()
91
93
 
92
94
  this.OnCreateHQChart=function(chart)
93
95
  {
94
- if (this.OnCreateCallback) this.OnCreateCallback(chart);
96
+ if (this.OnCreatedCallback) this.OnCreatedCallback(chart);
95
97
  }
96
98
 
97
99
  this.Destroy=function()
@@ -232,7 +234,7 @@ JSTooltipKLineChart.GetKLineOption=function()
232
234
  {
233
235
  IsShowName:true, //不显示股票名称
234
236
  IsShowSettingInfo:true, //不显示周期/复权
235
- //IsTitleShowLatestData:true,
237
+ IsTitleShowLatestData:true,
236
238
  },
237
239
 
238
240
  Border: //边框
@@ -326,7 +326,7 @@ function JSTooltipMinuteChart()
326
326
 
327
327
  this.BGColor=g_JSChartResource.PopMinuteChart.BGColor;
328
328
  this.BorderColor=g_JSChartResource.PopMinuteChart.BorderColor;
329
- this.OnCreateCallback;
329
+ this.OnCreatedCallback;
330
330
 
331
331
  this.Minute=
332
332
  {
@@ -346,8 +346,11 @@ function JSTooltipMinuteChart()
346
346
  {
347
347
  var item=CloneData(option.Option); //复制一份出来
348
348
  this.Minute.Option=Object.assign(this.Minute.Option,item);
349
+
350
+ if (IFrameSplitOperator.IsNonEmptyArray(option.Option.EventCallback)) this.Minute.Option.EventCallback=option.Option.EventCallback;
349
351
  }
350
- if (option.OnCreateCallback) this.OnCreateCallback=option.OnCreateCallback;
352
+ if (option.OnCreatedCallback) this.OnCreatedCallback=option.OnCreatedCallback;
353
+
351
354
  }
352
355
  }
353
356
 
@@ -405,7 +408,7 @@ function JSTooltipMinuteChart()
405
408
 
406
409
  this.OnCreateHQChart=function(chart)
407
410
  {
408
- if (this.OnCreateCallback) this.OnCreateCallback(chart);
411
+ if (this.OnCreatedCallback) this.OnCreatedCallback(chart);
409
412
  }
410
413
 
411
414
  this.Destroy=function()