# frozen_string_literal: true

module Thinreports
  module Core
    module Shape
      module Basic
        class Format < Core::Format::Base
          include Utils

          config_reader :type, :id
          config_reader :style
          config_checker true, :display
        end
      end
    end
  end
end

# frozen_string_literal: true

module Thinreports
  module Core
    module Shape
      module Basic
        class Format < Core::Format::Base
          include Utils

          config_reader :type, :id
          config_reader :style
          config_checker true, :display
          config_reader follow_stretch: %w[follow-stretch]

          def affect_bottom_margin?
            attributes.fetch('affect-bottom-margin', true)
          end
        end
      end
    end
  end
end

Add some properties to all items
Add some properties to all items

- affect-bottom-margin
- follow-stretch

Co-authored-by: kosappi <1a72c3adb8cf451abd36cfcfa35039fbab5efb3b@misoca.jp>
Co-authored-by: Katsuya HIDAKA <2f1e5d0fd7c5b5529f5d591c063df911b29bc9d1@gmail.com>
