lib/write_xlsx/shape.rb in write_xlsx-0.75.0 vs lib/write_xlsx/shape.rb in write_xlsx-0.76.0

- old
+ new

@@ -9,10 +9,11 @@ # # Copyright 2000-2012, John McNamara, jmcnamara@cpan.org # Converted to ruby by Hideo NAKAMURA, cxn03651@msj.biglobe.ne.jp # class Shape + include Writexlsx::Utility attr_reader :edit_as, :type, :drawing attr_reader :tx_box, :fill, :line, :format attr_reader :align, :valign attr_accessor :name, :connect, :type, :id, :start, :end, :rotation @@ -141,24 +142,9 @@ # # Set the shape adjustments array (as a reference). # def adjustments=(args) @adjustments = *args - end - - # - # Convert from an Excel internal colour index to a XML style #RRGGBB index - # based on the default or user defined values in the Workbook palette. - # Note: This version doesn't add an alpha channel. - # - def get_palette_color(index) - # Adjust the colour index. - idx = index - 8 - - # Palette is passed in from the Workbook class. - rgb = @palette[idx] - - sprintf("%02X%02X%02X", *rgb) end # # Calculate the vertices that define the position of a shape object within # the worksheet in EMUs. Save the vertices with the object.