Class: Ea::Svg::Parity::Checker::Report

Inherits:
Struct
  • Object
show all
Defined in:
lib/ea/svg/parity/checker.rb

Instance Method Summary collapse

Instance Method Details

#shape_delta_totalObject



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

Returns:

  • (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_deltaObject



94
95
96
# File 'lib/ea/svg/parity/checker.rb', line 94

def text_delta
  text.delta
end