hqchart 1.1.14416 → 1.1.14432

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.14416",
3
+ "version": "1.1.14432",
4
4
  "description": "HQChart - H5, 微信小程序 沪深/港股/数字货币/期货/美股 K线图(kline),走势图,缩放,拖拽,十字光标,画图工具,截图,筹码图. 分析家语法,通达信语法,(麦语法),第3方数据对接",
5
5
  "main": "lib/main.js",
6
6
  "scripts": {
@@ -36,8 +36,13 @@ function JSPopKeyboard()
36
36
  JSChart:null,
37
37
  }
38
38
 
39
- this.Inital=function()
39
+ this.Inital=function(option)
40
40
  {
41
+ if (option)
42
+ {
43
+ if (IFrameSplitOperator.IsBool(option.EnableResize)) this.Keyboard.Option.EnableResize=option.EnableResize;
44
+ }
45
+
41
46
  window.addEventListener('mousedown', (e)=>{ this.OnWindowMouseDown(e)});
42
47
  }
43
48
 
@@ -237,6 +242,11 @@ function JSPopKeyboard()
237
242
  {
238
243
  if (!this.DivDialog) return;
239
244
 
245
+ if (!this.Keyboard.Option.EnableResize) //自动调整大小
246
+ {
247
+ if (this.Keyboard.JSChart) this.Keyboard.JSChart.OnSize();
248
+ }
249
+
240
250
  //显示在右下方
241
251
  var height=this.DivDialog.offsetHeight;
242
252
  var width=this.DivDialog.offsetWidth;
@@ -368,7 +378,7 @@ JSPopKeyboard.GetOption=function()
368
378
  },
369
379
 
370
380
  BorderLine:1|2|4|8,
371
- EnableResize:true,
381
+ EnableResize:false,
372
382
 
373
383
  //{ Type:列id, Title:标题, TextAlign:文字对齐方式, MaxText:文字最大宽度 , TextColor:文字颜色, Sort:0=不支持排序 1=本地排序 0=远程排序 }
374
384
  Column:
@@ -153,6 +153,13 @@ function JSPopMinuteChart()
153
153
  this.Minute.JSChart.ChangeSymbol(data.Symbol);
154
154
  }
155
155
 
156
+ if (!this.Minute.Option.EnableResize)
157
+ {
158
+ if (this.Minute.JSChart) this.Minute.JSChart.OnSize();
159
+ }
160
+
161
+
162
+
156
163
  //超出窗口调整位置
157
164
  var height=this.DivDialog.offsetHeight;
158
165
  var width=this.DivDialog.offsetWidth;
@@ -254,7 +261,7 @@ JSPopMinuteChart.GetMinuteOption=function()
254
261
 
255
262
  EnableSelectRect:true,
256
263
  EnableZoomIndexWindow:true,
257
- EnableResize:true,
264
+ EnableResize:false,
258
265
 
259
266
  //BeforeOpen:{IsShow:true, Width:120, IsShowMultiDay:true, MulitiDayWidth:100, },
260
267
  //AfterClose:{IsShow:true, Width:100, IsShowMultiDay:true, MulitiDayWidth:50, ShareVol:2 }, //ShareVol:0=盘后成交量独立坐标, 1==盘后成交量主图共用 2==盘后成交量盘前共用