Module: Ea::Svg::EaEmitter::Background

Defined in:
lib/ea/svg/ea_emitter/background.rb

Overview

Emits the background layer: white rect over the full canvas.

Class Method Summary collapse

Class Method Details

.render(canvas) ⇒ Object



10
11
12
# File 'lib/ea/svg/ea_emitter/background.rb', line 10

def render(canvas)
  %(<g style="fill:#FFFFFF;fill-opacity:1.00;">\n  <rect x="#{canvas.min_x}" y="#{canvas.min_y}" width="#{canvas.width}" height="#{canvas.height}" shape-rendering="auto"/>\n</g>)
end