hqchart 1.1.15121 → 1.1.15128
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/lib/umychart.vue.js +26 -18
- package/package.json +1 -1
- package/src/jscommon/umychart.DialogSearchIndex.js +113 -6
- package/src/jscommon/umychart.js +21 -3
- package/src/jscommon/umychart.uniapp.h5/umychart.uniapp.h5.js +24 -4
- package/src/jscommon/umychart.version.js +1 -1
- package/src/jscommon/umychart.vue/umychart.vue.js +137 -10
package/package.json
CHANGED
|
@@ -307,7 +307,7 @@ function JSDialogSearchIndex()
|
|
|
307
307
|
var indexItem=cellItem.IndexItem;
|
|
308
308
|
if (indexItem.Type==0 ) //系统指标
|
|
309
309
|
{
|
|
310
|
-
this.HQChart.ChangeIndex(this.OpData.WindowIndex, indexItem.ID );
|
|
310
|
+
this.HQChart.ChangeIndex(this.OpData.WindowIndex, indexItem.ID, indexItem);
|
|
311
311
|
}
|
|
312
312
|
else if(indexItem.Type==4 || indexItem.Type==5) //五彩K线
|
|
313
313
|
{
|
|
@@ -338,6 +338,7 @@ function JSDialogSearchIndex()
|
|
|
338
338
|
if (indexItem.Type==0) //系统指标
|
|
339
339
|
{
|
|
340
340
|
var obj={ WindowIndex:this.OpData.WindowIndex, IndexName:indexItem.ID };
|
|
341
|
+
if (indexItem.Lock) obj.Lock=indexItem.Lock;
|
|
341
342
|
this.HQChart.AddOverlayIndex(obj);
|
|
342
343
|
}
|
|
343
344
|
else if (indexItem.Type==1) //自定义脚本指标
|
|
@@ -810,11 +811,8 @@ JSDialogSearchIndex.GetDefaultIndexData=function()
|
|
|
810
811
|
AryIndex:
|
|
811
812
|
[
|
|
812
813
|
{ Name:"面积图(后台指标)", ID:"API-DRAWBAND", Type:2, Args:null, Lock:{ IsLocked:true } },
|
|
813
|
-
{
|
|
814
|
-
|
|
815
|
-
Script:TEST_INDEX_4AE0_1,
|
|
816
|
-
Lock:{ IsLocked:true }
|
|
817
|
-
}
|
|
814
|
+
{ Name:"波段量能跟庄-波段量能", ID:"TEST_INDEX_4AE0_1", Type:0, Lock:{ IsLocked:true } },
|
|
815
|
+
{ Name:"飞龙八级进-主图", ID:"TEST_INDEX_4AE0_2", Type:0, Lock:{ IsLocked:true } }
|
|
818
816
|
]
|
|
819
817
|
},
|
|
820
818
|
{
|
|
@@ -1317,6 +1315,7 @@ function JSDialogModifyIndexParam()
|
|
|
1317
1315
|
/////////////////////////////////////////////////////////////////////////////////////////////
|
|
1318
1316
|
//测试指标
|
|
1319
1317
|
|
|
1318
|
+
|
|
1320
1319
|
var TEST_INDEX_4AE0_1=`能量:=SQRT(VOL)*(((C-(H+L)/2))/((H+L)/2));
|
|
1321
1320
|
平滑能量:=EMA(能量,16);
|
|
1322
1321
|
能量惯性:EMA(平滑能量,16);
|
|
@@ -1333,5 +1332,113 @@ STICKLINE(能量惯性<0,(能量惯性-能量惯性*0.6),(能量惯性-能量惯
|
|
|
1333
1332
|
STICKLINE(能量惯性<0,(能量惯性-能量惯性*0.8),(能量惯性-能量惯性*0.95),3,0), COLORFFFF00;`
|
|
1334
1333
|
|
|
1335
1334
|
|
|
1335
|
+
var TEST_INDEX_4AE0_2=`
|
|
1336
|
+
MA3:MA(CLOSE,3),COLORWHITE;
|
|
1337
|
+
MA17:MA(CLOSE,17),COLORYELLOW;
|
|
1338
|
+
QQ:=0,COLORWHITE;
|
|
1339
|
+
MA1:=MA(CLOSE,3);
|
|
1340
|
+
MA2:=MA(CLOSE,17);
|
|
1341
|
+
JG:=CROSS(MA1,MA2);
|
|
1342
|
+
VOLUME:=VOL,VOLSTICK;
|
|
1343
|
+
MAVOL1:=MA(VOLUME,3);
|
|
1344
|
+
MAVOL2:=MA(VOLUME,17);
|
|
1345
|
+
NL:=CROSS(MAVOL1,MAVOL2);
|
|
1346
|
+
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
|
|
1347
|
+
DEA:=EMA(DIF,9);
|
|
1348
|
+
MACD:=(DIF-DEA)*2,COLORSTICK;
|
|
1349
|
+
NA:=CROSS(DIF,DEA);
|
|
1350
|
+
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
|
|
1351
|
+
K:=SMA(RSV,9,1);
|
|
1352
|
+
D:=SMA(K,9,1);
|
|
1353
|
+
J:=3*K-2*D;
|
|
1354
|
+
KD:=CROSS(K,D) AND CROSS(J,D);
|
|
1355
|
+
飞龙八级进:DRAWTEXT((JG AND NL AND NA) OR (JG AND NL AND KD) OR
|
|
1356
|
+
(JG AND NA AND KD) OR (NL AND NA AND KD),L*0.95,' 飞龙八级进'),COLORYELLOW;
|
|
1357
|
+
X:=LLV(J,2)=LLV(J,8);
|
|
1358
|
+
Y:=IF(CROSS(J,REF(J+0.01,1)) AND X AND J<20,30,0);
|
|
1359
|
+
DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<20,LOW*0.98,''),COLORLIMAGENTA;
|
|
1360
|
+
空:=EMA(C,5);
|
|
1361
|
+
均衡:=EMA(空,5),COLORWHITE;
|
|
1362
|
+
中轨:=HHV(MA(H,13),13),COLORRED,LINETHICK2;
|
|
1363
|
+
VAR5:=FILTER(均衡>REF(均衡,1)AND 中轨<REF(中轨,1)AND C>REF(C,1),11);
|
|
1364
|
+
DRAWTEXT(VAR5,L*0.98,''),COLORYELLOW;
|
|
1365
|
+
PT:=XMA(H,20);
|
|
1366
|
+
PAN:=XMA(CLOSE,7),COLORBROWN;
|
|
1367
|
+
RUO:=MEMA(CLOSE,3),COLORLIBLUE;
|
|
1368
|
+
STICKLINE(CLOSE> REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORRED;
|
|
1369
|
+
STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR000055;
|
|
1370
|
+
STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR000077;
|
|
1371
|
+
STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR000099;
|
|
1372
|
+
STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLOR0000BB;
|
|
1373
|
+
STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLOR0000DD;
|
|
1374
|
+
STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLOR0000FF;
|
|
1375
|
+
STICKLINE(CLOSE= REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORWHITE;
|
|
1376
|
+
STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR555555;
|
|
1377
|
+
STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR777777;
|
|
1378
|
+
STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR999999;
|
|
1379
|
+
STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORBBBBBB;
|
|
1380
|
+
STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORDDDDDD;
|
|
1381
|
+
STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORFFFFFF;
|
|
1382
|
+
STICKLINE(CLOSE< REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORCYAN;
|
|
1383
|
+
STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR990000;
|
|
1384
|
+
STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLORCC0000;
|
|
1385
|
+
STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLORFF4400;
|
|
1386
|
+
STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORFF8800;
|
|
1387
|
+
STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORFFCC00;
|
|
1388
|
+
STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORCYAN;
|
|
1389
|
+
高:=REF(HHV(H,80),3);
|
|
1390
|
+
低:=REF(LLV(L,80),3);
|
|
1391
|
+
H19:=高-(高-低)*0.191;
|
|
1392
|
+
H38:=高-(高-低)*0.382;
|
|
1393
|
+
H中:=高-(高-低)*0.5;
|
|
1394
|
+
H61:=高-(高-低)*0.618;
|
|
1395
|
+
H80:=高-(高-低)*0.809;
|
|
1396
|
+
顶点:REFDATE(高,DATE),COLORWHITE;
|
|
1397
|
+
REFDATE(H19,DATE),COLORYELLOW;
|
|
1398
|
+
REFDATE(H38,DATE),COLORMAGENTA;
|
|
1399
|
+
REFDATE(H中,DATE),COLORRED;
|
|
1400
|
+
REFDATE(H61,DATE),COLORMAGENTA;
|
|
1401
|
+
REFDATE(H80,DATE),COLORYELLOW;
|
|
1402
|
+
低点:REFDATE(低,DATE),COLORWHITE;
|
|
1403
|
+
DRAWTEXT(ISLASTBAR,低点,''),COLORWHITE;
|
|
1404
|
+
`
|
|
1405
|
+
|
|
1406
|
+
|
|
1407
|
+
//添加测试系统指标
|
|
1408
|
+
function AddTestSystemIndex()
|
|
1409
|
+
{
|
|
1410
|
+
var aryIndex=[];
|
|
1411
|
+
|
|
1412
|
+
aryIndex.push(
|
|
1413
|
+
{
|
|
1414
|
+
ID:"TEST_INDEX_4AE0_1",
|
|
1415
|
+
Name: '波段量能跟庄-波段量能',
|
|
1416
|
+
Script:TEST_INDEX_4AE0_1,
|
|
1417
|
+
Args: null,
|
|
1418
|
+
|
|
1419
|
+
});
|
|
1420
|
+
|
|
1421
|
+
|
|
1422
|
+
aryIndex.push(
|
|
1423
|
+
{
|
|
1424
|
+
ID:"TEST_INDEX_4AE0_2", //指标ID
|
|
1425
|
+
Name:'飞龙八级进-主图', //指标名称
|
|
1426
|
+
Description:'飞龙八级进', //描述信息
|
|
1427
|
+
IsMainIndex:true, //是否是主图指标
|
|
1428
|
+
Condition: { Period:[CONDITION_PERIOD.KLINE_DAY_ID], Message:"指标(飞龙八级进-主图)只支持日线周期" },
|
|
1429
|
+
Args:null, //指标参数
|
|
1430
|
+
Script:TEST_INDEX_4AE0_2,
|
|
1431
|
+
});
|
|
1432
|
+
|
|
1433
|
+
JSIndexScript.AddIndex(aryIndex);
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
|
|
1437
|
+
AddTestSystemIndex();
|
|
1438
|
+
|
|
1439
|
+
|
|
1440
|
+
|
|
1441
|
+
|
|
1442
|
+
|
|
1336
1443
|
|
|
1337
1444
|
|
package/src/jscommon/umychart.js
CHANGED
|
@@ -10359,6 +10359,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
10359
10359
|
if (IFrameSplitOperator.IsBool(windowItem.IsShowTitleArrow)) frame.IsShowTitleArrow=windowItem.IsShowTitleArrow;
|
|
10360
10360
|
if (IFrameSplitOperator.IsNumber(windowItem.TitleArrowType)) frame.TitleArrowType=windowItem.TitleArrowType;
|
|
10361
10361
|
if (IFrameSplitOperator.IsBool(windowItem.IsShowIndexName)) frame.IsShowIndexName=windowItem.IsShowIndexName;
|
|
10362
|
+
if (IFrameSplitOperator.IsBool(windowItem.IsSinlgeLine)) frame.IsSinlgeLine=windowItem.IsSinlgeLine;
|
|
10362
10363
|
if (IFrameSplitOperator.IsBool(windowItem.IsShowOverlayIndexName)) frame.IsShowOverlayIndexName=windowItem.IsShowOverlayIndexName;
|
|
10363
10364
|
if (IFrameSplitOperator.IsNumber(windowItem.IndexParamSpace)) frame.IndexParamSpace=windowItem.IndexParamSpace;
|
|
10364
10365
|
if (IFrameSplitOperator.IsNumber(windowItem.IndexTitleSpace)) frame.IndexTitleSpace=windowItem.IndexTitleSpace;
|
|
@@ -10482,6 +10483,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
10482
10483
|
if (IFrameSplitOperator.IsBool(option.IsShowTitleArrow)) subFrame.Frame.IsShowTitleArrow=option.IsShowTitleArrow;
|
|
10483
10484
|
if (IFrameSplitOperator.IsNumber(option.TitleArrowType)) subFrame.Frame.TitleArrowType=option.TitleArrowType;
|
|
10484
10485
|
if (IFrameSplitOperator.IsBool(option.IsShowIndexName)) subFrame.Frame.IsShowIndexName=option.IsShowIndexName;
|
|
10486
|
+
if (IFrameSplitOperator.IsBool(option.IsSinlgeLine)) subFrame.Frame.IsSinlgeLine=option.IsSinlgeLine;
|
|
10485
10487
|
if (IFrameSplitOperator.IsBool(option.IsShowOverlayIndexName)) subFrame.Frame.IsShowOverlayIndexName=option.IsShowOverlayIndexName;
|
|
10486
10488
|
if (IFrameSplitOperator.IsNumber(option.IndexParamSpace)) subFrame.Frame.IndexParamSpace=option.IndexParamSpace;
|
|
10487
10489
|
if (IFrameSplitOperator.IsBool(option.IsShowXLine)) subFrame.Frame.IsShowXLine=option.IsShowXLine;
|
|
@@ -13251,6 +13253,7 @@ function IChartFramePainting()
|
|
|
13251
13253
|
this.IsShowBorder = true; //是否显示边框
|
|
13252
13254
|
this.IsShowTitleArrow=g_JSChartResource.IndexTitle.EnableIndexArrow; //是否显示指标信息上涨下跌箭头
|
|
13253
13255
|
this.TitleArrowType=g_JSChartResource.IndexTitle.ArrowType; //指标信息上涨下跌箭头类型 0=独立颜色 1=跟指标名字颜色一致
|
|
13256
|
+
this.IsSinlgeLine=g_JSChartResource.IndexTitle.IsSinlgeLine;
|
|
13254
13257
|
this.IsShowIndexName=true; //是否显示指标名字
|
|
13255
13258
|
this.IsShowOverlayIndexName=true; //是否显示叠加指标名字
|
|
13256
13259
|
//this.OverlayIndexType= { Position:0, LineSpace:5 };
|
|
@@ -62644,6 +62647,7 @@ function DynamicChartTitlePainting()
|
|
|
62644
62647
|
this.IsShowIndexName=true; //是否显示指标名字
|
|
62645
62648
|
this.IsShowIndexTitle=true; //是否显示指标标题信息
|
|
62646
62649
|
this.IsShowNameArrow=false;
|
|
62650
|
+
this.IsSinlgeLine=false; //主图指标标题是否单行显示
|
|
62647
62651
|
this.NameArrowConfig=CloneData(g_JSChartResource.IndexTitle.NameArrow);
|
|
62648
62652
|
this.CustomLocation; //自定义位置 { IsShow:, Top:, TitleHeight: }
|
|
62649
62653
|
|
|
@@ -63382,6 +63386,7 @@ function DynamicChartTitlePainting()
|
|
|
63382
63386
|
this.IsShowUpDownArrow=this.Frame.IsShowTitleArrow;
|
|
63383
63387
|
this.TitleArrowType=this.Frame.TitleArrowType;
|
|
63384
63388
|
this.IsShowIndexName=this.Frame.IsShowIndexName;
|
|
63389
|
+
this.IsSinlgeLine=this.Frame.IsSinlgeLine;
|
|
63385
63390
|
this.IsShowOverlayIndexName=this.Frame.IsShowOverlayIndexName;
|
|
63386
63391
|
this.OverlayIndexType.Position=this.Frame.OverlayIndexType.Position;
|
|
63387
63392
|
this.OverlayIndexType.LineSpace=this.Frame.OverlayIndexType.LineSpace;
|
|
@@ -63788,6 +63793,7 @@ function DynamicChartTitlePainting()
|
|
|
63788
63793
|
|
|
63789
63794
|
if ((left+textWidth+space)>right)
|
|
63790
63795
|
{
|
|
63796
|
+
if (this.IsSinlgeLine) break;
|
|
63791
63797
|
left=newLineLeft;
|
|
63792
63798
|
bottom+=lineHeight;
|
|
63793
63799
|
right=this.Frame.ChartBorder.GetRight(); //第2行以后 右侧边框
|
|
@@ -63852,6 +63858,7 @@ function DynamicChartTitlePainting()
|
|
|
63852
63858
|
var textWidth=this.Canvas.measureText(text).width+space;
|
|
63853
63859
|
if ((left+textWidth)>right) //换行
|
|
63854
63860
|
{
|
|
63861
|
+
if (this.IsSinlgeLine) break;
|
|
63855
63862
|
left=newLineLeft;
|
|
63856
63863
|
bottom+=lineHeight;
|
|
63857
63864
|
right=this.Frame.ChartBorder.GetRight(); //第2行以后 右侧边框
|
|
@@ -77339,6 +77346,8 @@ function JSChartResource()
|
|
|
77339
77346
|
EnableIndexArrow:true, //指标数值是否带上涨下跌箭头
|
|
77340
77347
|
|
|
77341
77348
|
NameArrow:{ Color:"rgb(43,54,69)", Space:2, Symbol:'▼' },
|
|
77349
|
+
|
|
77350
|
+
IsSinlgeLine:false, //主图指标是否单行显示 false=多行显示
|
|
77342
77351
|
}
|
|
77343
77352
|
|
|
77344
77353
|
this.Title={
|
|
@@ -79024,6 +79033,7 @@ function JSChartResource()
|
|
|
79024
79033
|
|
|
79025
79034
|
if (IFrameSplitOperator.IsNumber(item.ArrowType)) this.IndexTitle.ArrowType=item.ArrowType;
|
|
79026
79035
|
if (IFrameSplitOperator.IsBool(item.EnableIndexArrow)) this.IndexTitle.EnableIndexArrow=item.EnableIndexArrow;
|
|
79036
|
+
if (IFrameSplitOperator.IsBool(item.IsSinlgeLine)) this.IndexTitle.IsSinlgeLine=item.IsSinlgeLine;
|
|
79027
79037
|
|
|
79028
79038
|
if (item.NameArrow)
|
|
79029
79039
|
{
|
|
@@ -105421,7 +105431,7 @@ function JSDivFrameToolbar()
|
|
|
105421
105431
|
{
|
|
105422
105432
|
var item=aryButton[i];
|
|
105423
105433
|
if (!item.ID || !item.ClassName) continue;
|
|
105424
|
-
var newItem={ ID:item.ID, ClassName:item.ClassName, Span:null,Div:null, TooltipSpan:null };
|
|
105434
|
+
var newItem={ ID:item.ID, ClassName:item.ClassName, Span:null,Div:null, TooltipSpan:null, SpanText:item.SpanText };
|
|
105425
105435
|
if (item.Tooltip && item.Tooltip.Text) newItem.Tooltip={ Text:item.Tooltip.Text };
|
|
105426
105436
|
|
|
105427
105437
|
this.AryButton.push(newItem);
|
|
@@ -105452,7 +105462,7 @@ function JSDivFrameToolbar()
|
|
|
105452
105462
|
if (!frame && this.FrameID>=0 && this.FrameID<this.HQChart.Frame.SubFrame.length)
|
|
105453
105463
|
frame=this.HQChart.Frame.SubFrame[this.FrameID].Frame;
|
|
105454
105464
|
|
|
105455
|
-
var aryDefaultButton=JSDivFrameToolbar.GetDfaultButtons();
|
|
105465
|
+
var aryDefaultButton=JSDivFrameToolbar.GetDfaultButtons(frame);
|
|
105456
105466
|
var aryButton=[];
|
|
105457
105467
|
for(var i=0;i<aryDefaultButton.length; i++)
|
|
105458
105468
|
{
|
|
@@ -105577,6 +105587,7 @@ function JSDivFrameToolbar()
|
|
|
105577
105587
|
var spanDom=document.createElement("span");
|
|
105578
105588
|
spanDom.className=item.ClassName;
|
|
105579
105589
|
spanDom.onmousedown=(e)=>{ this.OnClickButton(e, item); };
|
|
105590
|
+
if (item.SpanText) spanDom.innerText=item.SpanText;
|
|
105580
105591
|
item.Span=spanDom;
|
|
105581
105592
|
btnDiv.appendChild(spanDom);
|
|
105582
105593
|
|
|
@@ -105661,7 +105672,7 @@ function JSDivFrameToolbar()
|
|
|
105661
105672
|
}
|
|
105662
105673
|
}
|
|
105663
105674
|
|
|
105664
|
-
JSDivFrameToolbar.GetDfaultButtons=function()
|
|
105675
|
+
JSDivFrameToolbar.GetDfaultButtons=function(frame)
|
|
105665
105676
|
{
|
|
105666
105677
|
var aryButton=
|
|
105667
105678
|
[
|
|
@@ -105685,6 +105696,13 @@ JSDivFrameToolbar.GetDfaultButtons=function()
|
|
|
105685
105696
|
ID:JSCHART_BUTTON_ID.CLOSE_INDEX_WINDOW, ClassName:"UMyChart_FrameToolbar_Span_Button icon iconfont icon-close", Tooltip:{ Text:"关闭窗口"},
|
|
105686
105697
|
Span:null,Div:null, TooltipSpan:null
|
|
105687
105698
|
},
|
|
105699
|
+
|
|
105700
|
+
/*
|
|
105701
|
+
{
|
|
105702
|
+
ID:"TEST_8889", ClassName:"UMyChart_FrameToolbar_Span_Text", Tooltip:{ Text:"测试按钮提示"}, SpanText:"测试按钮",
|
|
105703
|
+
Span:null, Div:null, TooltipSpan:null
|
|
105704
|
+
},
|
|
105705
|
+
*/
|
|
105688
105706
|
];
|
|
105689
105707
|
|
|
105690
105708
|
return aryButton
|
|
@@ -14455,6 +14455,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
14455
14455
|
if (IFrameSplitOperator.IsBool(windowItem.IsShowTitleArrow)) frame.IsShowTitleArrow=windowItem.IsShowTitleArrow;
|
|
14456
14456
|
if (IFrameSplitOperator.IsNumber(windowItem.TitleArrowType)) frame.TitleArrowType=windowItem.TitleArrowType;
|
|
14457
14457
|
if (IFrameSplitOperator.IsBool(windowItem.IsShowIndexName)) frame.IsShowIndexName=windowItem.IsShowIndexName;
|
|
14458
|
+
if (IFrameSplitOperator.IsBool(windowItem.IsSinlgeLine)) frame.IsSinlgeLine=windowItem.IsSinlgeLine;
|
|
14458
14459
|
if (IFrameSplitOperator.IsBool(windowItem.IsShowOverlayIndexName)) frame.IsShowOverlayIndexName=windowItem.IsShowOverlayIndexName;
|
|
14459
14460
|
if (IFrameSplitOperator.IsNumber(windowItem.IndexParamSpace)) frame.IndexParamSpace=windowItem.IndexParamSpace;
|
|
14460
14461
|
if (IFrameSplitOperator.IsNumber(windowItem.IndexTitleSpace)) frame.IndexTitleSpace=windowItem.IndexTitleSpace;
|
|
@@ -14578,6 +14579,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
14578
14579
|
if (IFrameSplitOperator.IsBool(option.IsShowTitleArrow)) subFrame.Frame.IsShowTitleArrow=option.IsShowTitleArrow;
|
|
14579
14580
|
if (IFrameSplitOperator.IsNumber(option.TitleArrowType)) subFrame.Frame.TitleArrowType=option.TitleArrowType;
|
|
14580
14581
|
if (IFrameSplitOperator.IsBool(option.IsShowIndexName)) subFrame.Frame.IsShowIndexName=option.IsShowIndexName;
|
|
14582
|
+
if (IFrameSplitOperator.IsBool(option.IsSinlgeLine)) subFrame.Frame.IsSinlgeLine=option.IsSinlgeLine;
|
|
14581
14583
|
if (IFrameSplitOperator.IsBool(option.IsShowOverlayIndexName)) subFrame.Frame.IsShowOverlayIndexName=option.IsShowOverlayIndexName;
|
|
14582
14584
|
if (IFrameSplitOperator.IsNumber(option.IndexParamSpace)) subFrame.Frame.IndexParamSpace=option.IndexParamSpace;
|
|
14583
14585
|
if (IFrameSplitOperator.IsBool(option.IsShowXLine)) subFrame.Frame.IsShowXLine=option.IsShowXLine;
|
|
@@ -17347,6 +17349,7 @@ function IChartFramePainting()
|
|
|
17347
17349
|
this.IsShowBorder = true; //是否显示边框
|
|
17348
17350
|
this.IsShowTitleArrow=g_JSChartResource.IndexTitle.EnableIndexArrow; //是否显示指标信息上涨下跌箭头
|
|
17349
17351
|
this.TitleArrowType=g_JSChartResource.IndexTitle.ArrowType; //指标信息上涨下跌箭头类型 0=独立颜色 1=跟指标名字颜色一致
|
|
17352
|
+
this.IsSinlgeLine=g_JSChartResource.IndexTitle.IsSinlgeLine;
|
|
17350
17353
|
this.IsShowIndexName=true; //是否显示指标名字
|
|
17351
17354
|
this.IsShowOverlayIndexName=true; //是否显示叠加指标名字
|
|
17352
17355
|
//this.OverlayIndexType= { Position:0, LineSpace:5 };
|
|
@@ -66740,6 +66743,7 @@ function DynamicChartTitlePainting()
|
|
|
66740
66743
|
this.IsShowIndexName=true; //是否显示指标名字
|
|
66741
66744
|
this.IsShowIndexTitle=true; //是否显示指标标题信息
|
|
66742
66745
|
this.IsShowNameArrow=false;
|
|
66746
|
+
this.IsSinlgeLine=false; //主图指标标题是否单行显示
|
|
66743
66747
|
this.NameArrowConfig=CloneData(g_JSChartResource.IndexTitle.NameArrow);
|
|
66744
66748
|
this.CustomLocation; //自定义位置 { IsShow:, Top:, TitleHeight: }
|
|
66745
66749
|
|
|
@@ -67478,6 +67482,7 @@ function DynamicChartTitlePainting()
|
|
|
67478
67482
|
this.IsShowUpDownArrow=this.Frame.IsShowTitleArrow;
|
|
67479
67483
|
this.TitleArrowType=this.Frame.TitleArrowType;
|
|
67480
67484
|
this.IsShowIndexName=this.Frame.IsShowIndexName;
|
|
67485
|
+
this.IsSinlgeLine=this.Frame.IsSinlgeLine;
|
|
67481
67486
|
this.IsShowOverlayIndexName=this.Frame.IsShowOverlayIndexName;
|
|
67482
67487
|
this.OverlayIndexType.Position=this.Frame.OverlayIndexType.Position;
|
|
67483
67488
|
this.OverlayIndexType.LineSpace=this.Frame.OverlayIndexType.LineSpace;
|
|
@@ -67884,6 +67889,7 @@ function DynamicChartTitlePainting()
|
|
|
67884
67889
|
|
|
67885
67890
|
if ((left+textWidth+space)>right)
|
|
67886
67891
|
{
|
|
67892
|
+
if (this.IsSinlgeLine) break;
|
|
67887
67893
|
left=newLineLeft;
|
|
67888
67894
|
bottom+=lineHeight;
|
|
67889
67895
|
right=this.Frame.ChartBorder.GetRight(); //第2行以后 右侧边框
|
|
@@ -67948,6 +67954,7 @@ function DynamicChartTitlePainting()
|
|
|
67948
67954
|
var textWidth=this.Canvas.measureText(text).width+space;
|
|
67949
67955
|
if ((left+textWidth)>right) //换行
|
|
67950
67956
|
{
|
|
67957
|
+
if (this.IsSinlgeLine) break;
|
|
67951
67958
|
left=newLineLeft;
|
|
67952
67959
|
bottom+=lineHeight;
|
|
67953
67960
|
right=this.Frame.ChartBorder.GetRight(); //第2行以后 右侧边框
|
|
@@ -81435,6 +81442,8 @@ function JSChartResource()
|
|
|
81435
81442
|
EnableIndexArrow:true, //指标数值是否带上涨下跌箭头
|
|
81436
81443
|
|
|
81437
81444
|
NameArrow:{ Color:"rgb(43,54,69)", Space:2, Symbol:'▼' },
|
|
81445
|
+
|
|
81446
|
+
IsSinlgeLine:false, //主图指标是否单行显示 false=多行显示
|
|
81438
81447
|
}
|
|
81439
81448
|
|
|
81440
81449
|
this.Title={
|
|
@@ -83120,6 +83129,7 @@ function JSChartResource()
|
|
|
83120
83129
|
|
|
83121
83130
|
if (IFrameSplitOperator.IsNumber(item.ArrowType)) this.IndexTitle.ArrowType=item.ArrowType;
|
|
83122
83131
|
if (IFrameSplitOperator.IsBool(item.EnableIndexArrow)) this.IndexTitle.EnableIndexArrow=item.EnableIndexArrow;
|
|
83132
|
+
if (IFrameSplitOperator.IsBool(item.IsSinlgeLine)) this.IndexTitle.IsSinlgeLine=item.IsSinlgeLine;
|
|
83123
83133
|
|
|
83124
83134
|
if (item.NameArrow)
|
|
83125
83135
|
{
|
|
@@ -109517,7 +109527,7 @@ function JSDivFrameToolbar()
|
|
|
109517
109527
|
{
|
|
109518
109528
|
var item=aryButton[i];
|
|
109519
109529
|
if (!item.ID || !item.ClassName) continue;
|
|
109520
|
-
var newItem={ ID:item.ID, ClassName:item.ClassName, Span:null,Div:null, TooltipSpan:null };
|
|
109530
|
+
var newItem={ ID:item.ID, ClassName:item.ClassName, Span:null,Div:null, TooltipSpan:null, SpanText:item.SpanText };
|
|
109521
109531
|
if (item.Tooltip && item.Tooltip.Text) newItem.Tooltip={ Text:item.Tooltip.Text };
|
|
109522
109532
|
|
|
109523
109533
|
this.AryButton.push(newItem);
|
|
@@ -109548,7 +109558,7 @@ function JSDivFrameToolbar()
|
|
|
109548
109558
|
if (!frame && this.FrameID>=0 && this.FrameID<this.HQChart.Frame.SubFrame.length)
|
|
109549
109559
|
frame=this.HQChart.Frame.SubFrame[this.FrameID].Frame;
|
|
109550
109560
|
|
|
109551
|
-
var aryDefaultButton=JSDivFrameToolbar.GetDfaultButtons();
|
|
109561
|
+
var aryDefaultButton=JSDivFrameToolbar.GetDfaultButtons(frame);
|
|
109552
109562
|
var aryButton=[];
|
|
109553
109563
|
for(var i=0;i<aryDefaultButton.length; i++)
|
|
109554
109564
|
{
|
|
@@ -109673,6 +109683,7 @@ function JSDivFrameToolbar()
|
|
|
109673
109683
|
var spanDom=document.createElement("span");
|
|
109674
109684
|
spanDom.className=item.ClassName;
|
|
109675
109685
|
spanDom.onmousedown=(e)=>{ this.OnClickButton(e, item); };
|
|
109686
|
+
if (item.SpanText) spanDom.innerText=item.SpanText;
|
|
109676
109687
|
item.Span=spanDom;
|
|
109677
109688
|
btnDiv.appendChild(spanDom);
|
|
109678
109689
|
|
|
@@ -109757,7 +109768,7 @@ function JSDivFrameToolbar()
|
|
|
109757
109768
|
}
|
|
109758
109769
|
}
|
|
109759
109770
|
|
|
109760
|
-
JSDivFrameToolbar.GetDfaultButtons=function()
|
|
109771
|
+
JSDivFrameToolbar.GetDfaultButtons=function(frame)
|
|
109761
109772
|
{
|
|
109762
109773
|
var aryButton=
|
|
109763
109774
|
[
|
|
@@ -109781,6 +109792,13 @@ JSDivFrameToolbar.GetDfaultButtons=function()
|
|
|
109781
109792
|
ID:JSCHART_BUTTON_ID.CLOSE_INDEX_WINDOW, ClassName:"UMyChart_FrameToolbar_Span_Button icon iconfont icon-close", Tooltip:{ Text:"关闭窗口"},
|
|
109782
109793
|
Span:null,Div:null, TooltipSpan:null
|
|
109783
109794
|
},
|
|
109795
|
+
|
|
109796
|
+
/*
|
|
109797
|
+
{
|
|
109798
|
+
ID:"TEST_8889", ClassName:"UMyChart_FrameToolbar_Span_Text", Tooltip:{ Text:"测试按钮提示"}, SpanText:"测试按钮",
|
|
109799
|
+
Span:null, Div:null, TooltipSpan:null
|
|
109800
|
+
},
|
|
109801
|
+
*/
|
|
109784
109802
|
];
|
|
109785
109803
|
|
|
109786
109804
|
return aryButton
|
|
@@ -153875,7 +153893,7 @@ function ScrollBarBGChart()
|
|
|
153875
153893
|
|
|
153876
153894
|
|
|
153877
153895
|
|
|
153878
|
-
var HQCHART_VERSION="1.1.
|
|
153896
|
+
var HQCHART_VERSION="1.1.15127";
|
|
153879
153897
|
|
|
153880
153898
|
function PrintHQChartVersion()
|
|
153881
153899
|
{
|
|
@@ -153987,6 +154005,8 @@ export default {
|
|
|
153987
154005
|
IChartDrawPicture:IChartDrawPicture, //画图工具
|
|
153988
154006
|
DynamicTitleData:DynamicTitleData, //指标标题数据
|
|
153989
154007
|
|
|
154008
|
+
JSDivFrameToolbar:JSDivFrameToolbar, //div指标工具条
|
|
154009
|
+
|
|
153990
154010
|
//成交明细
|
|
153991
154011
|
JSDealChart:JSDealChart,
|
|
153992
154012
|
DEAL_COLUMN_ID:DEAL_COLUMN_ID,
|