mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-10-14 19:05:01 +08:00
Change name from PdfPath to PdfSubpath
This commit is contained in:
@@ -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]);
|
||||
|
@@ -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));
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -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()));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user