class OoxmlParser::View3D
Parsing Chart
3D view tag 'view3D'
Attributes
right_angle_axis[RW]
@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.
rotation_x[RW]
@return [ValuedChild] This element specifies the amount a 3-D chart shall be rotated in the X direction
rotation_y[RW]
@return [ValuedChild] This element specifies the amount a 3-D chart shall be rotated in the Y direction
Public Instance Methods
parse(node)
click to toggle source
Parse View3D
object @param node [Nokogiri::XML:Element] node to parse @return [View3D] result of parsing
# File lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart/view_3d.rb, line 20 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