hqchart 1.1.13100 → 1.1.13105
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 +46 -28
- package/package.json +1 -1
- package/src/jscommon/umychart.js +251 -210
- package/src/jscommon/umychart.report.js +324 -2
- package/src/jscommon/umychart.style.js +10 -0
- package/src/jscommon/umychart.uniapp.h5/umychart.uniapp.h5.js +586 -213
- package/src/jscommon/umychart.version.js +1 -1
- package/src/jscommon/umychart.vue/umychart.vue.js +586 -213
|
@@ -55228,6 +55228,7 @@ function DynamicChartTitlePainting()
|
|
|
55228
55228
|
this.BGBorderColor=g_JSChartResource.IndexTitleBorderColor;
|
|
55229
55229
|
this.BGBorderMoveOnColor=g_JSChartResource.IndexTitleBorderMoveOnColor;
|
|
55230
55230
|
this.BorderRoundRadius=2; //圆角矩形角度
|
|
55231
|
+
this.NameButtonStyle=g_JSChartResource.IndexTitleBorderStyle,
|
|
55231
55232
|
|
|
55232
55233
|
this.OnDrawEvent;
|
|
55233
55234
|
this.ParamSpace=2; //参数显示的间距
|
|
@@ -56523,7 +56524,6 @@ function DynamicChartTitlePainting()
|
|
|
56523
56524
|
var roundRadius=this.BorderRoundRadius*pixelRatio;
|
|
56524
56525
|
var bgWidth=textWidth+4*pixelRatio+roundRadius*2;
|
|
56525
56526
|
|
|
56526
|
-
|
|
56527
56527
|
rtButton.Top=rtButton.YCenter-bgHeight/2-1,
|
|
56528
56528
|
rtButton.Width=bgWidth;
|
|
56529
56529
|
rtButton.Height=bgHeight;
|
|
@@ -56541,19 +56541,33 @@ function DynamicChartTitlePainting()
|
|
|
56541
56541
|
}
|
|
56542
56542
|
}
|
|
56543
56543
|
|
|
56544
|
-
this.
|
|
56545
|
-
|
|
56546
|
-
|
|
56544
|
+
if (this.NameButtonStyle==1)
|
|
56545
|
+
{
|
|
56546
|
+
this.Canvas.beginPath();
|
|
56547
|
+
this.Canvas.roundRect(ToFixedPoint(rtButton.Left), ToFixedPoint(rtButton.Top), ToFixedRect(rtButton.Width), ToFixedRect(rtButton.Height), [roundRadius]);
|
|
56548
|
+
this.Canvas.closePath();
|
|
56547
56549
|
|
|
56548
|
-
|
|
56549
|
-
|
|
56550
|
+
this.Canvas.fillStyle=this.BGColor;
|
|
56551
|
+
this.Canvas.fill();
|
|
56550
56552
|
|
|
56551
|
-
|
|
56553
|
+
if (borderColor)
|
|
56554
|
+
{
|
|
56555
|
+
this.Canvas.strokeStyle=borderColor;
|
|
56556
|
+
this.Canvas.stroke();
|
|
56557
|
+
}
|
|
56558
|
+
}
|
|
56559
|
+
else
|
|
56552
56560
|
{
|
|
56553
|
-
this.Canvas.
|
|
56554
|
-
this.Canvas.
|
|
56561
|
+
this.Canvas.fillStyle=this.BGColor;
|
|
56562
|
+
this.Canvas.fillRect(rtButton.Left, rtButton.Top, rtButton.Width, rtButton.Height);
|
|
56563
|
+
|
|
56564
|
+
if (borderColor)
|
|
56565
|
+
{
|
|
56566
|
+
this.Canvas.strokeStyle=borderColor;
|
|
56567
|
+
this.Canvas.strokeRect(ToFixedPoint(rtButton.Left), ToFixedPoint(rtButton.Top), ToFixedRect(rtButton.Width), ToFixedRect(rtButton.Height), [roundRadius]);
|
|
56568
|
+
}
|
|
56555
56569
|
}
|
|
56556
|
-
|
|
56570
|
+
|
|
56557
56571
|
this.Canvas.fillStyle=this.TitleColor;
|
|
56558
56572
|
this.Canvas.fillText(title,rtButton.Left+roundRadius+2*pixelRatio,rtButton.YCenter,textWidth);
|
|
56559
56573
|
}
|
|
@@ -66902,7 +66916,8 @@ function JSChartResource()
|
|
|
66902
66916
|
this.TitleFont=13*GetDevicePixelRatio() +'px 微软雅黑'; //指标显示,tooltip显示字体
|
|
66903
66917
|
this.IndexTitleBGColor='rgb(250,250,250)'; //指标名字背景色
|
|
66904
66918
|
this.IndexTitleBorderColor='rgb(180,180,180)'; //指标名字边框颜色
|
|
66905
|
-
this.IndexTitleBorderMoveOnColor='rgb(0,0,0)';
|
|
66919
|
+
this.IndexTitleBorderMoveOnColor='rgb(0,0,0)'; //指标名字边框颜色(鼠标在上面)
|
|
66920
|
+
this.IndexTitleBorderStyle=1, //0=直角边框 1=圆角变量
|
|
66906
66921
|
this.IndexTitleColor="rgb(43,54,69)"; //指标名字颜色
|
|
66907
66922
|
this.IndexTitleSelectedColor="rgb(65,105,225)";
|
|
66908
66923
|
this.OverlayIndexTitleBGColor='rgba(255,255,255,0.7)';
|
|
@@ -67876,6 +67891,16 @@ function JSChartResource()
|
|
|
67876
67891
|
|
|
67877
67892
|
MoveRowColor:'rgb(240,128,128)',
|
|
67878
67893
|
SrcRowColor:'rgb(180,240,240)',
|
|
67894
|
+
},
|
|
67895
|
+
|
|
67896
|
+
VScrollbar:
|
|
67897
|
+
{
|
|
67898
|
+
ScrollBarHeight:60,
|
|
67899
|
+
ButtonColor:"rgba(252,252,252,0.8)",
|
|
67900
|
+
BarColor:"rgba(168,168,168,0.9)",
|
|
67901
|
+
BorderColor:'rgba(180,180,180,0.9)',
|
|
67902
|
+
BGColor:"rgba(234,239,248,0.9)",
|
|
67903
|
+
BarWidth:{ Size:12 }
|
|
67879
67904
|
}
|
|
67880
67905
|
},
|
|
67881
67906
|
|
|
@@ -68066,6 +68091,7 @@ function JSChartResource()
|
|
|
68066
68091
|
if (style.IndexTitleBGColor) this.IndexTitleBGColor=style.IndexTitleBGColor;
|
|
68067
68092
|
if (style.IndexTitleBorderColor) this.IndexTitleBorderColor=style.IndexTitleBorderColor;
|
|
68068
68093
|
if (style.IndexTitleBorderMoveOnColor) this.IndexTitleBorderMoveOnColor=style.IndexTitleBorderMoveOnColor;
|
|
68094
|
+
if (IFrameSplitOperator.IsNumber(style.IndexTitleBorderStyle)) this.IndexTitleBorderStyle=style.IndexTitleBorderStyle;
|
|
68069
68095
|
if (style.IndexTitleColor) this.IndexTitleColor=style.IndexTitleColor;
|
|
68070
68096
|
if (style.IndexTitleSelectedColor) this.IndexTitleSelectedColor=style.IndexTitleSelectedColor;
|
|
68071
68097
|
if (style.OverlayIndexTitleBGColor) this.OverlayIndexTitleBGColor=style.OverlayIndexTitleBGColor;
|
|
@@ -68513,205 +68539,8 @@ function JSChartResource()
|
|
|
68513
68539
|
}
|
|
68514
68540
|
}
|
|
68515
68541
|
|
|
68516
|
-
if (style.Report)
|
|
68517
|
-
|
|
68518
|
-
var item=style.Report;
|
|
68519
|
-
if (item.BorderColor) this.Report.BorderColor=item.BorderColor;
|
|
68520
|
-
if (item.UpTextColor) this.Report.UpTextColor=item.UpTextColor;
|
|
68521
|
-
if (item.DownTextColor) this.Report.DownTextColor=item.DownTextColor;
|
|
68522
|
-
if (item.UnchagneTextColor) this.Report.UnchagneTextColor=item.UnchagneTextColor;
|
|
68523
|
-
if (item.BorderColor) this.Report.SelectedColor=item.SelectedColor;
|
|
68524
|
-
|
|
68525
|
-
|
|
68526
|
-
if (item.CloseLine)
|
|
68527
|
-
{
|
|
68528
|
-
var closeLine=item.CloseLine;
|
|
68529
|
-
if (closeLine.CloseColor) this.Report.CloseLine.CloseColor=closeLine.CloseColor;
|
|
68530
|
-
if (closeLine.YCloseColor) this.Report.CloseLine.YCloseColor=closeLine.YCloseColor;
|
|
68531
|
-
if (closeLine.AreaColor) this.Report.CloseLine.AreaColor=closeLine.AreaColor;
|
|
68532
|
-
}
|
|
68533
|
-
|
|
68534
|
-
if (item.KLine)
|
|
68535
|
-
{
|
|
68536
|
-
var kline=item.KLine;
|
|
68537
|
-
if (kline.UpColor) this.Report.KLine.UpColor=kline.UpColor;
|
|
68538
|
-
if (kline.DownColor) this.Report.KLine.DownColor=kline.DownColor;
|
|
68539
|
-
if (kline.UnchagneColor) this.Report.KLine.UnchagneColor=kline.UnchagneColor;
|
|
68540
|
-
|
|
68541
|
-
if (IFrameSplitOperator.IsNumber(kline.DataWidth)) this.Report.KLine.DataWidth=kline.DataWidth;
|
|
68542
|
-
if (IFrameSplitOperator.IsNumber(kline.DistanceWidth)) this.Report.KLine.DistanceWidth=kline.DistanceWidth;
|
|
68543
|
-
}
|
|
68544
|
-
|
|
68545
|
-
if (item.Header)
|
|
68546
|
-
{
|
|
68547
|
-
var header=item.Header;
|
|
68548
|
-
if (header.Color) this.Report.Header.Color=header.Color;
|
|
68549
|
-
if (header.SortColor) this.Report.Header.SortColor=header.SortColor;
|
|
68550
|
-
if (header.Mergin)
|
|
68551
|
-
{
|
|
68552
|
-
var mergin=header.Mergin;
|
|
68553
|
-
if (IFrameSplitOperator.IsNumber(mergin.Left)) this.Report.Header.Mergin.Left=mergin.Left;
|
|
68554
|
-
if (IFrameSplitOperator.IsNumber(mergin.Right)) this.Report.Header.Mergin.Left=mergin.Right;
|
|
68555
|
-
if (IFrameSplitOperator.IsNumber(mergin.Top)) this.Report.Header.Mergin.Top=mergin.Top;
|
|
68556
|
-
if (IFrameSplitOperator.IsNumber(mergin.Bottom)) this.Report.Header.Mergin.Bottom=mergin.Bottom;
|
|
68557
|
-
}
|
|
68558
|
-
if (header.Font)
|
|
68559
|
-
{
|
|
68560
|
-
var font=header.Font;
|
|
68561
|
-
if (font.Name) this.Report.Header.Font.Name=font.Name;
|
|
68562
|
-
if (IFrameSplitOperator.IsNumber(font.Size)) this.Report.Header.Font.Size=font.Size;
|
|
68563
|
-
}
|
|
68564
|
-
}
|
|
68565
|
-
|
|
68566
|
-
if (item.Item)
|
|
68567
|
-
{
|
|
68568
|
-
var row=item.Item;
|
|
68569
|
-
if (row.Mergin)
|
|
68570
|
-
{
|
|
68571
|
-
var mergin=row.Mergin;
|
|
68572
|
-
if (IFrameSplitOperator.IsNumber(mergin.Left)) this.Report.Item.Mergin.Left=mergin.Left;
|
|
68573
|
-
if (IFrameSplitOperator.IsNumber(mergin.Right)) this.Report.Item.Mergin.Right=mergin.Right;
|
|
68574
|
-
if (IFrameSplitOperator.IsNumber(mergin.Top)) this.Report.Item.Mergin.Top=mergin.Top;
|
|
68575
|
-
if (IFrameSplitOperator.IsNumber(mergin.Bottom)) this.Report.Item.Mergin.Bottom=mergin.Bottom;
|
|
68576
|
-
}
|
|
68577
|
-
|
|
68578
|
-
if (row.Font)
|
|
68579
|
-
{
|
|
68580
|
-
var font=row.Font;
|
|
68581
|
-
if (font.Name) this.Report.Item.Font.Name=font.Name;
|
|
68582
|
-
if (IFrameSplitOperator.IsNumber(font.Size)) this.Report.Item.Font.Size=font.Size;
|
|
68583
|
-
}
|
|
68584
|
-
|
|
68585
|
-
if (row.BarMergin)
|
|
68586
|
-
{
|
|
68587
|
-
var mergin=row.BarMergin;
|
|
68588
|
-
if (IFrameSplitOperator.IsNumber(mergin.Left)) this.Report.Item.BarMergin.Left=mergin.Left;
|
|
68589
|
-
if (IFrameSplitOperator.IsNumber(mergin.Top)) this.Report.Item.BarMergin.Top=mergin.Top;
|
|
68590
|
-
if (IFrameSplitOperator.IsNumber(mergin.Right)) this.Report.Item.BarMergin.Right=mergin.Right;
|
|
68591
|
-
if (IFrameSplitOperator.IsNumber(mergin.Bottom)) this.Report.Item.BarMergin.Bottom=mergin.Bottom;
|
|
68592
|
-
}
|
|
68593
|
-
|
|
68594
|
-
if (row.NameFont)
|
|
68595
|
-
{
|
|
68596
|
-
var font=row.NameFont;
|
|
68597
|
-
if (font.Name) this.Report.Item.NameFont.Name=font.Name;
|
|
68598
|
-
if (IFrameSplitOperator.IsNumber(font.Size)) this.Report.Item.NameFont.Size=font.Size;
|
|
68599
|
-
}
|
|
68600
|
-
|
|
68601
|
-
if (row.SymbolFont)
|
|
68602
|
-
{
|
|
68603
|
-
var font=row.SymbolFont;
|
|
68604
|
-
if (font.Name) this.Report.Item.SymbolFont.Name=font.Name;
|
|
68605
|
-
if (IFrameSplitOperator.IsNumber(font.Size)) this.Report.Item.SymbolFont.Size=font.Size;
|
|
68606
|
-
}
|
|
68607
|
-
}
|
|
68608
|
-
|
|
68609
|
-
if (item.FixedItem)
|
|
68610
|
-
{
|
|
68611
|
-
var row=item.FixedItem;
|
|
68612
|
-
if (row.Font)
|
|
68613
|
-
{
|
|
68614
|
-
var font=row.Font;
|
|
68615
|
-
if (font.Name) this.Report.FixedItem.Font.Name=font.Name;
|
|
68616
|
-
if (IFrameSplitOperator.IsNumber(font.Size)) this.Report.FixedItem.Font.Size=font.Size;
|
|
68617
|
-
}
|
|
68618
|
-
}
|
|
68619
|
-
|
|
68620
|
-
if (item.LimitBorder)
|
|
68621
|
-
{
|
|
68622
|
-
var limit=item.LimitBorder;
|
|
68623
|
-
if (limit.Color) this.Report.LimitBorder.Color=limit.Color;
|
|
68624
|
-
if (limit.Mergin)
|
|
68625
|
-
{
|
|
68626
|
-
var mergin=limit.Mergin;
|
|
68627
|
-
if (IFrameSplitOperator.IsNumber(mergin.Left)) this.Report.LimitBorder.Mergin.Left=mergin.Left;
|
|
68628
|
-
if (IFrameSplitOperator.IsNumber(mergin.Top)) this.Report.LimitBorder.Mergin.Top=mergin.Top;
|
|
68629
|
-
if (IFrameSplitOperator.IsNumber(mergin.Right)) this.Report.LimitBorder.Mergin.Right=mergin.Right;
|
|
68630
|
-
if (IFrameSplitOperator.IsNumber(mergin.Bottom)) this.Report.LimitBorder.Mergin.Bottom=mergin.Bottom;
|
|
68631
|
-
}
|
|
68632
|
-
}
|
|
68633
|
-
|
|
68634
|
-
if (item.LimitColor)
|
|
68635
|
-
{
|
|
68636
|
-
var limit=item.LimitColor;
|
|
68637
|
-
if (limit.UpColor) this.Report.LimitColor.UpColor=limit.UpColor;
|
|
68638
|
-
if (limit.DownColor) this.Report.LimitColor.DownColor=limit.DownColor;
|
|
68639
|
-
if (limit.TextColor) this.Report.LimitColor.UpColor=limit.TextColor;
|
|
68640
|
-
}
|
|
68641
|
-
|
|
68642
|
-
if (item.FieldColor)
|
|
68643
|
-
{
|
|
68644
|
-
var filed=item.FieldColor;
|
|
68645
|
-
if (filed.Name) this.Report.FieldColor.Name=filed.Name;
|
|
68646
|
-
if (filed.Symbol) this.Report.FieldColor.Symbol=filed.Symbol;
|
|
68647
|
-
if (filed.Vol) this.Report.FieldColor.Vol=filed.Vol;
|
|
68648
|
-
if (filed.Amount) this.Report.FieldColor.Amount=filed.Amount;
|
|
68649
|
-
if (filed.Index) this.Report.FieldColor.Index=filed.Index;
|
|
68650
|
-
if (filed.BarTitle) this.Report.FieldColor.BarTitle=filed.BarTitle;
|
|
68651
|
-
if (filed.Text) this.Report.FieldColor.Text=filed.Text;
|
|
68652
|
-
|
|
68653
|
-
if (IFrameSplitOperator.IsNonEmptyArray(filed.Bar))
|
|
68654
|
-
{
|
|
68655
|
-
for(var i=0;i<filed.Bar.length;++i)
|
|
68656
|
-
this.Report.FieldColor.Bar[i]=filed.Bar[i];
|
|
68657
|
-
}
|
|
68658
|
-
}
|
|
68659
|
-
|
|
68660
|
-
if (item.Tab)
|
|
68661
|
-
{
|
|
68662
|
-
var tab=item.Tab;
|
|
68663
|
-
if (tab.Font)
|
|
68664
|
-
{
|
|
68665
|
-
var font=tab.Font;
|
|
68666
|
-
if (font.Name) this.Report.Tab.Font.Name=font.Name;
|
|
68667
|
-
if (IFrameSplitOperator.IsNumber(font.Size)) this.Report.Tab.Font.Size=font.Size;
|
|
68668
|
-
}
|
|
68669
|
-
|
|
68670
|
-
if (IFrameSplitOperator.IsNumber(tab.ScrollBarWidth)) this.Report.Tab.ScrollBarWidth=tab.ScrollBarWidth;
|
|
68671
|
-
if (tab.ButtonColor) this.Report.Tab.ButtonColor=tab.ButtonColor;
|
|
68672
|
-
if (tab.BarColor) this.Report.Tab.BarColor=tab.BarColor;
|
|
68673
|
-
if (tab.BorderColor) this.Report.Tab.BorderColor=tab.BorderColor;
|
|
68674
|
-
|
|
68675
|
-
if (tab.TabTitleColor) this.Report.Tab.TabTitleColor=tab.TabTitleColor;
|
|
68676
|
-
if (tab.TabSelectedTitleColor) this.Report.Tab.TabSelectedTitleColor=tab.TabSelectedTitleColor;
|
|
68677
|
-
if (tab.TabSelectedBGColor) this.Report.Tab.TabSelectedBGColor=tab.TabSelectedBGColor;
|
|
68678
|
-
if (tab.TabMoveOnTitleColor) this.Report.Tab.TabMoveOnTitleColor=tab.TabMoveOnTitleColor;
|
|
68679
|
-
if (tab.TabBGColor) this.Report.Tab.TabBGColor=tab.TabBGColor;
|
|
68680
|
-
}
|
|
68681
|
-
|
|
68682
|
-
if (item.PageInfo)
|
|
68683
|
-
{
|
|
68684
|
-
var pageinfo=item.PageInfo;
|
|
68685
|
-
if (pageinfo.Font)
|
|
68686
|
-
{
|
|
68687
|
-
var font=pageinfo.Font;
|
|
68688
|
-
if (font.Name) this.Report.PageInfo.Font.Name=font.Name;
|
|
68689
|
-
if (IFrameSplitOperator.IsNumber(font.Size)) this.Report.PageInfo.Font.Size=font.Size;
|
|
68690
|
-
}
|
|
68691
|
-
|
|
68692
|
-
if (pageinfo.TextColor) this.Report.PageInfo.TextColor=pageinfo.TextColor;
|
|
68693
|
-
if (pageinfo.BGColor) this.Report.PageInfo.BGColor=pageinfo.BGColor;
|
|
68694
|
-
|
|
68695
|
-
if (pageinfo.Mergin)
|
|
68696
|
-
{
|
|
68697
|
-
var mergin=pageinfo.Mergin;
|
|
68698
|
-
if (IFrameSplitOperator.IsNumber(mergin.Left)) this.Report.PageInfo.Mergin.Left=mergin.Left;
|
|
68699
|
-
if (IFrameSplitOperator.IsNumber(mergin.Top)) this.Report.PageInfo.Mergin.Top=mergin.Top;
|
|
68700
|
-
if (IFrameSplitOperator.IsNumber(mergin.Right)) this.Report.PageInfo.Mergin.Right=mergin.Right;
|
|
68701
|
-
if (IFrameSplitOperator.IsNumber(mergin.Bottom)) this.Report.PageInfo.Mergin.Bottom=mergin.Bottom;
|
|
68702
|
-
}
|
|
68703
|
-
}
|
|
68704
|
-
|
|
68705
|
-
if (item.DragRow)
|
|
68706
|
-
{
|
|
68707
|
-
var dragRow=item.DragRow;
|
|
68708
|
-
if (dragRow.Color) this.Report.DragRow.Color=dragRow.Color;
|
|
68709
|
-
if (dragRow.TextColor) this.Report.DragRow.TextColor=dragRow.TextColor;
|
|
68710
|
-
if (dragRow.MoveRowColor) this.Report.DragRow.MoveRowColor=dragRow.MoveRowColor;
|
|
68711
|
-
if (dragRow.SrcRowColor) this.Report.DragRow.SrcRowColor=dragRow.SrcRowColor;
|
|
68712
|
-
}
|
|
68713
|
-
}
|
|
68714
|
-
|
|
68542
|
+
if (style.Report) this.SetReportStyle(style.Report);
|
|
68543
|
+
|
|
68715
68544
|
if (style.TReport) this.SetTReportStyle(style.TReport);
|
|
68716
68545
|
|
|
68717
68546
|
if (style.SelectedChart)
|
|
@@ -68814,6 +68643,218 @@ function JSChartResource()
|
|
|
68814
68643
|
}
|
|
68815
68644
|
}
|
|
68816
68645
|
|
|
68646
|
+
this.SetReportStyle=function(style)
|
|
68647
|
+
{
|
|
68648
|
+
var item=style;
|
|
68649
|
+
var dest=this.Report;
|
|
68650
|
+
|
|
68651
|
+
if (item.BorderColor) this.Report.BorderColor=item.BorderColor;
|
|
68652
|
+
if (item.UpTextColor) this.Report.UpTextColor=item.UpTextColor;
|
|
68653
|
+
if (item.DownTextColor) this.Report.DownTextColor=item.DownTextColor;
|
|
68654
|
+
if (item.UnchagneTextColor) this.Report.UnchagneTextColor=item.UnchagneTextColor;
|
|
68655
|
+
if (item.BorderColor) this.Report.SelectedColor=item.SelectedColor;
|
|
68656
|
+
|
|
68657
|
+
|
|
68658
|
+
if (item.CloseLine)
|
|
68659
|
+
{
|
|
68660
|
+
var closeLine=item.CloseLine;
|
|
68661
|
+
if (closeLine.CloseColor) this.Report.CloseLine.CloseColor=closeLine.CloseColor;
|
|
68662
|
+
if (closeLine.YCloseColor) this.Report.CloseLine.YCloseColor=closeLine.YCloseColor;
|
|
68663
|
+
if (closeLine.AreaColor) this.Report.CloseLine.AreaColor=closeLine.AreaColor;
|
|
68664
|
+
}
|
|
68665
|
+
|
|
68666
|
+
if (item.KLine)
|
|
68667
|
+
{
|
|
68668
|
+
var kline=item.KLine;
|
|
68669
|
+
if (kline.UpColor) this.Report.KLine.UpColor=kline.UpColor;
|
|
68670
|
+
if (kline.DownColor) this.Report.KLine.DownColor=kline.DownColor;
|
|
68671
|
+
if (kline.UnchagneColor) this.Report.KLine.UnchagneColor=kline.UnchagneColor;
|
|
68672
|
+
|
|
68673
|
+
if (IFrameSplitOperator.IsNumber(kline.DataWidth)) this.Report.KLine.DataWidth=kline.DataWidth;
|
|
68674
|
+
if (IFrameSplitOperator.IsNumber(kline.DistanceWidth)) this.Report.KLine.DistanceWidth=kline.DistanceWidth;
|
|
68675
|
+
}
|
|
68676
|
+
|
|
68677
|
+
if (item.Header)
|
|
68678
|
+
{
|
|
68679
|
+
var header=item.Header;
|
|
68680
|
+
if (header.Color) this.Report.Header.Color=header.Color;
|
|
68681
|
+
if (header.SortColor) this.Report.Header.SortColor=header.SortColor;
|
|
68682
|
+
if (header.Mergin)
|
|
68683
|
+
{
|
|
68684
|
+
var mergin=header.Mergin;
|
|
68685
|
+
if (IFrameSplitOperator.IsNumber(mergin.Left)) this.Report.Header.Mergin.Left=mergin.Left;
|
|
68686
|
+
if (IFrameSplitOperator.IsNumber(mergin.Right)) this.Report.Header.Mergin.Left=mergin.Right;
|
|
68687
|
+
if (IFrameSplitOperator.IsNumber(mergin.Top)) this.Report.Header.Mergin.Top=mergin.Top;
|
|
68688
|
+
if (IFrameSplitOperator.IsNumber(mergin.Bottom)) this.Report.Header.Mergin.Bottom=mergin.Bottom;
|
|
68689
|
+
}
|
|
68690
|
+
if (header.Font)
|
|
68691
|
+
{
|
|
68692
|
+
var font=header.Font;
|
|
68693
|
+
if (font.Name) this.Report.Header.Font.Name=font.Name;
|
|
68694
|
+
if (IFrameSplitOperator.IsNumber(font.Size)) this.Report.Header.Font.Size=font.Size;
|
|
68695
|
+
}
|
|
68696
|
+
}
|
|
68697
|
+
|
|
68698
|
+
if (item.Item)
|
|
68699
|
+
{
|
|
68700
|
+
var row=item.Item;
|
|
68701
|
+
if (row.Mergin)
|
|
68702
|
+
{
|
|
68703
|
+
var mergin=row.Mergin;
|
|
68704
|
+
if (IFrameSplitOperator.IsNumber(mergin.Left)) this.Report.Item.Mergin.Left=mergin.Left;
|
|
68705
|
+
if (IFrameSplitOperator.IsNumber(mergin.Right)) this.Report.Item.Mergin.Right=mergin.Right;
|
|
68706
|
+
if (IFrameSplitOperator.IsNumber(mergin.Top)) this.Report.Item.Mergin.Top=mergin.Top;
|
|
68707
|
+
if (IFrameSplitOperator.IsNumber(mergin.Bottom)) this.Report.Item.Mergin.Bottom=mergin.Bottom;
|
|
68708
|
+
}
|
|
68709
|
+
|
|
68710
|
+
if (row.Font)
|
|
68711
|
+
{
|
|
68712
|
+
var font=row.Font;
|
|
68713
|
+
if (font.Name) this.Report.Item.Font.Name=font.Name;
|
|
68714
|
+
if (IFrameSplitOperator.IsNumber(font.Size)) this.Report.Item.Font.Size=font.Size;
|
|
68715
|
+
}
|
|
68716
|
+
|
|
68717
|
+
if (row.BarMergin)
|
|
68718
|
+
{
|
|
68719
|
+
var mergin=row.BarMergin;
|
|
68720
|
+
if (IFrameSplitOperator.IsNumber(mergin.Left)) this.Report.Item.BarMergin.Left=mergin.Left;
|
|
68721
|
+
if (IFrameSplitOperator.IsNumber(mergin.Top)) this.Report.Item.BarMergin.Top=mergin.Top;
|
|
68722
|
+
if (IFrameSplitOperator.IsNumber(mergin.Right)) this.Report.Item.BarMergin.Right=mergin.Right;
|
|
68723
|
+
if (IFrameSplitOperator.IsNumber(mergin.Bottom)) this.Report.Item.BarMergin.Bottom=mergin.Bottom;
|
|
68724
|
+
}
|
|
68725
|
+
|
|
68726
|
+
if (row.NameFont)
|
|
68727
|
+
{
|
|
68728
|
+
var font=row.NameFont;
|
|
68729
|
+
if (font.Name) this.Report.Item.NameFont.Name=font.Name;
|
|
68730
|
+
if (IFrameSplitOperator.IsNumber(font.Size)) this.Report.Item.NameFont.Size=font.Size;
|
|
68731
|
+
}
|
|
68732
|
+
|
|
68733
|
+
if (row.SymbolFont)
|
|
68734
|
+
{
|
|
68735
|
+
var font=row.SymbolFont;
|
|
68736
|
+
if (font.Name) this.Report.Item.SymbolFont.Name=font.Name;
|
|
68737
|
+
if (IFrameSplitOperator.IsNumber(font.Size)) this.Report.Item.SymbolFont.Size=font.Size;
|
|
68738
|
+
}
|
|
68739
|
+
}
|
|
68740
|
+
|
|
68741
|
+
if (item.FixedItem)
|
|
68742
|
+
{
|
|
68743
|
+
var row=item.FixedItem;
|
|
68744
|
+
if (row.Font)
|
|
68745
|
+
{
|
|
68746
|
+
var font=row.Font;
|
|
68747
|
+
if (font.Name) this.Report.FixedItem.Font.Name=font.Name;
|
|
68748
|
+
if (IFrameSplitOperator.IsNumber(font.Size)) this.Report.FixedItem.Font.Size=font.Size;
|
|
68749
|
+
}
|
|
68750
|
+
}
|
|
68751
|
+
|
|
68752
|
+
if (item.LimitBorder)
|
|
68753
|
+
{
|
|
68754
|
+
var limit=item.LimitBorder;
|
|
68755
|
+
if (limit.Color) this.Report.LimitBorder.Color=limit.Color;
|
|
68756
|
+
if (limit.Mergin)
|
|
68757
|
+
{
|
|
68758
|
+
var mergin=limit.Mergin;
|
|
68759
|
+
if (IFrameSplitOperator.IsNumber(mergin.Left)) this.Report.LimitBorder.Mergin.Left=mergin.Left;
|
|
68760
|
+
if (IFrameSplitOperator.IsNumber(mergin.Top)) this.Report.LimitBorder.Mergin.Top=mergin.Top;
|
|
68761
|
+
if (IFrameSplitOperator.IsNumber(mergin.Right)) this.Report.LimitBorder.Mergin.Right=mergin.Right;
|
|
68762
|
+
if (IFrameSplitOperator.IsNumber(mergin.Bottom)) this.Report.LimitBorder.Mergin.Bottom=mergin.Bottom;
|
|
68763
|
+
}
|
|
68764
|
+
}
|
|
68765
|
+
|
|
68766
|
+
if (item.LimitColor)
|
|
68767
|
+
{
|
|
68768
|
+
var limit=item.LimitColor;
|
|
68769
|
+
if (limit.UpColor) this.Report.LimitColor.UpColor=limit.UpColor;
|
|
68770
|
+
if (limit.DownColor) this.Report.LimitColor.DownColor=limit.DownColor;
|
|
68771
|
+
if (limit.TextColor) this.Report.LimitColor.UpColor=limit.TextColor;
|
|
68772
|
+
}
|
|
68773
|
+
|
|
68774
|
+
if (item.FieldColor)
|
|
68775
|
+
{
|
|
68776
|
+
var filed=item.FieldColor;
|
|
68777
|
+
if (filed.Name) this.Report.FieldColor.Name=filed.Name;
|
|
68778
|
+
if (filed.Symbol) this.Report.FieldColor.Symbol=filed.Symbol;
|
|
68779
|
+
if (filed.Vol) this.Report.FieldColor.Vol=filed.Vol;
|
|
68780
|
+
if (filed.Amount) this.Report.FieldColor.Amount=filed.Amount;
|
|
68781
|
+
if (filed.Index) this.Report.FieldColor.Index=filed.Index;
|
|
68782
|
+
if (filed.BarTitle) this.Report.FieldColor.BarTitle=filed.BarTitle;
|
|
68783
|
+
if (filed.Text) this.Report.FieldColor.Text=filed.Text;
|
|
68784
|
+
|
|
68785
|
+
if (IFrameSplitOperator.IsNonEmptyArray(filed.Bar))
|
|
68786
|
+
{
|
|
68787
|
+
for(var i=0;i<filed.Bar.length;++i)
|
|
68788
|
+
this.Report.FieldColor.Bar[i]=filed.Bar[i];
|
|
68789
|
+
}
|
|
68790
|
+
}
|
|
68791
|
+
|
|
68792
|
+
if (item.Tab)
|
|
68793
|
+
{
|
|
68794
|
+
var tab=item.Tab;
|
|
68795
|
+
if (tab.Font)
|
|
68796
|
+
{
|
|
68797
|
+
var font=tab.Font;
|
|
68798
|
+
if (font.Name) this.Report.Tab.Font.Name=font.Name;
|
|
68799
|
+
if (IFrameSplitOperator.IsNumber(font.Size)) this.Report.Tab.Font.Size=font.Size;
|
|
68800
|
+
}
|
|
68801
|
+
|
|
68802
|
+
if (IFrameSplitOperator.IsNumber(tab.ScrollBarWidth)) this.Report.Tab.ScrollBarWidth=tab.ScrollBarWidth;
|
|
68803
|
+
if (tab.ButtonColor) this.Report.Tab.ButtonColor=tab.ButtonColor;
|
|
68804
|
+
if (tab.BarColor) this.Report.Tab.BarColor=tab.BarColor;
|
|
68805
|
+
if (tab.BorderColor) this.Report.Tab.BorderColor=tab.BorderColor;
|
|
68806
|
+
|
|
68807
|
+
if (tab.TabTitleColor) this.Report.Tab.TabTitleColor=tab.TabTitleColor;
|
|
68808
|
+
if (tab.TabSelectedTitleColor) this.Report.Tab.TabSelectedTitleColor=tab.TabSelectedTitleColor;
|
|
68809
|
+
if (tab.TabSelectedBGColor) this.Report.Tab.TabSelectedBGColor=tab.TabSelectedBGColor;
|
|
68810
|
+
if (tab.TabMoveOnTitleColor) this.Report.Tab.TabMoveOnTitleColor=tab.TabMoveOnTitleColor;
|
|
68811
|
+
if (tab.TabBGColor) this.Report.Tab.TabBGColor=tab.TabBGColor;
|
|
68812
|
+
}
|
|
68813
|
+
|
|
68814
|
+
if (item.PageInfo)
|
|
68815
|
+
{
|
|
68816
|
+
var pageinfo=item.PageInfo;
|
|
68817
|
+
if (pageinfo.Font)
|
|
68818
|
+
{
|
|
68819
|
+
var font=pageinfo.Font;
|
|
68820
|
+
if (font.Name) this.Report.PageInfo.Font.Name=font.Name;
|
|
68821
|
+
if (IFrameSplitOperator.IsNumber(font.Size)) this.Report.PageInfo.Font.Size=font.Size;
|
|
68822
|
+
}
|
|
68823
|
+
|
|
68824
|
+
if (pageinfo.TextColor) this.Report.PageInfo.TextColor=pageinfo.TextColor;
|
|
68825
|
+
if (pageinfo.BGColor) this.Report.PageInfo.BGColor=pageinfo.BGColor;
|
|
68826
|
+
|
|
68827
|
+
if (pageinfo.Mergin)
|
|
68828
|
+
{
|
|
68829
|
+
var mergin=pageinfo.Mergin;
|
|
68830
|
+
if (IFrameSplitOperator.IsNumber(mergin.Left)) this.Report.PageInfo.Mergin.Left=mergin.Left;
|
|
68831
|
+
if (IFrameSplitOperator.IsNumber(mergin.Top)) this.Report.PageInfo.Mergin.Top=mergin.Top;
|
|
68832
|
+
if (IFrameSplitOperator.IsNumber(mergin.Right)) this.Report.PageInfo.Mergin.Right=mergin.Right;
|
|
68833
|
+
if (IFrameSplitOperator.IsNumber(mergin.Bottom)) this.Report.PageInfo.Mergin.Bottom=mergin.Bottom;
|
|
68834
|
+
}
|
|
68835
|
+
}
|
|
68836
|
+
|
|
68837
|
+
if (item.DragRow)
|
|
68838
|
+
{
|
|
68839
|
+
var dragRow=item.DragRow;
|
|
68840
|
+
if (dragRow.Color) this.Report.DragRow.Color=dragRow.Color;
|
|
68841
|
+
if (dragRow.TextColor) this.Report.DragRow.TextColor=dragRow.TextColor;
|
|
68842
|
+
if (dragRow.MoveRowColor) this.Report.DragRow.MoveRowColor=dragRow.MoveRowColor;
|
|
68843
|
+
if (dragRow.SrcRowColor) this.Report.DragRow.SrcRowColor=dragRow.SrcRowColor;
|
|
68844
|
+
}
|
|
68845
|
+
|
|
68846
|
+
if (item.VScrollbar)
|
|
68847
|
+
{
|
|
68848
|
+
var subItem=item.VScrollbar;
|
|
68849
|
+
if (IFrameSplitOperator.IsNumber(subItem.ScrollBarHeight)) dest.VScrollbar.ScrollBarHeight=subItem.ScrollBarHeight;
|
|
68850
|
+
if (subItem.ButtonColor) dest.VScrollbar.ButtonColor=subItem.ButtonColor;
|
|
68851
|
+
if (subItem.BarColor) dest.VScrollbar.BarColor=subItem.BarColor;
|
|
68852
|
+
if (subItem.BorderColor) dest.VScrollbar.BorderColor=subItem.BorderColor;
|
|
68853
|
+
if (subItem.BGColor) dest.VScrollbar.BGColor=subItem.BGColor;
|
|
68854
|
+
}
|
|
68855
|
+
|
|
68856
|
+
}
|
|
68857
|
+
|
|
68817
68858
|
this.SetTReportStyle=function(style)
|
|
68818
68859
|
{
|
|
68819
68860
|
var item=style;
|
|
@@ -120587,6 +120628,16 @@ function GetBlackStyle()
|
|
|
120587
120628
|
|
|
120588
120629
|
MoveRowColor:'rgb(135,206,250)',
|
|
120589
120630
|
SrcRowColor:'rgb(49,48,56)',
|
|
120631
|
+
},
|
|
120632
|
+
|
|
120633
|
+
VScrollbar:
|
|
120634
|
+
{
|
|
120635
|
+
BarWidth:40,
|
|
120636
|
+
ScrollBarHeight:60,
|
|
120637
|
+
ButtonColor:"rgba(13,12,15,0.8)",
|
|
120638
|
+
BarColor:"rgba(48,48,48,0.9)",
|
|
120639
|
+
BorderColor:'rgba(48,48,48,0.9)',
|
|
120640
|
+
BGColor:"rgba(211,211,211,0.5)",
|
|
120590
120641
|
}
|
|
120591
120642
|
},
|
|
120592
120643
|
|
|
@@ -122232,6 +122283,7 @@ function JSReportChart(divElement)
|
|
|
122232
122283
|
if (IFrameSplitOperator.IsBool(option.EnableDragRow)) chart.EnableDragRow=option.EnableDragRow;
|
|
122233
122284
|
if (IFrameSplitOperator.IsNumber(option.DragRowType)) chart.DragRowType=option.DragRowType;
|
|
122234
122285
|
if (IFrameSplitOperator.IsBool(option.EnableDragHeader)) chart.EnableDragHeader=option.EnableDragHeader;
|
|
122286
|
+
if (option.VScrollbar) chart.SetVScrollbar(option.VScrollbar);
|
|
122235
122287
|
if (option.SortInfo)
|
|
122236
122288
|
{
|
|
122237
122289
|
var item=option.SortInfo;
|
|
@@ -122428,7 +122480,7 @@ function JSReportChartContainer(uielement)
|
|
|
122428
122480
|
|
|
122429
122481
|
this.FlashBG=new Map();
|
|
122430
122482
|
this.FlashBGTimer=null; //闪烁背景 Value:{ LastTime:数据最后的时间, Data: { Key:ID, BGColor:, Time: , Count: 次数 } };
|
|
122431
|
-
this.GlobalOption={ FlashBGCount:0 }
|
|
122483
|
+
this.GlobalOption={ FlashBGCount:0 };
|
|
122432
122484
|
|
|
122433
122485
|
//this.FixedRowData.Data=[ [null, {Value:11, Text:"11" }], [null, null, null, {Value:12, Text:"ddddd", Color:"rgb(45,200,4)"}]];
|
|
122434
122486
|
|
|
@@ -122470,6 +122522,8 @@ function JSReportChartContainer(uielement)
|
|
|
122470
122522
|
|
|
122471
122523
|
//拖拽滚动条
|
|
122472
122524
|
this.DragXScroll=null; //{Start:{x,y}, End:{x, y}}
|
|
122525
|
+
this.DragYScroll=null;
|
|
122526
|
+
this.IsShowVScrollbar=false;
|
|
122473
122527
|
|
|
122474
122528
|
this.IsDestroy=false; //是否已经销毁了
|
|
122475
122529
|
|
|
@@ -122586,11 +122640,24 @@ function JSReportChartContainer(uielement)
|
|
|
122586
122640
|
chart.GlobalOption=this.GlobalOption;
|
|
122587
122641
|
chart.FixedRowData=this.FixedRowData;
|
|
122588
122642
|
chart.SortInfo=this.SortInfo;
|
|
122643
|
+
|
|
122589
122644
|
chart.Tab=new ChartReportTab();
|
|
122590
122645
|
chart.Tab.Frame=this.Frame;
|
|
122591
122646
|
chart.Tab.Canvas=this.Canvas;
|
|
122592
122647
|
chart.Tab.ChartBorder=this.Frame.ChartBorder;
|
|
122593
122648
|
chart.Tab.Report=chart;
|
|
122649
|
+
|
|
122650
|
+
chart.VScrollbar=new ChartVScrollbar();
|
|
122651
|
+
chart.VScrollbar.Frame=this.Frame;
|
|
122652
|
+
chart.VScrollbar.Canvas=this.Canvas;
|
|
122653
|
+
chart.VScrollbar.ChartBorder=this.Frame.ChartBorder;
|
|
122654
|
+
chart.VScrollbar.Report=chart;
|
|
122655
|
+
chart.VScrollbar.IsShowCallback=()=>
|
|
122656
|
+
{
|
|
122657
|
+
if (this.DragYScroll) return true;
|
|
122658
|
+
return this.IsShowVScrollbar;
|
|
122659
|
+
}
|
|
122660
|
+
|
|
122594
122661
|
this.ChartPaint[0]=chart;
|
|
122595
122662
|
|
|
122596
122663
|
//页脚
|
|
@@ -123492,6 +123559,7 @@ function JSReportChartContainer(uielement)
|
|
|
123492
123559
|
this.UIOnMouseDown=function(e)
|
|
123493
123560
|
{
|
|
123494
123561
|
this.DragXScroll=null;
|
|
123562
|
+
this.DragYScroll=null;
|
|
123495
123563
|
this.DragHeader=null;
|
|
123496
123564
|
this.DragColumnWidth=null;
|
|
123497
123565
|
this.DragMove={ Click:{ X:e.clientX, Y:e.clientY }, Move:{X:e.clientX, Y:e.clientY}, PreMove:{X:e.clientX, Y:e.clientY } };
|
|
@@ -123568,6 +123636,38 @@ function JSReportChartContainer(uielement)
|
|
|
123568
123636
|
this.OnClickTab(tabData, e);
|
|
123569
123637
|
}
|
|
123570
123638
|
}
|
|
123639
|
+
else if (clickData.Type==5 && e.button==0) //右侧滚动条
|
|
123640
|
+
{
|
|
123641
|
+
var scroll=clickData.VScrollbar;
|
|
123642
|
+
if (scroll.Type==1) //顶部按钮
|
|
123643
|
+
{
|
|
123644
|
+
if (this.MoveYOffset(-1))
|
|
123645
|
+
{
|
|
123646
|
+
this.Draw();
|
|
123647
|
+
this.DelayUpdateStockData();
|
|
123648
|
+
}
|
|
123649
|
+
}
|
|
123650
|
+
else if (scroll.Type==2) //底部按钮
|
|
123651
|
+
{
|
|
123652
|
+
if (this.MoveYOffset(1))
|
|
123653
|
+
{
|
|
123654
|
+
this.Draw();
|
|
123655
|
+
this.DelayUpdateStockData();
|
|
123656
|
+
}
|
|
123657
|
+
}
|
|
123658
|
+
else if (scroll.Type==3) //滚动条
|
|
123659
|
+
{
|
|
123660
|
+
this.DragYScroll={ Click:{X:x, Y:y}, LastMove:{X:x, Y:y} };
|
|
123661
|
+
}
|
|
123662
|
+
else if (scroll.Type==4) //滚动条内部
|
|
123663
|
+
{
|
|
123664
|
+
if (this.SetYOffset(scroll.Pos))
|
|
123665
|
+
{
|
|
123666
|
+
this.Draw();
|
|
123667
|
+
this.DelayUpdateStockData();
|
|
123668
|
+
}
|
|
123669
|
+
}
|
|
123670
|
+
}
|
|
123571
123671
|
}
|
|
123572
123672
|
}
|
|
123573
123673
|
|
|
@@ -123614,6 +123714,7 @@ function JSReportChartContainer(uielement)
|
|
|
123614
123714
|
var mouseStatus={ Cursor:"default", Name:"Default"};; //鼠标状态
|
|
123615
123715
|
var report=this.GetReportChart();
|
|
123616
123716
|
var cell=null;
|
|
123717
|
+
var bDraw=false;
|
|
123617
123718
|
if (report)
|
|
123618
123719
|
{
|
|
123619
123720
|
var dragHeaderWidth=report.PtInHeaderDragBorder(x,y);
|
|
@@ -123626,6 +123727,18 @@ function JSReportChartContainer(uielement)
|
|
|
123626
123727
|
{
|
|
123627
123728
|
cell=report.PtInCell(x,y); //是否在单元格(EnableTooltip)
|
|
123628
123729
|
}
|
|
123730
|
+
|
|
123731
|
+
var scrollbar=report.VScrollbar;
|
|
123732
|
+
if (scrollbar.Enable)
|
|
123733
|
+
{
|
|
123734
|
+
var bShowScrollbar=report.PtInClient(x,y);
|
|
123735
|
+
this.IsShowVScrollbar=bShowScrollbar;
|
|
123736
|
+
if (!this.DragYScroll)
|
|
123737
|
+
{
|
|
123738
|
+
if (bShowScrollbar && !scrollbar.LastStatus.Draw) bDraw=true;
|
|
123739
|
+
else if (!bShowScrollbar && scrollbar.LastStatus.Draw) bDraw=true;
|
|
123740
|
+
}
|
|
123741
|
+
}
|
|
123629
123742
|
}
|
|
123630
123743
|
|
|
123631
123744
|
var event=this.GetEventCallback(JSCHART_EVENT_ID.ON_REPORT_MOUSE_MOVE);
|
|
@@ -123636,16 +123749,32 @@ function JSReportChartContainer(uielement)
|
|
|
123636
123749
|
}
|
|
123637
123750
|
|
|
123638
123751
|
if (mouseStatus) this.UIElement.style.cursor=mouseStatus.Cursor;
|
|
123752
|
+
|
|
123753
|
+
if (bDraw) this.Draw();
|
|
123639
123754
|
}
|
|
123640
123755
|
|
|
123641
123756
|
this.UIOnMounseOut=function(e)
|
|
123642
123757
|
{
|
|
123758
|
+
var bDraw=false;
|
|
123643
123759
|
var tabChart=this.GetTabChart();
|
|
123644
123760
|
if (tabChart && tabChart.MoveOnTabIndex>=0)
|
|
123645
123761
|
{
|
|
123646
123762
|
tabChart.MoveOnTabIndex=-1;
|
|
123763
|
+
bDraw=true;
|
|
123647
123764
|
this.Draw();
|
|
123648
123765
|
}
|
|
123766
|
+
|
|
123767
|
+
var scrollbar=this.GetVScrollbarChart();
|
|
123768
|
+
if (scrollbar.Enable)
|
|
123769
|
+
{
|
|
123770
|
+
this.IsShowVScrollbar=false;
|
|
123771
|
+
if (!this.DragYScroll)
|
|
123772
|
+
{
|
|
123773
|
+
if (scrollbar.LastStatus.Draw) bDraw=true;
|
|
123774
|
+
}
|
|
123775
|
+
}
|
|
123776
|
+
|
|
123777
|
+
if (bDraw) this.Draw();
|
|
123649
123778
|
}
|
|
123650
123779
|
|
|
123651
123780
|
this.UIOnMouseleave=function(e)
|
|
@@ -123737,6 +123866,21 @@ function JSReportChartContainer(uielement)
|
|
|
123737
123866
|
var pos=chart.Tab.GetScrollPostionByPoint(x,y);
|
|
123738
123867
|
if (this.SetXOffset(pos)) this.Draw();
|
|
123739
123868
|
}
|
|
123869
|
+
else if (this.DragYScroll)
|
|
123870
|
+
{
|
|
123871
|
+
var chart=this.ChartPaint[0];
|
|
123872
|
+
if (!chart || !chart.VScrollbar) return;
|
|
123873
|
+
|
|
123874
|
+
this.DragYScroll.LastMove.X=x;
|
|
123875
|
+
this.DragYScroll.LastMove.Y=y;
|
|
123876
|
+
|
|
123877
|
+
var pos=chart.VScrollbar.GetScrollPostionByPoint(x,y);
|
|
123878
|
+
if (this.SetYOffset(pos))
|
|
123879
|
+
{
|
|
123880
|
+
this.Draw();
|
|
123881
|
+
this.DelayUpdateStockData();
|
|
123882
|
+
}
|
|
123883
|
+
}
|
|
123740
123884
|
else if (this.DragHeader && this.DragHeader.ClickData) //表头拖拽
|
|
123741
123885
|
{
|
|
123742
123886
|
if (this.DragHeader.ClickData.Header.IsFixed) return;
|
|
@@ -123879,6 +124023,11 @@ function JSReportChartContainer(uielement)
|
|
|
123879
124023
|
|
|
123880
124024
|
this.DragHeader=null;
|
|
123881
124025
|
this.DragXScroll=null;
|
|
124026
|
+
if (this.DragYScroll)
|
|
124027
|
+
{
|
|
124028
|
+
bRedraw=true;
|
|
124029
|
+
this.DragYScroll=null;
|
|
124030
|
+
}
|
|
123882
124031
|
this.DragRow=null;
|
|
123883
124032
|
this.DragMove=null;
|
|
123884
124033
|
this.DragColumnWidth=null;
|
|
@@ -124187,6 +124336,14 @@ function JSReportChartContainer(uielement)
|
|
|
124187
124336
|
return chart.Tab;
|
|
124188
124337
|
}
|
|
124189
124338
|
|
|
124339
|
+
this.GetVScrollbarChart=function()
|
|
124340
|
+
{
|
|
124341
|
+
var chart=this.ChartPaint[0];
|
|
124342
|
+
if (!chart) return null;
|
|
124343
|
+
|
|
124344
|
+
return chart.VScrollbar;
|
|
124345
|
+
}
|
|
124346
|
+
|
|
124190
124347
|
this.GetReportChart=function()
|
|
124191
124348
|
{
|
|
124192
124349
|
var chart=this.ChartPaint[0];
|
|
@@ -124478,6 +124635,21 @@ function JSReportChartContainer(uielement)
|
|
|
124478
124635
|
return true;
|
|
124479
124636
|
}
|
|
124480
124637
|
|
|
124638
|
+
this.SetYOffset=function(pos)
|
|
124639
|
+
{
|
|
124640
|
+
if (!IFrameSplitOperator.IsNumber(pos)) return false;
|
|
124641
|
+
var chart=this.ChartPaint[0];
|
|
124642
|
+
if (!chart) return false;
|
|
124643
|
+
|
|
124644
|
+
var maxOffset=chart.GetYScrollRange();
|
|
124645
|
+
if (pos<0) pos=0;
|
|
124646
|
+
if (pos>maxOffset) pos=maxOffset;
|
|
124647
|
+
|
|
124648
|
+
this.Data.YOffset=pos;
|
|
124649
|
+
|
|
124650
|
+
return true;
|
|
124651
|
+
}
|
|
124652
|
+
|
|
124481
124653
|
this.GotoLastPage=function()
|
|
124482
124654
|
{
|
|
124483
124655
|
var chart=this.ChartPaint[0];
|
|
@@ -124514,6 +124686,17 @@ function JSReportChartContainer(uielement)
|
|
|
124514
124686
|
if (option && option.Redraw) this.Draw();
|
|
124515
124687
|
}
|
|
124516
124688
|
|
|
124689
|
+
this.SetVScrollbar=function(option)
|
|
124690
|
+
{
|
|
124691
|
+
var chart=this.GetReportChart();
|
|
124692
|
+
if (!chart) return;
|
|
124693
|
+
|
|
124694
|
+
var scrollbar=chart.VScrollbar;
|
|
124695
|
+
if (!scrollbar) return;
|
|
124696
|
+
|
|
124697
|
+
if (IFrameSplitOperator.IsBool(option.Enable)) scrollbar.Enable=option.Enable;
|
|
124698
|
+
}
|
|
124699
|
+
|
|
124517
124700
|
this.SetSelectedTab=function(index, opiton)
|
|
124518
124701
|
{
|
|
124519
124702
|
var chart=this.ChartPaint[0];;
|
|
@@ -125207,6 +125390,7 @@ function ChartReport()
|
|
|
125207
125390
|
this.DragRow; //拖拽行
|
|
125208
125391
|
|
|
125209
125392
|
this.Tab;
|
|
125393
|
+
this.VScrollbar;
|
|
125210
125394
|
|
|
125211
125395
|
this.GlobalOption;
|
|
125212
125396
|
|
|
@@ -125389,6 +125573,7 @@ function ChartReport()
|
|
|
125389
125573
|
}
|
|
125390
125574
|
|
|
125391
125575
|
if (this.Tab) this.Tab.ReloadResource(resource);
|
|
125576
|
+
if (this.VScrollbar) this.VScrollbar.ReloadResource(resource);
|
|
125392
125577
|
}
|
|
125393
125578
|
|
|
125394
125579
|
this.SetColumn=function(aryColumn)
|
|
@@ -125488,6 +125673,15 @@ function ChartReport()
|
|
|
125488
125673
|
var maxOffset=this.Column.length-this.FixedColumn-3;
|
|
125489
125674
|
if (maxOffset<0) return 0;
|
|
125490
125675
|
|
|
125676
|
+
return maxOffset;
|
|
125677
|
+
}
|
|
125678
|
+
|
|
125679
|
+
this.GetYScrollRange=function()
|
|
125680
|
+
{
|
|
125681
|
+
if (!IFrameSplitOperator.IsNonEmptyArray(this.Data.Data)) return 0;
|
|
125682
|
+
|
|
125683
|
+
var maxOffset=this.Data.Data.length-this.RowCount;
|
|
125684
|
+
|
|
125491
125685
|
return maxOffset;
|
|
125492
125686
|
}
|
|
125493
125687
|
|
|
@@ -125584,6 +125778,12 @@ function ChartReport()
|
|
|
125584
125778
|
|
|
125585
125779
|
this.DrawDragRow();
|
|
125586
125780
|
|
|
125781
|
+
if (this.VScrollbar)
|
|
125782
|
+
{
|
|
125783
|
+
var bottom=this.ChartBorder.GetBottom();
|
|
125784
|
+
this.VScrollbar.DrawScrollbar(this.RectClient.Left,this.RectClient.Top+this.HeaderHeight, this.RectClient.Right, bottom-this.BottomToolbarHeight-4);
|
|
125785
|
+
}
|
|
125786
|
+
|
|
125587
125787
|
this.SizeChange=false;
|
|
125588
125788
|
}
|
|
125589
125789
|
|
|
@@ -125637,6 +125837,8 @@ function ChartReport()
|
|
|
125637
125837
|
this.BottomToolbarHeight=0;
|
|
125638
125838
|
}
|
|
125639
125839
|
|
|
125840
|
+
if (this.VScrollbar && this.VScrollbar.Enable) this.VScrollbar.CalculateSize();
|
|
125841
|
+
|
|
125640
125842
|
this.UpdateCacheData();
|
|
125641
125843
|
|
|
125642
125844
|
var pixelRatio=GetDevicePixelRatio();
|
|
@@ -127197,7 +127399,7 @@ function ChartReport()
|
|
|
127197
127399
|
return GetFontHeight(this.Canvas, font, word);
|
|
127198
127400
|
}
|
|
127199
127401
|
|
|
127200
|
-
this.OnMouseDown=function(x,y,e) //Type: 1=tab 4=固定行 2=行 3=表头
|
|
127402
|
+
this.OnMouseDown=function(x,y,e) //Type: 1=tab 4=固定行 2=行 3=表头 5=右侧滚动条
|
|
127201
127403
|
{
|
|
127202
127404
|
if (!this.Data) return null;
|
|
127203
127405
|
|
|
@@ -127207,6 +127409,12 @@ function ChartReport()
|
|
|
127207
127409
|
if (tab) return { Type:1, Tab: tab }; //底部工具栏
|
|
127208
127410
|
}
|
|
127209
127411
|
|
|
127412
|
+
if (this.VScrollbar)
|
|
127413
|
+
{
|
|
127414
|
+
var item=this.VScrollbar.OnMouseDown(x,y,e);
|
|
127415
|
+
if (item) return { Type:5, VScrollbar:item }; //右侧滚动条
|
|
127416
|
+
}
|
|
127417
|
+
|
|
127210
127418
|
var pixelTatio = GetDevicePixelRatio();
|
|
127211
127419
|
var insidePoint={X:x/pixelTatio, Y:y/pixelTatio};
|
|
127212
127420
|
|
|
@@ -127331,6 +127539,13 @@ function ChartReport()
|
|
|
127331
127539
|
return false;
|
|
127332
127540
|
}
|
|
127333
127541
|
|
|
127542
|
+
this.PtInClient=function(x,y)
|
|
127543
|
+
{
|
|
127544
|
+
if (x>this.RectClient.Left && x<this.RectClient.Right && y>this.RectClient.Top && y<this.RectClient.Bottom) return true;
|
|
127545
|
+
|
|
127546
|
+
return false;
|
|
127547
|
+
}
|
|
127548
|
+
|
|
127334
127549
|
this.PtInBody=function(x,y)
|
|
127335
127550
|
{
|
|
127336
127551
|
if (!this.Data) return null;
|
|
@@ -127961,6 +128176,164 @@ function ChartReportPageInfo()
|
|
|
127961
128176
|
this.SizeChange=false;
|
|
127962
128177
|
}
|
|
127963
128178
|
}
|
|
128179
|
+
|
|
128180
|
+
|
|
128181
|
+
function ChartVScrollbar()
|
|
128182
|
+
{
|
|
128183
|
+
this.Canvas; //画布
|
|
128184
|
+
this.ChartBorder; //边框信息
|
|
128185
|
+
this.ChartFrame; //框架画法
|
|
128186
|
+
this.Name; //名称
|
|
128187
|
+
this.ClassName='ChartReportTab'; //类名
|
|
128188
|
+
this.IsDrawFirst=false;
|
|
128189
|
+
this.GetEventCallback; //获取事件
|
|
128190
|
+
this.Report;
|
|
128191
|
+
|
|
128192
|
+
this.MaxPos=15; //滚动条可移动长度
|
|
128193
|
+
this.CurrentPos=15; //当前滚动条移动位置
|
|
128194
|
+
this.Step=1; //滚动条移动步长
|
|
128195
|
+
this.ButtonSize=25;
|
|
128196
|
+
this.Enable=false;
|
|
128197
|
+
this.LastStatus={ Draw:false, };
|
|
128198
|
+
this.GlobalOption;
|
|
128199
|
+
|
|
128200
|
+
this.ScrollBarHeight=g_JSChartResource.Report.VScrollbar.ScrollBarHeight;
|
|
128201
|
+
this.ButtonColor=g_JSChartResource.Report.VScrollbar.ButtonColor;
|
|
128202
|
+
this.BarColor=g_JSChartResource.Report.VScrollbar.BarColor;
|
|
128203
|
+
this.BorderColor=g_JSChartResource.Report.VScrollbar.BorderColor;
|
|
128204
|
+
this.BGColor=g_JSChartResource.Report.VScrollbar.BGColor;
|
|
128205
|
+
this.Mergin={ Left:2, Right:2, Top:2, Bottom:2 };
|
|
128206
|
+
this.BarWithConfig={ Size:g_JSChartResource.Report.VScrollbar.BarWidth.Size };
|
|
128207
|
+
|
|
128208
|
+
this.RectScroll={ Top:null, Bottom:null, Bar:null, Client:null }; //滚动条区域
|
|
128209
|
+
|
|
128210
|
+
this.ReloadResource=function(resource)
|
|
128211
|
+
{
|
|
128212
|
+
this.ScrollBarHeight=g_JSChartResource.Report.VScrollbar.ScrollBarHeight;
|
|
128213
|
+
this.ButtonColor=g_JSChartResource.Report.VScrollbar.ButtonColor;
|
|
128214
|
+
this.BarColor=g_JSChartResource.Report.VScrollbar.BarColor;
|
|
128215
|
+
this.BorderColor=g_JSChartResource.Report.VScrollbar.BorderColor;
|
|
128216
|
+
this.BGColor=g_JSChartResource.Report.VScrollbar.BGColor;
|
|
128217
|
+
this.BarWithConfig={ Size:g_JSChartResource.Report.VScrollbar.BarWidth.Size };
|
|
128218
|
+
}
|
|
128219
|
+
|
|
128220
|
+
this.CalculateSize=function()
|
|
128221
|
+
{
|
|
128222
|
+
var pixelRatio=GetDevicePixelRatio();
|
|
128223
|
+
|
|
128224
|
+
var width=this.BarWithConfig.Size*pixelRatio+this.Mergin.Left+this.Mergin.Right;
|
|
128225
|
+
this.ButtonSize=Math.min(25, width);
|
|
128226
|
+
}
|
|
128227
|
+
|
|
128228
|
+
this.DrawScrollbar=function(left, top, right, bottom)
|
|
128229
|
+
{
|
|
128230
|
+
this.LastStatus.Draw=false;
|
|
128231
|
+
this.RectScroll={ Left:null, Right:null, Bar:null, Client:null };
|
|
128232
|
+
if (!this.Enable) return;
|
|
128233
|
+
|
|
128234
|
+
var isShow=this.IsShowCallback();
|
|
128235
|
+
if (!isShow) return;
|
|
128236
|
+
|
|
128237
|
+
var pageInfo=this.Report.GetCurrentPageStatus();
|
|
128238
|
+
if (pageInfo.IsSinglePage) return;
|
|
128239
|
+
|
|
128240
|
+
var xOffset=pageInfo.Start;
|
|
128241
|
+
var dataCount=pageInfo.DataCount-pageInfo.PageSize;
|
|
128242
|
+
var buttonSize=this.ButtonSize;
|
|
128243
|
+
|
|
128244
|
+
this.MaxPos=dataCount;
|
|
128245
|
+
this.CurrentPos=xOffset;
|
|
128246
|
+
|
|
128247
|
+
var rtTop={ Right:right-this.Mergin.Right, Top:top+this.Mergin.Top, Width:buttonSize, Height:buttonSize };
|
|
128248
|
+
rtTop.Left=rtTop.Right-buttonSize;
|
|
128249
|
+
rtTop.Bottom=rtTop.Top+buttonSize;
|
|
128250
|
+
|
|
128251
|
+
var rtBottom={ Right:right-this.Mergin.Right, Bottom:bottom-this.Mergin.Bottom, Width:buttonSize, Height:buttonSize };
|
|
128252
|
+
rtBottom.Left=rtBottom.Right-buttonSize;
|
|
128253
|
+
rtBottom.Top=rtBottom.Bottom-buttonSize;
|
|
128254
|
+
|
|
128255
|
+
var centerHeight=(rtBottom.Top-2)-(rtTop.Bottom+2);
|
|
128256
|
+
var value = centerHeight - this.ScrollBarHeight;
|
|
128257
|
+
var yOffset = (value * this.CurrentPos) / this.MaxPos;
|
|
128258
|
+
var y = rtTop.Bottom + 2 + yOffset;
|
|
128259
|
+
|
|
128260
|
+
var rtBar = {Right:right-this.Mergin.Right, Top:y, Width:buttonSize, Height: this.ScrollBarHeight };
|
|
128261
|
+
rtBar.Left=rtBar.Right-buttonSize;
|
|
128262
|
+
rtBar.Bottom=rtBar.Top+rtBar.Height;
|
|
128263
|
+
|
|
128264
|
+
this.RectScroll.Top=rtTop;
|
|
128265
|
+
this.RectScroll.Bottom=rtBottom;
|
|
128266
|
+
this.RectScroll.Bar=rtBar;
|
|
128267
|
+
this.RectScroll.Client={ Left:rtTop.Left, Right: rtTop.Right, Top:rtTop.Bottom, Bottom:rtBottom.Top };
|
|
128268
|
+
|
|
128269
|
+
var rtBG={ Right:right, Top:top, Bottom:bottom, Width:buttonSize+this.Mergin.Right+this.Mergin.Left };
|
|
128270
|
+
rtBG.Left=rtBG.Right-rtBG.Width;
|
|
128271
|
+
rtBG.Height=rtBG.Bottom-rtBG.Top;
|
|
128272
|
+
this.Canvas.fillStyle=this.BGColor;
|
|
128273
|
+
this.Canvas.fillRect(rtBG.Left,rtBG.Top,rtBG.Width,rtBG.Height);
|
|
128274
|
+
|
|
128275
|
+
this.Canvas.fillStyle=this.ButtonColor;
|
|
128276
|
+
this.Canvas.fillRect(rtTop.Left,rtTop.Top,rtTop.Width,rtTop.Height);
|
|
128277
|
+
this.Canvas.fillRect(rtBottom.Left,rtBottom.Top,rtBottom.Width,rtBottom.Height);
|
|
128278
|
+
|
|
128279
|
+
this.Canvas.strokeStyle=this.BorderColor;
|
|
128280
|
+
this.Canvas.strokeRect(rtTop.Left,rtTop.Top,rtTop.Width,rtTop.Height);
|
|
128281
|
+
this.Canvas.strokeRect(rtBottom.Left,rtBottom.Top,rtBottom.Width,rtBottom.Height);
|
|
128282
|
+
|
|
128283
|
+
this.Canvas.fillStyle=this.BarColor;
|
|
128284
|
+
this.Canvas.fillRect(rtBar.Left,rtBar.Top,rtBar.Width,rtBar.Height);
|
|
128285
|
+
|
|
128286
|
+
this.LastStatus.Draw=true;
|
|
128287
|
+
}
|
|
128288
|
+
|
|
128289
|
+
this.OnMouseDown=function(x,y, e)
|
|
128290
|
+
{
|
|
128291
|
+
return this.PtInScroll(x,y);
|
|
128292
|
+
}
|
|
128293
|
+
|
|
128294
|
+
// Type 1-4 滚动条
|
|
128295
|
+
this.PtInScroll=function(x,y)
|
|
128296
|
+
{
|
|
128297
|
+
if (!this.RectScroll) return null;
|
|
128298
|
+
|
|
128299
|
+
if (this.RectScroll.Top)
|
|
128300
|
+
{
|
|
128301
|
+
var rtItem=this.RectScroll.Top;
|
|
128302
|
+
if (x>=rtItem.Left && x<=rtItem.Right && y>=rtItem.Top && y<=rtItem.Bottom) return { Type: 1, Rect: rtItem };
|
|
128303
|
+
}
|
|
128304
|
+
|
|
128305
|
+
if (this.RectScroll.Bottom)
|
|
128306
|
+
{
|
|
128307
|
+
var rtItem=this.RectScroll.Bottom;
|
|
128308
|
+
if (x>=rtItem.Left && x<=rtItem.Right && y>=rtItem.Top && y<=rtItem.Bottom) return { Type: 2, Rect: rtItem };
|
|
128309
|
+
}
|
|
128310
|
+
|
|
128311
|
+
if (this.RectScroll.Bar)
|
|
128312
|
+
{
|
|
128313
|
+
var rtItem=this.RectScroll.Bar;
|
|
128314
|
+
if (x>=rtItem.Left && x<=rtItem.Right && y>=rtItem.Top && y<=rtItem.Bottom) return { Type: 3, Rect: rtItem };
|
|
128315
|
+
}
|
|
128316
|
+
|
|
128317
|
+
if (this.RectScroll.Client)
|
|
128318
|
+
{
|
|
128319
|
+
var rtItem=this.RectScroll.Client;
|
|
128320
|
+
if (x>=rtItem.Left && x<=rtItem.Right && y>=rtItem.Top && y<=rtItem.Bottom)
|
|
128321
|
+
{
|
|
128322
|
+
return { Type: 4, Rect: rtItem , Pos: this.GetScrollPostionByPoint(x,y) };
|
|
128323
|
+
}
|
|
128324
|
+
}
|
|
128325
|
+
|
|
128326
|
+
return null;
|
|
128327
|
+
}
|
|
128328
|
+
|
|
128329
|
+
this.GetScrollPostionByPoint=function(x,y)
|
|
128330
|
+
{
|
|
128331
|
+
var rtItem=this.RectScroll.Client;
|
|
128332
|
+
var value=rtItem.Bottom-rtItem.Top-this.ScrollBarHeight;
|
|
128333
|
+
var pos =parseInt((this.MaxPos * (y - rtItem.Top)) / value);
|
|
128334
|
+
return pos;
|
|
128335
|
+
}
|
|
128336
|
+
}
|
|
127964
128337
|
/*
|
|
127965
128338
|
Copyright (c) 2018 jones
|
|
127966
128339
|
|
|
@@ -130979,7 +131352,7 @@ function ScrollBarBGChart()
|
|
|
130979
131352
|
|
|
130980
131353
|
|
|
130981
131354
|
|
|
130982
|
-
var HQCHART_VERSION="1.1.
|
|
131355
|
+
var HQCHART_VERSION="1.1.13104";
|
|
130983
131356
|
|
|
130984
131357
|
function PrintHQChartVersion()
|
|
130985
131358
|
{
|