Skip to content

Commit

Permalink
ver 10308
Browse files Browse the repository at this point in the history
10307 修正ChartStickLine在分时图显示太粗了。
  • Loading branch information
jones2000 committed Aug 31, 2021
1 parent d16a83a commit 489f236
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 10 deletions.
12 changes: 10 additions & 2 deletions umychart_uniapp_h5/umychart.uniapp.h5.js
Original file line number Diff line number Diff line change
Expand Up @@ -11305,7 +11305,7 @@ function MinuteFrame()
this.DrawToolbar=function()
{
if (typeof($)=="undefined") return;

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

Expand Down Expand Up @@ -22540,12 +22540,20 @@ function ChartStickLine()
var xOffset=this.ChartBorder.GetLeft()+distanceWidth/2.0+2.0;
if (isHScreen) xOffset=this.ChartBorder.GetTop()+distanceWidth/2.0+2.0;

var isMinute=this.IsMinuteFrame();

this.Canvas.save();
var bFillBar=false;
var bFillKLine=false;
var emptyBGColor=g_JSChartResource.EmptyBarBGColor;

if(this.Width==0)
if (isMinute)
{
if (this.Width>1) this.Canvas.lineWidth=2*GetDevicePixelRatio();
else this.Canvas.lineWidth=GetDevicePixelRatio();
this.Canvas.strokeStyle=this.Color;
}
else if(this.Width==0)
{
this.SetEmptyBar();
}
Expand Down
12 changes: 10 additions & 2 deletions vuehqchart/src/jscommon/umychart.js
Original file line number Diff line number Diff line change
Expand Up @@ -7339,7 +7339,7 @@ function MinuteFrame()
this.DrawToolbar=function()
{
if (typeof($)=="undefined") return;

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

Expand Down Expand Up @@ -18574,12 +18574,20 @@ function ChartStickLine()
var xOffset=this.ChartBorder.GetLeft()+distanceWidth/2.0+2.0;
if (isHScreen) xOffset=this.ChartBorder.GetTop()+distanceWidth/2.0+2.0;

var isMinute=this.IsMinuteFrame();

this.Canvas.save();
var bFillBar=false;
var bFillKLine=false;
var emptyBGColor=g_JSChartResource.EmptyBarBGColor;

if(this.Width==0)
if (isMinute)
{
if (this.Width>1) this.Canvas.lineWidth=2*GetDevicePixelRatio();
else this.Canvas.lineWidth=GetDevicePixelRatio();
this.Canvas.strokeStyle=this.Color;
}
else if(this.Width==0)
{
this.SetEmptyBar();
}
Expand Down
12 changes: 10 additions & 2 deletions vuehqchart/src/jscommon/umychart.vue/umychart.vue.js
Original file line number Diff line number Diff line change
Expand Up @@ -11349,7 +11349,7 @@ function MinuteFrame()
this.DrawToolbar=function()
{
if (typeof($)=="undefined") return;

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

Expand Down Expand Up @@ -22584,12 +22584,20 @@ function ChartStickLine()
var xOffset=this.ChartBorder.GetLeft()+distanceWidth/2.0+2.0;
if (isHScreen) xOffset=this.ChartBorder.GetTop()+distanceWidth/2.0+2.0;

var isMinute=this.IsMinuteFrame();

this.Canvas.save();
var bFillBar=false;
var bFillKLine=false;
var emptyBGColor=g_JSChartResource.EmptyBarBGColor;

if(this.Width==0)
if (isMinute)
{
if (this.Width>1) this.Canvas.lineWidth=2*GetDevicePixelRatio();
else this.Canvas.lineWidth=GetDevicePixelRatio();
this.Canvas.strokeStyle=this.Color;
}
else if(this.Width==0)
{
this.SetEmptyBar();
}
Expand Down
12 changes: 10 additions & 2 deletions webhqchart.demo/jscommon/umychart.js
Original file line number Diff line number Diff line change
Expand Up @@ -7339,7 +7339,7 @@ function MinuteFrame()
this.DrawToolbar=function()
{
if (typeof($)=="undefined") return;

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

Expand Down Expand Up @@ -18574,12 +18574,20 @@ function ChartStickLine()
var xOffset=this.ChartBorder.GetLeft()+distanceWidth/2.0+2.0;
if (isHScreen) xOffset=this.ChartBorder.GetTop()+distanceWidth/2.0+2.0;

var isMinute=this.IsMinuteFrame();

this.Canvas.save();
var bFillBar=false;
var bFillKLine=false;
var emptyBGColor=g_JSChartResource.EmptyBarBGColor;

if(this.Width==0)
if (isMinute)
{
if (this.Width>1) this.Canvas.lineWidth=2*GetDevicePixelRatio();
else this.Canvas.lineWidth=GetDevicePixelRatio();
this.Canvas.strokeStyle=this.Color;
}
else if(this.Width==0)
{
this.SetEmptyBar();
}
Expand Down
12 changes: 10 additions & 2 deletions webhqchart/umychart.js
Original file line number Diff line number Diff line change
Expand Up @@ -7339,7 +7339,7 @@ function MinuteFrame()
this.DrawToolbar=function()
{
if (typeof($)=="undefined") return;

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

Expand Down Expand Up @@ -18574,12 +18574,20 @@ function ChartStickLine()
var xOffset=this.ChartBorder.GetLeft()+distanceWidth/2.0+2.0;
if (isHScreen) xOffset=this.ChartBorder.GetTop()+distanceWidth/2.0+2.0;

var isMinute=this.IsMinuteFrame();

this.Canvas.save();
var bFillBar=false;
var bFillKLine=false;
var emptyBGColor=g_JSChartResource.EmptyBarBGColor;

if(this.Width==0)
if (isMinute)
{
if (this.Width>1) this.Canvas.lineWidth=2*GetDevicePixelRatio();
else this.Canvas.lineWidth=GetDevicePixelRatio();
this.Canvas.strokeStyle=this.Color;
}
else if(this.Width==0)
{
this.SetEmptyBar();
}
Expand Down

0 comments on commit 489f236

Please sign in to comment.