Sha256: 19ebd3cfa4faec1a65ad99fae0aee991d29ecc6ea48bed4af1dc17d97aabfba4

Contents?: true

Size: 709 Bytes

Versions: 3

Compression:

Stored size: 709 Bytes

Contents

# coding: utf-8

module Thinreports
  module Core::Shape

    class List::SectionFormat < Manager::Format
      config_reader :height
      config_reader relative_left: %w( translate x ),
                    relative_top: %w( translate y )

      config_reader layout: %w( svg content ),
                    svg_tag: %w( svg tag ),
                    svg_attrs: %w( svg attrs )

      class << self
      private

        def build_internal(raw_format)
          new(raw_format) do |f|
            build_layout(f, level: 2) do |type, shape_format|
              Core::Shape::Format(type).build(shape_format)
            end
            clean(f.layout)
          end
        end
      end

    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
thinreports-0.8.2 lib/thinreports/core/shape/list/section_format.rb
thinreports-0.8.1 lib/thinreports/core/shape/list/section_format.rb
thinreports-0.8.0 lib/thinreports/core/shape/list/section_format.rb