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
|
@@ -30791,6 +30791,7 @@ function ChartKLine()
|
|
|
30791
30791
|
this.IsThinAKBar=true; //美国线 柱子是否是线段 (false=柱子)
|
|
30792
30792
|
this.OneLimitBarType=0; //一字板颜色类型 4个价格全部都在同一个价位上 0=使用平盘颜色 1=跟昨收比较
|
|
30793
30793
|
this.UnchangeBarType=0; //0=使用unchange color 1=和昨收比较
|
|
30794
|
+
this.EnableColorBar=false; //K线柱子是否支持自定义颜色
|
|
30794
30795
|
|
|
30795
30796
|
this.HighLowBarColor=g_JSChartResource.HighLowBarColor;
|
|
30796
30797
|
this.HighLowTextConfig=
|
|
@@ -31723,7 +31724,7 @@ function ChartKLine()
|
|
|
31723
31724
|
|
|
31724
31725
|
this.DrawKBar_Custom(data, dataWidth, barColor, drawType, kLineOption, x, y, left, right, yLow, yHigh, yOpen, yClose, border, isHScreen);
|
|
31725
31726
|
}
|
|
31726
|
-
else if (this.DrawType==9 && data.ColorData)
|
|
31727
|
+
else if ((this.DrawType==9 || this.EnableColorBar) && data.ColorData)
|
|
31727
31728
|
{
|
|
31728
31729
|
this.DrawColorKBar(data, data.ColorData, dataWidth, x, y, left, right, yLow, yHigh, yOpen, yClose, isHScreen);
|
|
31729
31730
|
}
|
|
@@ -60039,7 +60040,7 @@ function ChartCorssCursor()
|
|
|
60039
60040
|
Enable:false, Rect:null,
|
|
60040
60041
|
BGColor:g_JSChartResource.CorssCursor.RightButton.BGColor ,
|
|
60041
60042
|
PenColor:g_JSChartResource.CorssCursor.RightButton.PenColor,
|
|
60042
|
-
Icon:g_JSChartResource.CorssCursor.RightButton.Icon
|
|
60043
|
+
Icon:CloneData(g_JSChartResource.CorssCursor.RightButton.Icon)
|
|
60043
60044
|
};
|
|
60044
60045
|
|
|
60045
60046
|
//底部按钮
|
|
@@ -60048,9 +60049,11 @@ function ChartCorssCursor()
|
|
|
60048
60049
|
Enable:false, Rect:null,
|
|
60049
60050
|
}
|
|
60050
60051
|
|
|
60051
|
-
this.
|
|
60052
|
-
this.
|
|
60053
|
-
this.
|
|
60052
|
+
this.BottomConfig=CloneData(g_JSChartResource.CorssCursor.BottomText); //底部输出配置
|
|
60053
|
+
this.LeftConfig=CloneData(g_JSChartResource.CorssCursor.LeftText); //左侧输出配置
|
|
60054
|
+
this.RightConfig=CloneData(g_JSChartResource.CorssCursor.RightText); //右侧输出配置
|
|
60055
|
+
this.RightOverlayConfig=CloneData(g_JSChartResource.CorssCursor.RightOverlayText); //右侧叠加指标输出配置
|
|
60056
|
+
|
|
60054
60057
|
|
|
60055
60058
|
//内部使用
|
|
60056
60059
|
this.Close=null; //收盘价格
|
|
@@ -60068,6 +60071,10 @@ function ChartCorssCursor()
|
|
|
60068
60071
|
this.XRangeBGColor=g_JSChartResource.CorssCursorXRangeBGColor;
|
|
60069
60072
|
this.LineDash=g_JSChartResource.CorssCursorLineDash.slice(); //虚线
|
|
60070
60073
|
|
|
60074
|
+
this.RightButton.BGColor=g_JSChartResource.CorssCursor.RightButton.BGColor;
|
|
60075
|
+
this.RightButton.PenColor=g_JSChartResource.CorssCursor.RightButton.PenColor;
|
|
60076
|
+
this.RightButton.Icon=CloneData(g_JSChartResource.CorssCursor.RightButton.Icon);
|
|
60077
|
+
this.RightOverlayConfig=CloneData(g_JSChartResource.CorssCursor.RightOverlayText);
|
|
60071
60078
|
|
|
60072
60079
|
this.CorssPointConfig.Center=CloneData(g_JSChartResource.CorssCursor.CorssPoint.Center);
|
|
60073
60080
|
this.CorssPointConfig.Border=CloneData(g_JSChartResource.CorssCursor.CorssPoint.Border);
|
|
@@ -60473,7 +60480,7 @@ function ChartCorssCursor()
|
|
|
60473
60480
|
{
|
|
60474
60481
|
ShowType:0, //0=单行(默认) 1=多行
|
|
60475
60482
|
Font:this.Font, Color:this.TextColor,
|
|
60476
|
-
Text:[ { Text:text, Margin:this.
|
|
60483
|
+
Text:[ { Text:text, Margin:this.RightConfig.Margin, TextOffset:this.RightConfig.TextOffset } ],
|
|
60477
60484
|
};
|
|
60478
60485
|
|
|
60479
60486
|
var yTop=y-this.TextHeight/2;
|
|
@@ -60504,6 +60511,28 @@ function ChartCorssCursor()
|
|
|
60504
60511
|
|
|
60505
60512
|
this.CalculateComplexTextSize(complexText, textSize);
|
|
60506
60513
|
|
|
60514
|
+
//计算右侧文本输出顶部位置
|
|
60515
|
+
function _Temp_CalculateRightTextBGTop(rtBG, complexText, defaultTextHeight)
|
|
60516
|
+
{
|
|
60517
|
+
if (complexText.ShowType==1)
|
|
60518
|
+
{
|
|
60519
|
+
var yValue=defaultTextHeight/2;
|
|
60520
|
+
if (IFrameSplitOperator.IsNonEmptyArray(textSize.Text) && textSize.Text[0])
|
|
60521
|
+
{
|
|
60522
|
+
var itemSize=textSize.Text[0];
|
|
60523
|
+
if (IFrameSplitOperator.IsNumber(itemSize.Height)) yValue=itemSize.Height/2;
|
|
60524
|
+
}
|
|
60525
|
+
|
|
60526
|
+
rtBG.Top=rtBG.YCenter-yValue;
|
|
60527
|
+
rtBG.Bottom=rtBG.Top+rtBG.Height;
|
|
60528
|
+
}
|
|
60529
|
+
else
|
|
60530
|
+
{
|
|
60531
|
+
rtBG.Top=rtBG.YCenter-rtBG.Height/2;
|
|
60532
|
+
rtBG.Bottom=rtBG.Top+rtBG.Height;
|
|
60533
|
+
}
|
|
60534
|
+
}
|
|
60535
|
+
|
|
60507
60536
|
if (this.Frame.ChartBorder.Right>=30 && this.ShowTextMode.Right==1)
|
|
60508
60537
|
{
|
|
60509
60538
|
var isOverlayIndex=false; //是否有叠加子坐标
|
|
@@ -60532,74 +60561,53 @@ function ChartCorssCursor()
|
|
|
60532
60561
|
//叠加坐标
|
|
60533
60562
|
if (isOverlayIndex && textSize.Width>overlayIndexInterval && overlayIndexInterval>0) //大于子坐标宽度
|
|
60534
60563
|
{
|
|
60564
|
+
var rtBG={ Right:right+overlayIndexInterval, Width:textSize.Width, YCenter:y, Height:textSize.Height };
|
|
60565
|
+
rtBG.Left=rtBG.Right-rtBG.Width;
|
|
60566
|
+
_Temp_CalculateRightTextBGTop(rtBG,complexText,this.TextHeight);
|
|
60567
|
+
|
|
60568
|
+
if (rtBG.Right>chartRight)
|
|
60569
|
+
{
|
|
60570
|
+
rtBG.Right=chartRight;
|
|
60571
|
+
rtBG.Left=rtBG.Right-rtBG.Width;
|
|
60572
|
+
}
|
|
60573
|
+
|
|
60535
60574
|
var drawRight=right+overlayIndexInterval;
|
|
60536
60575
|
if (drawRight>chartRight) drawRight=chartRight;
|
|
60537
60576
|
|
|
60538
|
-
|
|
60539
|
-
this.
|
|
60540
|
-
this.DrawComplexTextV2(itemLeft, yTop, complexText, textSize);
|
|
60577
|
+
this.DrawTextBGRect(rtBG.Left,rtBG.Top,rtBG.Width,rtBG.Height);
|
|
60578
|
+
this.DrawComplexRightText(rtBG,complexText,textSize);
|
|
60541
60579
|
|
|
60542
|
-
if (this.RightButton.Enable) this.
|
|
60543
|
-
}
|
|
60544
|
-
else if (rightWidth<textSize.Width) //右边空白显示不下,
|
|
60545
|
-
{
|
|
60546
|
-
var itemLeft=chartRight-2-textSize.Width;
|
|
60547
|
-
this.DrawTextBGRect(itemLeft,yTop,textSize.Width,textSize.Height);
|
|
60548
|
-
this.DrawComplexTextV2(itemLeft, yTop ,complexText, textSize);
|
|
60549
|
-
|
|
60550
|
-
if (this.RightButton.Enable) this.DrawRightButton(yTop, chartRight-2-textSize.Width,this.TextHeight,this.TextHeight,buttonData);
|
|
60580
|
+
if (this.RightButton.Enable) this.DrawRightButtonV2(rtBG, complexText, textSize, buttonData);
|
|
60551
60581
|
}
|
|
60552
60582
|
else
|
|
60553
60583
|
{
|
|
60554
|
-
var
|
|
60555
|
-
|
|
60556
|
-
|
|
60557
|
-
|
|
60558
|
-
if (
|
|
60559
|
-
}
|
|
60560
|
-
|
|
60561
|
-
/*
|
|
60562
|
-
if (this.StringFormatY.RExtendText && this.StringFormatY.RExtendText.length>0)
|
|
60563
|
-
{
|
|
60564
|
-
var yOffset=0;
|
|
60565
|
-
for(var i in this.StringFormatY.RExtendText)
|
|
60584
|
+
var rtBG={ Left:right+1, Width:textSize.Width, YCenter:y, Height:textSize.Height };
|
|
60585
|
+
rtBG.Right=rtBG.Left+rtBG.Width;
|
|
60586
|
+
_Temp_CalculateRightTextBGTop(rtBG,complexText,this.TextHeight);
|
|
60587
|
+
|
|
60588
|
+
if (rtBG.Right>chartRight)
|
|
60566
60589
|
{
|
|
60567
|
-
|
|
60568
|
-
|
|
60569
|
-
if (item.YText) rText=item.YText;
|
|
60570
|
-
else if (IFrameSplitOperator.IsNumber(item.Y)) rText=item.Y.toFixed(0);
|
|
60571
|
-
var rTextWidth=this.Canvas.measureText(rText).width+4; //前后各空2个像素
|
|
60572
|
-
|
|
60573
|
-
if (rightWidth<rTextWidth)
|
|
60574
|
-
{
|
|
60575
|
-
this.DrawTextBGRect(chartRight-2-rTextWidth,y+yOffset+this.TextHeight/2,rTextWidth,this.TextHeight);
|
|
60576
|
-
this.Canvas.textAlign="right";
|
|
60577
|
-
this.Canvas.textBaseline="middle";
|
|
60578
|
-
this.Canvas.fillStyle=item.TextColor;
|
|
60579
|
-
this.Canvas.fillText(rText,chartRight-4,y+yOffset+this.TextHeight,rTextWidth);
|
|
60580
|
-
}
|
|
60581
|
-
else
|
|
60582
|
-
{
|
|
60583
|
-
this.DrawTextBGRect(right+2,y+yOffset+this.TextHeight/2,rTextWidth,this.TextHeight);
|
|
60584
|
-
this.Canvas.textAlign="left";
|
|
60585
|
-
this.Canvas.textBaseline="middle";
|
|
60586
|
-
this.Canvas.fillStyle=item.TextColor;
|
|
60587
|
-
this.Canvas.fillText(rText,right+4,y+yOffset+this.TextHeight,rTextWidth);
|
|
60588
|
-
}
|
|
60589
|
-
|
|
60590
|
-
yOffset+=this.TextHeight;
|
|
60590
|
+
rtBG.Right=chartRight;
|
|
60591
|
+
rtBG.Left=rtBG.Right-rtBG.Width;
|
|
60591
60592
|
}
|
|
60593
|
+
|
|
60594
|
+
this.DrawTextBGRect(rtBG.Left,rtBG.Top,rtBG.Width,rtBG.Height);
|
|
60595
|
+
this.DrawComplexRightText(rtBG,complexText,textSize);
|
|
60596
|
+
|
|
60597
|
+
if (this.RightButton.Enable) this.DrawRightButtonV2(rtBG, complexText, textSize, buttonData);
|
|
60592
60598
|
}
|
|
60593
|
-
*/
|
|
60594
60599
|
}
|
|
60595
|
-
else if (this.ShowTextMode.Right==2)
|
|
60600
|
+
else if (this.ShowTextMode.Right==2) //框架内侧显示
|
|
60596
60601
|
{
|
|
60602
|
+
var rtBG={ Right:right, Width:textSize.Width, YCenter:y, Height:textSize.Height };
|
|
60603
|
+
rtBG.Left=rtBG.Right-rtBG.Width;
|
|
60604
|
+
_Temp_CalculateRightTextBGTop(rtBG,complexText,this.TextHeight);
|
|
60605
|
+
|
|
60597
60606
|
this.Canvas.fillStyle=this.TextBGColor;
|
|
60598
|
-
|
|
60599
|
-
this.
|
|
60600
|
-
this.DrawComplexTextV2(showLeft,yTop,complexText,textSize);
|
|
60607
|
+
this.DrawTextBGRect(rtBG.Left,rtBG.Top,rtBG.Width,rtBG.Height);
|
|
60608
|
+
this.DrawComplexRightText(rtBG,complexText,textSize);
|
|
60601
60609
|
|
|
60602
|
-
if (this.RightButton.Enable) this.
|
|
60610
|
+
if (this.RightButton.Enable) this.DrawRightButtonV2(rtBG, complexText, textSize, buttonData);
|
|
60603
60611
|
}
|
|
60604
60612
|
}
|
|
60605
60613
|
|
|
@@ -60682,8 +60690,19 @@ function ChartCorssCursor()
|
|
|
60682
60690
|
//if (overlayLeft+30>chartRight) break;
|
|
60683
60691
|
var yValue=item.Frame.GetYData(y);
|
|
60684
60692
|
var text=IFrameSplitOperator.FormatValueString(yValue,2);
|
|
60685
|
-
var textWidth=this.Canvas.measureText(text).width
|
|
60693
|
+
var textWidth=this.Canvas.measureText(text).width; //前后各空2个像素
|
|
60694
|
+
|
|
60695
|
+
|
|
60696
|
+
var margin=this.RightOverlayConfig.Margin;
|
|
60697
|
+
var textOffset=this.RightOverlayConfig.TextOffset;
|
|
60698
|
+
|
|
60699
|
+
var rtBG={ Left:overlayLeft+1, Width:textWidth+margin.Left+margin.Right, YCenter:y, Height:textHeight+margin.Top+margin.Bottom };
|
|
60700
|
+
rtBG.Right=rtBG.Left-rtBG.Width;
|
|
60701
|
+
rtBG.Top=rtBG.YCenter-rtBG.Height/2;
|
|
60702
|
+
rtBG.Bottom=rtBG.Top+rtBG.Height;
|
|
60686
60703
|
|
|
60704
|
+
this.DrawTextBGRect(rtBG.Left,rtBG.Top,rtBG.Width,rtBG.Height);
|
|
60705
|
+
|
|
60687
60706
|
/*
|
|
60688
60707
|
for(var j=2;j>=0;--j)
|
|
60689
60708
|
{
|
|
@@ -60693,19 +60712,17 @@ function ChartCorssCursor()
|
|
|
60693
60712
|
}
|
|
60694
60713
|
*/
|
|
60695
60714
|
|
|
60696
|
-
this.Canvas.fillStyle=this.TextBGColor;
|
|
60697
|
-
this.Canvas.fillRect(overlayLeft+1,y-this.TextHeight/2,textWidth,this.TextHeight);
|
|
60698
60715
|
this.Canvas.textAlign="left";
|
|
60699
|
-
this.Canvas.textBaseline="
|
|
60716
|
+
this.Canvas.textBaseline="bottom";
|
|
60700
60717
|
this.Canvas.fillStyle=this.TextColor;
|
|
60701
|
-
this.Canvas.fillText(text,
|
|
60718
|
+
this.Canvas.fillText(text,rtBG.Left+textOffset.X, rtBG.Bottom+textOffset.Y);
|
|
60702
60719
|
}
|
|
60703
60720
|
}
|
|
60704
60721
|
|
|
60705
60722
|
this.Status=1;
|
|
60706
60723
|
}
|
|
60707
60724
|
|
|
60708
|
-
this.
|
|
60725
|
+
this.DrawComplexRightText=function(rtBG, complexText, size)
|
|
60709
60726
|
{
|
|
60710
60727
|
this.Canvas.textAlign="left";
|
|
60711
60728
|
this.Canvas.textBaseline="bottom";
|
|
@@ -60713,8 +60730,8 @@ function ChartCorssCursor()
|
|
|
60713
60730
|
if (complexText.ShowType==1) showType=complexText.ShowType;
|
|
60714
60731
|
if (showType==1) //多行
|
|
60715
60732
|
{
|
|
60716
|
-
var xLeft=
|
|
60717
|
-
var
|
|
60733
|
+
var xLeft=rtBG.Left;
|
|
60734
|
+
var yTop=rtBG.Top; //顶
|
|
60718
60735
|
for(var i=0; i<complexText.Text.length; ++i)
|
|
60719
60736
|
{
|
|
60720
60737
|
var item=complexText.Text[i];
|
|
@@ -60726,24 +60743,25 @@ function ChartCorssCursor()
|
|
|
60726
60743
|
if (item.Color) this.Canvas.fillStyle=item.Color;
|
|
60727
60744
|
else this.Canvas.fillStyle=complexText.Color;
|
|
60728
60745
|
|
|
60729
|
-
var y=
|
|
60746
|
+
var y=yTop+itemSize.Height;
|
|
60730
60747
|
var x=xLeft;
|
|
60731
|
-
|
|
60748
|
+
|
|
60749
|
+
if (item.TextOffset)
|
|
60732
60750
|
{
|
|
60733
|
-
var
|
|
60734
|
-
if (IFrameSplitOperator.IsNumber(
|
|
60735
|
-
if (IFrameSplitOperator.IsNumber(
|
|
60751
|
+
var textOffset=item.TextOffset;
|
|
60752
|
+
if (IFrameSplitOperator.IsNumber(textOffset.X)) x+=textOffset.X;
|
|
60753
|
+
if (IFrameSplitOperator.IsNumber(textOffset.Y)) y+=textOffset.Y;
|
|
60736
60754
|
}
|
|
60737
60755
|
|
|
60738
60756
|
this.Canvas.fillText(item.Text,x,y,itemSize.Width);
|
|
60739
60757
|
|
|
60740
|
-
|
|
60758
|
+
yTop+=itemSize.Height;
|
|
60741
60759
|
}
|
|
60742
60760
|
}
|
|
60743
60761
|
else //水平 单行
|
|
60744
60762
|
{
|
|
60745
|
-
var xText=
|
|
60746
|
-
var yBottom=
|
|
60763
|
+
var xText=rtBG.Left;
|
|
60764
|
+
var yBottom=rtBG.Bottom;
|
|
60747
60765
|
for(var i=0; i<complexText.Text.length; ++i)
|
|
60748
60766
|
{
|
|
60749
60767
|
var item=complexText.Text[i];
|
|
@@ -60755,15 +60773,16 @@ function ChartCorssCursor()
|
|
|
60755
60773
|
if (item.Color) this.Canvas.fillStyle=item.Color;
|
|
60756
60774
|
else this.Canvas.fillStyle=complexText.Color;
|
|
60757
60775
|
|
|
60758
|
-
var y=yBottom;
|
|
60759
60776
|
var x=xText;
|
|
60760
|
-
|
|
60777
|
+
var y=yBottom;
|
|
60778
|
+
|
|
60779
|
+
if (item.TextOffset)
|
|
60761
60780
|
{
|
|
60762
|
-
var
|
|
60763
|
-
if (IFrameSplitOperator.IsNumber(
|
|
60764
|
-
if (IFrameSplitOperator.IsNumber(
|
|
60781
|
+
var textOffset=item.TextOffset;
|
|
60782
|
+
if (IFrameSplitOperator.IsNumber(textOffset.X)) x+=textOffset.X;
|
|
60783
|
+
if (IFrameSplitOperator.IsNumber(textOffset.Y)) y+=textOffset.Y;
|
|
60765
60784
|
}
|
|
60766
|
-
|
|
60785
|
+
|
|
60767
60786
|
this.Canvas.fillText(item.Text,x,y,itemSize.Width);
|
|
60768
60787
|
|
|
60769
60788
|
xText+=itemSize.Width;
|
|
@@ -60786,7 +60805,7 @@ function ChartCorssCursor()
|
|
|
60786
60805
|
if (item.Font) this.Canvas.font=item.Font;
|
|
60787
60806
|
else this.Canvas.font=complexText.Font;
|
|
60788
60807
|
var itemWidth=this.Canvas.measureText(item.Text).width; //前后各空2个像素
|
|
60789
|
-
var itemHeight=this.
|
|
60808
|
+
var itemHeight=this.GetFontHeight();
|
|
60790
60809
|
if (item.Margin)
|
|
60791
60810
|
{
|
|
60792
60811
|
var margin=item.Margin;
|
|
@@ -60807,7 +60826,7 @@ function ChartCorssCursor()
|
|
|
60807
60826
|
}
|
|
60808
60827
|
else //水平 单行
|
|
60809
60828
|
{
|
|
60810
|
-
var textWidth=0, textHeight=
|
|
60829
|
+
var textWidth=0, textHeight=this.GetFontHeight();
|
|
60811
60830
|
for(var i=0; i<complexText.Text.length; ++i)
|
|
60812
60831
|
{
|
|
60813
60832
|
var item=complexText.Text[i];
|
|
@@ -60836,6 +60855,61 @@ function ChartCorssCursor()
|
|
|
60836
60855
|
}
|
|
60837
60856
|
}
|
|
60838
60857
|
|
|
60858
|
+
|
|
60859
|
+
this.DrawRightButtonV2=function(rtTextBG, complexText, textSize, data)
|
|
60860
|
+
{
|
|
60861
|
+
this.Canvas.fillStyle=this.RightButton.BGColor;
|
|
60862
|
+
var drawHeight=rtTextBG.Height;
|
|
60863
|
+
var drawWidth=rtTextBG.Height;
|
|
60864
|
+
|
|
60865
|
+
if (complexText.ShowType==1) //多行 取第1行高度
|
|
60866
|
+
{
|
|
60867
|
+
var itemSize=textSize.Text[0];
|
|
60868
|
+
drawHeight=itemSize.Height;
|
|
60869
|
+
drawWidth=itemSize.Height;
|
|
60870
|
+
}
|
|
60871
|
+
|
|
60872
|
+
var rtButton={Left:rtTextBG.Left-drawHeight, Top:rtTextBG.Top, Width:drawWidth, Height:drawHeight };
|
|
60873
|
+
rtButton.Right=rtButton.Left+rtButton.Width;
|
|
60874
|
+
rtButton.Bottom=rtButton.Top+rtButton.Height;
|
|
60875
|
+
this.RightButton.Rect=rtButton;
|
|
60876
|
+
this.RightButton.Data=data;
|
|
60877
|
+
this.Canvas.fillRect(ToFixedPoint(rtButton.Left+1),ToFixedPoint(rtButton.Top),ToFixedRect(rtButton.Width),ToFixedRect(rtButton.Height));
|
|
60878
|
+
|
|
60879
|
+
var pixelRatio=GetDevicePixelRatio();
|
|
60880
|
+
var spaceWidth=3;
|
|
60881
|
+
var yCenter=(rtButton.Top+spaceWidth)+(rtButton.Height-spaceWidth*2)/2;
|
|
60882
|
+
var xCenter=(rtButton.Left+spaceWidth)+(rtButton.Width-spaceWidth*2)/2;
|
|
60883
|
+
|
|
60884
|
+
if (this.RightButton.Icon)
|
|
60885
|
+
{
|
|
60886
|
+
var icon=this.RightButton.Icon;
|
|
60887
|
+
this.Canvas.font=`${icon.Size*pixelRatio}px ${icon.Family}`;
|
|
60888
|
+
this.Canvas.textAlign="center";
|
|
60889
|
+
this.Canvas.textBaseline="middle";
|
|
60890
|
+
this.Canvas.fillStyle=icon.Color;
|
|
60891
|
+
this.Canvas.fillText("\ue6a3",xCenter,yCenter);
|
|
60892
|
+
}
|
|
60893
|
+
else
|
|
60894
|
+
{
|
|
60895
|
+
//画加号
|
|
60896
|
+
this.Canvas.strokeStyle=this.RightButton.PenColor;
|
|
60897
|
+
var x=rtButtom.Left+spaceWidth;
|
|
60898
|
+
var y=rtButtom.Top+spaceWidth;
|
|
60899
|
+
this.Canvas.save();
|
|
60900
|
+
this.Canvas.linewidth=1*pixelRatio;
|
|
60901
|
+
this.Canvas.beginPath();
|
|
60902
|
+
this.Canvas.moveTo(ToFixedPoint(x), ToFixedPoint(yCenter));
|
|
60903
|
+
this.Canvas.lineTo(ToFixedPoint(x+rtButton.Width-spaceWidth*2), ToFixedPoint(yCenter));
|
|
60904
|
+
|
|
60905
|
+
this.Canvas.moveTo(ToFixedPoint(xCenter),ToFixedPoint(y));
|
|
60906
|
+
this.Canvas.lineTo(ToFixedPoint(xCenter), ToFixedPoint(y+rtButton.Height-spaceWidth*2));
|
|
60907
|
+
|
|
60908
|
+
this.Canvas.stroke();
|
|
60909
|
+
this.Canvas.restore();
|
|
60910
|
+
}
|
|
60911
|
+
}
|
|
60912
|
+
|
|
60839
60913
|
this.DrawRightButton=function(drawTop, drawRight, drawWidth, drawHeight, data)
|
|
60840
60914
|
{
|
|
60841
60915
|
this.Canvas.fillStyle=this.RightButton.BGColor;
|
|
@@ -78324,13 +78398,13 @@ function JSChartResource()
|
|
|
78324
78398
|
{
|
|
78325
78399
|
BGColor:'rgb(43,54,69)',
|
|
78326
78400
|
PenColor:'rgb(255,255,255)',
|
|
78327
|
-
Icon: { Text:'\ue6a3', Color:'rgb(255,255,255)', Family:"iconfont", Size:
|
|
78401
|
+
Icon: { Text:'\ue6a3', Color:'rgb(255,255,255)', Family:"iconfont", Size:14 }
|
|
78328
78402
|
},
|
|
78329
78403
|
|
|
78330
|
-
RightMargin: { Left:2, Right:2, Top:5, Bottom:3 },
|
|
78331
|
-
|
|
78332
78404
|
BottomText:{ Margin: { Left:4, Right:4, Top:0, Bottom:0 }, TextOffset:{X:4, Y:-1 } },
|
|
78333
78405
|
LeftText:{ Margin: { Left:4, Right:4, Top:0, Bottom:0 }, TextOffset:{X:4, Y:-1 } },
|
|
78406
|
+
RightText:{ Margin: { Left:4, Right:4, Top:0, Bottom:0 }, TextOffset:{X:4, Y:-1 } },
|
|
78407
|
+
RightOverlayText:{ Margin: { Left:2, Right:2, Top:0, Bottom:0 }, TextOffset:{X:2, Y:-1 } }, //右侧叠加坐标
|
|
78334
78408
|
|
|
78335
78409
|
CorssPoint:{ Center:{ Radius:5*GetDevicePixelRatio(), Color:"rgb(50,171,205)"}, Border:{ Color:'rgb(255,255,255)', Width:1*GetDevicePixelRatio() } }
|
|
78336
78410
|
};
|
|
@@ -132508,7 +132582,7 @@ function GetBlackStyle()
|
|
|
132508
132582
|
{
|
|
132509
132583
|
BGColor:'rgb(43,54,69)',
|
|
132510
132584
|
PenColor:'rgb(255,255,255)',
|
|
132511
|
-
Icon: { Text:'\ue6a3', Color:'rgb(255,255,255)', Family:"iconfont", Size:
|
|
132585
|
+
Icon: { Text:'\ue6a3', Color:'rgb(255,255,255)', Family:"iconfont", Size:12 }
|
|
132512
132586
|
},
|
|
132513
132587
|
|
|
132514
132588
|
CorssPoint:{ Center:{ Color:"rgb(50,171,205)" }, Border:{ Color:'rgba(0,0,0,0.8)', Width:1*GetDevicePixelRatio() } }
|
|
@@ -158738,7 +158812,7 @@ function HQChartScriptWorker()
|
|
|
158738
158812
|
|
|
158739
158813
|
|
|
158740
158814
|
|
|
158741
|
-
var HQCHART_VERSION="1.1.
|
|
158815
|
+
var HQCHART_VERSION="1.1.14730";
|
|
158742
158816
|
|
|
158743
158817
|
function PrintHQChartVersion()
|
|
158744
158818
|
{
|