# frozen_string_literal: true

module Thinreports
  module Core
    module Shape
      module Style
        class Basic < Style::Base
          style_accessible :visible
          attr_accessor :visible

          def initialize(*args)
            super
            @visible = @format.display?
          end
        end
      end
    end
  end
end

# frozen_string_literal: true

module Thinreports
  module Core
    module Shape
      module Style
        class Basic < Style::Base
          style_accessible :visible, :offset_x, :offset_y
          attr_accessor :visible

          style_accessor :offset_x, 'offset-x'
          style_accessor :offset_y, 'offset-y'

          def initialize(*args)
            super
            @visible = @format.display?
          end
        end
      end
    end
  end
end

Add offset-x and y properties to style parameters
Add offset-x and y properties to style parameters

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