Module: FN::PDF::Node::Invert
- Includes:
- Node::Base
- Defined in:
- lib/fn/pdf/node/invert.rb
Constant Summary
Constants included from Node::Base
Node::Base::CURRENT_PAGE_HEIGHT, Node::Base::CURRENT_PAGE_WIDTH
Instance Method Summary collapse
Methods included from Node::Base
#classify, #has_no_children, #mixin, #value, #visit_children, #with_attributes_like
Instance Method Details
#visit(struct, debug = false) ⇒ Object
26 27 28 29 30 31 32 |
# File 'lib/fn/pdf/node/invert.rb', line 26 def visit(struct, debug = false) struct.save struct.translate self["x"].to_f + self["x2"].to_f, self["y"].to_f + self["y2"].to_f struct.rotate 180 visit_children(struct, debug) struct.restore end |