Sha256: aee396007402dbe89cb47d96caf72dcb7de3423cd9bbef5b06c91d9db3a7c13f
Contents?: true
Size: 1.11 KB
Versions: 4
Compression:
Stored size: 1.11 KB
Contents
module OoxmlParser # Parsing Chart 3D view tag 'view3D' class View3D < OOXMLDocumentObject # @return [ValuedChild] This element specifies the amount # a 3-D chart shall be rotated in the X direction attr_accessor :rotation_x # @return [ValuedChild] This element specifies the amount # a 3-D chart shall be rotated in the Y direction attr_accessor :rotation_y # @return [True, False] This element specifies that the # chart axes are at right angles, rather than drawn # in perspective. Applies only to 3-D charts. attr_accessor :right_angle_axis # Parse View3D object # @param node [Nokogiri::XML:Element] node to parse # @return [View3D] result of parsing def parse(node) node.xpath('*').each do |node_child| case node_child.name when 'rotX' @rotation_x = ValuedChild.new(:integer, parent: self).parse(node_child) when 'rotY' @rotation_y = ValuedChild.new(:integer, parent: self).parse(node_child) when 'rAngAx' @right_angle_axis = option_enabled?(node_child) end end self end end end
Version data entries
4 entries across 4 versions & 1 rubygems