Class: Emfsvg::Translation::Scaler::Identity
- Inherits:
-
Object
- Object
- Emfsvg::Translation::Scaler::Identity
- Defined in:
- lib/emfsvg/translation/scaler/identity.rb
Overview
Default scaler: truncates SVG decimal coords to int32 1:1. Matches MM_TEXT map mode (no scaling records emitted).
Instance Method Summary collapse
Instance Method Details
#factor ⇒ Object
13 14 15 |
# File 'lib/emfsvg/translation/scaler/identity.rb', line 13 def factor 1 end |
#scaled? ⇒ Boolean
17 18 19 |
# File 'lib/emfsvg/translation/scaler/identity.rb', line 17 def scaled? false end |
#to_int(decimal) ⇒ Object
9 10 11 |
# File 'lib/emfsvg/translation/scaler/identity.rb', line 9 def to_int(decimal) decimal.to_i end |