hqchart 1.1.14718 → 1.1.14731
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 +29 -53
- package/package.json +1 -1
- package/src/jscommon/umychart.js +161 -87
- package/src/jscommon/umychart.style.js +1 -1
- package/src/jscommon/umychart.uniapp.h5/umychart.uniapp.h5.js +163 -89
- package/src/jscommon/umychart.version.js +1 -1
- package/src/jscommon/umychart.vue/umychart.vue.js +163 -89
|
@@ -30747,6 +30747,7 @@ function ChartKLine()
|
|
|
30747
30747
|
this.IsThinAKBar=true; //美国线 柱子是否是线段 (false=柱子)
|
|
30748
30748
|
this.OneLimitBarType=0; //一字板颜色类型 4个价格全部都在同一个价位上 0=使用平盘颜色 1=跟昨收比较
|
|
30749
30749
|
this.UnchangeBarType=0; //0=使用unchange color 1=和昨收比较
|
|
30750
|
+
this.EnableColorBar=false; //K线柱子是否支持自定义颜色
|
|
30750
30751
|
|
|
30751
30752
|
this.HighLowBarColor=g_JSChartResource.HighLowBarColor;
|
|
30752
30753
|
this.HighLowTextConfig=
|
|
@@ -31679,7 +31680,7 @@ function ChartKLine()
|
|
|
31679
31680
|
|
|
31680
31681
|
this.DrawKBar_Custom(data, dataWidth, barColor, drawType, kLineOption, x, y, left, right, yLow, yHigh, yOpen, yClose, border, isHScreen);
|
|
31681
31682
|
}
|
|
31682
|
-
else if (this.DrawType==9 && data.ColorData)
|
|
31683
|
+
else if ((this.DrawType==9 || this.EnableColorBar) && data.ColorData)
|
|
31683
31684
|
{
|
|
31684
31685
|
this.DrawColorKBar(data, data.ColorData, dataWidth, x, y, left, right, yLow, yHigh, yOpen, yClose, isHScreen);
|
|
31685
31686
|
}
|
|
@@ -59995,7 +59996,7 @@ function ChartCorssCursor()
|
|
|
59995
59996
|
Enable:false, Rect:null,
|
|
59996
59997
|
BGColor:g_JSChartResource.CorssCursor.RightButton.BGColor ,
|
|
59997
59998
|
PenColor:g_JSChartResource.CorssCursor.RightButton.PenColor,
|
|
59998
|
-
Icon:g_JSChartResource.CorssCursor.RightButton.Icon
|
|
59999
|
+
Icon:CloneData(g_JSChartResource.CorssCursor.RightButton.Icon)
|
|
59999
60000
|
};
|
|
60000
60001
|
|
|
60001
60002
|
//底部按钮
|
|
@@ -60004,9 +60005,11 @@ function ChartCorssCursor()
|
|
|
60004
60005
|
Enable:false, Rect:null,
|
|
60005
60006
|
}
|
|
60006
60007
|
|
|
60007
|
-
this.
|
|
60008
|
-
this.
|
|
60009
|
-
this.
|
|
60008
|
+
this.BottomConfig=CloneData(g_JSChartResource.CorssCursor.BottomText); //底部输出配置
|
|
60009
|
+
this.LeftConfig=CloneData(g_JSChartResource.CorssCursor.LeftText); //左侧输出配置
|
|
60010
|
+
this.RightConfig=CloneData(g_JSChartResource.CorssCursor.RightText); //右侧输出配置
|
|
60011
|
+
this.RightOverlayConfig=CloneData(g_JSChartResource.CorssCursor.RightOverlayText); //右侧叠加指标输出配置
|
|
60012
|
+
|
|
60010
60013
|
|
|
60011
60014
|
//内部使用
|
|
60012
60015
|
this.Close=null; //收盘价格
|
|
@@ -60024,6 +60027,10 @@ function ChartCorssCursor()
|
|
|
60024
60027
|
this.XRangeBGColor=g_JSChartResource.CorssCursorXRangeBGColor;
|
|
60025
60028
|
this.LineDash=g_JSChartResource.CorssCursorLineDash.slice(); //虚线
|
|
60026
60029
|
|
|
60030
|
+
this.RightButton.BGColor=g_JSChartResource.CorssCursor.RightButton.BGColor;
|
|
60031
|
+
this.RightButton.PenColor=g_JSChartResource.CorssCursor.RightButton.PenColor;
|
|
60032
|
+
this.RightButton.Icon=CloneData(g_JSChartResource.CorssCursor.RightButton.Icon);
|
|
60033
|
+
this.RightOverlayConfig=CloneData(g_JSChartResource.CorssCursor.RightOverlayText);
|
|
60027
60034
|
|
|
60028
60035
|
this.CorssPointConfig.Center=CloneData(g_JSChartResource.CorssCursor.CorssPoint.Center);
|
|
60029
60036
|
this.CorssPointConfig.Border=CloneData(g_JSChartResource.CorssCursor.CorssPoint.Border);
|
|
@@ -60429,7 +60436,7 @@ function ChartCorssCursor()
|
|
|
60429
60436
|
{
|
|
60430
60437
|
ShowType:0, //0=单行(默认) 1=多行
|
|
60431
60438
|
Font:this.Font, Color:this.TextColor,
|
|
60432
|
-
Text:[ { Text:text, Margin:this.
|
|
60439
|
+
Text:[ { Text:text, Margin:this.RightConfig.Margin, TextOffset:this.RightConfig.TextOffset } ],
|
|
60433
60440
|
};
|
|
60434
60441
|
|
|
60435
60442
|
var yTop=y-this.TextHeight/2;
|
|
@@ -60460,6 +60467,28 @@ function ChartCorssCursor()
|
|
|
60460
60467
|
|
|
60461
60468
|
this.CalculateComplexTextSize(complexText, textSize);
|
|
60462
60469
|
|
|
60470
|
+
//计算右侧文本输出顶部位置
|
|
60471
|
+
function _Temp_CalculateRightTextBGTop(rtBG, complexText, defaultTextHeight)
|
|
60472
|
+
{
|
|
60473
|
+
if (complexText.ShowType==1)
|
|
60474
|
+
{
|
|
60475
|
+
var yValue=defaultTextHeight/2;
|
|
60476
|
+
if (IFrameSplitOperator.IsNonEmptyArray(textSize.Text) && textSize.Text[0])
|
|
60477
|
+
{
|
|
60478
|
+
var itemSize=textSize.Text[0];
|
|
60479
|
+
if (IFrameSplitOperator.IsNumber(itemSize.Height)) yValue=itemSize.Height/2;
|
|
60480
|
+
}
|
|
60481
|
+
|
|
60482
|
+
rtBG.Top=rtBG.YCenter-yValue;
|
|
60483
|
+
rtBG.Bottom=rtBG.Top+rtBG.Height;
|
|
60484
|
+
}
|
|
60485
|
+
else
|
|
60486
|
+
{
|
|
60487
|
+
rtBG.Top=rtBG.YCenter-rtBG.Height/2;
|
|
60488
|
+
rtBG.Bottom=rtBG.Top+rtBG.Height;
|
|
60489
|
+
}
|
|
60490
|
+
}
|
|
60491
|
+
|
|
60463
60492
|
if (this.Frame.ChartBorder.Right>=30 && this.ShowTextMode.Right==1)
|
|
60464
60493
|
{
|
|
60465
60494
|
var isOverlayIndex=false; //是否有叠加子坐标
|
|
@@ -60488,74 +60517,53 @@ function ChartCorssCursor()
|
|
|
60488
60517
|
//叠加坐标
|
|
60489
60518
|
if (isOverlayIndex && textSize.Width>overlayIndexInterval && overlayIndexInterval>0) //大于子坐标宽度
|
|
60490
60519
|
{
|
|
60520
|
+
var rtBG={ Right:right+overlayIndexInterval, Width:textSize.Width, YCenter:y, Height:textSize.Height };
|
|
60521
|
+
rtBG.Left=rtBG.Right-rtBG.Width;
|
|
60522
|
+
_Temp_CalculateRightTextBGTop(rtBG,complexText,this.TextHeight);
|
|
60523
|
+
|
|
60524
|
+
if (rtBG.Right>chartRight)
|
|
60525
|
+
{
|
|
60526
|
+
rtBG.Right=chartRight;
|
|
60527
|
+
rtBG.Left=rtBG.Right-rtBG.Width;
|
|
60528
|
+
}
|
|
60529
|
+
|
|
60491
60530
|
var drawRight=right+overlayIndexInterval;
|
|
60492
60531
|
if (drawRight>chartRight) drawRight=chartRight;
|
|
60493
60532
|
|
|
60494
|
-
|
|
60495
|
-
this.
|
|
60496
|
-
this.DrawComplexTextV2(itemLeft, yTop, complexText, textSize);
|
|
60533
|
+
this.DrawTextBGRect(rtBG.Left,rtBG.Top,rtBG.Width,rtBG.Height);
|
|
60534
|
+
this.DrawComplexRightText(rtBG,complexText,textSize);
|
|
60497
60535
|
|
|
60498
|
-
if (this.RightButton.Enable) this.
|
|
60499
|
-
}
|
|
60500
|
-
else if (rightWidth<textSize.Width) //右边空白显示不下,
|
|
60501
|
-
{
|
|
60502
|
-
var itemLeft=chartRight-2-textSize.Width;
|
|
60503
|
-
this.DrawTextBGRect(itemLeft,yTop,textSize.Width,textSize.Height);
|
|
60504
|
-
this.DrawComplexTextV2(itemLeft, yTop ,complexText, textSize);
|
|
60505
|
-
|
|
60506
|
-
if (this.RightButton.Enable) this.DrawRightButton(yTop, chartRight-2-textSize.Width,this.TextHeight,this.TextHeight,buttonData);
|
|
60536
|
+
if (this.RightButton.Enable) this.DrawRightButtonV2(rtBG, complexText, textSize, buttonData);
|
|
60507
60537
|
}
|
|
60508
60538
|
else
|
|
60509
60539
|
{
|
|
60510
|
-
var
|
|
60511
|
-
|
|
60512
|
-
|
|
60513
|
-
|
|
60514
|
-
if (
|
|
60515
|
-
}
|
|
60516
|
-
|
|
60517
|
-
/*
|
|
60518
|
-
if (this.StringFormatY.RExtendText && this.StringFormatY.RExtendText.length>0)
|
|
60519
|
-
{
|
|
60520
|
-
var yOffset=0;
|
|
60521
|
-
for(var i in this.StringFormatY.RExtendText)
|
|
60540
|
+
var rtBG={ Left:right+1, Width:textSize.Width, YCenter:y, Height:textSize.Height };
|
|
60541
|
+
rtBG.Right=rtBG.Left+rtBG.Width;
|
|
60542
|
+
_Temp_CalculateRightTextBGTop(rtBG,complexText,this.TextHeight);
|
|
60543
|
+
|
|
60544
|
+
if (rtBG.Right>chartRight)
|
|
60522
60545
|
{
|
|
60523
|
-
|
|
60524
|
-
|
|
60525
|
-
if (item.YText) rText=item.YText;
|
|
60526
|
-
else if (IFrameSplitOperator.IsNumber(item.Y)) rText=item.Y.toFixed(0);
|
|
60527
|
-
var rTextWidth=this.Canvas.measureText(rText).width+4; //前后各空2个像素
|
|
60528
|
-
|
|
60529
|
-
if (rightWidth<rTextWidth)
|
|
60530
|
-
{
|
|
60531
|
-
this.DrawTextBGRect(chartRight-2-rTextWidth,y+yOffset+this.TextHeight/2,rTextWidth,this.TextHeight);
|
|
60532
|
-
this.Canvas.textAlign="right";
|
|
60533
|
-
this.Canvas.textBaseline="middle";
|
|
60534
|
-
this.Canvas.fillStyle=item.TextColor;
|
|
60535
|
-
this.Canvas.fillText(rText,chartRight-4,y+yOffset+this.TextHeight,rTextWidth);
|
|
60536
|
-
}
|
|
60537
|
-
else
|
|
60538
|
-
{
|
|
60539
|
-
this.DrawTextBGRect(right+2,y+yOffset+this.TextHeight/2,rTextWidth,this.TextHeight);
|
|
60540
|
-
this.Canvas.textAlign="left";
|
|
60541
|
-
this.Canvas.textBaseline="middle";
|
|
60542
|
-
this.Canvas.fillStyle=item.TextColor;
|
|
60543
|
-
this.Canvas.fillText(rText,right+4,y+yOffset+this.TextHeight,rTextWidth);
|
|
60544
|
-
}
|
|
60545
|
-
|
|
60546
|
-
yOffset+=this.TextHeight;
|
|
60546
|
+
rtBG.Right=chartRight;
|
|
60547
|
+
rtBG.Left=rtBG.Right-rtBG.Width;
|
|
60547
60548
|
}
|
|
60549
|
+
|
|
60550
|
+
this.DrawTextBGRect(rtBG.Left,rtBG.Top,rtBG.Width,rtBG.Height);
|
|
60551
|
+
this.DrawComplexRightText(rtBG,complexText,textSize);
|
|
60552
|
+
|
|
60553
|
+
if (this.RightButton.Enable) this.DrawRightButtonV2(rtBG, complexText, textSize, buttonData);
|
|
60548
60554
|
}
|
|
60549
|
-
*/
|
|
60550
60555
|
}
|
|
60551
|
-
else if (this.ShowTextMode.Right==2)
|
|
60556
|
+
else if (this.ShowTextMode.Right==2) //框架内侧显示
|
|
60552
60557
|
{
|
|
60558
|
+
var rtBG={ Right:right, Width:textSize.Width, YCenter:y, Height:textSize.Height };
|
|
60559
|
+
rtBG.Left=rtBG.Right-rtBG.Width;
|
|
60560
|
+
_Temp_CalculateRightTextBGTop(rtBG,complexText,this.TextHeight);
|
|
60561
|
+
|
|
60553
60562
|
this.Canvas.fillStyle=this.TextBGColor;
|
|
60554
|
-
|
|
60555
|
-
this.
|
|
60556
|
-
this.DrawComplexTextV2(showLeft,yTop,complexText,textSize);
|
|
60563
|
+
this.DrawTextBGRect(rtBG.Left,rtBG.Top,rtBG.Width,rtBG.Height);
|
|
60564
|
+
this.DrawComplexRightText(rtBG,complexText,textSize);
|
|
60557
60565
|
|
|
60558
|
-
if (this.RightButton.Enable) this.
|
|
60566
|
+
if (this.RightButton.Enable) this.DrawRightButtonV2(rtBG, complexText, textSize, buttonData);
|
|
60559
60567
|
}
|
|
60560
60568
|
}
|
|
60561
60569
|
|
|
@@ -60638,8 +60646,19 @@ function ChartCorssCursor()
|
|
|
60638
60646
|
//if (overlayLeft+30>chartRight) break;
|
|
60639
60647
|
var yValue=item.Frame.GetYData(y);
|
|
60640
60648
|
var text=IFrameSplitOperator.FormatValueString(yValue,2);
|
|
60641
|
-
var textWidth=this.Canvas.measureText(text).width
|
|
60649
|
+
var textWidth=this.Canvas.measureText(text).width; //前后各空2个像素
|
|
60650
|
+
|
|
60651
|
+
|
|
60652
|
+
var margin=this.RightOverlayConfig.Margin;
|
|
60653
|
+
var textOffset=this.RightOverlayConfig.TextOffset;
|
|
60654
|
+
|
|
60655
|
+
var rtBG={ Left:overlayLeft+1, Width:textWidth+margin.Left+margin.Right, YCenter:y, Height:textHeight+margin.Top+margin.Bottom };
|
|
60656
|
+
rtBG.Right=rtBG.Left-rtBG.Width;
|
|
60657
|
+
rtBG.Top=rtBG.YCenter-rtBG.Height/2;
|
|
60658
|
+
rtBG.Bottom=rtBG.Top+rtBG.Height;
|
|
60642
60659
|
|
|
60660
|
+
this.DrawTextBGRect(rtBG.Left,rtBG.Top,rtBG.Width,rtBG.Height);
|
|
60661
|
+
|
|
60643
60662
|
/*
|
|
60644
60663
|
for(var j=2;j>=0;--j)
|
|
60645
60664
|
{
|
|
@@ -60649,19 +60668,17 @@ function ChartCorssCursor()
|
|
|
60649
60668
|
}
|
|
60650
60669
|
*/
|
|
60651
60670
|
|
|
60652
|
-
this.Canvas.fillStyle=this.TextBGColor;
|
|
60653
|
-
this.Canvas.fillRect(overlayLeft+1,y-this.TextHeight/2,textWidth,this.TextHeight);
|
|
60654
60671
|
this.Canvas.textAlign="left";
|
|
60655
|
-
this.Canvas.textBaseline="
|
|
60672
|
+
this.Canvas.textBaseline="bottom";
|
|
60656
60673
|
this.Canvas.fillStyle=this.TextColor;
|
|
60657
|
-
this.Canvas.fillText(text,
|
|
60674
|
+
this.Canvas.fillText(text,rtBG.Left+textOffset.X, rtBG.Bottom+textOffset.Y);
|
|
60658
60675
|
}
|
|
60659
60676
|
}
|
|
60660
60677
|
|
|
60661
60678
|
this.Status=1;
|
|
60662
60679
|
}
|
|
60663
60680
|
|
|
60664
|
-
this.
|
|
60681
|
+
this.DrawComplexRightText=function(rtBG, complexText, size)
|
|
60665
60682
|
{
|
|
60666
60683
|
this.Canvas.textAlign="left";
|
|
60667
60684
|
this.Canvas.textBaseline="bottom";
|
|
@@ -60669,8 +60686,8 @@ function ChartCorssCursor()
|
|
|
60669
60686
|
if (complexText.ShowType==1) showType=complexText.ShowType;
|
|
60670
60687
|
if (showType==1) //多行
|
|
60671
60688
|
{
|
|
60672
|
-
var xLeft=
|
|
60673
|
-
var
|
|
60689
|
+
var xLeft=rtBG.Left;
|
|
60690
|
+
var yTop=rtBG.Top; //顶
|
|
60674
60691
|
for(var i=0; i<complexText.Text.length; ++i)
|
|
60675
60692
|
{
|
|
60676
60693
|
var item=complexText.Text[i];
|
|
@@ -60682,24 +60699,25 @@ function ChartCorssCursor()
|
|
|
60682
60699
|
if (item.Color) this.Canvas.fillStyle=item.Color;
|
|
60683
60700
|
else this.Canvas.fillStyle=complexText.Color;
|
|
60684
60701
|
|
|
60685
|
-
var y=
|
|
60702
|
+
var y=yTop+itemSize.Height;
|
|
60686
60703
|
var x=xLeft;
|
|
60687
|
-
|
|
60704
|
+
|
|
60705
|
+
if (item.TextOffset)
|
|
60688
60706
|
{
|
|
60689
|
-
var
|
|
60690
|
-
if (IFrameSplitOperator.IsNumber(
|
|
60691
|
-
if (IFrameSplitOperator.IsNumber(
|
|
60707
|
+
var textOffset=item.TextOffset;
|
|
60708
|
+
if (IFrameSplitOperator.IsNumber(textOffset.X)) x+=textOffset.X;
|
|
60709
|
+
if (IFrameSplitOperator.IsNumber(textOffset.Y)) y+=textOffset.Y;
|
|
60692
60710
|
}
|
|
60693
60711
|
|
|
60694
60712
|
this.Canvas.fillText(item.Text,x,y,itemSize.Width);
|
|
60695
60713
|
|
|
60696
|
-
|
|
60714
|
+
yTop+=itemSize.Height;
|
|
60697
60715
|
}
|
|
60698
60716
|
}
|
|
60699
60717
|
else //水平 单行
|
|
60700
60718
|
{
|
|
60701
|
-
var xText=
|
|
60702
|
-
var yBottom=
|
|
60719
|
+
var xText=rtBG.Left;
|
|
60720
|
+
var yBottom=rtBG.Bottom;
|
|
60703
60721
|
for(var i=0; i<complexText.Text.length; ++i)
|
|
60704
60722
|
{
|
|
60705
60723
|
var item=complexText.Text[i];
|
|
@@ -60711,15 +60729,16 @@ function ChartCorssCursor()
|
|
|
60711
60729
|
if (item.Color) this.Canvas.fillStyle=item.Color;
|
|
60712
60730
|
else this.Canvas.fillStyle=complexText.Color;
|
|
60713
60731
|
|
|
60714
|
-
var y=yBottom;
|
|
60715
60732
|
var x=xText;
|
|
60716
|
-
|
|
60733
|
+
var y=yBottom;
|
|
60734
|
+
|
|
60735
|
+
if (item.TextOffset)
|
|
60717
60736
|
{
|
|
60718
|
-
var
|
|
60719
|
-
if (IFrameSplitOperator.IsNumber(
|
|
60720
|
-
if (IFrameSplitOperator.IsNumber(
|
|
60737
|
+
var textOffset=item.TextOffset;
|
|
60738
|
+
if (IFrameSplitOperator.IsNumber(textOffset.X)) x+=textOffset.X;
|
|
60739
|
+
if (IFrameSplitOperator.IsNumber(textOffset.Y)) y+=textOffset.Y;
|
|
60721
60740
|
}
|
|
60722
|
-
|
|
60741
|
+
|
|
60723
60742
|
this.Canvas.fillText(item.Text,x,y,itemSize.Width);
|
|
60724
60743
|
|
|
60725
60744
|
xText+=itemSize.Width;
|
|
@@ -60742,7 +60761,7 @@ function ChartCorssCursor()
|
|
|
60742
60761
|
if (item.Font) this.Canvas.font=item.Font;
|
|
60743
60762
|
else this.Canvas.font=complexText.Font;
|
|
60744
60763
|
var itemWidth=this.Canvas.measureText(item.Text).width; //前后各空2个像素
|
|
60745
|
-
var itemHeight=this.
|
|
60764
|
+
var itemHeight=this.GetFontHeight();
|
|
60746
60765
|
if (item.Margin)
|
|
60747
60766
|
{
|
|
60748
60767
|
var margin=item.Margin;
|
|
@@ -60763,7 +60782,7 @@ function ChartCorssCursor()
|
|
|
60763
60782
|
}
|
|
60764
60783
|
else //水平 单行
|
|
60765
60784
|
{
|
|
60766
|
-
var textWidth=0, textHeight=
|
|
60785
|
+
var textWidth=0, textHeight=this.GetFontHeight();
|
|
60767
60786
|
for(var i=0; i<complexText.Text.length; ++i)
|
|
60768
60787
|
{
|
|
60769
60788
|
var item=complexText.Text[i];
|
|
@@ -60792,6 +60811,61 @@ function ChartCorssCursor()
|
|
|
60792
60811
|
}
|
|
60793
60812
|
}
|
|
60794
60813
|
|
|
60814
|
+
|
|
60815
|
+
this.DrawRightButtonV2=function(rtTextBG, complexText, textSize, data)
|
|
60816
|
+
{
|
|
60817
|
+
this.Canvas.fillStyle=this.RightButton.BGColor;
|
|
60818
|
+
var drawHeight=rtTextBG.Height;
|
|
60819
|
+
var drawWidth=rtTextBG.Height;
|
|
60820
|
+
|
|
60821
|
+
if (complexText.ShowType==1) //多行 取第1行高度
|
|
60822
|
+
{
|
|
60823
|
+
var itemSize=textSize.Text[0];
|
|
60824
|
+
drawHeight=itemSize.Height;
|
|
60825
|
+
drawWidth=itemSize.Height;
|
|
60826
|
+
}
|
|
60827
|
+
|
|
60828
|
+
var rtButton={Left:rtTextBG.Left-drawHeight, Top:rtTextBG.Top, Width:drawWidth, Height:drawHeight };
|
|
60829
|
+
rtButton.Right=rtButton.Left+rtButton.Width;
|
|
60830
|
+
rtButton.Bottom=rtButton.Top+rtButton.Height;
|
|
60831
|
+
this.RightButton.Rect=rtButton;
|
|
60832
|
+
this.RightButton.Data=data;
|
|
60833
|
+
this.Canvas.fillRect(ToFixedPoint(rtButton.Left+1),ToFixedPoint(rtButton.Top),ToFixedRect(rtButton.Width),ToFixedRect(rtButton.Height));
|
|
60834
|
+
|
|
60835
|
+
var pixelRatio=GetDevicePixelRatio();
|
|
60836
|
+
var spaceWidth=3;
|
|
60837
|
+
var yCenter=(rtButton.Top+spaceWidth)+(rtButton.Height-spaceWidth*2)/2;
|
|
60838
|
+
var xCenter=(rtButton.Left+spaceWidth)+(rtButton.Width-spaceWidth*2)/2;
|
|
60839
|
+
|
|
60840
|
+
if (this.RightButton.Icon)
|
|
60841
|
+
{
|
|
60842
|
+
var icon=this.RightButton.Icon;
|
|
60843
|
+
this.Canvas.font=`${icon.Size*pixelRatio}px ${icon.Family}`;
|
|
60844
|
+
this.Canvas.textAlign="center";
|
|
60845
|
+
this.Canvas.textBaseline="middle";
|
|
60846
|
+
this.Canvas.fillStyle=icon.Color;
|
|
60847
|
+
this.Canvas.fillText("\ue6a3",xCenter,yCenter);
|
|
60848
|
+
}
|
|
60849
|
+
else
|
|
60850
|
+
{
|
|
60851
|
+
//画加号
|
|
60852
|
+
this.Canvas.strokeStyle=this.RightButton.PenColor;
|
|
60853
|
+
var x=rtButtom.Left+spaceWidth;
|
|
60854
|
+
var y=rtButtom.Top+spaceWidth;
|
|
60855
|
+
this.Canvas.save();
|
|
60856
|
+
this.Canvas.linewidth=1*pixelRatio;
|
|
60857
|
+
this.Canvas.beginPath();
|
|
60858
|
+
this.Canvas.moveTo(ToFixedPoint(x), ToFixedPoint(yCenter));
|
|
60859
|
+
this.Canvas.lineTo(ToFixedPoint(x+rtButton.Width-spaceWidth*2), ToFixedPoint(yCenter));
|
|
60860
|
+
|
|
60861
|
+
this.Canvas.moveTo(ToFixedPoint(xCenter),ToFixedPoint(y));
|
|
60862
|
+
this.Canvas.lineTo(ToFixedPoint(xCenter), ToFixedPoint(y+rtButton.Height-spaceWidth*2));
|
|
60863
|
+
|
|
60864
|
+
this.Canvas.stroke();
|
|
60865
|
+
this.Canvas.restore();
|
|
60866
|
+
}
|
|
60867
|
+
}
|
|
60868
|
+
|
|
60795
60869
|
this.DrawRightButton=function(drawTop, drawRight, drawWidth, drawHeight, data)
|
|
60796
60870
|
{
|
|
60797
60871
|
this.Canvas.fillStyle=this.RightButton.BGColor;
|
|
@@ -78280,13 +78354,13 @@ function JSChartResource()
|
|
|
78280
78354
|
{
|
|
78281
78355
|
BGColor:'rgb(43,54,69)',
|
|
78282
78356
|
PenColor:'rgb(255,255,255)',
|
|
78283
|
-
Icon: { Text:'\ue6a3', Color:'rgb(255,255,255)', Family:"iconfont", Size:
|
|
78357
|
+
Icon: { Text:'\ue6a3', Color:'rgb(255,255,255)', Family:"iconfont", Size:14 }
|
|
78284
78358
|
},
|
|
78285
78359
|
|
|
78286
|
-
RightMargin: { Left:2, Right:2, Top:5, Bottom:3 },
|
|
78287
|
-
|
|
78288
78360
|
BottomText:{ Margin: { Left:4, Right:4, Top:0, Bottom:0 }, TextOffset:{X:4, Y:-1 } },
|
|
78289
78361
|
LeftText:{ Margin: { Left:4, Right:4, Top:0, Bottom:0 }, TextOffset:{X:4, Y:-1 } },
|
|
78362
|
+
RightText:{ Margin: { Left:4, Right:4, Top:0, Bottom:0 }, TextOffset:{X:4, Y:-1 } },
|
|
78363
|
+
RightOverlayText:{ Margin: { Left:2, Right:2, Top:0, Bottom:0 }, TextOffset:{X:2, Y:-1 } }, //右侧叠加坐标
|
|
78290
78364
|
|
|
78291
78365
|
CorssPoint:{ Center:{ Radius:5*GetDevicePixelRatio(), Color:"rgb(50,171,205)"}, Border:{ Color:'rgb(255,255,255)', Width:1*GetDevicePixelRatio() } }
|
|
78292
78366
|
};
|
|
@@ -132464,7 +132538,7 @@ function GetBlackStyle()
|
|
|
132464
132538
|
{
|
|
132465
132539
|
BGColor:'rgb(43,54,69)',
|
|
132466
132540
|
PenColor:'rgb(255,255,255)',
|
|
132467
|
-
Icon: { Text:'\ue6a3', Color:'rgb(255,255,255)', Family:"iconfont", Size:
|
|
132541
|
+
Icon: { Text:'\ue6a3', Color:'rgb(255,255,255)', Family:"iconfont", Size:12 }
|
|
132468
132542
|
},
|
|
132469
132543
|
|
|
132470
132544
|
CorssPoint:{ Center:{ Color:"rgb(50,171,205)" }, Border:{ Color:'rgba(0,0,0,0.8)', Width:1*GetDevicePixelRatio() } }
|
|
@@ -147923,7 +147997,7 @@ function ScrollBarBGChart()
|
|
|
147923
147997
|
|
|
147924
147998
|
|
|
147925
147999
|
|
|
147926
|
-
var HQCHART_VERSION="1.1.
|
|
148000
|
+
var HQCHART_VERSION="1.1.14730";
|
|
147927
148001
|
|
|
147928
148002
|
function PrintHQChartVersion()
|
|
147929
148003
|
{
|