Sha256: 749af8a8578bd05738e43d6abc8df164230f89ea0dc84de391189244139e9a11

Contents?: true

Size: 501 Bytes

Versions: 1

Compression:

Stored size: 501 Bytes

Contents

# frozen_string_literal: true

class Shoes
  class Rect < Common::ArtElement
    style_with :art_styles, :curve, :common_styles, :dimensions
    STYLES = { curve: 0, fill: Shoes::COLORS[:black] }.freeze

    def create_dimensions(left, top, width, height)
      left   ||= @style[:left] || 0
      top    ||= @style[:top] || 0
      width  ||= @style[:width] || 0
      height ||= @style[:height] || width

      @dimensions = AbsoluteDimensions.new left, top, width, height, @style
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shoes-core-4.0.0.rc1 lib/shoes/rect.rb