Change name from PdfPath to PdfSubpath

This commit is contained in:
BobLd
2020-04-02 16:12:39 +01:00
committed by Eliot Jones
parent f1be6634a7
commit ab6a0f11fc
21 changed files with 94 additions and 93 deletions

View File

@@ -372,7 +372,7 @@
[MemberData(nameof(IsCounterClockwiseData))]
public void IsCounterClockwise(double[][] source, bool expected)
{
PdfPath pdfPath = new PdfPath();
PdfSubpath pdfPath = new PdfSubpath();
foreach (var point in source)
{
pdfPath.LineTo(point[0], point[1]);

View File

@@ -10,7 +10,7 @@
[Fact]
public void BezierCurveGeneratesCorrectBoundingBox()
{
var curve = new PdfPath.BezierCurve(new PdfPoint(60, 105),
var curve = new PdfSubpath.BezierCurve(new PdfPoint(60, 105),
new PdfPoint(75, 30),
new PdfPoint(215, 115),
new PdfPoint(140, 160));
@@ -28,7 +28,7 @@
[Fact]
public void LoopBezierCurveGeneratesCorrectBoundingBox()
{
var curve = new PdfPath.BezierCurve(new PdfPoint(166, 142),
var curve = new PdfSubpath.BezierCurve(new PdfPoint(166, 142),
new PdfPoint(75, 30),
new PdfPoint(215, 115),
new PdfPoint(140, 160));
@@ -47,7 +47,7 @@
[Fact]
public void BezierCurveAddsCorrectSvgCommand()
{
var curve = new PdfPath.BezierCurve(new PdfPoint(60, 105),
var curve = new PdfSubpath.BezierCurve(new PdfPoint(60, 105),
new PdfPoint(75, 30),
new PdfPoint(215, 115),
new PdfPoint(140, 160));

View File

@@ -4,7 +4,7 @@
using UglyToad.PdfPig.Core;
using UglyToad.PdfPig.Geometry;
using Xunit;
using static UglyToad.PdfPig.Core.PdfPath;
using static UglyToad.PdfPig.Core.PdfSubpath;
public class BezierCurveTests
{

View File

@@ -4,7 +4,7 @@
using UglyToad.PdfPig.Core;
using UglyToad.PdfPig.Geometry;
using Xunit;
using static UglyToad.PdfPig.Core.PdfPath;
using static UglyToad.PdfPig.Core.PdfSubpath;
public class PdfPathLineTests
{

View File

@@ -20,7 +20,7 @@
public TransformationMatrix CurrentTransformationMatrix => GetCurrentState().CurrentTransformationMatrix;
public PdfPath CurrentPath { get; set; }
public PdfSubpath CurrentPath { get; set; }
public IColorSpaceContext ColorSpaceContext { get; }
@@ -29,7 +29,7 @@
public TestOperationContext()
{
StateStack.Push(new CurrentGraphicsState());
CurrentPath = new PdfPath();
CurrentPath = new PdfSubpath();
ColorSpaceContext = new ColorSpaceContext(GetCurrentState, new ResourceStore(new TestPdfTokenScanner(), new TestFontFactory()));
}