hqchart 1.1.15138 → 1.1.15147

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.
@@ -6571,6 +6571,13 @@ JSChart.SetStyle=function(option)
6571
6571
  if (option) g_JSChartResource.SetStyle(option);
6572
6572
  }
6573
6573
 
6574
+
6575
+ //CSS风格
6576
+ JSChart.SetCSSStyle=function(styleID)
6577
+ {
6578
+ document.documentElement.setAttribute('hqchart_style', styleID);
6579
+ }
6580
+
6574
6581
  //value { EN:'', CH:'' }
6575
6582
  JSChart.SetTextResource=function(key,value)
6576
6583
  {
@@ -82003,30 +82010,6 @@ function JSChartResource()
82003
82010
  }
82004
82011
  };
82005
82012
 
82006
- //指标搜索
82007
- this.DialogSearchIndex=
82008
- {
82009
- BGColor:'rgb(250,250,250)', //背景色
82010
- BorderColor:'rgb(20,20,20)', //边框颜色
82011
- TitleColor:'rgb(250,250,250)', //标题颜色
82012
- TitleBGColor:"rgb(200, 66, 69)", //标题背景颜色
82013
-
82014
- IndexNameColor:"rgb(0,0,0)", //数值名称
82015
- GroupNameColor:"rgb(0,0,0)",
82016
- InputTextColor:"rgb(0,0,0)"
82017
- };
82018
-
82019
- this.DialogModifyIndexParam=
82020
- {
82021
- BGColor:'rgb(250,250,250)', //背景色
82022
- BorderColor:'rgb(20,20,20)', //边框颜色
82023
- TitleColor:'rgb(250,250,250)', //标题颜色
82024
- TitleBGColor:"rgb(200, 66, 69)", //标题背景颜色
82025
-
82026
- ParamNameColor:"rgb(0,0,0)", //数值名称
82027
- InputTextColor:"rgb(0,0,0)"
82028
- };
82029
-
82030
82013
  //弹幕
82031
82014
  this.Barrage= {
82032
82015
  Font:16*GetDevicePixelRatio() +'px 微软雅黑', //字体
@@ -83251,20 +83234,6 @@ function JSChartResource()
83251
83234
  }
83252
83235
  }
83253
83236
 
83254
- if (style.DialogSearchIndex)
83255
- {
83256
- var item=style.DialogSearchIndex;
83257
-
83258
- if (item.BGColor) this.DialogSearchIndex.BGColor=item.BGColor;
83259
- if (item.BorderColor) this.DialogSearchIndex.BorderColor=item.BorderColor;
83260
- if (item.TitleColor) this.DialogSearchIndex.TitleColor=item.TitleColor;
83261
- if (item.TitleBGColor) this.DialogSearchIndex.TitleBGColor=item.TitleBGColor;
83262
-
83263
- if (item.IndexNameColor) this.DialogSearchIndex.IndexNameColor=item.IndexNameColor;
83264
- if (item.GroupNameColor) this.DialogSearchIndex.GroupNameColor=item.GroupNameColor;
83265
- if (item.InputTextColor) this.DialogSearchIndex.InputTextColor=item.InputTextColor;
83266
- }
83267
-
83268
83237
  if (style.MinuteInfo)
83269
83238
  {
83270
83239
  var item=style.MinuteInfo;
@@ -137131,17 +137100,6 @@ function GetBlackStyle()
137131
137100
  PositionColor:"rgb(255,0,255)" //持仓
137132
137101
  },
137133
137102
 
137134
- DialogSearchIndex:
137135
- {
137136
- BGColor:'rgb(20,20,20)', //背景色
137137
- BorderColor:'rgb(170,170,170)', //边框颜色
137138
- TitleColor:'rgb(230,230,230)', //标题颜色
137139
-
137140
- IndexNameColor:"rgb(210,210,210)",
137141
- GroupNameColor:"rgb(210,210,210)",
137142
- InputTextColor:"rgb(210,210,210)",
137143
- },
137144
-
137145
137103
  DialogPopKeyboard:
137146
137104
  {
137147
137105
  BGColor:'rgb(20,20,20)', //背景色
@@ -153775,7 +153733,7 @@ function ScrollBarBGChart()
153775
153733
 
153776
153734
 
153777
153735
 
153778
- var HQCHART_VERSION="1.1.15137";
153736
+ var HQCHART_VERSION="1.1.15146";
153779
153737
 
153780
153738
  function PrintHQChartVersion()
153781
153739
  {
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var HQCHART_VERSION="1.1.15137";
8
+ var HQCHART_VERSION="1.1.15146";
9
9
 
10
10
  function PrintHQChartVersion()
11
11
  {
@@ -6615,6 +6615,13 @@ JSChart.SetStyle=function(option)
6615
6615
  if (option) g_JSChartResource.SetStyle(option);
6616
6616
  }
6617
6617
 
6618
+
6619
+ //CSS风格
6620
+ JSChart.SetCSSStyle=function(styleID)
6621
+ {
6622
+ document.documentElement.setAttribute('hqchart_style', styleID);
6623
+ }
6624
+
6618
6625
  //value { EN:'', CH:'' }
6619
6626
  JSChart.SetTextResource=function(key,value)
6620
6627
  {
@@ -82047,30 +82054,6 @@ function JSChartResource()
82047
82054
  }
82048
82055
  };
82049
82056
 
82050
- //指标搜索
82051
- this.DialogSearchIndex=
82052
- {
82053
- BGColor:'rgb(250,250,250)', //背景色
82054
- BorderColor:'rgb(20,20,20)', //边框颜色
82055
- TitleColor:'rgb(250,250,250)', //标题颜色
82056
- TitleBGColor:"rgb(200, 66, 69)", //标题背景颜色
82057
-
82058
- IndexNameColor:"rgb(0,0,0)", //数值名称
82059
- GroupNameColor:"rgb(0,0,0)",
82060
- InputTextColor:"rgb(0,0,0)"
82061
- };
82062
-
82063
- this.DialogModifyIndexParam=
82064
- {
82065
- BGColor:'rgb(250,250,250)', //背景色
82066
- BorderColor:'rgb(20,20,20)', //边框颜色
82067
- TitleColor:'rgb(250,250,250)', //标题颜色
82068
- TitleBGColor:"rgb(200, 66, 69)", //标题背景颜色
82069
-
82070
- ParamNameColor:"rgb(0,0,0)", //数值名称
82071
- InputTextColor:"rgb(0,0,0)"
82072
- };
82073
-
82074
82057
  //弹幕
82075
82058
  this.Barrage= {
82076
82059
  Font:16*GetDevicePixelRatio() +'px 微软雅黑', //字体
@@ -83295,20 +83278,6 @@ function JSChartResource()
83295
83278
  }
83296
83279
  }
83297
83280
 
83298
- if (style.DialogSearchIndex)
83299
- {
83300
- var item=style.DialogSearchIndex;
83301
-
83302
- if (item.BGColor) this.DialogSearchIndex.BGColor=item.BGColor;
83303
- if (item.BorderColor) this.DialogSearchIndex.BorderColor=item.BorderColor;
83304
- if (item.TitleColor) this.DialogSearchIndex.TitleColor=item.TitleColor;
83305
- if (item.TitleBGColor) this.DialogSearchIndex.TitleBGColor=item.TitleBGColor;
83306
-
83307
- if (item.IndexNameColor) this.DialogSearchIndex.IndexNameColor=item.IndexNameColor;
83308
- if (item.GroupNameColor) this.DialogSearchIndex.GroupNameColor=item.GroupNameColor;
83309
- if (item.InputTextColor) this.DialogSearchIndex.InputTextColor=item.InputTextColor;
83310
- }
83311
-
83312
83281
  if (style.MinuteInfo)
83313
83282
  {
83314
83283
  var item=style.MinuteInfo;
@@ -137175,17 +137144,6 @@ function GetBlackStyle()
137175
137144
  PositionColor:"rgb(255,0,255)" //持仓
137176
137145
  },
137177
137146
 
137178
- DialogSearchIndex:
137179
- {
137180
- BGColor:'rgb(20,20,20)', //背景色
137181
- BorderColor:'rgb(170,170,170)', //边框颜色
137182
- TitleColor:'rgb(230,230,230)', //标题颜色
137183
-
137184
- IndexNameColor:"rgb(210,210,210)",
137185
- GroupNameColor:"rgb(210,210,210)",
137186
- InputTextColor:"rgb(210,210,210)",
137187
- },
137188
-
137189
137147
  DialogPopKeyboard:
137190
137148
  {
137191
137149
  BGColor:'rgb(20,20,20)', //背景色
@@ -158234,7 +158192,7 @@ function JSDialogModifyDraw()
158234
158192
 
158235
158193
  var spanDom=document.createElement("span");
158236
158194
  spanDom.className="hqchart_drawtool icon-tuodong";
158237
- spanDom.classList.add("UMyChart_DrawTool_Span");
158195
+ spanDom.classList.add("UMyChart_Draw_Modify_Dialog_Drag_Span");
158238
158196
  drgDiv.appendChild(spanDom);
158239
158197
 
158240
158198
  for(var i=0;i<this.AryButton.length;++i)
@@ -158260,7 +158218,7 @@ function JSDialogModifyDraw()
158260
158218
 
158261
158219
  var spanDom=document.createElement("span");
158262
158220
  spanDom.className=item.ClassName;
158263
- spanDom.classList.add("UMyChart_DrawTool_Span");
158221
+ spanDom.classList.add("UMyChart_Draw_Modify_Dialog_Button_Span");
158264
158222
  divItem.appendChild(spanDom);
158265
158223
 
158266
158224
 
@@ -158289,7 +158247,6 @@ function JSDialogModifyDraw()
158289
158247
  break;
158290
158248
  case JS_DRAWTOOL_MENU_ID.CMD_LOCK_DRAW_CHART_ID:
158291
158249
  this.LockButton=data;
158292
- this.LockButton.Span.style['color']="rgb(220,220,220)";
158293
158250
  break;
158294
158251
  case JS_DRAWTOOL_MENU_ID.CMD_ZOOM_FONT_ID:
158295
158252
  this.FontZoomButton=data;
@@ -158494,7 +158451,23 @@ function JSDialogModifyDraw()
158494
158451
  if (!this.ChartPicture || !this.HQChart) return;
158495
158452
  this.ChartPicture.EnableMove=!this.ChartPicture.EnableMove;
158496
158453
 
158497
- if (this.LockButton) this.LockButton.Span.style['color']=this.ChartPicture.EnableMove?"rgb(220,220,220)":"rgb(0,0,0)";
158454
+ return this.UpdateLockButtonStyle();
158455
+ }
158456
+
158457
+ this.UpdateLockButtonStyle=function()
158458
+ {
158459
+ if (!this.LockButton) return;
158460
+
158461
+ if (this.ChartPicture.EnableMove)
158462
+ {
158463
+ this.LockButton.Span.classList.remove("UMyChart_Draw_Modify_Dialog_Button_Span");
158464
+ this.LockButton.Span.classList.add("UMyChart_Draw_Modify_Dialog_Unlock_Button_Span");
158465
+ }
158466
+ else
158467
+ {
158468
+ this.LockButton.Span.classList.remove("UMyChart_Draw_Modify_Dialog_Unlock_Button_Span");
158469
+ this.LockButton.Span.classList.add("UMyChart_Draw_Modify_Dialog_Button_Span");
158470
+ }
158498
158471
  }
158499
158472
 
158500
158473
  this.ModifyBorderColor=function()
@@ -158679,8 +158652,7 @@ function JSDialogModifyDraw()
158679
158652
 
158680
158653
  if (this.LockButton)
158681
158654
  {
158682
- var item=this.LockButton;
158683
- item.Span.style['color']=this.ChartPicture.EnableMove?"rgb(220,220,220)":"rgb(0,0,0)";
158655
+ this.UpdateLockButtonStyle();
158684
158656
  }
158685
158657
 
158686
158658
  if (this.FontZoomButton)
@@ -164266,14 +164238,6 @@ function JSDialogSearchIndex()
164266
164238
  //{ WindowIndex:窗口索引, OpType:1=切换主图指标 2=添加叠加指标 3=新增指标窗口, Title: };
164267
164239
  this.OpData=null;
164268
164240
 
164269
- this.TitleColor=g_JSChartResource.DialogSearchIndex.TitleColor;
164270
- this.TitleBGColor=g_JSChartResource.DialogSearchIndex.TitleBGColor;
164271
- this.BGColor=g_JSChartResource.DialogSearchIndex.BGColor;
164272
- this.BorderColor=g_JSChartResource.DialogSearchIndex.BorderColor;
164273
- this.IndexNameColor=g_JSChartResource.DialogSearchIndex.IndexNameColor;
164274
- this.GroupNameColor=g_JSChartResource.DialogSearchIndex.GroupNameColor;
164275
- this.InputTextColor=g_JSChartResource.DialogSearchIndex.InputTextColor;
164276
-
164277
164241
  this.MaxRowCount=30; //行
164278
164242
  this.ColCount=3; //列
164279
164243
  this.MaxGroupCount=20; //分类最多个数
@@ -164640,15 +164604,7 @@ function JSDialogSearchIndex()
164640
164604
 
164641
164605
  this.UpdateStyle=function()
164642
164606
  {
164643
- if (!this.DivDialog) return;
164644
-
164645
- if (this.BGColor) this.DivDialog.style['background-color']=this.BGColor;
164646
- if (this.BorderColor) this.DivDialog.style['border-color']=this.BorderColor;
164647
-
164648
- if (this.TitleBGColor) this.TitleBox.DivTitle.style['background-color']=this.TitleBGColor;
164649
- if (this.TitleColor) this.TitleBox.DivName.style['color']=this.TitleColor;
164650
-
164651
- if (this.InputTextColor) this.InputDom.style['color']=this.InputTextColor;
164607
+
164652
164608
  };
164653
164609
 
164654
164610
  this.ChangeGroup=function(groupID)
@@ -164683,7 +164639,6 @@ function JSDialogSearchIndex()
164683
164639
  cell.Span.innerText=item.Group.Name;
164684
164640
  cell.Span.dataset.groupid=item.Group.ID;
164685
164641
  cell.Span.dataset.groupname=item.Group.Name;
164686
- cell.Span.style.color=this.GroupNameColor;
164687
164642
 
164688
164643
  if (cell.Div.style.display=="none") cell.Div.style.display="";
164689
164644
  }
@@ -164709,7 +164664,6 @@ function JSDialogSearchIndex()
164709
164664
  {
164710
164665
  var indexItem=data.AryIndex[index];
164711
164666
  cell.Span.innerText=indexItem.Name;
164712
- cell.Span.style.color=this.IndexNameColor;
164713
164667
  if (cell.Td.style.display=="none") cell.Td.style.display="";
164714
164668
  cell.IndexItem=indexItem;
164715
164669
  ++index;
@@ -164798,17 +164752,7 @@ function JSDialogSearchIndex()
164798
164752
  //配色修改
164799
164753
  this.ReloadResource=function(option)
164800
164754
  {
164801
- this.TitleColor=g_JSChartResource.DialogSearchIndex.TitleColor;
164802
- this.TitleBGColor=g_JSChartResource.DialogSearchIndex.TitleBGColor;
164803
- this.BGColor=g_JSChartResource.DialogSearchIndex.BGColor;
164804
- this.BorderColor=g_JSChartResource.DialogSearchIndex.BorderColor;
164805
- this.IndexNameColor=g_JSChartResource.DialogSearchIndex.IndexNameColor;
164806
- this.GroupNameColor=g_JSChartResource.DialogSearchIndex.GroupNameColor;
164807
- this.InputTextColor=g_JSChartResource.DialogSearchIndex.InputTextColor;
164808
-
164809
- if (!this.DivDialog) return;
164810
-
164811
- this.UpdateStyle();
164755
+
164812
164756
  }
164813
164757
 
164814
164758
  }
@@ -165119,13 +165063,6 @@ function JSDialogModifyIndexParam()
165119
165063
  this.TitleBox=null; //{ DivTitle, DivName, DivName }
165120
165064
  this.Style=0; //样式 预留
165121
165065
 
165122
- this.TitleColor=g_JSChartResource.DialogModifyIndexParam.TitleColor;
165123
- this.TitleBGColor=g_JSChartResource.DialogModifyIndexParam.TitleBGColor;
165124
- this.BGColor=g_JSChartResource.DialogModifyIndexParam.BGColor;
165125
- this.BorderColor=g_JSChartResource.DialogModifyIndexParam.BorderColor;
165126
- this.ParamNameColor=g_JSChartResource.DialogModifyIndexParam.ParamNameColor;
165127
- this.InputTextColor=g_JSChartResource.DialogModifyIndexParam.InputTextColor;
165128
-
165129
165066
  this.MaxRowCount=30; //行
165130
165067
 
165131
165068
  this.HQChart=null;
@@ -165383,13 +165320,7 @@ function JSDialogModifyIndexParam()
165383
165320
 
165384
165321
  this.UpdateStyle=function()
165385
165322
  {
165386
- if (!this.DivDialog) return;
165387
-
165388
- if (this.BGColor) this.DivDialog.style['background-color']=this.BGColor;
165389
- if (this.BorderColor) this.DivDialog.style['border-color']=this.BorderColor;
165390
-
165391
- if (this.TitleBGColor) this.TitleBox.DivTitle.style['background-color']=this.TitleBGColor;
165392
- if (this.TitleColor) this.TitleBox.DivName.style['color']=this.TitleColor;
165323
+
165393
165324
  };
165394
165325
 
165395
165326
  this.UpdateParamTable=function(aryText)
@@ -165400,10 +165331,9 @@ function JSDialogModifyIndexParam()
165400
165331
  var item=aryText[index];
165401
165332
  var row=this.AryData[index];
165402
165333
  row.SpanName.innerText=`${item.Name}: `;
165403
- row.SpanName.style.color=this.ParamNameColor;
165334
+
165404
165335
 
165405
165336
  row.Input.value=item.Value;
165406
- row.Input.style.color=this.InputTextColor;
165407
165337
  row.Input.dataset.paramid=item.Index;
165408
165338
 
165409
165339
  if (row.Tr.style.display=="none") row.Tr.style.display="";
@@ -165804,7 +165734,7 @@ function HQChartScriptWorker()
165804
165734
 
165805
165735
 
165806
165736
 
165807
- var HQCHART_VERSION="1.1.15137";
165737
+ var HQCHART_VERSION="1.1.15146";
165808
165738
 
165809
165739
  function PrintHQChartVersion()
165810
165740
  {