hqchart 1.1.13370 → 1.1.13375
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 +6 -4
- package/package.json +1 -1
- package/src/jscommon/umychart.DialogDrawTool.js +28 -5
- package/src/jscommon/umychart.resource/css/tools.css +21 -0
- package/src/jscommon/umychart.uniapp.h5/umychart.uniapp.h5.js +1 -1
- package/src/jscommon/umychart.version.js +1 -1
- package/src/jscommon/umychart.vue/umychart.vue.js +29 -6
package/lib/umychart.vue.js
CHANGED
|
@@ -13303,11 +13303,13 @@ function JSDialogModifyDraw(){this.DivDialog=null;this.HQChart;this.ChartPicture
|
|
|
13303
13303
|
this.ColorButton=null;this.BGColorButton=null;this.FontColorButton=null;this.RandomLineColor=["rgb(255,69,0)","rgb(173,255,47)","rgb(238,154,73)","rgb(255,105,180)"];//线段颜色
|
|
13304
13304
|
this.RandomBGColor=["rgba(210,251,209,0.8)","rgb(217,217,253)","rgb(255,208,204)","rgb(252,249,206)"];//背景颜色
|
|
13305
13305
|
this.RandomFontColor=["rgb(0,0,0)","rgb(255, 0, 0)","rgb(20, 255, 0)","rgb(255, 0, 255)"];//文字颜色
|
|
13306
|
-
this.AryButton=[{Title:"点击线段颜色",ClassName:'hqchart_drawtool icon-huabi',Type:2,Data:{ID:JS_DRAWTOOL_MENU_ID.CMD_CHANGE_LINE_COLOR_ID}},{Title:"点击字体颜色",ClassName:'hqchart_drawtool icon-zitiyanse',Type:2,Data:{ID:JS_DRAWTOOL_MENU_ID.CMD_CHANGE_FONT_COLOR_ID}},{Title:"点击背景色",ClassName:'hqchart_drawtool icon-zitibeijingse',Type:2,Data:{ID:JS_DRAWTOOL_MENU_ID.CMD_CHANGE_BG_COLOR_ID}},{Title:"
|
|
13307
|
-
switch(item.Data.ID){case JS_DRAWTOOL_MENU_ID.CMD_CHANGE_LINE_COLOR_ID:this.ColorButton=data;break;case JS_DRAWTOOL_MENU_ID.CMD_CHANGE_BG_COLOR_ID:this.BGColorButton=data;divItem.style.display="none";break;case JS_DRAWTOOL_MENU_ID.CMD_CHANGE_FONT_COLOR_ID:this.FontColorButton=data;divItem.style.display="none";break;}parentDivDom.appendChild(divItem);};this.OnClickButton=function(e,data){console.log('[JSDialogModifyDraw::OnClickButton] ',data);if(!data.Item||!data.Item.Data)return;var id=data.Item.Data.ID;switch(id){case JS_DRAWTOOL_MENU_ID.CMD_CHANGE_LINE_COLOR_ID:this.ModifyLineColor();break;case JS_DRAWTOOL_MENU_ID.CMD_DELETE_DRAW_CHART_ID:this.DeleteDrawPicture();break;case JS_DRAWTOOL_MENU_ID.CMD_CHANGE_BG_COLOR_ID:this.ModifyBGColor();break;case JS_DRAWTOOL_MENU_ID.CMD_CHANGE_FONT_COLOR_ID:this.ModifyFontColor();break;}};this.
|
|
13306
|
+
this.AryButton=[{Title:"点击线段颜色",ClassName:'hqchart_drawtool icon-huabi',Type:2,Data:{ID:JS_DRAWTOOL_MENU_ID.CMD_CHANGE_LINE_COLOR_ID}},{Title:"点击字体颜色",ClassName:'hqchart_drawtool icon-zitiyanse',Type:2,Data:{ID:JS_DRAWTOOL_MENU_ID.CMD_CHANGE_FONT_COLOR_ID}},{Title:"点击背景色",ClassName:'hqchart_drawtool icon-zitibeijingse',Type:2,Data:{ID:JS_DRAWTOOL_MENU_ID.CMD_CHANGE_BG_COLOR_ID}},{Title:"删除图形",ClassName:'hqchart_drawtool icon-recycle_bin',Type:2,Data:{ID:JS_DRAWTOOL_MENU_ID.CMD_DELETE_DRAW_CHART_ID}}];this.Inital=function(hqchart){this.HQChart=hqchart;};this.Destroy=function(){this.ChartPicture=null;this.ColorButton=null;if(this.DivDialog){document.body.remove(this.DivDialog);this.DivDialog=null;}};this.Create=function(){var _this74=this;var divDom=document.createElement("div");divDom.className='UMyChart_Draw_Modify_Dialog_Div';var drgDiv=document.createElement("div");drgDiv.className="UMyChart_Draw_Modify_Dialog_Drag_Div";drgDiv.onmousedown=function(e){_this74.OnMouseDownTitle(e);};divDom.appendChild(drgDiv);var spanDom=document.createElement("span");spanDom.className="hqchart_drawtool icon-tuodong";spanDom.classList.add("UMyChart_DrawTool_Span");drgDiv.appendChild(spanDom);for(var i=0;i<this.AryButton.length;++i){var item=this.AryButton[i];this.CreateButtonItem(item,divDom);}this.DivDialog=divDom;document.body.appendChild(divDom);};this.CreateButtonItem=function(item,parentDivDom){var _this75=this;var divItem=document.createElement("div");divItem.className="UMyChart_Draw_Modify_Dialog_Button_Div";var spanTooltip=document.createElement("span");spanTooltip.className="UMyChart_Draw_Modify_Tooltip";spanTooltip.innerText=item.Title;divItem.appendChild(spanTooltip);var spanDom=document.createElement("span");spanDom.className=item.ClassName;spanDom.classList.add("UMyChart_DrawTool_Span");divItem.appendChild(spanDom);var data={Div:divItem,Span:spanDom,Parent:parentDivDom,Item:item,Tooltip:spanTooltip};divItem.onmousedown=function(e){_this75.OnClickButton(e,data);};//点击
|
|
13307
|
+
divItem.onmouseover=function(e){_this75.OnHoverButton(e,data);};divItem.onmouseout=function(e){_this75.OnLeaveButton(e,data);};switch(item.Data.ID){case JS_DRAWTOOL_MENU_ID.CMD_CHANGE_LINE_COLOR_ID:this.ColorButton=data;break;case JS_DRAWTOOL_MENU_ID.CMD_CHANGE_BG_COLOR_ID:this.BGColorButton=data;divItem.style.display="none";break;case JS_DRAWTOOL_MENU_ID.CMD_CHANGE_FONT_COLOR_ID:this.FontColorButton=data;divItem.style.display="none";break;}parentDivDom.appendChild(divItem);};this.OnClickButton=function(e,data){console.log('[JSDialogModifyDraw::OnClickButton] ',data);if(!data.Item||!data.Item.Data)return;var id=data.Item.Data.ID;switch(id){case JS_DRAWTOOL_MENU_ID.CMD_CHANGE_LINE_COLOR_ID:this.ModifyLineColor();break;case JS_DRAWTOOL_MENU_ID.CMD_DELETE_DRAW_CHART_ID:this.DeleteDrawPicture();break;case JS_DRAWTOOL_MENU_ID.CMD_CHANGE_BG_COLOR_ID:this.ModifyBGColor();break;case JS_DRAWTOOL_MENU_ID.CMD_CHANGE_FONT_COLOR_ID:this.ModifyFontColor();break;}};this.OnHoverButton=function(e,data){//var x=e.clientX;
|
|
13308
|
+
//data.Tooltip.style.left=x+"px";
|
|
13309
|
+
data.Tooltip.style.display="inline";};this.OnLeaveButton=function(e,data){data.Tooltip.style.display="none";};this.Close=function(e){if(!this.DivDialog)return;this.ChartPicture=null;this.DivDialog.style.visibility='hidden';};this.IsShow=function(){if(!this.DivDialog)return false;return this.DivDialog.style.visibility==='visible';};this.DeleteDrawPicture=function(){if(this.ChartPicture&&this.HQChart){this.HQChart.ClearChartDrawPicture(this.ChartPicture);}this.Close();};this.ShowButton=function(dom,diaplay){if(dom.style.display==diaplay)return;dom.style.display=diaplay;};this.GetRandomColor=function(currentColor,randomLineColor){var colorIndex=0;for(var i=0;i<randomLineColor.length;++i){if(currentColor==randomLineColor[i]){colorIndex=i+1;break;}}colorIndex=colorIndex%randomLineColor.length;var color=randomLineColor[colorIndex];return color;};this.ModifyLineColor=function(){if(!this.ChartPicture||!this.HQChart)return;var color=this.GetRandomColor(this.ChartPicture.LineColor,this.RandomLineColor);this.ChartPicture.LineColor=color;this.ChartPicture.PointColor=color;if(this.ColorButton)this.ColorButton.Span.style['color']=color;if(this.HQChart.ChartDrawStorage)this.HQChart.ChartDrawStorage.SaveDrawData(this.ChartPicture);//保存下
|
|
13308
13310
|
this.HQChart.Draw();};this.ModifyFontColor=function(){if(!this.ChartPicture||!this.HQChart)return;if(this.ChartPicture.ClassName=="ChartDrawNote"){var color=this.GetRandomColor(this.ChartPicture.NoteTextColor,this.RandomFontColor);this.ChartPicture.NoteTextColor=color;}else{var color=this.GetRandomColor(this.ChartPicture.TextColor,this.RandomFontColor);this.ChartPicture.TextColor=color;}if(this.FontColorButton)this.FontColorButton.Span.style['color']=color;if(this.HQChart.ChartDrawStorage)this.HQChart.ChartDrawStorage.SaveDrawData(this.ChartPicture);//保存下
|
|
13309
13311
|
this.HQChart.Draw();};this.ModifyBGColor=function(){if(!this.ChartPicture||!this.HQChart)return;if(this.ChartPicture.ClassName=="ChartDrawNote"){var color=this.GetRandomColor(this.ChartPicture.NoteBGColor,this.RandomBGColor);this.ChartPicture.NoteBGColor=color;}else{var color=this.GetRandomColor(this.ChartPicture.BGColor,this.RandomBGColor);this.ChartPicture.BGColor=color;}if(this.BGColorButton)this.BGColorButton.Span.style['color']=color;if(this.HQChart.ChartDrawStorage)this.HQChart.ChartDrawStorage.SaveDrawData(this.ChartPicture);//保存下
|
|
13310
|
-
this.HQChart.Draw();};this.Show=function(x,y){if(!this.DivDialog)this.Create();this.DivDialog.style.visibility='visible';this.DivDialog.style.top=y+"px";this.DivDialog.style.left=x+"px";};this.SetChartPicture=function(chart){this.ChartPicture=chart;var bShowLineColor=true,bShowBGColor=false,bShowFontColor=false;var bgColor=null,fontColor=null;var ARRAY_TEXT_CHART=['ChartDrawPriceLabel',"ChartDrawAnchoredText","ChartDrawPriceNote"];if(ARRAY_TEXT_CHART.includes(chart.ClassName)){bShowBGColor=true;bShowFontColor=true;bgColor=chart.BGColor;fontColor=chart.TextColor;}else if(chart.ClassName=="ChartDrawNote"){bShowBGColor=true;bShowFontColor=true;bgColor=chart.NoteBGColor;fontColor=chart.NoteTextColor;}if(this.ColorButton){var item=this.ColorButton;this.ShowButton(item.Div,bShowLineColor?"
|
|
13312
|
+
this.HQChart.Draw();};this.Show=function(x,y){if(!this.DivDialog)this.Create();this.DivDialog.style.visibility='visible';this.DivDialog.style.top=y+"px";this.DivDialog.style.left=x+"px";};this.SetChartPicture=function(chart){this.ChartPicture=chart;var bShowLineColor=true,bShowBGColor=false,bShowFontColor=false;var bgColor=null,fontColor=null;var ARRAY_TEXT_CHART=['ChartDrawPriceLabel',"ChartDrawAnchoredText","ChartDrawPriceNote"];if(ARRAY_TEXT_CHART.includes(chart.ClassName)){bShowBGColor=true;bShowFontColor=true;bgColor=chart.BGColor;fontColor=chart.TextColor;}else if(chart.ClassName=="ChartDrawNote"){bShowBGColor=true;bShowFontColor=true;bgColor=chart.NoteBGColor;fontColor=chart.NoteTextColor;}if(this.ColorButton){var item=this.ColorButton;this.ShowButton(item.Div,bShowLineColor?"inline":"none");if(bShowLineColor){item.Span.style['color']=chart.LineColor;}}if(this.BGColorButton){var item=this.BGColorButton;this.ShowButton(item.Div,bShowBGColor?"inline":"none");if(bShowBGColor){item.Span.style['color']=bgColor;}}if(this.FontColorButton){var item=this.FontColorButton;this.ShowButton(item.Div,bShowFontColor?"inline":"none");if(bShowFontColor){item.Span.style['color']=fontColor;}}};this.OnMouseDownTitle=function(e){var _this76=this;if(!this.DivDialog)return;var dragData={X:e.clientX,Y:e.clientY};dragData.YOffset=e.clientX-this.DivDialog.offsetLeft;dragData.XOffset=e.clientY-this.DivDialog.offsetTop;this.DragTitle=dragData;document.onmousemove=function(e){_this76.DocOnMouseMoveTitle(e);};document.onmouseup=function(e){_this76.DocOnMouseUpTitle(e);};};this.DocOnMouseMoveTitle=function(e){if(!this.DragTitle)return;var left=e.clientX-this.DragTitle.YOffset;var top=e.clientY-this.DragTitle.XOffset;var right=left+this.DivDialog.offsetWidth;var bottom=top+this.DivDialog.offsetHeight;if(right+5>=window.innerWidth)left=window.innerWidth-this.DivDialog.offsetWidth-5;if(bottom+5>=window.innerHeight)top=window.innerHeight-this.DivDialog.offsetHeight-5;this.DivDialog.style.left=left+'px';this.DivDialog.style.top=top+'px';if(e.preventDefault)e.preventDefault();if(e.stopPropagation)e.stopPropagation();};this.DocOnMouseUpTitle=function(e){this.DragTitle=null;this.onmousemove=null;this.onmouseup=null;};}///////////////////////////////////////////////////////////////////////////////////
|
|
13311
13313
|
// 工作线程计算指标示例
|
|
13312
13314
|
//
|
|
13313
13315
|
//
|
|
@@ -13319,7 +13321,7 @@ hisData.Symbol=message.symbol;}var stockObj={HQDataType:HQ_DATA_TYPE.KLINE_ID,St
|
|
|
13319
13321
|
this.ExecuteScript(item,data);}this.Status=0;}};this.OnExecuteFinish=function(data,indexInfo,jsExectute,jobInfo){var message={Data:data,IndexInfo:indexInfo,ID:JSCHART_WORKER_MESSAGE_ID.FINISH_EXECUTE_SCRIPT,JobInfo:jobInfo};postMessage(message);};this.OnExecuteError=function(error,indexInfo,jobData){var message={IndexInfo:indexInfo,ID:JSCHART_WORKER_MESSAGE_ID.ERROR_EXECUTE_SCRIPT,Error:error};postMessage(message);};}/********************************************************************************
|
|
13320
13322
|
* 版本信息输出
|
|
13321
13323
|
*
|
|
13322
|
-
*/var HQCHART_VERSION="1.1.
|
|
13324
|
+
*/var HQCHART_VERSION="1.1.13374";function PrintHQChartVersion(){var log='*************************************************************************************************************\n*\n* HQChart Ver: '+HQCHART_VERSION+' \n* \n* License: Apache License 2.0 \n* Source: https://github.com/jones2000/HQChart\n*\n*************************************************************************************************************\n';console.log(log);}PrintHQChartVersion();//把给外界调用的方法暴露出来
|
|
13323
13325
|
exports.default=(_jsChartInit$jsChartS={jsChartInit:JSChart.Init,jsChartStyle:JSChart.SetStyle,// IsIndexSymbol:IsIndexSymbol,
|
|
13324
13326
|
// BaseIndex:BaseIndex,
|
|
13325
13327
|
// ChartLine:ChartLine,
|
package/package.json
CHANGED
|
@@ -622,7 +622,7 @@ function JSDialogModifyDraw()
|
|
|
622
622
|
{ Title:"点击线段颜色", ClassName: 'hqchart_drawtool icon-huabi', Type:2, Data:{ ID:JS_DRAWTOOL_MENU_ID.CMD_CHANGE_LINE_COLOR_ID }},
|
|
623
623
|
{ Title:"点击字体颜色", ClassName: 'hqchart_drawtool icon-zitiyanse', Type:2, Data:{ ID:JS_DRAWTOOL_MENU_ID.CMD_CHANGE_FONT_COLOR_ID }},
|
|
624
624
|
{ Title:"点击背景色", ClassName: 'hqchart_drawtool icon-zitibeijingse', Type:2, Data:{ ID:JS_DRAWTOOL_MENU_ID.CMD_CHANGE_BG_COLOR_ID }},
|
|
625
|
-
{ Title:"
|
|
625
|
+
{ Title:"删除图形", ClassName: 'hqchart_drawtool icon-recycle_bin', Type:2, Data:{ ID:JS_DRAWTOOL_MENU_ID.CMD_DELETE_DRAW_CHART_ID }}
|
|
626
626
|
];
|
|
627
627
|
|
|
628
628
|
this.Inital=function(hqchart)
|
|
@@ -670,14 +670,25 @@ function JSDialogModifyDraw()
|
|
|
670
670
|
{
|
|
671
671
|
var divItem=document.createElement("div");
|
|
672
672
|
divItem.className="UMyChart_Draw_Modify_Dialog_Button_Div";
|
|
673
|
+
|
|
674
|
+
var spanTooltip=document.createElement("span");
|
|
675
|
+
spanTooltip.className="UMyChart_Draw_Modify_Tooltip";
|
|
676
|
+
spanTooltip.innerText=item.Title;
|
|
677
|
+
divItem.appendChild(spanTooltip);
|
|
678
|
+
|
|
679
|
+
|
|
673
680
|
var spanDom=document.createElement("span");
|
|
674
681
|
spanDom.className=item.ClassName;
|
|
675
682
|
spanDom.classList.add("UMyChart_DrawTool_Span");
|
|
676
683
|
divItem.appendChild(spanDom);
|
|
684
|
+
|
|
677
685
|
|
|
678
|
-
var data={ Div:divItem, Span:spanDom, Parent:parentDivDom, Item:item };
|
|
686
|
+
var data={ Div:divItem, Span:spanDom, Parent:parentDivDom, Item:item, Tooltip:spanTooltip };
|
|
679
687
|
divItem.onmousedown=(e)=> { this.OnClickButton(e, data); }; //点击
|
|
680
688
|
|
|
689
|
+
divItem.onmouseover=(e)=> { this.OnHoverButton(e, data); }
|
|
690
|
+
divItem.onmouseout=(e)=>{ this.OnLeaveButton(e, data); }
|
|
691
|
+
|
|
681
692
|
switch(item.Data.ID)
|
|
682
693
|
{
|
|
683
694
|
case JS_DRAWTOOL_MENU_ID.CMD_CHANGE_LINE_COLOR_ID:
|
|
@@ -719,6 +730,18 @@ function JSDialogModifyDraw()
|
|
|
719
730
|
}
|
|
720
731
|
}
|
|
721
732
|
|
|
733
|
+
this.OnHoverButton=function(e, data)
|
|
734
|
+
{
|
|
735
|
+
//var x=e.clientX;
|
|
736
|
+
//data.Tooltip.style.left=x+"px";
|
|
737
|
+
data.Tooltip.style.display="inline";
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
this.OnLeaveButton=function(e, data)
|
|
741
|
+
{
|
|
742
|
+
data.Tooltip.style.display="none";
|
|
743
|
+
}
|
|
744
|
+
|
|
722
745
|
this.Close=function(e)
|
|
723
746
|
{
|
|
724
747
|
if (!this.DivDialog) return;
|
|
@@ -862,7 +885,7 @@ function JSDialogModifyDraw()
|
|
|
862
885
|
if (this.ColorButton)
|
|
863
886
|
{
|
|
864
887
|
var item=this.ColorButton;
|
|
865
|
-
this.ShowButton(item.Div, bShowLineColor?"
|
|
888
|
+
this.ShowButton(item.Div, bShowLineColor?"inline":"none");
|
|
866
889
|
if (bShowLineColor)
|
|
867
890
|
{
|
|
868
891
|
item.Span.style['color']=chart.LineColor;
|
|
@@ -872,7 +895,7 @@ function JSDialogModifyDraw()
|
|
|
872
895
|
if (this.BGColorButton)
|
|
873
896
|
{
|
|
874
897
|
var item=this.BGColorButton;
|
|
875
|
-
this.ShowButton(item.Div, bShowBGColor?"
|
|
898
|
+
this.ShowButton(item.Div, bShowBGColor?"inline":"none");
|
|
876
899
|
if (bShowBGColor)
|
|
877
900
|
{
|
|
878
901
|
item.Span.style['color']=bgColor;
|
|
@@ -882,7 +905,7 @@ function JSDialogModifyDraw()
|
|
|
882
905
|
if (this.FontColorButton)
|
|
883
906
|
{
|
|
884
907
|
var item=this.FontColorButton;
|
|
885
|
-
this.ShowButton(item.Div, bShowFontColor?"
|
|
908
|
+
this.ShowButton(item.Div, bShowFontColor?"inline":"none");
|
|
886
909
|
if (bShowFontColor)
|
|
887
910
|
{
|
|
888
911
|
item.Span.style['color']=fontColor;
|
|
@@ -1475,6 +1475,27 @@ input[type="color"] {
|
|
|
1475
1475
|
|
|
1476
1476
|
}
|
|
1477
1477
|
|
|
1478
|
+
.UMyChart_Draw_Modify_Tooltip
|
|
1479
|
+
{
|
|
1480
|
+
position: absolute;
|
|
1481
|
+
display: none;
|
|
1482
|
+
top: 30px;
|
|
1483
|
+
z-index: 2;
|
|
1484
|
+
width: 80px;
|
|
1485
|
+
color: rgb(0,0,0);
|
|
1486
|
+
font-size: 12px;
|
|
1487
|
+
text-align: center;
|
|
1488
|
+
background-color:rgb(250,250,250);
|
|
1489
|
+
border-radius: 2px;
|
|
1490
|
+
padding: 5px 5px 5px 5px;
|
|
1491
|
+
pointer-events: none;
|
|
1492
|
+
border-color: rgb(169,169,169);
|
|
1493
|
+
border-style:solid;
|
|
1494
|
+
border-width:1px;
|
|
1495
|
+
user-select: none;
|
|
1496
|
+
}
|
|
1497
|
+
|
|
1498
|
+
|
|
1478
1499
|
|
|
1479
1500
|
|
|
1480
1501
|
|
|
@@ -133577,7 +133577,7 @@ function ScrollBarBGChart()
|
|
|
133577
133577
|
|
|
133578
133578
|
|
|
133579
133579
|
|
|
133580
|
-
var HQCHART_VERSION="1.1.
|
|
133580
|
+
var HQCHART_VERSION="1.1.13374";
|
|
133581
133581
|
|
|
133582
133582
|
function PrintHQChartVersion()
|
|
133583
133583
|
{
|
|
@@ -137012,7 +137012,7 @@ function JSDialogModifyDraw()
|
|
|
137012
137012
|
{ Title:"点击线段颜色", ClassName: 'hqchart_drawtool icon-huabi', Type:2, Data:{ ID:JS_DRAWTOOL_MENU_ID.CMD_CHANGE_LINE_COLOR_ID }},
|
|
137013
137013
|
{ Title:"点击字体颜色", ClassName: 'hqchart_drawtool icon-zitiyanse', Type:2, Data:{ ID:JS_DRAWTOOL_MENU_ID.CMD_CHANGE_FONT_COLOR_ID }},
|
|
137014
137014
|
{ Title:"点击背景色", ClassName: 'hqchart_drawtool icon-zitibeijingse', Type:2, Data:{ ID:JS_DRAWTOOL_MENU_ID.CMD_CHANGE_BG_COLOR_ID }},
|
|
137015
|
-
{ Title:"
|
|
137015
|
+
{ Title:"删除图形", ClassName: 'hqchart_drawtool icon-recycle_bin', Type:2, Data:{ ID:JS_DRAWTOOL_MENU_ID.CMD_DELETE_DRAW_CHART_ID }}
|
|
137016
137016
|
];
|
|
137017
137017
|
|
|
137018
137018
|
this.Inital=function(hqchart)
|
|
@@ -137060,14 +137060,25 @@ function JSDialogModifyDraw()
|
|
|
137060
137060
|
{
|
|
137061
137061
|
var divItem=document.createElement("div");
|
|
137062
137062
|
divItem.className="UMyChart_Draw_Modify_Dialog_Button_Div";
|
|
137063
|
+
|
|
137064
|
+
var spanTooltip=document.createElement("span");
|
|
137065
|
+
spanTooltip.className="UMyChart_Draw_Modify_Tooltip";
|
|
137066
|
+
spanTooltip.innerText=item.Title;
|
|
137067
|
+
divItem.appendChild(spanTooltip);
|
|
137068
|
+
|
|
137069
|
+
|
|
137063
137070
|
var spanDom=document.createElement("span");
|
|
137064
137071
|
spanDom.className=item.ClassName;
|
|
137065
137072
|
spanDom.classList.add("UMyChart_DrawTool_Span");
|
|
137066
137073
|
divItem.appendChild(spanDom);
|
|
137074
|
+
|
|
137067
137075
|
|
|
137068
|
-
var data={ Div:divItem, Span:spanDom, Parent:parentDivDom, Item:item };
|
|
137076
|
+
var data={ Div:divItem, Span:spanDom, Parent:parentDivDom, Item:item, Tooltip:spanTooltip };
|
|
137069
137077
|
divItem.onmousedown=(e)=> { this.OnClickButton(e, data); }; //点击
|
|
137070
137078
|
|
|
137079
|
+
divItem.onmouseover=(e)=> { this.OnHoverButton(e, data); }
|
|
137080
|
+
divItem.onmouseout=(e)=>{ this.OnLeaveButton(e, data); }
|
|
137081
|
+
|
|
137071
137082
|
switch(item.Data.ID)
|
|
137072
137083
|
{
|
|
137073
137084
|
case JS_DRAWTOOL_MENU_ID.CMD_CHANGE_LINE_COLOR_ID:
|
|
@@ -137109,6 +137120,18 @@ function JSDialogModifyDraw()
|
|
|
137109
137120
|
}
|
|
137110
137121
|
}
|
|
137111
137122
|
|
|
137123
|
+
this.OnHoverButton=function(e, data)
|
|
137124
|
+
{
|
|
137125
|
+
//var x=e.clientX;
|
|
137126
|
+
//data.Tooltip.style.left=x+"px";
|
|
137127
|
+
data.Tooltip.style.display="inline";
|
|
137128
|
+
}
|
|
137129
|
+
|
|
137130
|
+
this.OnLeaveButton=function(e, data)
|
|
137131
|
+
{
|
|
137132
|
+
data.Tooltip.style.display="none";
|
|
137133
|
+
}
|
|
137134
|
+
|
|
137112
137135
|
this.Close=function(e)
|
|
137113
137136
|
{
|
|
137114
137137
|
if (!this.DivDialog) return;
|
|
@@ -137252,7 +137275,7 @@ function JSDialogModifyDraw()
|
|
|
137252
137275
|
if (this.ColorButton)
|
|
137253
137276
|
{
|
|
137254
137277
|
var item=this.ColorButton;
|
|
137255
|
-
this.ShowButton(item.Div, bShowLineColor?"
|
|
137278
|
+
this.ShowButton(item.Div, bShowLineColor?"inline":"none");
|
|
137256
137279
|
if (bShowLineColor)
|
|
137257
137280
|
{
|
|
137258
137281
|
item.Span.style['color']=chart.LineColor;
|
|
@@ -137262,7 +137285,7 @@ function JSDialogModifyDraw()
|
|
|
137262
137285
|
if (this.BGColorButton)
|
|
137263
137286
|
{
|
|
137264
137287
|
var item=this.BGColorButton;
|
|
137265
|
-
this.ShowButton(item.Div, bShowBGColor?"
|
|
137288
|
+
this.ShowButton(item.Div, bShowBGColor?"inline":"none");
|
|
137266
137289
|
if (bShowBGColor)
|
|
137267
137290
|
{
|
|
137268
137291
|
item.Span.style['color']=bgColor;
|
|
@@ -137272,7 +137295,7 @@ function JSDialogModifyDraw()
|
|
|
137272
137295
|
if (this.FontColorButton)
|
|
137273
137296
|
{
|
|
137274
137297
|
var item=this.FontColorButton;
|
|
137275
|
-
this.ShowButton(item.Div, bShowFontColor?"
|
|
137298
|
+
this.ShowButton(item.Div, bShowFontColor?"inline":"none");
|
|
137276
137299
|
if (bShowFontColor)
|
|
137277
137300
|
{
|
|
137278
137301
|
item.Span.style['color']=fontColor;
|
|
@@ -137447,7 +137470,7 @@ function HQChartScriptWorker()
|
|
|
137447
137470
|
|
|
137448
137471
|
|
|
137449
137472
|
|
|
137450
|
-
var HQCHART_VERSION="1.1.
|
|
137473
|
+
var HQCHART_VERSION="1.1.13374";
|
|
137451
137474
|
|
|
137452
137475
|
function PrintHQChartVersion()
|
|
137453
137476
|
{
|