Skip to content

Commit

Permalink
ver 10306
Browse files Browse the repository at this point in the history
10305 修正uniapp分时图指标工具栏$报错
  • Loading branch information
jones2000 committed Aug 31, 2021
1 parent 5da85f3 commit d16a83a
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 8 deletions.
8 changes: 4 additions & 4 deletions umychart_indexapi/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions umychart_uniapp_h5/umychart.uniapp.h5.js
Original file line number Diff line number Diff line change
Expand Up @@ -11304,6 +11304,8 @@ function MinuteFrame()

this.DrawToolbar=function()
{
if (typeof($)=="undefined") return;

if (this.Identify<2) return;
if (!this.ChartBorder.UIElement) return;

Expand Down
7 changes: 5 additions & 2 deletions vuehqchart/src/jscommon/umychart.js
Original file line number Diff line number Diff line change
Expand Up @@ -3177,8 +3177,9 @@ function JSChartContainer(uielement, OffscreenElement)

this.OnTouchDBClick=function(points)
{
var x=points[0].X, y=points[0].Y;
JSConsole.Chart.Log('[KLineChartContainer:OnTouchDBClick] Phone dbclick', x, y);
var pt=this.PointAbsoluteToRelative(points[0].X, points[0].Y, true);
var x=pt.X, y=pt.Y;
JSConsole.Chart.Log(`[KLineChartContainer:OnTouchDBClick] Phone dbclick absolute [${x},${y}], soruce [${points[0].X},${points[0].Y}]`);

var frameId=this.Frame.PtInFrame(x,y);
JSConsole.Chart.Log("[KLineChartContainer::OnTouchDBClick] frameId",frameId);
Expand Down Expand Up @@ -7337,6 +7338,8 @@ function MinuteFrame()

this.DrawToolbar=function()
{
if (typeof($)=="undefined") return;

if (this.Identify<2) return;
if (!this.ChartBorder.UIElement) return;

Expand Down
7 changes: 5 additions & 2 deletions vuehqchart/src/jscommon/umychart.vue/umychart.vue.js
Original file line number Diff line number Diff line change
Expand Up @@ -7187,8 +7187,9 @@ function JSChartContainer(uielement, OffscreenElement)

this.OnTouchDBClick=function(points)
{
var x=points[0].X, y=points[0].Y;
JSConsole.Chart.Log('[KLineChartContainer:OnTouchDBClick] Phone dbclick', x, y);
var pt=this.PointAbsoluteToRelative(points[0].X, points[0].Y, true);
var x=pt.X, y=pt.Y;
JSConsole.Chart.Log(`[KLineChartContainer:OnTouchDBClick] Phone dbclick absolute [${x},${y}], soruce [${points[0].X},${points[0].Y}]`);

var frameId=this.Frame.PtInFrame(x,y);
JSConsole.Chart.Log("[KLineChartContainer::OnTouchDBClick] frameId",frameId);
Expand Down Expand Up @@ -11347,6 +11348,8 @@ function MinuteFrame()

this.DrawToolbar=function()
{
if (typeof($)=="undefined") return;

if (this.Identify<2) return;
if (!this.ChartBorder.UIElement) return;

Expand Down
2 changes: 2 additions & 0 deletions webhqchart.demo/jscommon/umychart.js
Original file line number Diff line number Diff line change
Expand Up @@ -7338,6 +7338,8 @@ function MinuteFrame()

this.DrawToolbar=function()
{
if (typeof($)=="undefined") return;

if (this.Identify<2) return;
if (!this.ChartBorder.UIElement) return;

Expand Down
2 changes: 2 additions & 0 deletions webhqchart/umychart.js
Original file line number Diff line number Diff line change
Expand Up @@ -7338,6 +7338,8 @@ function MinuteFrame()

this.DrawToolbar=function()
{
if (typeof($)=="undefined") return;

if (this.Identify<2) return;
if (!this.ChartBorder.UIElement) return;

Expand Down

0 comments on commit d16a83a

Please sign in to comment.