Class: Ea::Svg::Parity::Checker::Report
- Inherits:
-
Struct
- Object
- Struct
- Ea::Svg::Parity::Checker::Report
- Defined in:
- lib/ea/svg/parity/checker.rb
Instance Method Summary collapse
Instance Method Details
#shape_delta_total ⇒ Object
90 91 92 |
# File 'lib/ea/svg/parity/checker.rb', line 90 def shape_delta_total [rect, path, polygon].sum(&:delta).abs end |
#shape_within?(tolerance) ⇒ Boolean
98 99 100 |
# File 'lib/ea/svg/parity/checker.rb', line 98 def shape_within?(tolerance) [rect, path, polygon].all? { |d| d.within?(tolerance) } end |
#text_delta ⇒ Object
94 95 96 |
# File 'lib/ea/svg/parity/checker.rb', line 94 def text_delta text.delta end |