hqchart 1.1.13550 → 1.1.13558

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.13550",
3
+ "version": "1.1.13558",
4
4
  "description": "HQChart - H5, 微信小程序 沪深/港股/数字货币/期货/美股 K线图(kline),走势图,缩放,拖拽,十字光标,画图工具,截图,筹码图. 分析家语法,通达信语法,(麦语法),第3方数据对接",
5
5
  "main": "lib/main.js",
6
6
  "scripts": {
@@ -1008,6 +1008,10 @@ function ChartDealList()
1008
1008
  if (!IFrameSplitOperator.IsNumber(item.DataIndex)) continue;
1009
1009
  colItem.DataIndex=item.DataIndex; //柱子数据所在原始数据索引列
1010
1010
  }
1011
+ else if (item.Type==DEAL_COLUMN_ID.TIME_ID)
1012
+ {
1013
+ if (IFrameSplitOperator.IsString(item.Foramt)) colItem.Foramt=item.Foramt; //设置时间格式
1014
+ }
1011
1015
 
1012
1016
  this.Column.push(colItem);
1013
1017
  }
@@ -2599,6 +2599,7 @@ var JSCHART_EVENT_ID=
2599
2599
  ON_CLICK_TREPORT_ROW:127, //左键点击点击T型报价列表
2600
2600
 
2601
2601
  ON_DRAW_REPORT_ROW_BG:140, //报价列表整行背景
2602
+ ON_CLICK_REPORT_CHECKBOX:141, //报价列表checkbox
2602
2603
 
2603
2604
 
2604
2605
  ON_CHANGE_INDEX:150, //切换指标
@@ -50888,8 +50889,9 @@ function HQPriceStringFormat()
50888
50889
  var event=this.GetEventCallback(JSCHART_EVENT_ID.ON_FORMAT_CORSSCURSOR_Y_TEXT);
50889
50890
  if (event)
50890
50891
  {
50891
- var data={ Value:this.Value, FrameID:this.FrameID };
50892
+ var data={ Value:this.Value, FrameID:this.FrameID, PreventDefault:false };
50892
50893
  event.Callback(event,data,this);
50894
+ if (data.PreventDefault==true) return false;
50893
50895
  }
50894
50896
  }
50895
50897
 
@@ -50964,8 +50966,10 @@ function HQDateStringFormat()
50964
50966
  var event=this.GetEventCallback(JSCHART_EVENT_ID.ON_FORMAT_CORSSCURSOR_X_TEXT);
50965
50967
  if (event)
50966
50968
  {
50967
- var data={ Item:currentData, Period:this.Data.Period, Date:currentData.Date, Time:currentData.Time,Index:this.Data.DataOffset+index };
50969
+ var data={ Item:currentData, Period:this.Data.Period, Date:currentData.Date, Time:currentData.Time,Index:this.Data.DataOffset+index, PreventDefault:false };
50968
50970
  event.Callback(event,data,this);
50971
+
50972
+ if (data.PreventDefault==true) return false;
50969
50973
  }
50970
50974
  }
50971
50975
 
@@ -51104,8 +51108,10 @@ function HQMinuteTimeStringFormat()
51104
51108
  var event=this.GetEventCallback(JSCHART_EVENT_ID.ON_FORMAT_CORSSCURSOR_X_TEXT);
51105
51109
  if (event)
51106
51110
  {
51107
- var data={ Time:time, Index:showIndex };
51111
+ var data={ Time:time, Index:showIndex, PreventDefault:false };
51108
51112
  event.Callback(event,data,this);
51113
+
51114
+ if (data.PreventDefault==true) return false;
51109
51115
  }
51110
51116
  }
51111
51117
 
@@ -67239,6 +67245,15 @@ function JSChartResource()
67239
67245
  BorderColor:'rgba(180,180,180,0.9)',
67240
67246
  BGColor:"rgba(234,239,248,0.9)",
67241
67247
  BarWidth:{ Size:12 }
67248
+ },
67249
+
67250
+ CheckBox:
67251
+ {
67252
+ Family:"iconfont", Size:15,
67253
+ Checked:{ Color:"rgb(33,148,240)", Symbol:"\ue6b3", DisableColor:"rgb(112,128,144)" },
67254
+ Unchecked:{ Color:"rgb(33,148,240)", Symbol:"\ue6b4", DisableColor:"rgb(112,128,144)" },
67255
+
67256
+ Margin:{ Left:5, Right:5, Bottom:2, Top:4 },
67242
67257
  }
67243
67258
  },
67244
67259
 
@@ -68254,6 +68269,33 @@ function JSChartResource()
68254
68269
  if (subItem.BorderColor) dest.VScrollbar.BorderColor=subItem.BorderColor;
68255
68270
  if (subItem.BGColor) dest.VScrollbar.BGColor=subItem.BGColor;
68256
68271
  }
68272
+
68273
+ if (item.CheckBox)
68274
+ {
68275
+ var subItem=item.CheckBox;
68276
+ if (subItem.Family) dest.CheckBox.Family=subItem.Family;
68277
+ if (IFrameSplitOperator.IsNumber(subItem.Size)) dest.CheckBox.Size=subItem.Size;
68278
+
68279
+ if (subItem.Checked)
68280
+ {
68281
+ var child=subItem.Checked;
68282
+ if (child.Color) dest.CheckBox.Checked.Color=child.Color;
68283
+ if (child.Symbol) dest.CheckBox.Checked.Symbol=child.Symbol;
68284
+ if (child.DisableColor) dest.CheckBox.Checked.DisableColor=child.DisableColor;
68285
+ }
68286
+
68287
+ if (subItem.Unchecked)
68288
+ {
68289
+ var child=subItem.Unchecked;
68290
+ if (child.Color) dest.CheckBox.Unchecked.Color=child.Color;
68291
+ if (child.Symbol) dest.CheckBox.Unchecked.Symbol=child.Symbol;
68292
+ if (child.DisableColor) dest.CheckBox.Unchecked.DisableColor=child.DisableColor;
68293
+
68294
+
68295
+ }
68296
+
68297
+ CopyMarginConfig(dest.CheckBox.Margin, subItem.Margin);
68298
+ }
68257
68299
 
68258
68300
  }
68259
68301