Sha256: 6185058585000d6abbb897293df45958aba158aede3d7edf24fdad36a037d27c

Contents?: true

Size: 226 Bytes

Versions: 16

Compression:

Stored size: 226 Bytes

Contents

module InlineSvg::TransformPipeline::Transformations
  class PreserveAspectRatio < Transformation
    def transform(doc)
      with_svg(doc) do |svg|
        svg["preserveAspectRatio"] = self.value
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
inline_svg-1.10.0 lib/inline_svg/transform_pipeline/transformations/preserve_aspect_ratio.rb
inline_svg-1.9.0 lib/inline_svg/transform_pipeline/transformations/preserve_aspect_ratio.rb
inline_svg-1.8.0 lib/inline_svg/transform_pipeline/transformations/preserve_aspect_ratio.rb
rails_mini_profiler-0.2.0 vendor/bundle/ruby/3.0.0/gems/inline_svg-1.7.2/lib/inline_svg/transform_pipeline/transformations/preserve_aspect_ratio.rb
inline_svg-1.7.2 lib/inline_svg/transform_pipeline/transformations/preserve_aspect_ratio.rb
inline_svg-1.7.1 lib/inline_svg/transform_pipeline/transformations/preserve_aspect_ratio.rb
inline_svg-1.7.0 lib/inline_svg/transform_pipeline/transformations/preserve_aspect_ratio.rb
inline_svg-1.6.0 lib/inline_svg/transform_pipeline/transformations/preserve_aspect_ratio.rb
inline_svg-1.5.2 lib/inline_svg/transform_pipeline/transformations/preserve_aspect_ratio.rb
inline_svg-1.5.1 lib/inline_svg/transform_pipeline/transformations/preserve_aspect_ratio.rb
inline_svg-1.5.0 lib/inline_svg/transform_pipeline/transformations/preserve_aspect_ratio.rb
inline_svg-1.4.0 lib/inline_svg/transform_pipeline/transformations/preserve_aspect_ratio.rb
inline_svg-1.3.1 lib/inline_svg/transform_pipeline/transformations/preserve_aspect_ratio.rb
inline_svg-1.3.0 lib/inline_svg/transform_pipeline/transformations/preserve_aspect_ratio.rb
inline_svg-1.2.3 lib/inline_svg/transform_pipeline/transformations/preserve_aspect_ratio.rb
inline_svg-1.2.2 lib/inline_svg/transform_pipeline/transformations/preserve_aspect_ratio.rb