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
|
@@ -6569,6 +6569,7 @@ var JSCHART_EVENT_ID=
|
|
|
6569
6569
|
|
|
6570
6570
|
ON_DRAW_REPORT_ROW_BG:140, //报价列表整行背景
|
|
6571
6571
|
ON_CLICK_REPORT_CHECKBOX:141, //报价列表checkbox
|
|
6572
|
+
ON_CLICK_REPORT_BUTTON:142, //报价列表按钮
|
|
6572
6573
|
|
|
6573
6574
|
|
|
6574
6575
|
ON_CHANGE_INDEX:150, //切换指标
|
|
@@ -6741,8 +6742,12 @@ var JSCHART_MENU_ID=
|
|
|
6741
6742
|
|
|
6742
6743
|
CMD_CHANGE_DRAG_RECT_SHOW_MODE_ID:38,
|
|
6743
6744
|
|
|
6745
|
+
CMD_SHOW_CORSS_LINE_ID:39, //显示十字光标线
|
|
6746
|
+
|
|
6744
6747
|
|
|
6745
6748
|
CMD_REPORT_CHANGE_BLOCK_ID:60, //报价列表 切换板块ID
|
|
6749
|
+
|
|
6750
|
+
|
|
6746
6751
|
}
|
|
6747
6752
|
|
|
6748
6753
|
|
|
@@ -13524,6 +13529,13 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
13524
13529
|
if (this.ChartDragSelectRect) this.ChartDragSelectRect.ShowMode=param;
|
|
13525
13530
|
}
|
|
13526
13531
|
break;
|
|
13532
|
+
|
|
13533
|
+
case JSCHART_MENU_ID.CMD_SHOW_CORSS_LINE_ID:
|
|
13534
|
+
if (IFrameSplitOperator.IsBool(srcParam))
|
|
13535
|
+
{
|
|
13536
|
+
if (this.ChartCorssCursor) this.ChartCorssCursor.IsShowCorss=srcParam;
|
|
13537
|
+
}
|
|
13538
|
+
break;
|
|
13527
13539
|
}
|
|
13528
13540
|
}
|
|
13529
13541
|
|
|
@@ -54858,8 +54870,9 @@ function HQPriceStringFormat()
|
|
|
54858
54870
|
var event=this.GetEventCallback(JSCHART_EVENT_ID.ON_FORMAT_CORSSCURSOR_Y_TEXT);
|
|
54859
54871
|
if (event)
|
|
54860
54872
|
{
|
|
54861
|
-
var data={ Value:this.Value, FrameID:this.FrameID };
|
|
54873
|
+
var data={ Value:this.Value, FrameID:this.FrameID, PreventDefault:false };
|
|
54862
54874
|
event.Callback(event,data,this);
|
|
54875
|
+
if (data.PreventDefault==true) return false;
|
|
54863
54876
|
}
|
|
54864
54877
|
}
|
|
54865
54878
|
|
|
@@ -54934,8 +54947,10 @@ function HQDateStringFormat()
|
|
|
54934
54947
|
var event=this.GetEventCallback(JSCHART_EVENT_ID.ON_FORMAT_CORSSCURSOR_X_TEXT);
|
|
54935
54948
|
if (event)
|
|
54936
54949
|
{
|
|
54937
|
-
var data={ Item:currentData, Period:this.Data.Period, Date:currentData.Date, Time:currentData.Time,Index:this.Data.DataOffset+index };
|
|
54950
|
+
var data={ Item:currentData, Period:this.Data.Period, Date:currentData.Date, Time:currentData.Time,Index:this.Data.DataOffset+index, PreventDefault:false };
|
|
54938
54951
|
event.Callback(event,data,this);
|
|
54952
|
+
|
|
54953
|
+
if (data.PreventDefault==true) return false;
|
|
54939
54954
|
}
|
|
54940
54955
|
}
|
|
54941
54956
|
|
|
@@ -55074,8 +55089,10 @@ function HQMinuteTimeStringFormat()
|
|
|
55074
55089
|
var event=this.GetEventCallback(JSCHART_EVENT_ID.ON_FORMAT_CORSSCURSOR_X_TEXT);
|
|
55075
55090
|
if (event)
|
|
55076
55091
|
{
|
|
55077
|
-
var data={ Time:time, Index:showIndex };
|
|
55092
|
+
var data={ Time:time, Index:showIndex, PreventDefault:false };
|
|
55078
55093
|
event.Callback(event,data,this);
|
|
55094
|
+
|
|
55095
|
+
if (data.PreventDefault==true) return false;
|
|
55079
55096
|
}
|
|
55080
55097
|
}
|
|
55081
55098
|
|
|
@@ -71111,7 +71128,7 @@ function JSChartResource()
|
|
|
71111
71128
|
|
|
71112
71129
|
Item:
|
|
71113
71130
|
{
|
|
71114
|
-
Mergin:{ Top:2, Bottom:
|
|
71131
|
+
Mergin:{ Top:2, Bottom:4,Left:5, Right:5 }, //单元格四周间距
|
|
71115
71132
|
Font:{ Size:15, Name:"微软雅黑"},
|
|
71116
71133
|
BarMergin:{ Top:2, Left:3, Right:3, Bottom:2 },//单元格字体
|
|
71117
71134
|
NameFont:{ Size:14, Name:"微软雅黑" },
|
|
@@ -78882,6 +78899,9 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
78882
78899
|
if (this.GetExtendChartByClassName("SessionBreaksPaint")) bBGSpit=true;
|
|
78883
78900
|
if (this.GetExtendChartByClassName('StockChip')) bShowStockChip=true; //筹码
|
|
78884
78901
|
|
|
78902
|
+
var bShowCorss=false; //十字光标十字线
|
|
78903
|
+
if (this.ChartCorssCursor) bShowCorss=this.ChartCorssCursor.IsShowCorss;
|
|
78904
|
+
|
|
78885
78905
|
var aryMenu=
|
|
78886
78906
|
[
|
|
78887
78907
|
{
|
|
@@ -79040,6 +79060,9 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
79040
79060
|
{ Name:"画图工具", Data:{ ID:JSCHART_MENU_ID.CMD_SHOW_DRAWTOOL_ID, Args:[]}, Checked:this.IsShowDrawToolDialog() },
|
|
79041
79061
|
|
|
79042
79062
|
{ Name:"移动筹码图", Data:{ ID:bShowStockChip?JSCHART_MENU_ID.CMD_HIDE_STOCKCHIP_ID:JSCHART_MENU_ID.CMD_SHOW_STOCKCHIP_ID, Args:[]}, Checked:bShowStockChip},
|
|
79063
|
+
|
|
79064
|
+
{ Name:"十字光标线", Data:{ ID:JSCHART_MENU_ID.CMD_SHOW_CORSS_LINE_ID, Args:[!bShowCorss]}, Checked:bShowCorss },
|
|
79065
|
+
|
|
79043
79066
|
{ Name:JSPopMenu.SEPARATOR_LINE_NAME },
|
|
79044
79067
|
{
|
|
79045
79068
|
Name:"鼠标形状",
|
|
@@ -82544,6 +82567,9 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
82544
82567
|
if (item && item.Symbol) aryOverlaySymbol.push(item.Symbol)
|
|
82545
82568
|
}
|
|
82546
82569
|
|
|
82570
|
+
var bShowCorss=false; //十字光标十字线
|
|
82571
|
+
if (this.ChartCorssCursor) bShowCorss=this.ChartCorssCursor.IsShowCorss;
|
|
82572
|
+
|
|
82547
82573
|
var aryMenu=
|
|
82548
82574
|
[
|
|
82549
82575
|
{
|
|
@@ -82612,6 +82638,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
82612
82638
|
SubMenu:
|
|
82613
82639
|
[
|
|
82614
82640
|
{ Name:"画图工具", Data:{ ID:JSCHART_MENU_ID.CMD_SHOW_DRAWTOOL_ID, Args:[]}, Checked:this.IsShowDrawToolDialog()},
|
|
82641
|
+
{ Name:"十字光标线", Data:{ ID:JSCHART_MENU_ID.CMD_SHOW_CORSS_LINE_ID, Args:[!bShowCorss]}, Checked:bShowCorss },
|
|
82615
82642
|
|
|
82616
82643
|
{
|
|
82617
82644
|
Name:"区间选择样式",
|
|
@@ -82621,7 +82648,9 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
82621
82648
|
{ Name:"样式2", Data:{ ID:JSCHART_MENU_ID.CMD_CHANGE_DRAG_RECT_SHOW_MODE_ID, Args:[1]}, Checked:1==this.ChartDragSelectRect.ShowMode },
|
|
82622
82649
|
{ Name:"样式3", Data:{ ID:JSCHART_MENU_ID.CMD_CHANGE_DRAG_RECT_SHOW_MODE_ID, Args:[2]}, Checked:2==this.ChartDragSelectRect.ShowMode },
|
|
82623
82650
|
]
|
|
82624
|
-
}
|
|
82651
|
+
},
|
|
82652
|
+
|
|
82653
|
+
|
|
82625
82654
|
]
|
|
82626
82655
|
}
|
|
82627
82656
|
|
|
@@ -123573,7 +123602,7 @@ function GetBlackStyle()
|
|
|
123573
123602
|
|
|
123574
123603
|
Item:
|
|
123575
123604
|
{
|
|
123576
|
-
Mergin:{ Top:2, Bottom:
|
|
123605
|
+
Mergin:{ Top:2, Bottom:4,Left:5, Right:5 },
|
|
123577
123606
|
Font:{ Size:15, Name:"微软雅黑"},
|
|
123578
123607
|
BarMergin:{ Top:2, Left:3, Right:3, Bottom:2 },
|
|
123579
123608
|
NameFont:{ Size:14, Name:"微软雅黑" },
|
|
@@ -128921,13 +128950,7 @@ var REPORT_COLUMN_ID=
|
|
|
128921
128950
|
TIME_ID:31, //时间 hhmmss / hhmm / hhmmss.fff
|
|
128922
128951
|
DATE_ID:32, //日期
|
|
128923
128952
|
|
|
128924
|
-
CHECKBOX_ID:33, //单选框
|
|
128925
|
-
CHECKBOX2_ID:34,
|
|
128926
|
-
CHECKBOX3_ID:35,
|
|
128927
|
-
CHECKBOX4_ID:36,
|
|
128928
|
-
CHECKBOX5_ID:37,
|
|
128929
|
-
CHECKBOX6_ID:38,
|
|
128930
|
-
|
|
128953
|
+
CHECKBOX_ID:33, //单选框
|
|
128931
128954
|
|
|
128932
128955
|
SYMBOL_NAME_ID:99,
|
|
128933
128956
|
|
|
@@ -128935,6 +128958,8 @@ var REPORT_COLUMN_ID=
|
|
|
128935
128958
|
CUSTOM_NUMBER_TEXT_ID:101, //自定义数值型
|
|
128936
128959
|
CUSTOM_DATETIME_TEXT_ID:102, //自定义日期类型
|
|
128937
128960
|
CUSTOM_ICON_ID:103, //自定义图标
|
|
128961
|
+
CUSTOM_CHECKBOX_ID:104, //自定义checkbox
|
|
128962
|
+
CUSTOM_BUTTON_ID:105, //自定义按钮
|
|
128938
128963
|
}
|
|
128939
128964
|
|
|
128940
128965
|
var MAP_COLUMN_FIELD=new Map([
|
|
@@ -129303,6 +129328,21 @@ function ChartReport()
|
|
|
129303
129328
|
if (IFrameSplitOperator.IsNumber(item.ValueType)) colItem.FormatType=item.ValueType; //输出样式
|
|
129304
129329
|
|
|
129305
129330
|
}
|
|
129331
|
+
else if (item.Type==REPORT_COLUMN_ID.CUSTOM_CHECKBOX_ID)
|
|
129332
|
+
{
|
|
129333
|
+
if (!IFrameSplitOperator.IsNumber(item.DataIndex) && !IFrameSplitOperator.IsNumber(item.BlockIndex)) continue;
|
|
129334
|
+
if (IFrameSplitOperator.IsNumber(item.DataIndex)) colItem.DataIndex=item.DataIndex; //数据在扩展数据索引列
|
|
129335
|
+
if (IFrameSplitOperator.IsNumber(item.BlockIndex)) colItem.BlockIndex=item.BlockIndex;
|
|
129336
|
+
if (item.CheckBox) colItem.CheckBox=CloneData(item.CheckBox);
|
|
129337
|
+
else colItem.CheckBox=CloneData(g_JSChartResource.Report.CheckBox);
|
|
129338
|
+
}
|
|
129339
|
+
else if (item.Type==REPORT_COLUMN_ID.CUSTOM_BUTTON_ID)
|
|
129340
|
+
{
|
|
129341
|
+
if (!IFrameSplitOperator.IsNumber(item.DataIndex) && !IFrameSplitOperator.IsNumber(item.BlockIndex)) continue;
|
|
129342
|
+
if (IFrameSplitOperator.IsNumber(item.DataIndex)) colItem.DataIndex=item.DataIndex; //数据在扩展数据索引列
|
|
129343
|
+
if (IFrameSplitOperator.IsNumber(item.BlockIndex)) colItem.BlockIndex=item.BlockIndex;
|
|
129344
|
+
if (item.Button) colItem.Button=CloneData(item.Button);
|
|
129345
|
+
}
|
|
129306
129346
|
else if (item.Type==REPORT_COLUMN_ID.CUSTOM_ICON_ID)
|
|
129307
129347
|
{
|
|
129308
129348
|
|
|
@@ -129319,6 +129359,7 @@ function ChartReport()
|
|
|
129319
129359
|
{
|
|
129320
129360
|
if (IFrameSplitOperator.IsNumber(item.FormatType)) colItem.FormatType=item.FormatType;
|
|
129321
129361
|
}
|
|
129362
|
+
|
|
129322
129363
|
|
|
129323
129364
|
this.Column.push(colItem);
|
|
129324
129365
|
}
|
|
@@ -129415,9 +129456,11 @@ function ChartReport()
|
|
|
129415
129456
|
{ Type:REPORT_COLUMN_ID.TIME_ID, Title:"时间", TextAlign:"left", ValueType:0, TextColor:g_JSChartResource.Report.FieldColor.Text, MaxText:"99:99:99.999" },
|
|
129416
129457
|
{ Type:REPORT_COLUMN_ID.DATE_ID, Title:"日期", TextAlign:"left", FormatType:0, TextColor:g_JSChartResource.Report.FieldColor.Text, MaxText:"9999-99-99" },
|
|
129417
129458
|
|
|
129418
|
-
{ Type:REPORT_COLUMN_ID.CHECKBOX_ID, Title:"", TextAlign:"center", FixedWidth:20*GetDevicePixelRatio() }
|
|
129459
|
+
{ Type:REPORT_COLUMN_ID.CHECKBOX_ID, Title:"", TextAlign:"center", FixedWidth:20*GetDevicePixelRatio() },
|
|
129419
129460
|
|
|
129420
|
-
|
|
129461
|
+
{ Type:REPORT_COLUMN_ID.CUSTOM_CHECKBOX_ID, Title:"", TextAlign:"center", FixedWidth:20*GetDevicePixelRatio() },
|
|
129462
|
+
|
|
129463
|
+
{ Type:REPORT_COLUMN_ID.CUSTOM_BUTTON_ID, Title:"", TextAlign:"center", FixedWidth:50*GetDevicePixelRatio() }
|
|
129421
129464
|
];
|
|
129422
129465
|
|
|
129423
129466
|
for(var i=0;i<DEFAULT_COLUMN.length;++i)
|
|
@@ -130366,10 +130409,30 @@ function ChartReport()
|
|
|
130366
130409
|
rtItem.Bottom=rtItem.Top+rtItem.Height;
|
|
130367
130410
|
drawInfo.Rect=rtItem;
|
|
130368
130411
|
drawInfo.Checked=false;
|
|
130369
|
-
drawInfo.
|
|
130412
|
+
drawInfo.Enable=true;
|
|
130413
|
+
drawInfo.CheckBox=this.CheckBoxConfig;
|
|
130414
|
+
drawInfo.Data=stock;
|
|
130370
130415
|
if (stock && IFrameSplitOperator.IsBool(stock.Checked))
|
|
130371
130416
|
drawInfo.Checked=stock.Checked;
|
|
130372
130417
|
}
|
|
130418
|
+
else if (column.Type==REPORT_COLUMN_ID.CUSTOM_CHECKBOX_ID)
|
|
130419
|
+
{
|
|
130420
|
+
rtItem={ Left:left, Top:top, Width:column.Width, Height:this.RowHeight };
|
|
130421
|
+
rtItem.Right=rtItem.Left+rtItem.Width;
|
|
130422
|
+
rtItem.Bottom=rtItem.Top+rtItem.Height;
|
|
130423
|
+
drawInfo.Rect=rtItem;
|
|
130424
|
+
|
|
130425
|
+
this.GetCustomCheckBoxDrawInfo(data, column, drawInfo);
|
|
130426
|
+
}
|
|
130427
|
+
else if (column.Type==REPORT_COLUMN_ID.CUSTOM_BUTTON_ID)
|
|
130428
|
+
{
|
|
130429
|
+
rtItem={ Left:left, Top:top, Width:column.Width, Height:this.RowHeight };
|
|
130430
|
+
rtItem.Right=rtItem.Left+rtItem.Width;
|
|
130431
|
+
rtItem.Bottom=rtItem.Top+rtItem.Height;
|
|
130432
|
+
drawInfo.Rect=rtItem;
|
|
130433
|
+
|
|
130434
|
+
this.GetCustomButtonDrawInfo(data, column, drawInfo);
|
|
130435
|
+
}
|
|
130373
130436
|
|
|
130374
130437
|
|
|
130375
130438
|
//拖拽行颜色
|
|
@@ -130384,10 +130447,14 @@ function ChartReport()
|
|
|
130384
130447
|
{
|
|
130385
130448
|
this.DrawIconItem(drawInfo, x, top, textWidth);
|
|
130386
130449
|
}
|
|
130387
|
-
else if (column.Type==REPORT_COLUMN_ID.CHECKBOX_ID)
|
|
130450
|
+
else if (column.Type==REPORT_COLUMN_ID.CHECKBOX_ID || column.Type==REPORT_COLUMN_ID.CUSTOM_CHECKBOX_ID)
|
|
130388
130451
|
{
|
|
130389
130452
|
this.DrawCheckbox(drawInfo, left, top, itemWidth);
|
|
130390
130453
|
}
|
|
130454
|
+
else if (column.Type==REPORT_COLUMN_ID.CUSTOM_BUTTON_ID)
|
|
130455
|
+
{
|
|
130456
|
+
this.DrawButton(drawInfo, left, top, itemWidth);
|
|
130457
|
+
}
|
|
130391
130458
|
else
|
|
130392
130459
|
{
|
|
130393
130460
|
if (data.FlashBG && data.FlashBG.Data && column.ID!=undefined)
|
|
@@ -130421,7 +130488,7 @@ function ChartReport()
|
|
|
130421
130488
|
|
|
130422
130489
|
if (drawInfo.Botton)
|
|
130423
130490
|
{
|
|
130424
|
-
var buttonData={ Stock:stock, Index:index, Column:column, Rect:drawInfo.Botton.Rect, Type:drawInfo.Botton.Type };
|
|
130491
|
+
var buttonData={ Stock:stock, Index:index, Column:column, Rect:drawInfo.Botton.Rect, Type:drawInfo.Botton.Type, Data:drawInfo.Data };
|
|
130425
130492
|
this.ButtonRect.push(buttonData);
|
|
130426
130493
|
}
|
|
130427
130494
|
}
|
|
@@ -130481,9 +130548,9 @@ function ChartReport()
|
|
|
130481
130548
|
}
|
|
130482
130549
|
}
|
|
130483
130550
|
|
|
130484
|
-
this.Canvas.textBaseline="
|
|
130551
|
+
this.Canvas.textBaseline="bottom";
|
|
130485
130552
|
this.Canvas.fillStyle=drawInfo.TextColor;
|
|
130486
|
-
this.Canvas.fillText(text,x,top+this.ItemMergin.
|
|
130553
|
+
this.Canvas.fillText(text,x,top+this.RowHeight-this.ItemMergin.Bottom);
|
|
130487
130554
|
|
|
130488
130555
|
if (bClip) this.Canvas.restore();
|
|
130489
130556
|
}
|
|
@@ -130677,6 +130744,32 @@ function ChartReport()
|
|
|
130677
130744
|
}
|
|
130678
130745
|
}
|
|
130679
130746
|
|
|
130747
|
+
this.GetCustomCheckBoxDrawInfo=function(data, column, drawInfo)
|
|
130748
|
+
{
|
|
130749
|
+
var checkData=this.GetExtendData(data, column);
|
|
130750
|
+
if (!checkData) return;
|
|
130751
|
+
if (!IFrameSplitOperator.IsBool(checkData.Checked)) return;
|
|
130752
|
+
|
|
130753
|
+
drawInfo.Checked=checkData.Checked;
|
|
130754
|
+
drawInfo.Enable=true;
|
|
130755
|
+
drawInfo.Data=checkData;
|
|
130756
|
+
if (IFrameSplitOperator.IsBool(checkData.DisableCheckBox)) drawInfo.Enable=!checkData.DisableCheckBox;
|
|
130757
|
+
drawInfo.CheckBox=column.CheckBox;
|
|
130758
|
+
}
|
|
130759
|
+
|
|
130760
|
+
this.GetCustomButtonDrawInfo=function(data, column, drawInfo)
|
|
130761
|
+
{
|
|
130762
|
+
var buttonData=this.GetExtendData(data, column);
|
|
130763
|
+
if (!buttonData) return;
|
|
130764
|
+
|
|
130765
|
+
drawInfo.Text=buttonData.Title;
|
|
130766
|
+
drawInfo.Button=column.Button;
|
|
130767
|
+
drawInfo.Font=column.Button.Font;
|
|
130768
|
+
drawInfo.Enable=true;
|
|
130769
|
+
drawInfo.Data=buttonData;
|
|
130770
|
+
if (IFrameSplitOperator.IsBool(buttonData.Enable)) drawInfo.Enable=buttonData.Enable;
|
|
130771
|
+
}
|
|
130772
|
+
|
|
130680
130773
|
this.FormaTimeDrawInfo=function(column, stock, drawInfo, data)
|
|
130681
130774
|
{
|
|
130682
130775
|
if (!IFrameSplitOperator.IsNumber(stock.Time)) return;
|
|
@@ -130837,9 +130930,9 @@ function ChartReport()
|
|
|
130837
130930
|
}
|
|
130838
130931
|
}
|
|
130839
130932
|
|
|
130840
|
-
this.Canvas.textBaseline="
|
|
130933
|
+
this.Canvas.textBaseline="bottom";
|
|
130841
130934
|
this.Canvas.fillStyle=textColor;
|
|
130842
|
-
this.Canvas.fillText(text,x,top+this.ItemMergin.
|
|
130935
|
+
this.Canvas.fillText(text,x,top+this.RowHeight-this.ItemMergin.Bottom);
|
|
130843
130936
|
|
|
130844
130937
|
if (bClip) this.Canvas.restore();
|
|
130845
130938
|
}
|
|
@@ -130943,32 +131036,80 @@ function ChartReport()
|
|
|
130943
131036
|
|
|
130944
131037
|
this.DrawCheckbox=function(drawInfo, left, top, width)
|
|
130945
131038
|
{
|
|
131039
|
+
if (!IFrameSplitOperator.IsBool(drawInfo.Checked)) return;
|
|
131040
|
+
if (!drawInfo.CheckBox) return;
|
|
131041
|
+
|
|
131042
|
+
drawInfo.Font=`${drawInfo.CheckBox.Size*this.DevicePixelRatio}px ${drawInfo.CheckBox.Family}`;
|
|
130946
131043
|
var textAlign=drawInfo.TextAlign;
|
|
130947
|
-
var size=
|
|
130948
|
-
|
|
130949
|
-
var
|
|
130950
|
-
var y=top+this.RowHeight-this.CheckBoxConfig.Margin.Bottom;
|
|
131044
|
+
var size=drawInfo.CheckBox.Size*this.DevicePixelRatio;
|
|
131045
|
+
var x=left+drawInfo.CheckBox.Margin.Left;
|
|
131046
|
+
var y=top+this.RowHeight-drawInfo.CheckBox.Margin.Bottom;
|
|
130951
131047
|
if (textAlign=='center') x=left+width/2-size/2;
|
|
130952
|
-
else if (textAlign=='right') x=left+width-
|
|
131048
|
+
else if (textAlign=='right') x=left+width-drawInfo.CheckBox.Margin.Right;
|
|
130953
131049
|
|
|
130954
131050
|
this.Canvas.font=drawInfo.Font;
|
|
130955
131051
|
this.Canvas.textBaseline="bottom";
|
|
130956
131052
|
this.Canvas.textAlign="left";
|
|
130957
131053
|
if (drawInfo.Checked===true)
|
|
130958
131054
|
{
|
|
130959
|
-
this.Canvas.fillStyle=
|
|
130960
|
-
this.Canvas.
|
|
131055
|
+
if (drawInfo.Enable===false) this.Canvas.fillStyle=drawInfo.CheckBox.Checked.DisableColor;
|
|
131056
|
+
else this.Canvas.fillStyle=drawInfo.CheckBox.Checked.Color;
|
|
131057
|
+
this.Canvas.fillText(drawInfo.CheckBox.Checked.Symbol,x,y);
|
|
130961
131058
|
}
|
|
130962
131059
|
else if (drawInfo.Checked===false)
|
|
130963
131060
|
{
|
|
130964
|
-
this.Canvas.fillStyle=
|
|
130965
|
-
this.Canvas.
|
|
131061
|
+
if (drawInfo.Enable===false) this.Canvas.fillStyle=drawInfo.CheckBox.Unchecked.DisableColor;
|
|
131062
|
+
else this.Canvas.fillStyle=drawInfo.CheckBox.Unchecked.Color;
|
|
131063
|
+
this.Canvas.fillText(drawInfo.CheckBox.Unchecked.Symbol,x,y);
|
|
130966
131064
|
}
|
|
130967
131065
|
|
|
130968
|
-
|
|
130969
|
-
|
|
130970
|
-
|
|
130971
|
-
|
|
131066
|
+
if (drawInfo.Enable)
|
|
131067
|
+
{
|
|
131068
|
+
var rtBox={ Left:x, Bottom:y, Width:size, Height:size };
|
|
131069
|
+
rtBox.Right=rtBox.Left+rtBox.Width;
|
|
131070
|
+
rtBox.Top=rtBox.Bottom-rtBox.Height;
|
|
131071
|
+
drawInfo.Botton={ Rect:rtBox, Type:0 };
|
|
131072
|
+
}
|
|
131073
|
+
}
|
|
131074
|
+
|
|
131075
|
+
this.DrawButton=function(drawInfo, left, top, width)
|
|
131076
|
+
{
|
|
131077
|
+
if (!drawInfo.Button) return;
|
|
131078
|
+
|
|
131079
|
+
var rtBG=
|
|
131080
|
+
{
|
|
131081
|
+
Left:left+drawInfo.Button.Margin.Left, Top:top+drawInfo.Button.Margin.Top,
|
|
131082
|
+
Height:this.RowHeight-drawInfo.Button.Margin.Top-drawInfo.Button.Margin.Bottom,
|
|
131083
|
+
Width:width-drawInfo.Button.Margin.Left-drawInfo.Button.Margin.Right
|
|
131084
|
+
}
|
|
131085
|
+
rtBG.Right=rtBG.Left+rtBG.Width;
|
|
131086
|
+
rtBG.Bottom=rtBG.Top+rtBG.Height;
|
|
131087
|
+
|
|
131088
|
+
var bgColor=drawInfo.Button.BGColor, textColor=drawInfo.Button.TextColor;
|
|
131089
|
+
if (drawInfo.Enable===false)
|
|
131090
|
+
{
|
|
131091
|
+
bgColor=drawInfo.Button.Disable.BGColor;
|
|
131092
|
+
textColor=drawInfo.Button.Disable.TextColor;
|
|
131093
|
+
}
|
|
131094
|
+
|
|
131095
|
+
this.Canvas.fillStyle=bgColor;
|
|
131096
|
+
this.Canvas.fillRect(rtBG.Left, rtBG.Top,rtBG.Width,rtBG.Height);
|
|
131097
|
+
|
|
131098
|
+
this.Canvas.font=drawInfo.Font;
|
|
131099
|
+
this.Canvas.textBaseline="bottom";
|
|
131100
|
+
this.Canvas.textAlign="left";
|
|
131101
|
+
this.Canvas.fillStyle=textColor;
|
|
131102
|
+
var textWidth=this.Canvas.measureText(drawInfo.Text).width;
|
|
131103
|
+
|
|
131104
|
+
var x=rtBG.Left;
|
|
131105
|
+
if (textWidth<rtBG.Width) x+=(rtBG.Width-textWidth)/2;
|
|
131106
|
+
var y=rtBG.Bottom-drawInfo.Button.TextMargin.Bottom;
|
|
131107
|
+
this.Canvas.fillText(drawInfo.Text,x,y);
|
|
131108
|
+
|
|
131109
|
+
if (drawInfo.Enable)
|
|
131110
|
+
{
|
|
131111
|
+
drawInfo.Botton={ Rect:rtBG, Type:1 };
|
|
131112
|
+
}
|
|
130972
131113
|
}
|
|
130973
131114
|
|
|
130974
131115
|
//字体由外面设置
|
|
@@ -131659,22 +131800,30 @@ function ChartReport()
|
|
|
131659
131800
|
var buttonData=this.GetButtonData(x,y);
|
|
131660
131801
|
if (!buttonData) return true;
|
|
131661
131802
|
|
|
131662
|
-
if (buttonData.Type===0)
|
|
131803
|
+
if (buttonData.Type===0) //checkbox
|
|
131663
131804
|
{
|
|
131664
|
-
var sendData={ Column:buttonData.Column, Index:buttonData.Index, Stock:buttonData.Stock, PreventDefault: false };
|
|
131805
|
+
var sendData={ Column:buttonData.Column, Index:buttonData.Index, Stock:buttonData.Stock, Data:buttonData.Data, PreventDefault: false };
|
|
131665
131806
|
this.SendClickEvent(JSCHART_EVENT_ID.ON_CLICK_REPORT_CHECKBOX, sendData)
|
|
131666
131807
|
|
|
131667
131808
|
if (!sendData.PreventDefault)
|
|
131668
131809
|
{
|
|
131669
|
-
if (IFrameSplitOperator.IsBool(buttonData.
|
|
131670
|
-
buttonData.
|
|
131810
|
+
if (IFrameSplitOperator.IsBool(buttonData.Data.Checked))
|
|
131811
|
+
buttonData.Data.Checked=!buttonData.Data.Checked;
|
|
131671
131812
|
else
|
|
131672
|
-
buttonData.
|
|
131813
|
+
buttonData.Data.Checked=true;
|
|
131673
131814
|
}
|
|
131674
131815
|
|
|
131675
131816
|
status.Redraw=true;
|
|
131676
131817
|
return true;
|
|
131677
131818
|
}
|
|
131819
|
+
else if (buttonData.Type===1) //button
|
|
131820
|
+
{
|
|
131821
|
+
var sendData={ Column:buttonData.Column, Index:buttonData.Index, Stock:buttonData.Stock, Data:buttonData.Data };
|
|
131822
|
+
this.SendClickEvent(JSCHART_EVENT_ID.ON_CLICK_REPORT_BUTTON, sendData)
|
|
131823
|
+
|
|
131824
|
+
status.Redraw=true;
|
|
131825
|
+
return true;
|
|
131826
|
+
}
|
|
131678
131827
|
|
|
131679
131828
|
return false;
|
|
131680
131829
|
}
|
|
@@ -131929,7 +132078,7 @@ function ChartReport()
|
|
|
131929
132078
|
|
|
131930
132079
|
if (x>=rt.Left && x<=rt.Right && y>=rt.Top && y<=rt.Bottom)
|
|
131931
132080
|
{
|
|
131932
|
-
return { Rect:item.Rect, Stock:item.Stock, Column:item.Column, Index:item.Index, Type:item.Type };
|
|
132081
|
+
return { Rect:item.Rect, Stock:item.Stock, Column:item.Column, Index:item.Index, Type:item.Type, Data:item.Data };
|
|
131933
132082
|
}
|
|
131934
132083
|
}
|
|
131935
132084
|
}
|
|
@@ -139674,7 +139823,7 @@ function HQChartScriptWorker()
|
|
|
139674
139823
|
|
|
139675
139824
|
|
|
139676
139825
|
|
|
139677
|
-
var HQCHART_VERSION="1.1.
|
|
139826
|
+
var HQCHART_VERSION="1.1.13564";
|
|
139678
139827
|
|
|
139679
139828
|
function PrintHQChartVersion()
|
|
139680
139829
|
{
|