Sha256: 3e4d3e9479b7967ccc9d15a3dd261b7749f7f7b0c25baec7ae7ea93c5bdcacc0

Contents?: true

Size: 1.16 KB

Versions: 4

Compression:

Stored size: 1.16 KB

Contents

module OpenXml
  module DrawingML
    module Properties
      class ShapeProperties < OpenXml::Properties::ComplexProperty
        include OpenXml::ContainsProperties
        namespace :a
        tag :spPr

        BLACK_AND_WHITE_MODES = %i{
          auto black blackGray blackWhite clr gray grayWhite hidden invGray ltGray white
        }.freeze

        attribute :bw_mode, displays_as: :bwMode, one_of: BLACK_AND_WHITE_MODES

        property :transform

        property_choice do
          property :custom_geometry
          property :preset_geometry
        end

        property_choice do
          value_property :no_fill, as: :fill_none
          property :solid_fill, as: :fill_solid
          property :gradient_fill, as: :fill_gradient
          property :pattern_fill, as: :fill_pattern
          property :blip_fill, as: :fill_blip
          value_property :inherit_group_fill, as: :fill_group
        end

        property :outline

        property_choice do
          property :effect_list
          property :effect_dag
        end

        property :scene_3d
        # property :shape_3d # TODO: sp3d

        property :extension_list

      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
openxml-drawingml-0.3.1 lib/openxml/drawingml/properties/shape_properties.rb
openxml-drawingml-0.3.0 lib/openxml/drawingml/properties/shape_properties.rb
openxml-drawingml-0.2.1 lib/openxml/drawingml/properties/shape_properties.rb
openxml-drawingml-0.2.0 lib/openxml/drawingml/properties/shape_properties.rb