Skip to content

Adding Paths collection#46

Merged
EliotJones merged 5 commits intoUglyToad:masterfrom
vadik299:master
Jul 29, 2019
Merged

Adding Paths collection#46
EliotJones merged 5 commits intoUglyToad:masterfrom
vadik299:master

Conversation

@vadik299
Copy link
Contributor

Hi, I added Paths collection to Page to be able to get the list of lines/curves on the page. Also added matrix transform to the path operators.

vadik299 added 2 commits July 16, 2019 00:35
Added matrix transformation to path operators.
@EliotJones
Copy link
Member

Thanks very much for putting this together, I'll try to get round to reviewing it as soon as I can.

Copy link
Member

@EliotJones EliotJones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry it's taken me so long to get round to this review, this week has been busy. Thanks for taking the time to contribute these changes.

There are just some changes to make the public API slightly neater but otherwise it seems good to me. It looks like some tests are failing, I'm going to have a look into the reason and add some further comments when I find out why.

private readonly List<IPathCommand> commands = new List<IPathCommand>();
public readonly List<IPathCommand> Commands = new List<IPathCommand>();
private PdfPoint? currentPosition;
internal TransformationMatrix CurrentTransformationMatrix;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good addition 👍

I'd make this a constructor parameter rather than an internal settable field. As far as possible in the code I try to avoid publically mutable fields/properties. It makes the code easier to reason about if it can't be changed from elsewhere.

@vadik299
Copy link
Contributor Author

Thank you for the comments! I will review the code and resolve the issues. Sorry, been a bit busy lately :-(

vadik299 and others added 3 commits July 23, 2019 21:04
Copy link
Member

@EliotJones EliotJones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for submitting these and sorry it's taken me so long to get round to reviewing!

@EliotJones EliotJones merged commit 413ebe3 into UglyToad:master Jul 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants