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

Refactored context management; Adding Ponoko -specific line properties. #112

Closed
wants to merge 2 commits into from

Conversation

wayn3w
Copy link
Contributor

@wayn3w wayn3w commented Jan 22, 2019

This is the the same as the other Ponoko-specific pull request, but split into separate commits.

Not done:

  • Changing the generators to use saved_context(). Happy to do this as a separate code change.
  • Adding restoring the original point (get_current_point, move_to) to saved_context(). This had the potential to change a lot of code, including removing Boxes.restore(). Happy to do this as a separate code change.

@florianfesti
Copy link
Owner

Thanks for the updated patch. I am currently traveling so it may take a few days longer to take a look at it.

@florianfesti
Copy link
Owner

Ok, this looks really good. I split the patches even more (separating the color from the save_context part and moving the GPL header into a separate patch). I'll do some more testing tomorrow and then push the whole set.

Minor nit picks so far: The changes to universalbox change the color from red (1.0, 0, 0) to blue.
Looks like formats needlessly imports Colors
But I'll just fix that myself.

@wayn3w
Copy link
Contributor Author

wayn3w commented Feb 2, 2019 via email

@florianfesti
Copy link
Owner

I already started work on the generators based on the old patch. I'll probably just adapt that one.

Unfortunately this all means I need to replace the .move() method with a context manager, too.

@wayn3w
Copy link
Contributor Author

wayn3w commented Feb 2, 2019 via email

@florianfesti
Copy link
Owner

Ok, I fixed the issues above and simplified the handling of the svg_Ponoko format a bit. I still kept you as sole author. I hope that's ok.

@wayn3w
Copy link
Contributor Author

wayn3w commented Feb 4, 2019 via email

@wayn3w wayn3w deleted the ww-ponoko-rb branch February 4, 2019 02:17
@florianfesti
Copy link
Owner

Ok, I pushed my changes to switch over to saved_context(). Still a few generators left that need more than just a few lines indented on level deeper.

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.

None yet

2 participants