Skip to content
This repository has been archived by the owner on Jan 18, 2020. It is now read-only.

Commit

Permalink
Merge pull request #59 from SixLabors/beta8
Browse files Browse the repository at this point in the history
Update dependencies + remove struct copy
  • Loading branch information
JimBobSquarePants authored Jan 25, 2019
2 parents 5dee898 + 0cc805e commit bca6cb1
Show file tree
Hide file tree
Showing 11 changed files with 105 additions and 113 deletions.
3 changes: 0 additions & 3 deletions .editorconfig

This file was deleted.

3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "standards"]
path = standards
url = https://github.com/SixLabors/Standards
6 changes: 0 additions & 6 deletions SixLabors.Shapes.ruleset

This file was deleted.

4 changes: 3 additions & 1 deletion SixLabors.Shapes.sln
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ VisualStudioVersion = 15.0.26430.6
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SolutionItems", "SolutionItems", "{C317F1B1-D75E-4C6D-83EB-80367343E0D7}"
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
standards\.editorconfig = standards\.editorconfig
appveyor.yml = appveyor.yml
build.cmd = build.cmd
NuGet.config = NuGet.config
README.md = README.md
standards\SixLabors.ruleset = standards\SixLabors.ruleset
standards\stylecop.json = standards\stylecop.json
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Source", "Source", "{815C0625-CD3D-440F-9F80-2D83856AB7AE}"
Expand Down
1 change: 1 addition & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ image: Visual Studio 2017
install:

before_build:
- git submodule -q update --init
- cmd: dotnet --version

build_script:
Expand Down
8 changes: 4 additions & 4 deletions src/SixLabors.Shapes.Text/BaseGlyphBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,16 @@ void IGlyphRenderer.EndText()
}

/// <inheritdoc/>
void IGlyphRenderer.BeginText(RectangleF rect)
void IGlyphRenderer.BeginText(RectangleF bounds)
{
this.BeginText(rect);
this.BeginText(bounds);
}

/// <inheritdoc/>
bool IGlyphRenderer.BeginGlyph(RectangleF rect, GlyphRendererParameters glyphDetails)
bool IGlyphRenderer.BeginGlyph(RectangleF bounds, GlyphRendererParameters paramaters)
{
this.builder.Clear();
this.BeginGlyph(rect);
this.BeginGlyph(bounds);
return true;
}

Expand Down
88 changes: 47 additions & 41 deletions src/SixLabors.Shapes.Text/SixLabors.Shapes.Text.csproj
Original file line number Diff line number Diff line change
@@ -1,45 +1,51 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Authors>Six Labors and contributors</Authors>
<Company>Six Labors</Company>
<Copyright>Copyright (c) Six Labors and contributors.</Copyright>
<Description>Allows generating glyphs for text and a font for manipulation using SixLabors.Shapes</Description>
<NeutralLanguage>en</NeutralLanguage>
<AssemblyTitle>SixLabors.Shapes.Text</AssemblyTitle>
<VersionPrefix Condition="$(packageversion) != ''">$(packageversion)</VersionPrefix>
<VersionPrefix Condition="$(packageversion) == ''">0.1.0-alpha1</VersionPrefix>
<Authors>Six Labors and contributors</Authors>
<TargetFrameworks>netstandard1.3;netstandard2.0</TargetFrameworks>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AssemblyName>SixLabors.Shapes.Text</AssemblyName>
<PackageId>SixLabors.Shapes.Text</PackageId>
<PackageTags>shapes;text;</PackageTags>
<PackageIconUrl>https://raw.githubusercontent.com/SixLabors/Branding/master/icons/shapes/sixlabors.shapes.128.png</PackageIconUrl>
<PackageProjectUrl>https://github.com/SixLabors/Shapes</PackageProjectUrl>
<PackageLicenseUrl>http://www.apache.org/licenses/LICENSE-2.0</PackageLicenseUrl>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/SixLabors/Shapes</RepositoryUrl>
<DebugType Condition="$(codecov) == 'true'">full</DebugType>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<Compile Include="..\Shared\*.cs" Exclude="bin\**;obj\**;**\*.xproj;packages\**" />
</ItemGroup>
<ItemGroup>
<AdditionalFiles Include="..\..\stylecop.json" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="StyleCop.Analyzers" Version="1.1.0-beta004">
<PrivateAssets>All</PrivateAssets>
</PackageReference>
<PackageReference Include="SixLabors.Fonts" Version="1.0.0-beta0007" />
</ItemGroup>
<PropertyGroup>
<Authors>Six Labors and contributors</Authors>
<Company>Six Labors</Company>
<Copyright>Copyright (c) Six Labors and contributors.</Copyright>
<Description>Allows generating glyphs for text and a fonts for manipulation using SixLabors.Shapes</Description>
<NeutralLanguage>en</NeutralLanguage>
<AssemblyTitle>SixLabors.Shapes.Text</AssemblyTitle>
<VersionPrefix Condition="$(packageversion) != ''">$(packageversion)</VersionPrefix>
<VersionPrefix Condition="$(packageversion) == ''">0.1.0-alpha1</VersionPrefix>
<Authors>Six Labors and contributors</Authors>
<TargetFrameworks>netstandard1.3;netstandard2.0</TargetFrameworks>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AssemblyName>SixLabors.Shapes.Text</AssemblyName>
<PackageId>SixLabors.Shapes.Text</PackageId>
<PackageTags>shapes;text;</PackageTags>
<PackageIconUrl>https://raw.githubusercontent.com/SixLabors/Branding/master/icons/shapes/sixlabors.shapes.128.png</PackageIconUrl>
<PackageProjectUrl>https://github.com/SixLabors/Shapes</PackageProjectUrl>
<PackageLicenseUrl>http://www.apache.org/licenses/LICENSE-2.0</PackageLicenseUrl>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/SixLabors/Shapes</RepositoryUrl>
<DebugType Condition="$(codecov) == 'true'">full</DebugType>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\SixLabors.Shapes\SixLabors.Shapes.csproj" />
</ItemGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>

<ItemGroup>
<Compile Include="..\Shared\*.cs" Exclude="bin\**;obj\**;**\*.xproj;packages\**" />
</ItemGroup>

<PropertyGroup>
<CodeAnalysisRuleSet>..\..\standards\SixLabors.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>

<ItemGroup>
<AdditionalFiles Include="..\..\standards\stylecop.json" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="StyleCop.Analyzers" Version="1.1.1-beta.61" PrivateAssets="All"/>
<PackageReference Include="SixLabors.Fonts" Version="1.0.0-beta0008" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\SixLabors.Shapes\SixLabors.Shapes.csproj" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions src/SixLabors.Shapes/InternalPath.cs
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ private static bool IsOnSegment(Vector2 p, Vector2 q, Vector2 r)
}

[MethodImpl(MethodImplOptions.AggressiveInlining)]
private static bool IsOnSegment(Segment seg, Vector2 q)
private static bool IsOnSegment(in Segment seg, Vector2 q)
{
return (q.X - Epsilon2) <= seg.Max.X &&
(q.X + Epsilon2) >= seg.Min.X &&
Expand All @@ -441,7 +441,7 @@ private static bool IsOnSegment(Segment seg, Vector2 q)
}

[MethodImpl(MethodImplOptions.AggressiveInlining)]
private static bool IsOnSegments(Segment seg1, Segment seg2, Vector2 q)
private static bool IsOnSegments(in Segment seg1, in Segment seg2, Vector2 q)
{
float t = q.X - Epsilon2;
if (t > seg1.Max.X || t > seg2.Max.X)
Expand Down
85 changes: 44 additions & 41 deletions src/SixLabors.Shapes/SixLabors.Shapes.csproj
Original file line number Diff line number Diff line change
@@ -1,43 +1,46 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Authors>Six Labors and contributors</Authors>
<Company>Six Labors</Company>
<Copyright>Copyright (c) Six Labors and contributors.</Copyright>
<Description>Fully managed polygon manipulation/merging and interrogation library targeting netstandard.</Description>
<NeutralLanguage>en</NeutralLanguage>
<AssemblyTitle>SixLabors.Shapes</AssemblyTitle>
<VersionPrefix Condition="$(packageversion) != ''">$(packageversion)</VersionPrefix>
<VersionPrefix Condition="$(packageversion) == ''">0.1.0-alpha1</VersionPrefix>
<TargetFrameworks>netstandard1.3;netstandard2.0</TargetFrameworks>
<LangVersion>7.3</LangVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AssemblyName>SixLabors.Shapes</AssemblyName>
<PackageId>SixLabors.Shapes</PackageId>
<PackageTags>polygon;rectangle;point in polygon;complex polygons;shape;2D</PackageTags>
<PackageIconUrl>https://raw.githubusercontent.com/SixLabors/Branding/master/icons/shapes/sixlabors.shapes.128.png</PackageIconUrl>
<PackageProjectUrl>https://github.com/SixLabors/Shapes</PackageProjectUrl>
<PackageLicenseUrl>http://www.apache.org/licenses/LICENSE-2.0</PackageLicenseUrl>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/SixLabors/Shapes</RepositoryUrl>
<DebugType Condition="$(codecov) == 'true'">full</DebugType>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<Compile Include="..\Shared\*.cs" Exclude="bin\**;obj\**;**\*.xproj;packages\**" />
</ItemGroup>
<ItemGroup>
<AdditionalFiles Include="..\..\stylecop.json" />
</ItemGroup>
<PropertyGroup>
<CodeAnalysisRuleSet>..\..\SixLabors.Shapes.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="StyleCop.Analyzers" Version="1.1.0-beta004">
<PrivateAssets>All</PrivateAssets>
</PackageReference>
<PackageReference Include="SixLabors.Core" Version="1.0.0-dev000094" />
</ItemGroup>
<PropertyGroup>
<Authors>Six Labors and contributors</Authors>
<Company>Six Labors</Company>
<Copyright>Copyright (c) Six Labors and contributors.</Copyright>
<Description>Fully managed polygon manipulation/merging and interrogation library targeting netstandard.</Description>
<NeutralLanguage>en</NeutralLanguage>
<AssemblyTitle>SixLabors.Shapes</AssemblyTitle>
<VersionPrefix Condition="$(packageversion) != ''">$(packageversion)</VersionPrefix>
<VersionPrefix Condition="$(packageversion) == ''">0.1.0-alpha1</VersionPrefix>
<TargetFrameworks>netstandard1.3;netstandard2.0</TargetFrameworks>
<LangVersion>7.3</LangVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AssemblyName>SixLabors.Shapes</AssemblyName>
<PackageId>SixLabors.Shapes</PackageId>
<PackageTags>polygon;rectangle;point in polygon;complex polygons;shape;2D</PackageTags>
<PackageIconUrl>https://raw.githubusercontent.com/SixLabors/Branding/master/icons/shapes/sixlabors.shapes.128.png</PackageIconUrl>
<PackageProjectUrl>https://github.com/SixLabors/Shapes</PackageProjectUrl>
<PackageLicenseUrl>http://www.apache.org/licenses/LICENSE-2.0</PackageLicenseUrl>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/SixLabors/Shapes</RepositoryUrl>
<DebugType Condition="$(codecov) == 'true'">full</DebugType>
</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>

<ItemGroup>
<Compile Include="..\Shared\*.cs" Exclude="bin\**;obj\**;**\*.xproj;packages\**" />
</ItemGroup>

<ItemGroup>
<AdditionalFiles Include="..\..\standards\stylecop.json" />
</ItemGroup>

<PropertyGroup>
<CodeAnalysisRuleSet>..\..\standards\SixLabors.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="StyleCop.Analyzers" Version="1.1.1-beta.61" PrivateAssets="All"/>
<PackageReference Include="SixLabors.Core" Version="1.0.0-beta0007" />
</ItemGroup>
</Project>
1 change: 1 addition & 0 deletions standards
Submodule standards added at dd83f6
15 changes: 0 additions & 15 deletions stylecop.json

This file was deleted.

0 comments on commit bca6cb1

Please sign in to comment.