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 |
# File 'lib/prawn/svg/attributes/transform.rb', line 2 def parse_transform_attribute_and_call return unless transform = attributes['transform'] matrix = parse_transform_attribute(transform) add_call_and_enter "transformation_matrix", *matrix unless matrix == [1, 0, 0, 1, 0, 0] end |