make arc methods match Prawn's updated graphics API #1

Closed
Bluejade opened this Issue Apr 25, 2011 · 3 comments

Comments

Projects
None yet
2 participants
Owner

Bluejade commented Apr 25, 2011

Prawn removed the :radius option. PrawnShapes should do the same for consistency.

This is biting us- circle_at has been removed in favor of circle, which returns the PDF. Until this is fixed, we're having to monkeypatch like so:

module Prawn
  module Graphics
    def circle_at(point, options)
      circle(point, options[:radius])
    end

    def open_curve(*args)
      super
    rescue
    end
  end
end
Owner

Bluejade commented Sep 22, 2014

Thanks @egoodberry. I've patched and released an updated gem.

Much obliged, @Bluejade !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment