Sha256: bc17cb9f5ac1869dca031cf6623bdb8f4ea8c3b519af5680dcf6dbc742e8d2d6

Contents?: true

Size: 635 Bytes

Versions: 49

Compression:

Stored size: 635 Bytes

Contents

# frozen_string_literal: true

require_relative 'shape_properties/shape_margins'
require_relative 'shape_properties/shape_size'
require_relative 'shape_properties/stroke'
module OoxmlParser
  # Class for working with Shape Properties
  class ShapeProperties
    attr_accessor :fill_color, :anchor_x, :anchor_y, :shadow, :margins, :size, :opacity, :position, :z_index, :stroke

    def initialize(position = nil, margins = ShapeMargins.new, size = ShapeSize.new, z_index = nil, stroke = Stroke.new)
      @position = position
      @margins = margins
      @size = size
      @z_index = z_index
      @stroke = stroke
    end
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
ooxml_parser-0.38.0 lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties.rb
ooxml_parser-0.37.1 lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties.rb
ooxml_parser-0.37.0 lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties.rb
ooxml_parser-0.36.1 lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties.rb
ooxml_parser-0.36.0 lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties.rb
ooxml_parser-0.35.0 lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties.rb
ooxml_parser-0.34.2 lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties.rb
ooxml_parser-0.34.1 lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties.rb
ooxml_parser-0.34.0 lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties.rb
ooxml_parser-0.33.0 lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties.rb
ooxml_parser-0.32.0 lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties.rb
ooxml_parser-0.31.0 lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties.rb
ooxml_parser-0.30.0 lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties.rb
ooxml_parser-0.29.0 lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties.rb
ooxml_parser-0.28.0 lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties.rb
ooxml_parser-0.27.0 lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties.rb
ooxml_parser-0.26.0 lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties.rb
ooxml_parser-0.25.0 lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties.rb
ooxml_parser-0.24.0 lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties.rb
ooxml_parser-0.23.0 lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties.rb