Module: Prawn::SVG::Attributes::Transform
- Included in:
- Elements::Base
- Defined in:
- lib/prawn/svg/attributes/transform.rb
Instance Method Summary collapse
Instance Method Details
#parse_transform_attribute_and_call ⇒ Object
2 3 4 5 6 7 8 9 |
# File 'lib/prawn/svg/attributes/transform.rb', line 2 def parse_transform_attribute_and_call # Some elements do not support transforms return unless transformable? return unless (transform = attributes['transform']) matrix = matrix_for_pdf(parse_transform_attribute(transform)) add_call_and_enter 'transformation_matrix', *matrix unless matrix == [1, 0, 0, 1, 0, 0] end |