hqchart 1.1.13555 → 1.1.13565
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 +34 -25
- package/package.json +1 -1
- package/src/jscommon/umychart.js +34 -5
- package/src/jscommon/umychart.report.js +155 -35
- package/src/jscommon/umychart.style.js +1 -1
- package/src/jscommon/umychart.uniapp.h5/umychart.uniapp.h5.js +191 -42
- package/src/jscommon/umychart.version.js +1 -1
- package/src/jscommon/umychart.vue/umychart.vue.js +191 -42
|
@@ -6525,6 +6525,7 @@ var JSCHART_EVENT_ID=
|
|
|
6525
6525
|
|
|
6526
6526
|
ON_DRAW_REPORT_ROW_BG:140, //报价列表整行背景
|
|
6527
6527
|
ON_CLICK_REPORT_CHECKBOX:141, //报价列表checkbox
|
|
6528
|
+
ON_CLICK_REPORT_BUTTON:142, //报价列表按钮
|
|
6528
6529
|
|
|
6529
6530
|
|
|
6530
6531
|
ON_CHANGE_INDEX:150, //切换指标
|
|
@@ -6697,8 +6698,12 @@ var JSCHART_MENU_ID=
|
|
|
6697
6698
|
|
|
6698
6699
|
CMD_CHANGE_DRAG_RECT_SHOW_MODE_ID:38,
|
|
6699
6700
|
|
|
6701
|
+
CMD_SHOW_CORSS_LINE_ID:39, //显示十字光标线
|
|
6702
|
+
|
|
6700
6703
|
|
|
6701
6704
|
CMD_REPORT_CHANGE_BLOCK_ID:60, //报价列表 切换板块ID
|
|
6705
|
+
|
|
6706
|
+
|
|
6702
6707
|
}
|
|
6703
6708
|
|
|
6704
6709
|
|
|
@@ -13480,6 +13485,13 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
13480
13485
|
if (this.ChartDragSelectRect) this.ChartDragSelectRect.ShowMode=param;
|
|
13481
13486
|
}
|
|
13482
13487
|
break;
|
|
13488
|
+
|
|
13489
|
+
case JSCHART_MENU_ID.CMD_SHOW_CORSS_LINE_ID:
|
|
13490
|
+
if (IFrameSplitOperator.IsBool(srcParam))
|
|
13491
|
+
{
|
|
13492
|
+
if (this.ChartCorssCursor) this.ChartCorssCursor.IsShowCorss=srcParam;
|
|
13493
|
+
}
|
|
13494
|
+
break;
|
|
13483
13495
|
}
|
|
13484
13496
|
}
|
|
13485
13497
|
|
|
@@ -54814,8 +54826,9 @@ function HQPriceStringFormat()
|
|
|
54814
54826
|
var event=this.GetEventCallback(JSCHART_EVENT_ID.ON_FORMAT_CORSSCURSOR_Y_TEXT);
|
|
54815
54827
|
if (event)
|
|
54816
54828
|
{
|
|
54817
|
-
var data={ Value:this.Value, FrameID:this.FrameID };
|
|
54829
|
+
var data={ Value:this.Value, FrameID:this.FrameID, PreventDefault:false };
|
|
54818
54830
|
event.Callback(event,data,this);
|
|
54831
|
+
if (data.PreventDefault==true) return false;
|
|
54819
54832
|
}
|
|
54820
54833
|
}
|
|
54821
54834
|
|
|
@@ -54890,8 +54903,10 @@ function HQDateStringFormat()
|
|
|
54890
54903
|
var event=this.GetEventCallback(JSCHART_EVENT_ID.ON_FORMAT_CORSSCURSOR_X_TEXT);
|
|
54891
54904
|
if (event)
|
|
54892
54905
|
{
|
|
54893
|
-
var data={ Item:currentData, Period:this.Data.Period, Date:currentData.Date, Time:currentData.Time,Index:this.Data.DataOffset+index };
|
|
54906
|
+
var data={ Item:currentData, Period:this.Data.Period, Date:currentData.Date, Time:currentData.Time,Index:this.Data.DataOffset+index, PreventDefault:false };
|
|
54894
54907
|
event.Callback(event,data,this);
|
|
54908
|
+
|
|
54909
|
+
if (data.PreventDefault==true) return false;
|
|
54895
54910
|
}
|
|
54896
54911
|
}
|
|
54897
54912
|
|
|
@@ -55030,8 +55045,10 @@ function HQMinuteTimeStringFormat()
|
|
|
55030
55045
|
var event=this.GetEventCallback(JSCHART_EVENT_ID.ON_FORMAT_CORSSCURSOR_X_TEXT);
|
|
55031
55046
|
if (event)
|
|
55032
55047
|
{
|
|
55033
|
-
var data={ Time:time, Index:showIndex };
|
|
55048
|
+
var data={ Time:time, Index:showIndex, PreventDefault:false };
|
|
55034
55049
|
event.Callback(event,data,this);
|
|
55050
|
+
|
|
55051
|
+
if (data.PreventDefault==true) return false;
|
|
55035
55052
|
}
|
|
55036
55053
|
}
|
|
55037
55054
|
|
|
@@ -71067,7 +71084,7 @@ function JSChartResource()
|
|
|
71067
71084
|
|
|
71068
71085
|
Item:
|
|
71069
71086
|
{
|
|
71070
|
-
Mergin:{ Top:2, Bottom:
|
|
71087
|
+
Mergin:{ Top:2, Bottom:4,Left:5, Right:5 }, //单元格四周间距
|
|
71071
71088
|
Font:{ Size:15, Name:"微软雅黑"},
|
|
71072
71089
|
BarMergin:{ Top:2, Left:3, Right:3, Bottom:2 },//单元格字体
|
|
71073
71090
|
NameFont:{ Size:14, Name:"微软雅黑" },
|
|
@@ -78838,6 +78855,9 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
78838
78855
|
if (this.GetExtendChartByClassName("SessionBreaksPaint")) bBGSpit=true;
|
|
78839
78856
|
if (this.GetExtendChartByClassName('StockChip')) bShowStockChip=true; //筹码
|
|
78840
78857
|
|
|
78858
|
+
var bShowCorss=false; //十字光标十字线
|
|
78859
|
+
if (this.ChartCorssCursor) bShowCorss=this.ChartCorssCursor.IsShowCorss;
|
|
78860
|
+
|
|
78841
78861
|
var aryMenu=
|
|
78842
78862
|
[
|
|
78843
78863
|
{
|
|
@@ -78996,6 +79016,9 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
78996
79016
|
{ Name:"画图工具", Data:{ ID:JSCHART_MENU_ID.CMD_SHOW_DRAWTOOL_ID, Args:[]}, Checked:this.IsShowDrawToolDialog() },
|
|
78997
79017
|
|
|
78998
79018
|
{ Name:"移动筹码图", Data:{ ID:bShowStockChip?JSCHART_MENU_ID.CMD_HIDE_STOCKCHIP_ID:JSCHART_MENU_ID.CMD_SHOW_STOCKCHIP_ID, Args:[]}, Checked:bShowStockChip},
|
|
79019
|
+
|
|
79020
|
+
{ Name:"十字光标线", Data:{ ID:JSCHART_MENU_ID.CMD_SHOW_CORSS_LINE_ID, Args:[!bShowCorss]}, Checked:bShowCorss },
|
|
79021
|
+
|
|
78999
79022
|
{ Name:JSPopMenu.SEPARATOR_LINE_NAME },
|
|
79000
79023
|
{
|
|
79001
79024
|
Name:"鼠标形状",
|
|
@@ -82500,6 +82523,9 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
82500
82523
|
if (item && item.Symbol) aryOverlaySymbol.push(item.Symbol)
|
|
82501
82524
|
}
|
|
82502
82525
|
|
|
82526
|
+
var bShowCorss=false; //十字光标十字线
|
|
82527
|
+
if (this.ChartCorssCursor) bShowCorss=this.ChartCorssCursor.IsShowCorss;
|
|
82528
|
+
|
|
82503
82529
|
var aryMenu=
|
|
82504
82530
|
[
|
|
82505
82531
|
{
|
|
@@ -82568,6 +82594,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
82568
82594
|
SubMenu:
|
|
82569
82595
|
[
|
|
82570
82596
|
{ Name:"画图工具", Data:{ ID:JSCHART_MENU_ID.CMD_SHOW_DRAWTOOL_ID, Args:[]}, Checked:this.IsShowDrawToolDialog()},
|
|
82597
|
+
{ Name:"十字光标线", Data:{ ID:JSCHART_MENU_ID.CMD_SHOW_CORSS_LINE_ID, Args:[!bShowCorss]}, Checked:bShowCorss },
|
|
82571
82598
|
|
|
82572
82599
|
{
|
|
82573
82600
|
Name:"区间选择样式",
|
|
@@ -82577,7 +82604,9 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
82577
82604
|
{ Name:"样式2", Data:{ ID:JSCHART_MENU_ID.CMD_CHANGE_DRAG_RECT_SHOW_MODE_ID, Args:[1]}, Checked:1==this.ChartDragSelectRect.ShowMode },
|
|
82578
82605
|
{ Name:"样式3", Data:{ ID:JSCHART_MENU_ID.CMD_CHANGE_DRAG_RECT_SHOW_MODE_ID, Args:[2]}, Checked:2==this.ChartDragSelectRect.ShowMode },
|
|
82579
82606
|
]
|
|
82580
|
-
}
|
|
82607
|
+
},
|
|
82608
|
+
|
|
82609
|
+
|
|
82581
82610
|
]
|
|
82582
82611
|
}
|
|
82583
82612
|
|
|
@@ -123529,7 +123558,7 @@ function GetBlackStyle()
|
|
|
123529
123558
|
|
|
123530
123559
|
Item:
|
|
123531
123560
|
{
|
|
123532
|
-
Mergin:{ Top:2, Bottom:
|
|
123561
|
+
Mergin:{ Top:2, Bottom:4,Left:5, Right:5 },
|
|
123533
123562
|
Font:{ Size:15, Name:"微软雅黑"},
|
|
123534
123563
|
BarMergin:{ Top:2, Left:3, Right:3, Bottom:2 },
|
|
123535
123564
|
NameFont:{ Size:14, Name:"微软雅黑" },
|
|
@@ -128877,13 +128906,7 @@ var REPORT_COLUMN_ID=
|
|
|
128877
128906
|
TIME_ID:31, //时间 hhmmss / hhmm / hhmmss.fff
|
|
128878
128907
|
DATE_ID:32, //日期
|
|
128879
128908
|
|
|
128880
|
-
CHECKBOX_ID:33, //单选框
|
|
128881
|
-
CHECKBOX2_ID:34,
|
|
128882
|
-
CHECKBOX3_ID:35,
|
|
128883
|
-
CHECKBOX4_ID:36,
|
|
128884
|
-
CHECKBOX5_ID:37,
|
|
128885
|
-
CHECKBOX6_ID:38,
|
|
128886
|
-
|
|
128909
|
+
CHECKBOX_ID:33, //单选框
|
|
128887
128910
|
|
|
128888
128911
|
SYMBOL_NAME_ID:99,
|
|
128889
128912
|
|
|
@@ -128891,6 +128914,8 @@ var REPORT_COLUMN_ID=
|
|
|
128891
128914
|
CUSTOM_NUMBER_TEXT_ID:101, //自定义数值型
|
|
128892
128915
|
CUSTOM_DATETIME_TEXT_ID:102, //自定义日期类型
|
|
128893
128916
|
CUSTOM_ICON_ID:103, //自定义图标
|
|
128917
|
+
CUSTOM_CHECKBOX_ID:104, //自定义checkbox
|
|
128918
|
+
CUSTOM_BUTTON_ID:105, //自定义按钮
|
|
128894
128919
|
}
|
|
128895
128920
|
|
|
128896
128921
|
var MAP_COLUMN_FIELD=new Map([
|
|
@@ -129259,6 +129284,21 @@ function ChartReport()
|
|
|
129259
129284
|
if (IFrameSplitOperator.IsNumber(item.ValueType)) colItem.FormatType=item.ValueType; //输出样式
|
|
129260
129285
|
|
|
129261
129286
|
}
|
|
129287
|
+
else if (item.Type==REPORT_COLUMN_ID.CUSTOM_CHECKBOX_ID)
|
|
129288
|
+
{
|
|
129289
|
+
if (!IFrameSplitOperator.IsNumber(item.DataIndex) && !IFrameSplitOperator.IsNumber(item.BlockIndex)) continue;
|
|
129290
|
+
if (IFrameSplitOperator.IsNumber(item.DataIndex)) colItem.DataIndex=item.DataIndex; //数据在扩展数据索引列
|
|
129291
|
+
if (IFrameSplitOperator.IsNumber(item.BlockIndex)) colItem.BlockIndex=item.BlockIndex;
|
|
129292
|
+
if (item.CheckBox) colItem.CheckBox=CloneData(item.CheckBox);
|
|
129293
|
+
else colItem.CheckBox=CloneData(g_JSChartResource.Report.CheckBox);
|
|
129294
|
+
}
|
|
129295
|
+
else if (item.Type==REPORT_COLUMN_ID.CUSTOM_BUTTON_ID)
|
|
129296
|
+
{
|
|
129297
|
+
if (!IFrameSplitOperator.IsNumber(item.DataIndex) && !IFrameSplitOperator.IsNumber(item.BlockIndex)) continue;
|
|
129298
|
+
if (IFrameSplitOperator.IsNumber(item.DataIndex)) colItem.DataIndex=item.DataIndex; //数据在扩展数据索引列
|
|
129299
|
+
if (IFrameSplitOperator.IsNumber(item.BlockIndex)) colItem.BlockIndex=item.BlockIndex;
|
|
129300
|
+
if (item.Button) colItem.Button=CloneData(item.Button);
|
|
129301
|
+
}
|
|
129262
129302
|
else if (item.Type==REPORT_COLUMN_ID.CUSTOM_ICON_ID)
|
|
129263
129303
|
{
|
|
129264
129304
|
|
|
@@ -129275,6 +129315,7 @@ function ChartReport()
|
|
|
129275
129315
|
{
|
|
129276
129316
|
if (IFrameSplitOperator.IsNumber(item.FormatType)) colItem.FormatType=item.FormatType;
|
|
129277
129317
|
}
|
|
129318
|
+
|
|
129278
129319
|
|
|
129279
129320
|
this.Column.push(colItem);
|
|
129280
129321
|
}
|
|
@@ -129371,9 +129412,11 @@ function ChartReport()
|
|
|
129371
129412
|
{ Type:REPORT_COLUMN_ID.TIME_ID, Title:"时间", TextAlign:"left", ValueType:0, TextColor:g_JSChartResource.Report.FieldColor.Text, MaxText:"99:99:99.999" },
|
|
129372
129413
|
{ Type:REPORT_COLUMN_ID.DATE_ID, Title:"日期", TextAlign:"left", FormatType:0, TextColor:g_JSChartResource.Report.FieldColor.Text, MaxText:"9999-99-99" },
|
|
129373
129414
|
|
|
129374
|
-
{ Type:REPORT_COLUMN_ID.CHECKBOX_ID, Title:"", TextAlign:"center", FixedWidth:20*GetDevicePixelRatio() }
|
|
129415
|
+
{ Type:REPORT_COLUMN_ID.CHECKBOX_ID, Title:"", TextAlign:"center", FixedWidth:20*GetDevicePixelRatio() },
|
|
129375
129416
|
|
|
129376
|
-
|
|
129417
|
+
{ Type:REPORT_COLUMN_ID.CUSTOM_CHECKBOX_ID, Title:"", TextAlign:"center", FixedWidth:20*GetDevicePixelRatio() },
|
|
129418
|
+
|
|
129419
|
+
{ Type:REPORT_COLUMN_ID.CUSTOM_BUTTON_ID, Title:"", TextAlign:"center", FixedWidth:50*GetDevicePixelRatio() }
|
|
129377
129420
|
];
|
|
129378
129421
|
|
|
129379
129422
|
for(var i=0;i<DEFAULT_COLUMN.length;++i)
|
|
@@ -130322,10 +130365,30 @@ function ChartReport()
|
|
|
130322
130365
|
rtItem.Bottom=rtItem.Top+rtItem.Height;
|
|
130323
130366
|
drawInfo.Rect=rtItem;
|
|
130324
130367
|
drawInfo.Checked=false;
|
|
130325
|
-
drawInfo.
|
|
130368
|
+
drawInfo.Enable=true;
|
|
130369
|
+
drawInfo.CheckBox=this.CheckBoxConfig;
|
|
130370
|
+
drawInfo.Data=stock;
|
|
130326
130371
|
if (stock && IFrameSplitOperator.IsBool(stock.Checked))
|
|
130327
130372
|
drawInfo.Checked=stock.Checked;
|
|
130328
130373
|
}
|
|
130374
|
+
else if (column.Type==REPORT_COLUMN_ID.CUSTOM_CHECKBOX_ID)
|
|
130375
|
+
{
|
|
130376
|
+
rtItem={ Left:left, Top:top, Width:column.Width, Height:this.RowHeight };
|
|
130377
|
+
rtItem.Right=rtItem.Left+rtItem.Width;
|
|
130378
|
+
rtItem.Bottom=rtItem.Top+rtItem.Height;
|
|
130379
|
+
drawInfo.Rect=rtItem;
|
|
130380
|
+
|
|
130381
|
+
this.GetCustomCheckBoxDrawInfo(data, column, drawInfo);
|
|
130382
|
+
}
|
|
130383
|
+
else if (column.Type==REPORT_COLUMN_ID.CUSTOM_BUTTON_ID)
|
|
130384
|
+
{
|
|
130385
|
+
rtItem={ Left:left, Top:top, Width:column.Width, Height:this.RowHeight };
|
|
130386
|
+
rtItem.Right=rtItem.Left+rtItem.Width;
|
|
130387
|
+
rtItem.Bottom=rtItem.Top+rtItem.Height;
|
|
130388
|
+
drawInfo.Rect=rtItem;
|
|
130389
|
+
|
|
130390
|
+
this.GetCustomButtonDrawInfo(data, column, drawInfo);
|
|
130391
|
+
}
|
|
130329
130392
|
|
|
130330
130393
|
|
|
130331
130394
|
//拖拽行颜色
|
|
@@ -130340,10 +130403,14 @@ function ChartReport()
|
|
|
130340
130403
|
{
|
|
130341
130404
|
this.DrawIconItem(drawInfo, x, top, textWidth);
|
|
130342
130405
|
}
|
|
130343
|
-
else if (column.Type==REPORT_COLUMN_ID.CHECKBOX_ID)
|
|
130406
|
+
else if (column.Type==REPORT_COLUMN_ID.CHECKBOX_ID || column.Type==REPORT_COLUMN_ID.CUSTOM_CHECKBOX_ID)
|
|
130344
130407
|
{
|
|
130345
130408
|
this.DrawCheckbox(drawInfo, left, top, itemWidth);
|
|
130346
130409
|
}
|
|
130410
|
+
else if (column.Type==REPORT_COLUMN_ID.CUSTOM_BUTTON_ID)
|
|
130411
|
+
{
|
|
130412
|
+
this.DrawButton(drawInfo, left, top, itemWidth);
|
|
130413
|
+
}
|
|
130347
130414
|
else
|
|
130348
130415
|
{
|
|
130349
130416
|
if (data.FlashBG && data.FlashBG.Data && column.ID!=undefined)
|
|
@@ -130377,7 +130444,7 @@ function ChartReport()
|
|
|
130377
130444
|
|
|
130378
130445
|
if (drawInfo.Botton)
|
|
130379
130446
|
{
|
|
130380
|
-
var buttonData={ Stock:stock, Index:index, Column:column, Rect:drawInfo.Botton.Rect, Type:drawInfo.Botton.Type };
|
|
130447
|
+
var buttonData={ Stock:stock, Index:index, Column:column, Rect:drawInfo.Botton.Rect, Type:drawInfo.Botton.Type, Data:drawInfo.Data };
|
|
130381
130448
|
this.ButtonRect.push(buttonData);
|
|
130382
130449
|
}
|
|
130383
130450
|
}
|
|
@@ -130437,9 +130504,9 @@ function ChartReport()
|
|
|
130437
130504
|
}
|
|
130438
130505
|
}
|
|
130439
130506
|
|
|
130440
|
-
this.Canvas.textBaseline="
|
|
130507
|
+
this.Canvas.textBaseline="bottom";
|
|
130441
130508
|
this.Canvas.fillStyle=drawInfo.TextColor;
|
|
130442
|
-
this.Canvas.fillText(text,x,top+this.ItemMergin.
|
|
130509
|
+
this.Canvas.fillText(text,x,top+this.RowHeight-this.ItemMergin.Bottom);
|
|
130443
130510
|
|
|
130444
130511
|
if (bClip) this.Canvas.restore();
|
|
130445
130512
|
}
|
|
@@ -130633,6 +130700,32 @@ function ChartReport()
|
|
|
130633
130700
|
}
|
|
130634
130701
|
}
|
|
130635
130702
|
|
|
130703
|
+
this.GetCustomCheckBoxDrawInfo=function(data, column, drawInfo)
|
|
130704
|
+
{
|
|
130705
|
+
var checkData=this.GetExtendData(data, column);
|
|
130706
|
+
if (!checkData) return;
|
|
130707
|
+
if (!IFrameSplitOperator.IsBool(checkData.Checked)) return;
|
|
130708
|
+
|
|
130709
|
+
drawInfo.Checked=checkData.Checked;
|
|
130710
|
+
drawInfo.Enable=true;
|
|
130711
|
+
drawInfo.Data=checkData;
|
|
130712
|
+
if (IFrameSplitOperator.IsBool(checkData.DisableCheckBox)) drawInfo.Enable=!checkData.DisableCheckBox;
|
|
130713
|
+
drawInfo.CheckBox=column.CheckBox;
|
|
130714
|
+
}
|
|
130715
|
+
|
|
130716
|
+
this.GetCustomButtonDrawInfo=function(data, column, drawInfo)
|
|
130717
|
+
{
|
|
130718
|
+
var buttonData=this.GetExtendData(data, column);
|
|
130719
|
+
if (!buttonData) return;
|
|
130720
|
+
|
|
130721
|
+
drawInfo.Text=buttonData.Title;
|
|
130722
|
+
drawInfo.Button=column.Button;
|
|
130723
|
+
drawInfo.Font=column.Button.Font;
|
|
130724
|
+
drawInfo.Enable=true;
|
|
130725
|
+
drawInfo.Data=buttonData;
|
|
130726
|
+
if (IFrameSplitOperator.IsBool(buttonData.Enable)) drawInfo.Enable=buttonData.Enable;
|
|
130727
|
+
}
|
|
130728
|
+
|
|
130636
130729
|
this.FormaTimeDrawInfo=function(column, stock, drawInfo, data)
|
|
130637
130730
|
{
|
|
130638
130731
|
if (!IFrameSplitOperator.IsNumber(stock.Time)) return;
|
|
@@ -130793,9 +130886,9 @@ function ChartReport()
|
|
|
130793
130886
|
}
|
|
130794
130887
|
}
|
|
130795
130888
|
|
|
130796
|
-
this.Canvas.textBaseline="
|
|
130889
|
+
this.Canvas.textBaseline="bottom";
|
|
130797
130890
|
this.Canvas.fillStyle=textColor;
|
|
130798
|
-
this.Canvas.fillText(text,x,top+this.ItemMergin.
|
|
130891
|
+
this.Canvas.fillText(text,x,top+this.RowHeight-this.ItemMergin.Bottom);
|
|
130799
130892
|
|
|
130800
130893
|
if (bClip) this.Canvas.restore();
|
|
130801
130894
|
}
|
|
@@ -130899,32 +130992,80 @@ function ChartReport()
|
|
|
130899
130992
|
|
|
130900
130993
|
this.DrawCheckbox=function(drawInfo, left, top, width)
|
|
130901
130994
|
{
|
|
130995
|
+
if (!IFrameSplitOperator.IsBool(drawInfo.Checked)) return;
|
|
130996
|
+
if (!drawInfo.CheckBox) return;
|
|
130997
|
+
|
|
130998
|
+
drawInfo.Font=`${drawInfo.CheckBox.Size*this.DevicePixelRatio}px ${drawInfo.CheckBox.Family}`;
|
|
130902
130999
|
var textAlign=drawInfo.TextAlign;
|
|
130903
|
-
var size=
|
|
130904
|
-
|
|
130905
|
-
var
|
|
130906
|
-
var y=top+this.RowHeight-this.CheckBoxConfig.Margin.Bottom;
|
|
131000
|
+
var size=drawInfo.CheckBox.Size*this.DevicePixelRatio;
|
|
131001
|
+
var x=left+drawInfo.CheckBox.Margin.Left;
|
|
131002
|
+
var y=top+this.RowHeight-drawInfo.CheckBox.Margin.Bottom;
|
|
130907
131003
|
if (textAlign=='center') x=left+width/2-size/2;
|
|
130908
|
-
else if (textAlign=='right') x=left+width-
|
|
131004
|
+
else if (textAlign=='right') x=left+width-drawInfo.CheckBox.Margin.Right;
|
|
130909
131005
|
|
|
130910
131006
|
this.Canvas.font=drawInfo.Font;
|
|
130911
131007
|
this.Canvas.textBaseline="bottom";
|
|
130912
131008
|
this.Canvas.textAlign="left";
|
|
130913
131009
|
if (drawInfo.Checked===true)
|
|
130914
131010
|
{
|
|
130915
|
-
this.Canvas.fillStyle=
|
|
130916
|
-
this.Canvas.
|
|
131011
|
+
if (drawInfo.Enable===false) this.Canvas.fillStyle=drawInfo.CheckBox.Checked.DisableColor;
|
|
131012
|
+
else this.Canvas.fillStyle=drawInfo.CheckBox.Checked.Color;
|
|
131013
|
+
this.Canvas.fillText(drawInfo.CheckBox.Checked.Symbol,x,y);
|
|
130917
131014
|
}
|
|
130918
131015
|
else if (drawInfo.Checked===false)
|
|
130919
131016
|
{
|
|
130920
|
-
this.Canvas.fillStyle=
|
|
130921
|
-
this.Canvas.
|
|
131017
|
+
if (drawInfo.Enable===false) this.Canvas.fillStyle=drawInfo.CheckBox.Unchecked.DisableColor;
|
|
131018
|
+
else this.Canvas.fillStyle=drawInfo.CheckBox.Unchecked.Color;
|
|
131019
|
+
this.Canvas.fillText(drawInfo.CheckBox.Unchecked.Symbol,x,y);
|
|
130922
131020
|
}
|
|
130923
131021
|
|
|
130924
|
-
|
|
130925
|
-
|
|
130926
|
-
|
|
130927
|
-
|
|
131022
|
+
if (drawInfo.Enable)
|
|
131023
|
+
{
|
|
131024
|
+
var rtBox={ Left:x, Bottom:y, Width:size, Height:size };
|
|
131025
|
+
rtBox.Right=rtBox.Left+rtBox.Width;
|
|
131026
|
+
rtBox.Top=rtBox.Bottom-rtBox.Height;
|
|
131027
|
+
drawInfo.Botton={ Rect:rtBox, Type:0 };
|
|
131028
|
+
}
|
|
131029
|
+
}
|
|
131030
|
+
|
|
131031
|
+
this.DrawButton=function(drawInfo, left, top, width)
|
|
131032
|
+
{
|
|
131033
|
+
if (!drawInfo.Button) return;
|
|
131034
|
+
|
|
131035
|
+
var rtBG=
|
|
131036
|
+
{
|
|
131037
|
+
Left:left+drawInfo.Button.Margin.Left, Top:top+drawInfo.Button.Margin.Top,
|
|
131038
|
+
Height:this.RowHeight-drawInfo.Button.Margin.Top-drawInfo.Button.Margin.Bottom,
|
|
131039
|
+
Width:width-drawInfo.Button.Margin.Left-drawInfo.Button.Margin.Right
|
|
131040
|
+
}
|
|
131041
|
+
rtBG.Right=rtBG.Left+rtBG.Width;
|
|
131042
|
+
rtBG.Bottom=rtBG.Top+rtBG.Height;
|
|
131043
|
+
|
|
131044
|
+
var bgColor=drawInfo.Button.BGColor, textColor=drawInfo.Button.TextColor;
|
|
131045
|
+
if (drawInfo.Enable===false)
|
|
131046
|
+
{
|
|
131047
|
+
bgColor=drawInfo.Button.Disable.BGColor;
|
|
131048
|
+
textColor=drawInfo.Button.Disable.TextColor;
|
|
131049
|
+
}
|
|
131050
|
+
|
|
131051
|
+
this.Canvas.fillStyle=bgColor;
|
|
131052
|
+
this.Canvas.fillRect(rtBG.Left, rtBG.Top,rtBG.Width,rtBG.Height);
|
|
131053
|
+
|
|
131054
|
+
this.Canvas.font=drawInfo.Font;
|
|
131055
|
+
this.Canvas.textBaseline="bottom";
|
|
131056
|
+
this.Canvas.textAlign="left";
|
|
131057
|
+
this.Canvas.fillStyle=textColor;
|
|
131058
|
+
var textWidth=this.Canvas.measureText(drawInfo.Text).width;
|
|
131059
|
+
|
|
131060
|
+
var x=rtBG.Left;
|
|
131061
|
+
if (textWidth<rtBG.Width) x+=(rtBG.Width-textWidth)/2;
|
|
131062
|
+
var y=rtBG.Bottom-drawInfo.Button.TextMargin.Bottom;
|
|
131063
|
+
this.Canvas.fillText(drawInfo.Text,x,y);
|
|
131064
|
+
|
|
131065
|
+
if (drawInfo.Enable)
|
|
131066
|
+
{
|
|
131067
|
+
drawInfo.Botton={ Rect:rtBG, Type:1 };
|
|
131068
|
+
}
|
|
130928
131069
|
}
|
|
130929
131070
|
|
|
130930
131071
|
//字体由外面设置
|
|
@@ -131615,22 +131756,30 @@ function ChartReport()
|
|
|
131615
131756
|
var buttonData=this.GetButtonData(x,y);
|
|
131616
131757
|
if (!buttonData) return true;
|
|
131617
131758
|
|
|
131618
|
-
if (buttonData.Type===0)
|
|
131759
|
+
if (buttonData.Type===0) //checkbox
|
|
131619
131760
|
{
|
|
131620
|
-
var sendData={ Column:buttonData.Column, Index:buttonData.Index, Stock:buttonData.Stock, PreventDefault: false };
|
|
131761
|
+
var sendData={ Column:buttonData.Column, Index:buttonData.Index, Stock:buttonData.Stock, Data:buttonData.Data, PreventDefault: false };
|
|
131621
131762
|
this.SendClickEvent(JSCHART_EVENT_ID.ON_CLICK_REPORT_CHECKBOX, sendData)
|
|
131622
131763
|
|
|
131623
131764
|
if (!sendData.PreventDefault)
|
|
131624
131765
|
{
|
|
131625
|
-
if (IFrameSplitOperator.IsBool(buttonData.
|
|
131626
|
-
buttonData.
|
|
131766
|
+
if (IFrameSplitOperator.IsBool(buttonData.Data.Checked))
|
|
131767
|
+
buttonData.Data.Checked=!buttonData.Data.Checked;
|
|
131627
131768
|
else
|
|
131628
|
-
buttonData.
|
|
131769
|
+
buttonData.Data.Checked=true;
|
|
131629
131770
|
}
|
|
131630
131771
|
|
|
131631
131772
|
status.Redraw=true;
|
|
131632
131773
|
return true;
|
|
131633
131774
|
}
|
|
131775
|
+
else if (buttonData.Type===1) //button
|
|
131776
|
+
{
|
|
131777
|
+
var sendData={ Column:buttonData.Column, Index:buttonData.Index, Stock:buttonData.Stock, Data:buttonData.Data };
|
|
131778
|
+
this.SendClickEvent(JSCHART_EVENT_ID.ON_CLICK_REPORT_BUTTON, sendData)
|
|
131779
|
+
|
|
131780
|
+
status.Redraw=true;
|
|
131781
|
+
return true;
|
|
131782
|
+
}
|
|
131634
131783
|
|
|
131635
131784
|
return false;
|
|
131636
131785
|
}
|
|
@@ -131885,7 +132034,7 @@ function ChartReport()
|
|
|
131885
132034
|
|
|
131886
132035
|
if (x>=rt.Left && x<=rt.Right && y>=rt.Top && y<=rt.Bottom)
|
|
131887
132036
|
{
|
|
131888
|
-
return { Rect:item.Rect, Stock:item.Stock, Column:item.Column, Index:item.Index, Type:item.Type };
|
|
132037
|
+
return { Rect:item.Rect, Stock:item.Stock, Column:item.Column, Index:item.Index, Type:item.Type, Data:item.Data };
|
|
131889
132038
|
}
|
|
131890
132039
|
}
|
|
131891
132040
|
}
|
|
@@ -135720,7 +135869,7 @@ function ScrollBarBGChart()
|
|
|
135720
135869
|
|
|
135721
135870
|
|
|
135722
135871
|
|
|
135723
|
-
var HQCHART_VERSION="1.1.
|
|
135872
|
+
var HQCHART_VERSION="1.1.13564";
|
|
135724
135873
|
|
|
135725
135874
|
function PrintHQChartVersion()
|
|
135726
135875
|
{
|