Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

Commit

Permalink
improves line and step line hovering performance, 0717 release
Browse files Browse the repository at this point in the history
  • Loading branch information
beto-rodriguez committed Oct 8, 2016
1 parent 3cb1bf4 commit 5cdbc8f
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 14 deletions.
3 changes: 3 additions & 0 deletions Core/Core.csproj
Expand Up @@ -41,6 +41,9 @@
<PropertyGroup>
<AssemblyOriginatorKeyFile>sign.pfx</AssemblyOriginatorKeyFile>
</PropertyGroup>
<PropertyGroup>
<DelaySign>false</DelaySign>
</PropertyGroup>
<ItemGroup>
<!-- A reference to the entire .NET Framework is automatically included -->
<None Include="sign.pfx" />
Expand Down
4 changes: 2 additions & 2 deletions Core/Properties/AssemblyInfo.cs
Expand Up @@ -25,8 +25,8 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.7.16")]
[assembly: AssemblyFileVersion("0.7.16")]
[assembly: AssemblyVersion("0.7.17")]
[assembly: AssemblyFileVersion("0.7.17")]

[assembly: InternalsVisibleTo("LiveCharts.Wpf")]
[assembly: InternalsVisibleTo("LiveCharts.Geared")]
Expand Down
4 changes: 2 additions & 2 deletions WinFormsView/Properties/AssemblyInfo.cs
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.7.16")]
[assembly: AssemblyFileVersion("0.7.16")]
[assembly: AssemblyVersion("0.7.17")]
[assembly: AssemblyFileVersion("0.7.17")]
2 changes: 1 addition & 1 deletion WpfView/LineSeries.cs
Expand Up @@ -69,7 +69,7 @@ public LineSeries(object configuration)

#region Private Properties
protected PathFigure Figure { get; set; }
protected Path Path { get; set; }
internal Path Path { get; set; }
protected bool IsPathInitialized { get; set; }
internal List<LineSegmentSplitter> Splitters { get; set; }
protected int ActiveSplitters { get; set; }
Expand Down
4 changes: 2 additions & 2 deletions WpfView/Points/HorizontalBezierPointView.cs
Expand Up @@ -201,7 +201,7 @@ public override void OnHover(ChartPoint point)
{
var lineSeries = (LineSeries)point.SeriesView;
if (Shape != null) Shape.Fill = Shape.Stroke;
lineSeries.StrokeThickness = lineSeries.StrokeThickness + 1;
lineSeries.Path.StrokeThickness = lineSeries.StrokeThickness + 1;
}

public override void OnHoverLeave(ChartPoint point)
Expand All @@ -211,7 +211,7 @@ public override void OnHoverLeave(ChartPoint point)
Shape.Fill = point.Fill == null
? lineSeries.PointForeround
: (Brush) point.Fill;
lineSeries.StrokeThickness = lineSeries.StrokeThickness - 1;
lineSeries.Path.StrokeThickness = lineSeries.StrokeThickness;
}
}
}
4 changes: 2 additions & 2 deletions WpfView/Points/VerticalBezierPointView.cs
Expand Up @@ -157,7 +157,7 @@ public override void OnHover(ChartPoint point)
{
var lineSeries = (LineSeries)point.SeriesView;
if (Shape != null) Shape.Fill = Shape.Stroke;
lineSeries.StrokeThickness = lineSeries.StrokeThickness + 1;
lineSeries.Path.StrokeThickness = lineSeries.StrokeThickness + 1;
}

public override void OnHoverLeave(ChartPoint point)
Expand All @@ -167,7 +167,7 @@ public override void OnHoverLeave(ChartPoint point)
Shape.Fill = point.Fill == null
? lineSeries.PointForeround
: (Brush) point.Fill;
lineSeries.StrokeThickness = lineSeries.StrokeThickness - 1;
lineSeries.Path.StrokeThickness = lineSeries.StrokeThickness;
}
}
}
4 changes: 2 additions & 2 deletions WpfView/Properties/AssemblyInfo.cs
Expand Up @@ -51,8 +51,8 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.7.16")]
[assembly: AssemblyFileVersion("0.7.16")]
[assembly: AssemblyVersion("0.7.17")]
[assembly: AssemblyFileVersion("0.7.17")]

[assembly: InternalsVisibleTo("LiveCharts.Geared")]
[assembly: InternalsVisibleTo("LiveCharts.WinForms")]
Expand Down
2 changes: 1 addition & 1 deletion WpfView/StepLineSeries.cs
Expand Up @@ -164,7 +164,7 @@ public override IChartPointView GetPointView(IChartPointView view, ChartPoint po

if (pbv.Shape != null)
{
pbv.Shape.Fill = Fill;
pbv.Shape.Fill = PointForeround;
pbv.Shape.StrokeThickness = StrokeThickness;
pbv.Shape.Stroke = Stroke;
pbv.Shape.StrokeDashArray = StrokeDashArray;
Expand Down
7 changes: 5 additions & 2 deletions WpfView/WpfView.csproj
Expand Up @@ -13,7 +13,7 @@
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<WarningLevel>4</WarningLevel>
<TargetFrameworkProfile />
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.0.3</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand All @@ -36,7 +36,7 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.0.3</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'net40|AnyCPU'">
<OutputPath>bin\net403\</OutputPath>
Expand Down Expand Up @@ -110,6 +110,9 @@
<PropertyGroup>
<AssemblyOriginatorKeyFile>sign.pfx</AssemblyOriginatorKeyFile>
</PropertyGroup>
<PropertyGroup>
<DelaySign>false</DelaySign>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Data" />
Expand Down

0 comments on commit 5cdbc8f

Please sign in to comment.