hqchart 1.1.11289 → 1.1.11291
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
CHANGED
|
@@ -1656,10 +1656,12 @@ if(!this.BorderDrag){var dragY=this.TryYDrag(x,y);if(dragY){this.UIElement.style
|
|
|
1656
1656
|
};drag.Click.X=e.clientX;drag.Click.Y=e.clientY;drag.Click.IsInFrameBottom=this.Frame.PtInFrameBottom(x,y);//是否点击在X轴上
|
|
1657
1657
|
drag.LastMove.X=e.clientX;drag.LastMove.Y=e.clientY;this.MouseDrag=drag;var drawPictureActive=this.GetActiveDrawPicture();//上一次选中的
|
|
1658
1658
|
var selectedChart={Chart:this.SelectedChart.Selected.Chart,Identify:this.SelectedChart.Selected.Identify};//上一次选中的图形
|
|
1659
|
-
this.SelectChartDrawPicture=null;if(this.BorderDrag){}else if(this.YDrag||this.
|
|
1660
|
-
{
|
|
1659
|
+
this.SelectChartDrawPicture=null;if(this.BorderDrag){}else if(this.YDrag||this.RectSelectDrag){}else if(this.CurrentChartDrawPicture)//画图工具模式
|
|
1660
|
+
{this.UpDownDrag=null;//画图优先
|
|
1661
|
+
var drawPicture=this.CurrentChartDrawPicture;if(drawPicture.Status==2)this.SetChartDrawPictureThirdPoint(drag.Click.X,drag.Click.Y);else{this.SetChartDrawPictureFirstPoint(drag.Click.X,drag.Click.Y);//只有1个点 直接完成
|
|
1661
1662
|
if(this.FinishChartDrawPicturePoint())this.DrawDynamicInfo();}if(drawPictureActive.Select.Guid&&(!this.CurrentChartDrawPicture||drawPictureActive.Select.Guid!=this.CurrentChartDrawPicture.Guid)){if(drawPictureActive.Select.Chart.IsDrawMain)this.Draw();}}else//是否在画图工具上
|
|
1662
|
-
{var drawPictrueData={};drawPictrueData.X=(e.clientX-this.UIElement.getBoundingClientRect().left)*pixelTatio;drawPictrueData.Y=(e.clientY-this.UIElement.getBoundingClientRect().top)*pixelTatio;if(this.GetChartDrawPictureByPoint(drawPictrueData)){if(drawPictrueData.ChartDrawPicture.EnableMove==true){this.
|
|
1663
|
+
{var drawPictrueData={};drawPictrueData.X=(e.clientX-this.UIElement.getBoundingClientRect().left)*pixelTatio;drawPictrueData.Y=(e.clientY-this.UIElement.getBoundingClientRect().top)*pixelTatio;if(this.GetChartDrawPictureByPoint(drawPictrueData)){if(drawPictrueData.ChartDrawPicture.EnableMove==true){this.UpDownDrag=null;//画图优先
|
|
1664
|
+
this.CurrentChartDrawPicture=drawPictrueData.ChartDrawPicture;this.SelectChartDrawPicture=drawPictrueData.ChartDrawPicture;//当前已有选中的,需要刷下
|
|
1663
1665
|
var bDraw=false;if(drawPictureActive.Select.Guid&&drawPictureActive.Select.Chart&&drawPictureActive.Select.Chart.IsDrawMain)bDraw=true;else if(drawPictrueData.ChartDrawPicture.IsDrawMain)bDraw=true;if(bDraw)this.Draw();drawPictrueData.ChartDrawPicture.Status=20;drawPictrueData.ChartDrawPicture.ValueToPoint();drawPictrueData.ChartDrawPicture.MovePointIndex=drawPictrueData.PointIndex;//this.CurrentChartDrawPicture=drawPictrueData.ChartDrawPicture;
|
|
1664
1666
|
//this.SelectChartDrawPicture=drawPictrueData.ChartDrawPicture;
|
|
1665
1667
|
this.SelectChartDrawPicture.DragInfo={Click:{X:e.clientX,Y:e.clientY}};}else{this.CurrentChartDrawPicture=null;this.SelectChartDrawPicture=null;}var event=this.GetEventCallback(JSCHART_EVENT_ID.ON_CLICK_DRAWPICTURE);//选中画图工具事件
|
package/package.json
CHANGED
|
@@ -6789,12 +6789,13 @@ function JSChartContainer(uielement, OffscreenElement)
|
|
|
6789
6789
|
{
|
|
6790
6790
|
|
|
6791
6791
|
}
|
|
6792
|
-
else if (this.YDrag
|
|
6792
|
+
else if (this.YDrag || this.RectSelectDrag)
|
|
6793
6793
|
{
|
|
6794
6794
|
|
|
6795
6795
|
}
|
|
6796
6796
|
else if (this.CurrentChartDrawPicture) //画图工具模式
|
|
6797
6797
|
{
|
|
6798
|
+
this.UpDownDrag=null; //画图优先
|
|
6798
6799
|
var drawPicture=this.CurrentChartDrawPicture;
|
|
6799
6800
|
if (drawPicture.Status==2)
|
|
6800
6801
|
this.SetChartDrawPictureThirdPoint(drag.Click.X,drag.Click.Y);
|
|
@@ -6819,6 +6820,7 @@ function JSChartContainer(uielement, OffscreenElement)
|
|
|
6819
6820
|
{
|
|
6820
6821
|
if (drawPictrueData.ChartDrawPicture.EnableMove==true)
|
|
6821
6822
|
{
|
|
6823
|
+
this.UpDownDrag=null; //画图优先
|
|
6822
6824
|
this.CurrentChartDrawPicture=drawPictrueData.ChartDrawPicture;
|
|
6823
6825
|
this.SelectChartDrawPicture=drawPictrueData.ChartDrawPicture;
|
|
6824
6826
|
|
|
@@ -6833,12 +6833,13 @@ function JSChartContainer(uielement, OffscreenElement)
|
|
|
6833
6833
|
{
|
|
6834
6834
|
|
|
6835
6835
|
}
|
|
6836
|
-
else if (this.YDrag
|
|
6836
|
+
else if (this.YDrag || this.RectSelectDrag)
|
|
6837
6837
|
{
|
|
6838
6838
|
|
|
6839
6839
|
}
|
|
6840
6840
|
else if (this.CurrentChartDrawPicture) //画图工具模式
|
|
6841
6841
|
{
|
|
6842
|
+
this.UpDownDrag=null; //画图优先
|
|
6842
6843
|
var drawPicture=this.CurrentChartDrawPicture;
|
|
6843
6844
|
if (drawPicture.Status==2)
|
|
6844
6845
|
this.SetChartDrawPictureThirdPoint(drag.Click.X,drag.Click.Y);
|
|
@@ -6863,6 +6864,7 @@ function JSChartContainer(uielement, OffscreenElement)
|
|
|
6863
6864
|
{
|
|
6864
6865
|
if (drawPictrueData.ChartDrawPicture.EnableMove==true)
|
|
6865
6866
|
{
|
|
6867
|
+
this.UpDownDrag=null; //画图优先
|
|
6866
6868
|
this.CurrentChartDrawPicture=drawPictrueData.ChartDrawPicture;
|
|
6867
6869
|
this.SelectChartDrawPicture=drawPictrueData.ChartDrawPicture;
|
|
6868
6870
|
|