From 4d16bfc43780e5d3f7368625700b583e3e98217a Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Sun, 27 Nov 2011 18:11:42 +0900 Subject: adding in row_style and col_style methods to worksheet and active record 'acts_as_axlsx' to provide to_xlsx. --- doc/Axlsx/View3D.html | 191 +++++++++++++++++++++++++++++--------------------- 1 file changed, 111 insertions(+), 80 deletions(-) (limited to 'doc/Axlsx/View3D.html') diff --git a/doc/Axlsx/View3D.html b/doc/Axlsx/View3D.html index d884bc39..6b78984f 100644 --- a/doc/Axlsx/View3D.html +++ b/doc/Axlsx/View3D.html @@ -94,8 +94,9 @@

Overview

- -

3D attributes for a chart.

+

+3D attributes for a chart. +

@@ -111,8 +112,9 @@
H_PERCENT_REGEX =
- -

Validation for hPercent

+

+Validation for hPercent +

@@ -122,13 +124,15 @@
-
/0*(([5-9])|([1-9][0-9])|([1-4][0-9][0-9])|500)%/
+
/0*(([5-9])|([1-9][0-9])|([1-4][0-9][0-9])|500)%/
+
DEPTH_PERCENT_REGEX =
- -

validation for depthPercent

+

+validation for depthPercent +

@@ -138,7 +142,8 @@
-
/0*(([2-9][0-9])|([1-9][0-9][0-9])|(1[0-9][0-9][0-9])|2000)%/
+
/0*(([2-9][0-9])|([1-9][0-9][0-9])|(1[0-9][0-9][0-9])|2000)%/
+
@@ -166,8 +171,9 @@ -
-

depth or chart as % of chart width must be between 20% and 2000%.

+

+depth or chart as % of chart width must be between 20% and 2000%. +

@@ -192,8 +198,9 @@ -
-

height of chart as % of chart must be between 5% and 500%.

+

+height of chart as % of chart must be between 5% and 500%. +

@@ -218,8 +225,9 @@ -
-

field of view angle.

+

+field of view angle. +

@@ -244,8 +252,9 @@ -
-

Chart axis are at right angles.

+

+Chart axis are at right angles. +

@@ -270,8 +279,9 @@ -
-

x rotation for the chart must be between -90 and 90.

+

+x rotation for the chart must be between -90 and 90. +

@@ -296,8 +306,9 @@ -
-

y rotation for the chart must be between 0 and 360.

+

+y rotation for the chart must be between 0 and 360. +

@@ -334,8 +345,9 @@ -
-

Creates a new View3D for charts.

+

+Creates a new View3D for charts. +

@@ -357,8 +369,9 @@ -
-

Serializes the view3D properties.

+

+Serializes the view3D properties. +

@@ -379,8 +392,9 @@

- -

Creates a new View3D for charts

+

+Creates a new View3D for charts +

@@ -401,8 +415,9 @@ — -
-

a customizable set of options

+

+a customizable set of options +

@@ -489,12 +504,13 @@
# File 'lib/axlsx/drawing/view_3D.rb', line 46
 
-def initialize(options={})
-  @rotX, @hPercent, @rotY, @depthPercent, @rAngAx, @perspective  = nil, nil, nil, nil, nil, nil 
-  options.each do |o|
-    self.send("#{o[0]}=", o[1]) if self.respond_to? "#{o[0]}="
-  end    
-end
+def initialize(options={}) + @rotX, @hPercent, @rotY, @depthPercent, @rAngAx, @perspective = nil, nil, nil, nil, nil, nil + options.each do |o| + self.send("#{o[0]}=", o[1]) if self.respond_to? "#{o[0]}=" + end +end + @@ -517,8 +533,9 @@

- -

depth or chart as % of chart width must be between 20% and 2000%

+

+depth or chart as % of chart width must be between 20% and 2000% +

@@ -552,9 +569,10 @@
# File 'lib/axlsx/drawing/view_3D.rb', line 29
 
-def depthPercent
-  @depthPercent
-end
+def depthPercent + @depthPercent +end + @@ -572,8 +590,9 @@

- -

height of chart as % of chart must be between 5% and 500%

+

+height of chart as % of chart must be between 5% and 500% +

@@ -607,9 +626,10 @@
# File 'lib/axlsx/drawing/view_3D.rb', line 19
 
-def hPercent
-  @hPercent
-end
+def hPercent + @hPercent +end + @@ -627,8 +647,9 @@

- -

field of view angle

+

+field of view angle +

@@ -662,9 +683,10 @@
# File 'lib/axlsx/drawing/view_3D.rb', line 37
 
-def perspective
-  @perspective
-end
+def perspective + @perspective +end + @@ -682,8 +704,9 @@

- -

Chart axis are at right angles

+

+Chart axis are at right angles +

@@ -717,9 +740,10 @@
# File 'lib/axlsx/drawing/view_3D.rb', line 33
 
-def rAngAx
-  @rAngAx
-end
+def rAngAx + @rAngAx +end + @@ -737,8 +761,9 @@

- -

x rotation for the chart must be between -90 and 90

+

+x rotation for the chart must be between -90 and 90 +

@@ -772,9 +797,10 @@
# File 'lib/axlsx/drawing/view_3D.rb', line 14
 
-def rotX
-  @rotX
-end
+def rotX + @rotX +end + @@ -792,8 +818,9 @@

- -

y rotation for the chart must be between 0 and 360

+

+y rotation for the chart must be between 0 and 360 +

@@ -827,9 +854,10 @@
# File 'lib/axlsx/drawing/view_3D.rb', line 24
 
-def rotY
-  @rotY
-end
+def rotY + @rotY +end + @@ -851,8 +879,9 @@

- -

Serializes the view3D properties

+

+Serializes the view3D properties +

@@ -871,8 +900,9 @@ — -
-

The document builder instance this objects xml will be added to.

+

+The document builder instance this objects xml will be added to. +

@@ -913,16 +943,17 @@
# File 'lib/axlsx/drawing/view_3D.rb', line 74
 
-def to_xml(xml)
-  xml.send('c:view3D') {
-    xml.send('c:rotX', :val=>@rotX) unless @rotX.nil?
-    xml.send('c:hPercent', :val=>@hPercent) unless @hPercent.nil?
-    xml.send('c:rotY', :val=>@rotY) unless @rotY.nil?
-    xml.send('c:depthPercent', :val=>@depthPercent) unless @depthPercent.nil?
-    xml.send('c:rAngAx', :val=>@rAngAx) unless @rAngAx.nil?
-    xml.send('c:perspective', :val=>@perspective) unless @perspective.nil?
-  }
-end
+def to_xml(xml) + xml.send('c:view3D') { + xml.send('c:rotX', :val=>@rotX) unless @rotX.nil? + xml.send('c:hPercent', :val=>@hPercent) unless @hPercent.nil? + xml.send('c:rotY', :val=>@rotY) unless @rotY.nil? + xml.send('c:depthPercent', :val=>@depthPercent) unless @depthPercent.nil? + xml.send('c:rAngAx', :val=>@rAngAx) unless @rAngAx.nil? + xml.send('c:perspective', :val=>@perspective) unless @perspective.nil? + } +end + @@ -933,9 +964,9 @@
-- cgit v1.2.3