From 058faf2581970fa18c314ad07f5658adeca32c69 Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Sun, 27 Nov 2011 22:08:55 +0900 Subject: update to README --- doc/Axlsx/View3D.html | 191 +++++++++++++++++++++----------------------------- 1 file changed, 80 insertions(+), 111 deletions(-) (limited to 'doc/Axlsx/View3D.html') diff --git a/doc/Axlsx/View3D.html b/doc/Axlsx/View3D.html index 3eecea4e..6d14ad06 100644 --- a/doc/Axlsx/View3D.html +++ b/doc/Axlsx/View3D.html @@ -94,9 +94,8 @@

Overview

-

-3D attributes for a chart. -

+ +

3D attributes for a chart.

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

-Validation for hPercent -

+ +

Validation for hPercent

@@ -124,15 +122,13 @@ Validation for hPercent
-
/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

@@ -142,8 +138,7 @@ validation for depthPercent
-
/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)%/
@@ -171,9 +166,8 @@ validation for depthPercent -

-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%.

@@ -198,9 +192,8 @@ depth or chart as % of chart width must be between 20% and 2000%. -

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

+
+

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

@@ -225,9 +218,8 @@ height of chart as % of chart must be between 5% and 500%. -

-field of view angle. -

+
+

field of view angle.

@@ -252,9 +244,8 @@ field of view angle. -

-Chart axis are at right angles. -

+
+

Chart axis are at right angles.

@@ -279,9 +270,8 @@ Chart axis are at right angles. -

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

+
+

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

@@ -306,9 +296,8 @@ x rotation for the chart must be between -90 and 90. -

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

+
+

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

@@ -345,9 +334,8 @@ y rotation for the chart must be between 0 and 360. -

-Creates a new View3D for charts. -

+
+

Creates a new View3D for charts.

@@ -369,9 +357,8 @@ Creates a new View3D for charts. -

-Serializes the view3D properties. -

+
+

Serializes the view3D properties.

@@ -392,9 +379,8 @@ Serializes the view3D properties.

-

-Creates a new View3D for charts -

+ +

Creates a new View3D for charts

@@ -415,9 +401,8 @@ Creates a new View3D for charts — -

-a customizable set of options -

+
+

a customizable set of options

@@ -504,13 +489,12 @@ a customizable set of options
# 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 @@ -533,9 +517,8 @@ a customizable set of options

-

-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%

@@ -569,10 +552,9 @@ depth or chart as % of chart width must be between 20% and 2000%
# File 'lib/axlsx/drawing/view_3D.rb', line 29
 
-def depthPercent
-  @depthPercent
-end
-
+def depthPercent + @depthPercent +end @@ -590,9 +572,8 @@ depth or chart as % of chart width must be between 20% and 2000%

-

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

+ +

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

@@ -626,10 +607,9 @@ height of chart as % of chart must be between 5% and 500%
# File 'lib/axlsx/drawing/view_3D.rb', line 19
 
-def hPercent
-  @hPercent
-end
-
+def hPercent + @hPercent +end @@ -647,9 +627,8 @@ height of chart as % of chart must be between 5% and 500%

-

-field of view angle -

+ +

field of view angle

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

-

-Chart axis are at right angles -

+ +

Chart axis are at right angles

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

-

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

+ +

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

@@ -797,10 +772,9 @@ x rotation for the chart must be between -90 and 90
# File 'lib/axlsx/drawing/view_3D.rb', line 14
 
-def rotX
-  @rotX
-end
-
+def rotX + @rotX +end @@ -818,9 +792,8 @@ x rotation for the chart must be between -90 and 90

-

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

+ +

y rotation for the chart must be between 0 and 360

@@ -854,10 +827,9 @@ y rotation for the chart must be between 0 and 360
# File 'lib/axlsx/drawing/view_3D.rb', line 24
 
-def rotY
-  @rotY
-end
-
+def rotY + @rotY +end @@ -879,9 +851,8 @@ y rotation for the chart must be between 0 and 360

-

-Serializes the view3D properties -

+ +

Serializes the view3D properties

@@ -900,9 +871,8 @@ Serializes the view3D properties — -

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

+
+

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

@@ -943,17 +913,16 @@ The document builder instance this objects xml will be added to.
# 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 @@ -964,9 +933,9 @@ The document builder instance this objects xml will be added to.
-- cgit v1.2.3