Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add parse_str, rasterize_to_raw_rgba, and optional image. #2

Merged
merged 2 commits into from
Jun 18, 2018

Conversation

tilde35
Copy link

@tilde35 tilde35 commented Jun 15, 2018

Thanks for creating this library! I added a few features that I needed for my application usage. Feel free to use or modify as you see fit.

src/lib.rs Outdated
@@ -189,14 +228,26 @@ impl Drop for SvgImage {
* Loads SVG data from a file at the given `Path`.
*
* # Arguments
* - `svg_path` - Path to the SVG you want to load
* - `svg_path` - Text contents of the SVG you want to load
Copy link
Owner

Choose a reason for hiding this comment

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

I think these comments got switched around by accident. Shouldn't this remain as "Path to the SVG you want to load"?

Then the documentation for parse_str seems like it should be "Text contents of the SVG you want to load".

Copy link
Author

Choose a reason for hiding this comment

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

Yep, looks like I copy-pasted at the wrong location. I'll get that updated. Thanks!

@nickbrowne
Copy link
Owner

The changes you're proposing look good to me, I'll find them useful as well!

I've just got the one question about the comments for the function arguments, then I'd be happy to merge this.

@tilde35
Copy link
Author

tilde35 commented Jun 18, 2018

All set, the comments have been updated. Thanks!

@nickbrowne
Copy link
Owner

Thanks, I'll try to publish a new version later today 👍

@nickbrowne nickbrowne merged commit ff047bb into nickbrowne:master Jun 18, 2018
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