hqchart 1.1.15134 → 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.
@@ -1349,15 +1349,16 @@ input[type="color"] {
1349
1349
  {
1350
1350
  font-family: "微软雅黑";
1351
1351
  /*display: flex;*/
1352
- border: 2px solid;
1352
+ border: 1px solid;
1353
1353
  width:fit-content;
1354
- border-color: rgb(204,204,204);
1354
+ border-color: var(--HQChart-DialogDrawTool-BorderColor);
1355
1355
  visibility:hidden;
1356
1356
  position: absolute;
1357
- background-color: rgba(250,250,250,1);
1357
+ background-color: var(--HQChart-DialogDrawTool-BGColor);
1358
1358
  left:1px;
1359
1359
  top:1px;
1360
1360
  z-index: 99;
1361
+ color:var(--HQChart-DialogDrawTool-Color);
1361
1362
  }
1362
1363
 
1363
1364
  .UMyChart_DrawTool_Title_Div
@@ -1365,11 +1366,12 @@ input[type="color"] {
1365
1366
  padding-left: 2px;
1366
1367
  height:20px;
1367
1368
  border-bottom: 1px solid;
1368
- border-color: rgb(204,204,204);
1369
+ border-color: var(--HQChart-DialogDrawTool-BorderColor);
1369
1370
  display: flex;
1370
1371
  cursor: default;
1371
1372
  user-select: none;
1372
- background-color:rgb(222,222,222)
1373
+ color:var(--HQChart-DialogDrawTool-TitleColor);
1374
+ background-color:var(--HQChart-DialogDrawTool-TitleBGColor);
1373
1375
  }
1374
1376
 
1375
1377
  .UMyChart_DrawTool_Close_Div
@@ -1377,6 +1379,7 @@ input[type="color"] {
1377
1379
  margin-left: auto;
1378
1380
  padding-right: 4px;
1379
1381
  cursor:pointer;
1382
+ color:var(--HQChart-DialogDrawTool-CloseColor);
1380
1383
  }
1381
1384
 
1382
1385
  .UMyChart_DrawTool_Table
@@ -1400,9 +1403,9 @@ input[type="color"] {
1400
1403
  {
1401
1404
  font-size:22px;
1402
1405
  border: 1px solid;
1403
- border-color: rgb(128,128,128);
1404
- background: rgb(234,85,4);
1405
- color: rgb(255,255,255);
1406
+ border-color: var(--HQChart-DialogDrawTool-Selected_ButtonBorderColor);
1407
+ background: var(--HQChart-DialogDrawTool-Selected_ButtonBGColor);
1408
+ color: var(--HQChart-DialogDrawTool-Selected_ButtonColor);
1406
1409
  }
1407
1410
 
1408
1411
  .UMyChart_DrawTool_Td
@@ -1414,8 +1417,8 @@ input[type="color"] {
1414
1417
  {
1415
1418
  font-size:22px;
1416
1419
  border: 1px solid;
1417
- border-color: rgb(128,128,128);
1418
- color: rgb(77,77,77);
1420
+ border-color: var(--HQChart-DialogDrawTool-ButtonBorderColor);
1421
+ color: var(--HQChart-DialogDrawTool-ButtonColor);
1419
1422
  }
1420
1423
 
1421
1424
  .UMyChart_DrawTool_Group_Tr
@@ -1434,7 +1437,7 @@ input[type="color"] {
1434
1437
  {
1435
1438
  height:5px;
1436
1439
  border-bottom: 1px solid;
1437
- border-color: rgb(204,204,204);
1440
+ border-color:var(--HQChart-DialogDrawTool-DividingLineColor);
1438
1441
  }
1439
1442
 
1440
1443
 
@@ -1455,12 +1458,14 @@ input[type="color"] {
1455
1458
  {
1456
1459
  font-family: "微软雅黑";
1457
1460
  /*display: flex;*/
1458
- border: 2px solid;
1461
+ border-top: 1px solid;
1462
+ border-bottom: 1px solid;
1463
+ border-left: 1px solid;
1459
1464
  width:fit-content;
1460
- border-color: rgb(204,204,204);
1465
+ border-color: var(--HQChart-DialogModifyDraw-BorderColor);
1461
1466
  visibility:hidden;
1462
1467
  position: absolute;
1463
- background-color: rgba(250,250,250,1);
1468
+ background-color: var(--HQChart-DialogModifyDraw-BGColor);
1464
1469
  left:1px;
1465
1470
  top:1px;
1466
1471
  display: flex;
@@ -1469,13 +1474,35 @@ input[type="color"] {
1469
1474
 
1470
1475
  .UMyChart_Draw_Modify_Dialog_Drag_Div
1471
1476
  {
1472
- width:24px;
1477
+ width:22px;
1473
1478
  user-select: none;
1479
+ border: 1px solid;
1480
+ background-color:var(--HQChart-DialogModifyDraw-DragBGColor);
1481
+ border-color: var(--HQChart-DialogModifyDraw-DragBGColor);
1482
+ }
1483
+
1484
+ .UMyChart_Draw_Modify_Dialog_Drag_Span
1485
+ {
1486
+ font-size:22px;
1487
+ color:var(--HQChart-DialogModifyDraw-DragColor);
1474
1488
  }
1475
1489
 
1476
1490
  .UMyChart_Draw_Modify_Dialog_Button_Div
1477
1491
  {
1478
-
1492
+ border-right: 1px solid;
1493
+ border-color:var(--HQChart-DialogModifyDraw-ButtonBorderColor);
1494
+ }
1495
+
1496
+ .UMyChart_Draw_Modify_Dialog_Button_Span
1497
+ {
1498
+ font-size:22px;
1499
+ color:var(--HQChart-DialogModifyDraw-ButtonColor);
1500
+ }
1501
+
1502
+ .UMyChart_Draw_Modify_Dialog_Unlock_Button_Span
1503
+ {
1504
+ font-size:22px;
1505
+ color:var(--HQChart-DialogModifyDraw-UnlockButtonColor);
1479
1506
  }
1480
1507
 
1481
1508
  .UMyChart_Draw_Modify_Tooltip
@@ -2113,10 +2140,11 @@ input[type="color"] {
2113
2140
  /*display: flex;*/
2114
2141
  border: 1px solid;
2115
2142
  width:fit-content;
2116
- border-color: rgb(204,204,204);
2143
+ border-color: var(--HQChart-DialogSearchIndex-BorderColor);
2117
2144
  visibility:hidden;
2118
2145
  position: absolute;
2119
- background-color: rgba(20,20,20,1);
2146
+ background-color: var(--HQChart-DialogSearchIndex-BGColor);
2147
+ color:var(--HQChart-DialogSearchIndex-Color);
2120
2148
  left:1px;
2121
2149
  top:1px;
2122
2150
  z-index: 99;
@@ -2131,13 +2159,13 @@ input[type="color"] {
2131
2159
  display: flex;
2132
2160
  cursor: default;
2133
2161
  user-select: none;
2134
- background-color:rgb(200, 66, 69)
2162
+ background-color:var(--HQChart-DialogSearchIndex-TitleBGColor);
2135
2163
  }
2136
2164
 
2137
2165
  .UMyChart_SearchIndex_Name_Div
2138
2166
  {
2139
2167
  margin-left: 5px;
2140
- color:rgb(250,250,250)
2168
+ color:var(--HQChart-DialogSearchIndex-TitleColor);
2141
2169
  }
2142
2170
 
2143
2171
  .UMyChart_SearchIndex_Close_Div
@@ -2145,7 +2173,7 @@ input[type="color"] {
2145
2173
  margin-left: auto;
2146
2174
  padding-right: 4px;
2147
2175
  cursor:pointer;
2148
- color:rgb(180,180,180)
2176
+ color:var(--HQChart-DialogSearchIndex-CloseColor);
2149
2177
  }
2150
2178
 
2151
2179
  .UMyChart_SearchIndex_Table_Div
@@ -2188,6 +2216,7 @@ input[type="color"] {
2188
2216
  background-color: transparent;
2189
2217
  width: 99%;
2190
2218
  margin-left: 10px;
2219
+ color:var(--HQChart-DialogSearchIndex-InputColor);
2191
2220
  }
2192
2221
 
2193
2222
  .UMyChart_SearchIndex_Container_Div
@@ -2236,10 +2265,10 @@ input[type="color"] {
2236
2265
  /*display: flex;*/
2237
2266
  border: 1px solid;
2238
2267
  width:fit-content;
2239
- border-color: rgb(204,204,204);
2268
+ border-color: var(--HQChart-DialogModifyIndexParam-BorderColor);
2240
2269
  visibility:hidden;
2241
2270
  position: absolute;
2242
- background-color: rgba(20,20,20,1);
2271
+ background-color:var(--HQChart-DialogModifyIndexParam-BGColor);
2243
2272
  left:1px;
2244
2273
  top:1px;
2245
2274
  z-index: 99;
@@ -2254,13 +2283,13 @@ input[type="color"] {
2254
2283
  display: flex;
2255
2284
  cursor: default;
2256
2285
  user-select: none;
2257
- background-color:rgb(200, 66, 69)
2286
+ background-color:var(--HQChart-DialogModifyIndexParam-TitleBGColor);
2258
2287
  }
2259
2288
 
2260
2289
  .UMyChart_ModifyIndexParam_Name_Div
2261
2290
  {
2262
2291
  margin-left: 5px;
2263
- color:rgb(250,250,250)
2292
+ color:var(--HQChart-DialogModifyIndexParam-TitleColor);
2264
2293
  }
2265
2294
 
2266
2295
  .UMyChart_ModifyIndexParam_Close_Div
@@ -2268,7 +2297,7 @@ input[type="color"] {
2268
2297
  margin-left: auto;
2269
2298
  padding-right: 4px;
2270
2299
  cursor:pointer;
2271
- color:rgb(180,180,180)
2300
+ color:var(--HQChart-DialogModifyIndexParam-CloseColor);
2272
2301
  }
2273
2302
 
2274
2303
  .UMyChart_ModifyIndexParam_Table_Div
@@ -2306,6 +2335,7 @@ input[type="color"] {
2306
2335
  .UMyChart_ModifyIndexParam_Name_Span
2307
2336
  {
2308
2337
  margin-left: 10px;
2338
+ color:var(--HQChart-DialogModifyIndexParam-ParamNameColor);
2309
2339
  }
2310
2340
 
2311
2341
  .UMyChart_ModifyIndexParam_Value_Td
@@ -2321,6 +2351,7 @@ input[type="color"] {
2321
2351
  line-height: 16px;
2322
2352
  background-color: transparent;
2323
2353
  width: 60px;
2354
+ color:var(--HQChart-DialogModifyIndexParam-InputTextColor);
2324
2355
  }
2325
2356
 
2326
2357
  .UMyChart_ModifyIndexParam_Button_Div
@@ -2402,6 +2433,183 @@ input[type="color"] {
2402
2433
 
2403
2434
 
2404
2435
 
2436
+ :root
2437
+ {
2438
+ /*
2439
+ JSDialogDrawTool 配色 画图工具
2440
+ */
2441
+
2442
+ --HQChart-DialogDrawTool-BGColor: rgb(250,250,250);
2443
+ --HQChart-DialogDrawTool-BorderColor: rgb(20,20,20);
2444
+ --HQChart-DialogDrawTool-Color: rgb(20,20,20);
2445
+ --HQChart-DialogDrawTool-TitleColor: rgb(250,250,250);
2446
+ --HQChart-DialogDrawTool-TitleBGColor: rgb(200, 66, 69);
2447
+ --HQChart-DialogDrawTool-CloseColor:rgb(180,180,180);
2448
+ --HQChart-DialogDrawTool-ButtonColor:rgb(77,77,77);
2449
+ --HQChart-DialogDrawTool-ButtonBorderColor:rgb(128,128,128);
2450
+ --HQChart-DialogDrawTool-Selected_ButtonColor:rgb(255,255,255);
2451
+ --HQChart-DialogDrawTool-Selected_ButtonBGColor:rgb(234,85,4);
2452
+ --HQChart-DialogDrawTool-Selected_ButtonBorderColor:rgb(128,128,128);
2453
+ --HQChart-DialogDrawTool-DividingLineColor:rgb(204,204,204);
2454
+
2455
+ /*
2456
+ JSDialogModifyDraw
2457
+ */
2458
+
2459
+ --HQChart-DialogModifyDraw-BGColor: rgb(250,250,250);
2460
+ --HQChart-DialogModifyDraw-BorderColor: rgb(20,20,20);
2461
+ --HQChart-DialogModifyDraw-DragColor: rgb(250,250,250);
2462
+ --HQChart-DialogModifyDraw-DragBGColor: rgb(200, 66, 69);
2463
+ --HQChart-DialogModifyDraw-ButtonColor:rgb(77,77,77);
2464
+ --HQChart-DialogModifyDraw-ButtonBorderColor:rgb(20,20,20);
2465
+ --HQChart-DialogModifyDraw-UnlockButtonColor:rgb(220,220,220);
2466
+
2467
+ /*
2468
+ JSDialogSearchIndex
2469
+ */
2470
+
2471
+ --HQChart-DialogSearchIndex-BGColor: rgb(250,250,250);
2472
+ --HQChart-DialogSearchIndex-BorderColor: rgb(20,20,20);
2473
+ --HQChart-DialogSearchIndex-Color: rgb(20,20,20);
2474
+ --HQChart-DialogSearchIndex-TitleColor: rgb(250,250,250);
2475
+ --HQChart-DialogSearchIndex-TitleBGColor: rgb(200, 66, 69);
2476
+ --HQChart-DialogSearchIndex-CloseColor:rgb(180,180,180);
2477
+ --HQChart-DialogSearchIndex-InputColor:rgb(20,20,20);
2478
+
2479
+
2480
+ /*
2481
+ JSDialogModifyIndexParam
2482
+ */
2483
+ --HQChart-DialogModifyIndexParam-BGColor: rgb(250,250,250);
2484
+ --HQChart-DialogModifyIndexParam-BorderColor: rgb(20,20,20);
2485
+ --HQChart-DialogModifyIndexParam-Color: rgb(20,20,20);
2486
+ --HQChart-DialogModifyIndexParam-TitleColor: rgb(250,250,250);
2487
+ --HQChart-DialogModifyIndexParam-TitleBGColor: rgb(200, 66, 69);
2488
+ --HQChart-DialogModifyIndexParam-CloseColor:rgb(180,180,180);
2489
+ --HQChart-DialogModifyIndexParam-ParamNameColor:rgb(20,20,20);
2490
+ --HQChart-DialogModifyIndexParam-InputTextColor:rgb(20,20,20);
2491
+
2492
+ }
2493
+
2494
+ /*
2495
+ 白色风格
2496
+ */
2497
+ :root[hqchart_style='0'],
2498
+ :root[hqchart_style='defined']
2499
+ {
2500
+ /*
2501
+ JSDialogDrawTool 配色 画图工具
2502
+ */
2503
+
2504
+ --HQChart-DialogDrawTool-BGColor: rgb(250,250,250);
2505
+ --HQChart-DialogDrawTool-BorderColor: rgb(20,20,20);
2506
+ --HQChart-DialogDrawTool-Color: rgb(20,20,20);
2507
+ --HQChart-DialogDrawTool-TitleColor: rgb(250,250,250);
2508
+ --HQChart-DialogDrawTool-TitleBGColor: rgb(200, 66, 69);
2509
+ --HQChart-DialogDrawTool-ButtonColor:rgb(77,77,77);
2510
+ --HQChart-DialogDrawTool-ButtonBorderColor:rgb(128,128,128);
2511
+ --HQChart-DialogDrawTool-Selected_ButtonColor:rgb(255,255,255);
2512
+ --HQChart-DialogDrawTool-Selected_ButtonBGColor:rgb(234,85,4);
2513
+ --HQChart-DialogDrawTool-Selected_ButtonBorderColor:rgb(128,128,128);
2514
+ --HQChart-DialogDrawTool-DividingLineColor:rgb(204,204,204);
2515
+
2516
+
2517
+
2518
+ /*
2519
+ JSDialogModifyDraw
2520
+ */
2521
+
2522
+ --HQChart-DialogModifyDraw-BGColor: rgb(250,250,250);
2523
+ --HQChart-DialogModifyDraw-BorderColor: rgb(20,20,20);
2524
+ --HQChart-DialogModifyDraw-DragColor: rgb(250,250,250);
2525
+ --HQChart-DialogModifyDraw-DragBGColor: rgb(200, 66, 69);
2526
+ --HQChart-DialogModifyDraw-ButtonColor:rgb(77,77,77);
2527
+ --HQChart-DialogModifyDraw-ButtonBorderColor:rgb(20,20,20);
2528
+ --HQChart-DialogModifyDraw-UnlockButtonColor:rgb(220,220,220);
2529
+
2530
+
2531
+ /*
2532
+ JSDialogSearchIndex
2533
+ */
2534
+
2535
+ --HQChart-DialogSearchIndex-BGColor: rgb(250,250,250);
2536
+ --HQChart-DialogSearchIndex-BorderColor: rgb(20,20,20);
2537
+ --HQChart-DialogSearchIndex-Color: rgb(20,20,20);
2538
+ --HQChart-DialogSearchIndex-TitleColor: rgb(250,250,250);
2539
+ --HQChart-DialogSearchIndex-TitleBGColor: rgb(200, 66, 69);
2540
+ --HQChart-DialogSearchIndex-CloseColor:rgb(180,180,180);
2541
+ --HQChart-DialogSearchIndex-InputColor:rgb(20,20,20);
2542
+
2543
+
2544
+ /*
2545
+ JSDialogModifyIndexParam
2546
+ */
2547
+ --HQChart-DialogModifyIndexParam-BGColor: rgb(250,250,250);
2548
+ --HQChart-DialogModifyIndexParam-BorderColor: rgb(20,20,20);
2549
+ --HQChart-DialogModifyIndexParam-Color: rgb(20,20,20);
2550
+ --HQChart-DialogModifyIndexParam-TitleColor: rgb(250,250,250);
2551
+ --HQChart-DialogModifyIndexParam-TitleBGColor: rgb(200, 66, 69);
2552
+ --HQChart-DialogModifyIndexParam-CloseColor:rgb(180,180,180);
2553
+ --HQChart-DialogModifyIndexParam-ParamNameColor:rgb(20,20,20);
2554
+ --HQChart-DialogModifyIndexParam-InputTextColor:rgb(20,20,20);
2555
+ }
2556
+
2557
+ /*
2558
+ 黑色风格
2559
+ */
2560
+ :root[hqchart_style='1']
2561
+ {
2562
+ /*
2563
+ JSDialogDrawTool 配色 画图工具
2564
+ */
2565
+
2566
+ --HQChart-DialogDrawTool-BGColor: rgb(38,38,38);
2567
+ --HQChart-DialogDrawTool-BorderColor: rgb(170,170,170);
2568
+ --HQChart-DialogDrawTool-Color: rgb(210,210,210);
2569
+ --HQChart-DialogDrawTool-TitleColor: rgb(250,250,250);
2570
+ --HQChart-DialogDrawTool-TitleBGColor: rgb(200, 66, 69);
2571
+ --HQChart-DialogDrawTool-ButtonColor:rgb(110,110,110);
2572
+ --HQChart-DialogDrawTool-ButtonBorderColor:rgb(99,99,99);
2573
+ --HQChart-DialogDrawTool-Selected_ButtonColor:rgb(255,255,255);
2574
+ --HQChart-DialogDrawTool-Selected_ButtonBGColor:rgb(234,85,4);
2575
+ --HQChart-DialogDrawTool-Selected_ButtonBorderColor:rgb(128,128,128);
2576
+ --HQChart-DialogDrawTool-DividingLineColor:rgb(150,150,150);
2577
+
2578
+ /*
2579
+ JSDialogModifyDraw
2580
+ */
2581
+
2582
+ --HQChart-DialogModifyDraw-BGColor:rgb(38,38,38);
2583
+ --HQChart-DialogModifyDraw-BorderColor: rgb(170,170,170);
2584
+ --HQChart-DialogModifyDraw-ButtonColor:rgb(110,110,110);
2585
+ --HQChart-DialogModifyDraw-ButtonBorderColor:rgb(170,170,170);
2586
+ --HQChart-DialogModifyDraw-UnlockButtonColor:rgb(60,60,60);
2587
+
2588
+
2589
+ /*
2590
+ JSDialogSearchIndex
2591
+ */
2592
+
2593
+ --HQChart-DialogSearchIndex-BGColor: rgb(38,38,38);
2594
+ --HQChart-DialogSearchIndex-BorderColor: rgb(170,170,170);
2595
+ --HQChart-DialogSearchIndex-Color: rgb(210,210,210);
2596
+ --HQChart-DialogSearchIndex-TitleColor: rgb(250,250,250);
2597
+ --HQChart-DialogSearchIndex-TitleBGColor: rgb(200, 66, 69);
2598
+ --HQChart-DialogSearchIndex-InputColor:rgb(210,210,210);
2599
+
2600
+ /*
2601
+ JSDialogModifyIndexParam
2602
+ */
2603
+
2604
+ --HQChart-DialogModifyIndexParam-BGColor: rgb(38,38,38);
2605
+ --HQChart-DialogModifyIndexParam-BorderColor: rgb(170,170,170);
2606
+ --HQChart-DialogModifyIndexParam-Color: rgb(210,210,210);
2607
+ --HQChart-DialogModifyIndexParam-TitleColor: rgb(250,250,250);
2608
+ --HQChart-DialogModifyIndexParam-TitleBGColor: rgb(200, 66, 69);
2609
+ --HQChart-DialogModifyIndexParam-ParamNameColor:rgb(210,210,210);
2610
+ --HQChart-DialogModifyIndexParam-InputTextColor:rgb(210,210,210);
2611
+ }
2612
+
2405
2613
 
2406
2614
 
2407
2615
 
@@ -517,17 +517,6 @@ function GetBlackStyle()
517
517
  PositionColor:"rgb(255,0,255)" //持仓
518
518
  },
519
519
 
520
- DialogSearchIndex:
521
- {
522
- BGColor:'rgb(20,20,20)', //背景色
523
- BorderColor:'rgb(170,170,170)', //边框颜色
524
- TitleColor:'rgb(230,230,230)', //标题颜色
525
-
526
- IndexNameColor:"rgb(210,210,210)",
527
- GroupNameColor:"rgb(210,210,210)",
528
- InputTextColor:"rgb(210,210,210)",
529
- },
530
-
531
520
  DialogPopKeyboard:
532
521
  {
533
522
  BGColor:'rgb(20,20,20)', //背景色
@@ -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
  {
@@ -17680,6 +17687,8 @@ function IChartFramePainting()
17680
17687
 
17681
17688
  this.CalculateLock=function(aryData)
17682
17689
  {
17690
+ if (!this.LockPaint) return;
17691
+
17683
17692
  this.LockPaint.SetData(aryData);
17684
17693
  this.LockPaint.Draw(false);
17685
17694
  }
@@ -17872,7 +17881,14 @@ function AverageWidthFrame()
17872
17881
  this.IndexHelpButton=CloneData(g_JSChartResource.Buttons.IndexHelp);
17873
17882
  }
17874
17883
 
17875
- if (this.DivFrameToolbar) this.DivFrameToolbar.ReloadResource(resource);
17884
+ if (this.ToolbarButtonStyle==1)
17885
+ {
17886
+ this.ClearToolbar();
17887
+ }
17888
+ else
17889
+ {
17890
+ if (this.DivFrameToolbar) this.DivFrameToolbar.ReloadResource(resource);
17891
+ }
17876
17892
  }
17877
17893
 
17878
17894
  this.DrawFrame=function()
@@ -22895,155 +22911,6 @@ function KLineFrame()
22895
22911
  if (!this.DivFrameToolbar) return;
22896
22912
 
22897
22913
  this.DivFrameToolbar.Show(this.Identify);
22898
-
22899
- return;
22900
-
22901
- if (typeof($)=="undefined") return;
22902
-
22903
- if (!this.ChartBorder.UIElement || !this.ChartBorder.UIElement.parentNode) return;
22904
-
22905
- var divToolbar=document.getElementById(this.ToolbarID);
22906
- if (divToolbar && this.SizeChange==false && this.ReDrawToolbar==false) return;
22907
-
22908
- if (!divToolbar)
22909
- {
22910
-
22911
- divToolbar=document.createElement("div");
22912
- divToolbar.className='klineframe-toolbar';
22913
- divToolbar.id=this.ToolbarID;
22914
- divToolbar.oncontextmenu = function() { return false;}; //屏蔽右键系统菜单
22915
- //为divToolbar添加属性identify
22916
- divToolbar.setAttribute("identify",this.Identify.toString());
22917
- this.ChartBorder.UIElement.parentNode.appendChild(divToolbar);
22918
- }
22919
-
22920
- if (!this.ModifyIndex && !this.ChangeIndex && !this.OverlayIndex && !this.CloseIndex && !IFrameSplitOperator.IsNonEmptyArray(this.CustomToolbar))
22921
- {
22922
- if (divToolbar.style.display!='none')
22923
- divToolbar.style.display='none';
22924
- return;
22925
- }
22926
-
22927
- //使用外城div尺寸 画图尺寸是被放大的
22928
- var pixelTatio = GetDevicePixelRatio();
22929
- var chartWidth=parseInt(this.ChartBorder.UIElement.parentElement.style.width.replace("px",""));
22930
- var chartHeight=parseInt(this.ChartBorder.UIElement.parentElement.style.height.replace("px",""));
22931
- //JSConsole.Chart.Log('[KLineFrame::DrawToolbar] ',chartWidth,chartHeight,pixelTatio);
22932
-
22933
- var toolbarWidth=100;
22934
- var toolbarHeight=this.ChartBorder.GetTitleHeight();
22935
- var left=chartWidth-(this.ChartBorder.Right/pixelTatio)-toolbarWidth;
22936
- var top=this.ChartBorder.GetTop()/pixelTatio;
22937
-
22938
- if (this.ToolbarRect)
22939
- {
22940
- //尺寸变动移动才重新设置DOM
22941
- if (this.ToolbarRect.Left==left && this.ToolbarRect.Top==top &&
22942
- this.ToolbarRect.Width==toolbarWidth && this.ToolbarRect.Height==toolbarHeight/pixelTatio)
22943
- {
22944
- return;
22945
- }
22946
- }
22947
-
22948
- this.ToolbarRect={ Left:left, Top:top, Width:toolbarWidth, Height:toolbarHeight/pixelTatio };
22949
-
22950
- const modifyButton=`<span class='index_param icon iconfont icon-index_param' id='modifyindex' style='cursor:pointer;margin-left:2px;margin-right:2px;' title='调整指标参数'></span>`;
22951
- const changeButton=`<span class='index_change icon iconfont icon-change_index' id='changeindex' style='cursor:pointer;margin-left:2px;margin-right:2px;' title='切换指标'></span>`;
22952
- const overlayButton=`<span class='index_overlay icon iconfont icon-overlay_index' id='overlayindex' style='cursor:pointer;margin-left:2px;margin-right:2px;' title='叠加指标'></span>`;
22953
- const closeButton=`<span class='index_close icon iconfont icon-close' id='closeindex' style='cursor:pointer;margin-left:2px;margin-right:2px;' title='关闭指标窗口'></span>`;
22954
-
22955
- var spanIcon=modifyButton+changeButton+overlayButton;
22956
-
22957
- if (this.Identify!==0 && this.CloseIndex) //第1个窗口不能关闭
22958
- {
22959
- spanIcon+=closeButton;
22960
- }
22961
-
22962
- if (IFrameSplitOperator.IsNonEmptyArray(this.CustomToolbar))
22963
- {
22964
- for(var i=0;i<this.CustomToolbar.length;++i)
22965
- {
22966
- var item=this.CustomToolbar[i];
22967
- spanIcon+=item.Html;
22968
- }
22969
- }
22970
-
22971
- //var scrollPos=GetScrollPosition();
22972
- //left = left+scrollPos.Left;
22973
- //top = top+scrollPos.Top;
22974
- divToolbar.style.left = left + "px";
22975
- divToolbar.style.top = top + "px";
22976
- divToolbar.style.width=toolbarWidth+"px"; //宽度先不调整吧
22977
- divToolbar.style.height=(toolbarHeight/pixelTatio)+'px'; //只调整高度
22978
- divToolbar.innerHTML=spanIcon;
22979
-
22980
- var chart=this.ChartBorder.UIElement.JSChartContainer;
22981
- var identify=this.Identify;
22982
- if (!this.ModifyIndex) //隐藏'改参数'
22983
- $("#"+divToolbar.id+" .index_param").hide();
22984
- else if (typeof(this.ModifyIndexEvent)=='function') //绑定点击事件
22985
- $("#"+divToolbar.id+" .index_param").click(
22986
- {
22987
- Chart:this.ChartBorder.UIElement.JSChartContainer,
22988
- Identify:this.Identify
22989
- },this.ModifyIndexEvent);
22990
-
22991
- if (!this.ChangeIndex) //隐藏'换指标'
22992
- {
22993
- $("#"+divToolbar.id+" .index_change").hide();
22994
- }
22995
- else if (typeof(this.ChangeIndexEvent)=='function')
22996
- {
22997
- $("#"+divToolbar.id+" .index_change").click(
22998
- {
22999
- Chart:this.ChartBorder.UIElement.JSChartContainer,
23000
- Identify:this.Identify,
23001
- IsOverlay:false
23002
- },this.ChangeIndexEvent);
23003
- }
23004
-
23005
- if (!this.OverlayIndex)
23006
- {
23007
- $("#"+divToolbar.id+" .index_overlay").hide();
23008
- }
23009
- else
23010
- {
23011
- $("#"+divToolbar.id+" .index_overlay").click(
23012
- {
23013
- Chart:this.ChartBorder.UIElement.JSChartContainer,
23014
- Identify:this.Identify,
23015
- IsOverlay:true
23016
- },this.ChangeIndexEvent);
23017
- }
23018
-
23019
- $("#"+divToolbar.id+" .index_close").click(
23020
- {
23021
- Chart:this.ChartBorder.UIElement.JSChartContainer,
23022
- Identify:this.Identify
23023
- },
23024
- function(event)
23025
- {
23026
- var hqChart=event.data.Chart;
23027
- var id=event.data.Identify;
23028
- hqChart.RemoveIndexWindow(id);
23029
- });
23030
-
23031
-
23032
- if (IFrameSplitOperator.IsNonEmptyArray(this.CustomToolbar))
23033
- {
23034
- for(var i=0;i<this.CustomToolbar.length;++i)
23035
- {
23036
- var item=this.CustomToolbar[i];
23037
- $("#"+item.ID).click(
23038
- {
23039
- Chart:this.ChartBorder.UIElement.JSChartContainer,
23040
- Identify:this.Identify,
23041
- ID:item.ID
23042
- },item.Click);
23043
- }
23044
- }
23045
-
23046
- divToolbar.style.display = "block";
23047
22914
  }
23048
22915
 
23049
22916
  //手绘,不用DOM,使用DOM太麻烦了
@@ -82143,30 +82010,6 @@ function JSChartResource()
82143
82010
  }
82144
82011
  };
82145
82012
 
82146
- //指标搜索
82147
- this.DialogSearchIndex=
82148
- {
82149
- BGColor:'rgb(250,250,250)', //背景色
82150
- BorderColor:'rgb(20,20,20)', //边框颜色
82151
- TitleColor:'rgb(250,250,250)', //标题颜色
82152
- TitleBGColor:"rgb(200, 66, 69)", //标题背景颜色
82153
-
82154
- IndexNameColor:"rgb(0,0,0)", //数值名称
82155
- GroupNameColor:"rgb(0,0,0)",
82156
- InputTextColor:"rgb(0,0,0)"
82157
- };
82158
-
82159
- this.DialogModifyIndexParam=
82160
- {
82161
- BGColor:'rgb(250,250,250)', //背景色
82162
- BorderColor:'rgb(20,20,20)', //边框颜色
82163
- TitleColor:'rgb(250,250,250)', //标题颜色
82164
- TitleBGColor:"rgb(200, 66, 69)", //标题背景颜色
82165
-
82166
- ParamNameColor:"rgb(0,0,0)", //数值名称
82167
- InputTextColor:"rgb(0,0,0)"
82168
- };
82169
-
82170
82013
  //弹幕
82171
82014
  this.Barrage= {
82172
82015
  Font:16*GetDevicePixelRatio() +'px 微软雅黑', //字体
@@ -83391,20 +83234,6 @@ function JSChartResource()
83391
83234
  }
83392
83235
  }
83393
83236
 
83394
- if (style.DialogSearchIndex)
83395
- {
83396
- var item=style.DialogSearchIndex;
83397
-
83398
- if (item.BGColor) this.DialogSearchIndex.BGColor=item.BGColor;
83399
- if (item.BorderColor) this.DialogSearchIndex.BorderColor=item.BorderColor;
83400
- if (item.TitleColor) this.DialogSearchIndex.TitleColor=item.TitleColor;
83401
- if (item.TitleBGColor) this.DialogSearchIndex.TitleBGColor=item.TitleBGColor;
83402
-
83403
- if (item.IndexNameColor) this.DialogSearchIndex.IndexNameColor=item.IndexNameColor;
83404
- if (item.GroupNameColor) this.DialogSearchIndex.GroupNameColor=item.GroupNameColor;
83405
- if (item.InputTextColor) this.DialogSearchIndex.InputTextColor=item.InputTextColor;
83406
- }
83407
-
83408
83237
  if (style.MinuteInfo)
83409
83238
  {
83410
83239
  var item=style.MinuteInfo;
@@ -137271,17 +137100,6 @@ function GetBlackStyle()
137271
137100
  PositionColor:"rgb(255,0,255)" //持仓
137272
137101
  },
137273
137102
 
137274
- DialogSearchIndex:
137275
- {
137276
- BGColor:'rgb(20,20,20)', //背景色
137277
- BorderColor:'rgb(170,170,170)', //边框颜色
137278
- TitleColor:'rgb(230,230,230)', //标题颜色
137279
-
137280
- IndexNameColor:"rgb(210,210,210)",
137281
- GroupNameColor:"rgb(210,210,210)",
137282
- InputTextColor:"rgb(210,210,210)",
137283
- },
137284
-
137285
137103
  DialogPopKeyboard:
137286
137104
  {
137287
137105
  BGColor:'rgb(20,20,20)', //背景色
@@ -153915,7 +153733,7 @@ function ScrollBarBGChart()
153915
153733
 
153916
153734
 
153917
153735
 
153918
- var HQCHART_VERSION="1.1.15133";
153736
+ var HQCHART_VERSION="1.1.15146";
153919
153737
 
153920
153738
  function PrintHQChartVersion()
153921
153739
  {