Sha256: 221b605b1463bbc308c060ee5d6452705832ca053c962a90bba3db7dab1dc4a7

Contents?: true

Size: 791 Bytes

Versions: 4

Compression:

Stored size: 791 Bytes

Contents

module OpenXml
  module DrawingML
    module Properties
      class FillPattern < OpenXml::Properties::ComplexProperty
        namespace :a
        tag :pattFill

        PRESET_PATTERNS = %i{
          cross dashDnDiag dashHorz dashUpDiag dashVert
          diagBrick diagCross divot dkDnDiag dkHorz dkUpDiag dkVert dnDiag
          dotDmnd dotGrid horz horzBrick lgCheck lgConfetti lgGrid ltDnDiag
          ltHorz ltUpdiag ltVert narHorz narVert openDmnd pct10 pct20 pct25
          pct30 pct40 pct5 pct50 pct60 pct70 pct75 pct80 pct90 plaid shingle
          smCheck smConfetti smGrid solidDmnd sphere trellis upDiag vert wave
          wdDnDiag wnUpDiag weave zigZag
        }.freeze

        attribute :pattern, displays_as: :prst, one_of: PRESET_PATTERNS

      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/fill_pattern.rb
openxml-drawingml-0.3.0 lib/openxml/drawingml/properties/fill_pattern.rb
openxml-drawingml-0.2.1 lib/openxml/drawingml/properties/fill_pattern.rb
openxml-drawingml-0.2.0 lib/openxml/drawingml/properties/fill_pattern.rb