Class: Idml::Render::Renderers::OvalRenderer

Inherits:
Object
  • Object
show all
Defined in:
lib/idml/render/renderers/oval_renderer.rb

Overview

Renders an IDML Oval on a Pdfrb::Content::Canvas as a true Bézier ellipse from its PathGeometry (which preserves any rotation in the ItemTransform). Falls back to the bounding-box rectangle when the item carries no geometry.

Class Method Summary collapse

Class Method Details

.render(canvas, context) ⇒ Object



11
12
13
# File 'lib/idml/render/renderers/oval_renderer.rb', line 11

def self.render(canvas, context)
  Contour.render(canvas, context)
end